WO2025035906A1 - Reversing image display method and apparatus, device, and computer storage medium - Google Patents
Reversing image display method and apparatus, device, and computer storage medium Download PDFInfo
- Publication number
- WO2025035906A1 WO2025035906A1 PCT/CN2024/097240 CN2024097240W WO2025035906A1 WO 2025035906 A1 WO2025035906 A1 WO 2025035906A1 CN 2024097240 W CN2024097240 W CN 2024097240W WO 2025035906 A1 WO2025035906 A1 WO 2025035906A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- reversing
- image data
- file system
- application
- camera
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/414—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
- H04N21/41422—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance located in transportation means, e.g. personal vehicle
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present disclosure generally relates to the field of reversing image processing technology, and more specifically, to a reversing image display method, device, equipment, and computer storage medium.
- a vehicle-mounted terminal can operate its own camera to collect reversing image data for display only after the Android system is started.
- the camera startup time is too long, affecting the display speed of the reversing image data, and then affecting the rapidity of the reversing operation.
- the present disclosure provides a method for displaying a reversing image, which is applied to a vehicle-mounted terminal installed with an Android system, and includes:
- the reversing application is started to control the camera connected to the vehicle-mounted terminal to collect reversing image data and display the reversing image data.
- the step of starting the reversing application to control the camera connected to the vehicle-mounted terminal to collect reversing image data includes:
- the reversing application is started to control the camera to collect the reversing image data through the V4L2 framework.
- the method further includes:
- the target plug-in is used to interact with the driver of the camera through the V4L2 framework to light up the camera.
- the method further includes:
- the processing of the reversing image data includes:
- the method further includes:
- the other image data besides the reversing image data are displayed by the second graphics card.
- the present disclosure provides a reversing image display device, which is applied to a vehicle terminal installed with an Android system, and includes:
- a preset program is used to create a file system directory of the reversing application during the kernel_init thread startup phase of the Android system, and mount the file system in the target partition of the vehicle terminal to the file system directory, wherein the file system includes files required for the operation of the reversing application; and set the user role and read and write permissions of the reversing application in the file system directory;
- the reversing application is used to control the camera connected to the vehicle-mounted terminal to collect reversing image data and process the reversing image data.
- the reversing image display device further includes:
- the V4L2 framework is used to interact with the driver of the camera to light up the camera under the control of the target plug-in after the vehicle terminal is started; and is used to control the camera to collect the reversing image data under the instruction of the reversing application.
- the reversing image display device further includes:
- a first graphics card configured to display the reversing image data
- the second graphics card is configured to display other image data besides the reversing image data.
- the present disclosure provides a computer device, comprising:
- a memory configured to store a computer program
- the processor is configured to implement the reversing image display method described in the present disclosure when executing the computer program.
- the present disclosure provides a computer storage medium, in which a computer program is stored.
- the computer program is executed by a processor, the reversing image display method described in the present disclosure is implemented.
- a vehicle terminal installed with an Android system can mount and run a preset program in a target partition to create a file system directory for a reversing application, mount the file system in the target partition to the file system directory, and rerun the preset program to set the user role and read-write permissions of the reversing application in the file system directory, thereby setting up a running environment for the reversing application in advance, and starting the reversing application to control the camera to collect reversing image data and process the reversing image data, thereby achieving the goal of starting the camera for reversing display through the reversing application during the kernel_init thread startup phase of the Android system.
- the camera startup speed is accelerated, and then the display speed of the reversing image data is accelerated, and finally the reversing display speed of the vehicle terminal is accelerated.
- FIG1 is a first flow chart of a method for displaying a reversing image provided by an embodiment of the present disclosure
- FIG2 is a second flow chart of a method for displaying a reversing image provided by an embodiment of the present disclosure
- FIG3 is a third flow chart of a method for displaying a reversing image according to an embodiment of the present disclosure
- Figure 4 is a normal boot flow chart of the Android system
- FIG5 is a flowchart of reverse start of the reverse imaging device
- FIG6 is a schematic flow chart of the structure of a reversing image display device provided by an embodiment of the present disclosure.
- FIG. 7 is a structural diagram of a computer device 20 according to an embodiment of the present disclosure.
- FIG. 1 is a first flow chart of a method for displaying a reversing image according to an embodiment of the present disclosure.
- the reversing image display method provided by the embodiment of the present disclosure is applied to a vehicle terminal installed with an Android system, and may include the following steps:
- Step S101 during the kernel_init thread startup phase of the Android system, read the mount target partition;
- Step S102 running a preset program in the target partition to create a file system directory of the reversing application, and mounting the file system in the target partition to the file system directory, wherein the file system includes files required for running the reversing application;
- Step S103 re-running the preset program to set the user role and read/write permissions of the reversing application program in the file system directory;
- Step S104 Start the reversing application to control the camera connected to the vehicle terminal to collect reversing image data and display the reversing image data.
- a vehicle terminal installed with an Android system can read the mounted target partition during the startup phase of the kernel_init thread of the Android system, so as to subsequently build a running environment for a reversing application that controls the camera in advance based on the mounted target partition, so as to start the camera connected to the vehicle terminal during the startup phase of the kernel_init thread of the Android system.
- the vehicle terminal installed with the Android system is based on the mount
- the file system includes the files required for the operation of the reversing application.
- the file system may include dynamic libraries, configuration files, security policies, executable files, etc., and may include sysfs, selinuxfs, devtmpfs, etc.; then re-run the preset program to set the user role and read and write permissions of the reversing application in the file system directory.
- the SE security policy in the target partition can also be loaded, and the SE security mode can be set to provide security protection for the reversing application.
- the reversing application can be started to control the camera connected to the vehicle terminal to collect reversing image data and display the reversing image data, so that the camera can be started for reversing display during the kernel_init thread startup phase of the Android system, thereby quickly providing reversing services to users.
- a vehicle terminal installed with an Android system can mount and run a preset program in a target partition to create a file system directory for a reversing application, mount the file system in the target partition to the file system directory, and rerun the preset program to set the user role and read-write permissions of the reversing application in the file system directory, thereby setting up a running environment for the reversing application in advance, and starting the reversing application to control the camera to collect reversing image data and process the reversing image data, thereby achieving the goal of starting the camera for reversing display through the reversing application during the kernel_init thread startup phase of the Android system.
- the camera startup speed is accelerated, and then the display speed of the reversing image data is accelerated, and finally the reversing display speed of the vehicle terminal is accelerated.
- FIG. 2 is a second flow chart of a method for displaying a reversing image according to an embodiment of the present disclosure.
- the reversing image display method provided by the embodiment of the present disclosure is applied to a vehicle terminal installed with an Android system, and may include the following steps:
- Step S201 During the kernel_init thread startup phase of the Android system, the target partition is mounted;
- Step S202 after the vehicle terminal is started, the target plug-in is used to interact with the camera driver through the V4L2 framework to light up the camera;
- Step S203 running a preset program in the target partition to create a file system directory of the reversing application, and mounting the file system in the target partition to the file system directory, wherein the file system includes files required for running the reversing application;
- Step S204 re-running the preset program to set the user role and read/write permissions of the reverse application program in the file system directory;
- Step S205 Start the reversing application to control the camera to collect reversing image data through the V4L2 framework.
- the vehicle terminal installed with the Android system can light up the camera based on the target plug-in after mounting the target partition during the kernel_init thread startup phase of the Android system, that is, the camera can be quickly lit up based on the target plug-in after the vehicle terminal is started.
- the target plug-in can be written based on C language or C++ language, etc., which is not specifically limited in the present disclosure.
- the target plug-in can be used to interact with the camera driver through the V4L2 (Video for Linux2) framework, without having to wait for the Android system to fully start up, thereby achieving the purpose of quickly lighting up the camera.
- V4L2 Video for Linux2
- the process of mounting the target partition and quickly starting the user space program in the kernel_init thread can be as follows: in kernel_init() of kernel/msm-4.14/init/main.c, first call the kernel_init_freeable() function, in the kernel_init_freeable() function, call the newly added launch_early_services() function to mount the target partition and start the user space early_init program (preset program) through the call_usermodehelper() function, then call the get_early_services_status() function to query the execution result of the early_init program, and wait for the security policy to be loaded.
- the "/dev/sedone" identifier is created by the early_init program, and its code can be as follows:
- the reversing application when a vehicle terminal installed with an Android system starts a reversing application to control a camera connected to the vehicle terminal to collect reversing image data, the reversing application can be started to control the camera to collect reversing image data through a V4L2 framework. That is, the V4L2 framework can be used to quickly interact with the camera, and then the reversing image data can be quickly obtained for display.
- FIG. 3 is a third flow chart of a reversing image display method provided in an embodiment of the present disclosure.
- the reversing image display method provided by the embodiment of the present disclosure is applied to a vehicle terminal installed with an Android system, and may include the following steps:
- Step S301 During the kernel_init thread startup phase of the Android system, the target partition is mounted;
- Step S302 running a preset program in the target partition to create a file system directory of the reversing application, and mounting the file system in the target partition to the file system directory, wherein the file system includes files required for running the reversing application;
- Step S303 re-running the preset program to set the user role and read-write permissions of the reverse application program in the file system directory;
- Step S304 starting a reversing application to control the camera connected to the vehicle-mounted terminal to collect reversing image data, and displaying the reversing image data through the first graphics card;
- Step S305 displaying other image data except the reversing image data via the second graphics card.
- the vehicle terminal can display the reversing image data through the first graphics card; accordingly, after displaying the reversing image data, other image data other than the reversing image data can also be displayed based on the second graphics card of the vehicle terminal, such as displaying the Android interface, displaying the road image when the car is moving forward, etc.
- the vehicle terminal can use a dual graphics card mechanism to display the reversing image data collected by the camera and the Android interface.
- the reversing image data collected by the camera and the Android interface can be displayed correspondingly with two different layers, so that the display of the reversing image data collected by the camera does not affect the display process of the Android interface at all.
- the two graphics cards can be used to seamlessly switch to display the reversing image data collected by the camera or display the boot animation.
- the startup process of the camera connected to the vehicle terminal is described in combination with the vehicle terminal, and the vehicle terminal adopts a dual graphics card mechanism, that is, there are two layers, one layer is used for displaying the original Android interface, using the /dev/dri/card0 node, and the other layer is specifically used for displaying the reversing screen, using the /dev/dri/card2 node, and assuming that the target partition is the early_services partition, it can include the following steps:
- Step 1 Write the camera's reversing application early_camera and its required so dynamic library, configuration file, security policy, and executable file required for system startup into the early_services partition, mount the early_services partition through the kernel_init thread of the vehicle terminal; and set the early_init process to start the camera;
- Step 2 After the vehicle terminal is started, use the target plug-in to interact with the camera driver through the V4L2 framework to quickly light up the camera;
- Step 3 During the startup phase of the kernel_init thread of the Android system, the vehicle terminal runs the early_init process based on the early_services partition corresponding to the kernel_init thread. Specifically, in the first phase of the early_init process: create a file system directory and mount related file systems, including sysfs, selinuxfs, devtmpfs, etc.; load SE security policies and set SE security mode, and restart to enter the second phase through the execv() function; the second phase: set the user role and read and write permissions of the files in the early_services directory, and parse the early_init.conf configuration file to start the application defined in the early_init.conf. And the early_camera application is defined in this configuration file;
- Step 4 The vehicle terminal sends the reversing command to the early_camera application, so that the early_camera application starts the camera through the V4L2 framework to collect the reversing image.
- the early_camera application writes data to the /dev/dri/card2 node, and the vehicle terminal displays the reversing image on its own display screen based on the first layer.
- the reversing image covers the original Android interface.
- the early_camera application can use the DRM (DirectRenderingManager) graphics display framework for rendering; and
- Step 5 After reversing is completed, the early_camera application stops writing data to the /dev/dri/card2 node, and the vehicle terminal displays the Android interface based on the second layer on its own display.
- the reason why the early_init program is started instead of the early_camera reversing application program is that the environment required for the reversing application to run needs to be configured first. In layman's terms, the relevant processes in the init process that ensure the normal operation of the reversing application are streamlined and implemented in early_init.
- the role of the devtmpfs involved is to establish a preliminary /dev in the early stage of Linux kernel startup, so that general applications can start execution as soon as possible without waiting for udev to complete; and in order to support devtmpfs, the following configuration needs to be added to the kernel's xxx_defconfig and xxx-perf_defconfig configuration files:
- launch_early_services() and get_early_services_status() functions can be as follows:
- saved_early_userspace contains the device name of the early_services partition, such as /dev/block/sda14, which is passed from the Bootloader (EDK2).
- EDK2 the part_name of the early_services partition is obtained through the GetSystemPath() function and passed to the Kernel through the command line. Therefore, corresponding modifications must be made in EDK2. The specific changes will not be repeated here.
- EDK2 is also written as EDKII, which is a set of open source codes implemented by Intel for the UEFI specification.
- UEFI Unified Extensible Firmware
- UEFI Unified Extensible Firmware
- the vehicle terminal can achieve rapid reversing after starting the camera according to the disclosed solution.
- the reversing startup process of the vehicle terminal is described in combination with Figures 4 and 5, wherein Figure 4 is a normal startup flowchart of the Android system, and Figure 5 is a reversing startup flowchart of the vehicle terminal.
- Figure 4 is a normal startup flowchart of the Android system
- Figure 5 is a reversing startup flowchart of the vehicle terminal.
- Figure 4 after the existing Android system is started, the early_camera application is started in init.rc to perform reversing display.
- the present disclosure performs reversing display in the kernel_init thread. After the kernel_init thread is started, a lot of work is done until the init process runs to the second stage to trigger the init.rc script.
- the present disclosure performs reversing display directly in the kernel_init thread, the reversing display process can be accelerated. After testing, the disclosed solution can realize reversing image preview within 4 seconds after the vehicle terminal is turned on, which can meet the user's needs for rapid reversing and rear view.
- FIG. 6 is a schematic structural flowchart of a reversing image display device provided in an embodiment of the present disclosure.
- the reversing image display device provided by the embodiment of the present disclosure is applied to a vehicle terminal installed with an Android system, and may include:
- the preset program 101 is used to create a file system directory of the reversing application program during the kernel_init thread startup phase of the Android system, and mount the file system in the target partition of the vehicle terminal to the file system directory, wherein the file system includes files required for the reversing application program to run; set the user role and read/write permissions of the reversing application program in the file system directory; and
- the reversing application 102 is used to control the camera connected to the vehicle-mounted terminal to collect reversing image data and process the reversing image data.
- the embodiment of the present disclosure provides a reversing image display device, which is applied to a vehicle-mounted terminal installed with an Android system, and may further include:
- the V4L2 framework 103 is used to interact with the camera driver under the control of the target plug-in 104 after the vehicle terminal is started to light up the camera; it is used in the reversing application Under the instruction of the user, the camera is controlled to collect reversing image data.
- the embodiment of the present disclosure provides a reversing image display device, which is applied to a vehicle-mounted terminal installed with an Android system, and may further include:
- a first graphics card 105 configured to display reversing image data
- the second graphics card 106 is configured to display other image data besides the reversing image data.
- Fig. 7 is a structural diagram of a computer device 20 according to an exemplary embodiment, and the content in the diagram cannot be regarded as any limitation on the scope of application of the present disclosure.
- FIG7 is a schematic diagram of the structure of a computer device 20 provided in an embodiment of the present disclosure.
- the computer device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input/output interface 25, and a communication bus 26, wherein the memory 22 is configured to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the aforementioned reversing image display method of the present disclosure.
- the computer device 20 in this embodiment may be a server.
- the power supply 23 is used to provide working voltage for each hardware device on the computer device 20;
- the communication interface 24 can create a data transmission channel between the computer device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present disclosure, and is not specifically limited here;
- the input and output interface 25 is configured to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
- the memory 22 serves as a carrier for storing resources, which may be a read-only memory, a random access memory, a disk or an optical disk, etc.
- the resources stored thereon may include an operating system 221, a computer program 222, and video data 223, etc.
- the storage method may be temporary storage or permanent storage.
- the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the computer device 20 to enable the processor 21 to calculate and process the massive video data 223 in the memory 22.
- the operating system 221 can be Windows Server, Netware, Unix, Linux, etc.
- the computer programs 222 that can be used to complete the present invention In addition to the disclosed computer program of the reversing image display method executed by the computer device 20 , the computer program that can be used to complete other specific tasks can also be included.
- the data 223 can include various data collected by the computer device 20 .
- the computer device may be a module capable of realizing a positioning communication function or a terminal device comprising a module, etc.
- the terminal device may be a mobile terminal and/or a smart device, etc.
- the mobile terminal may be at least one of a mobile phone, a tablet computer, a laptop computer, etc.
- the smart device may be at least one of a smart watch, a smart refrigerator, a smart speaker, a smart washing machine, a smart TV, etc.
- the module may be any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, a NB-IOT communication module, etc.
- the embodiment of the present disclosure further discloses a computer storage medium, in which a computer program is stored.
- a computer program is stored.
- the computer program is loaded and executed by a processor, the reversing image display method of the present disclosure is implemented.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Stored Programmes (AREA)
Abstract
Description
相关申请的引用Citation of Related Applications
本公开要求于2023年8月11日向中华人民共和国国家知识产权局提交的申请号为202311016273.0、发明名称为“一种倒车影像显示方法、装置、设备、计算机存储介质”的发明专利申请的全部权益,并通过引用的方式将其全部内容并入本公开。This disclosure claims all rights and interests in the invention patent application with application number 202311016273.0 filed with the State Intellectual Property Office of the People's Republic of China on August 11, 2023, and with the invention name “A reversing image display method, device, equipment, and computer storage medium”, and incorporates its entire contents into this disclosure by reference.
领域field
本公开大体上涉及倒车影像处理技术领域,更具体地,涉及倒车影像显示方法、装置、设备、计算机存储介质。The present disclosure generally relates to the field of reversing image processing technology, and more specifically, to a reversing image display method, device, equipment, and computer storage medium.
背景background
当前,安装Android系统的电子设备需等待Android系统启动后才能进行相应作业,比如车载终端在Android系统启动后才能操作自身的Camera(照相机)采集倒车影像数据进行显示,如此一来,使得照相机的启动时间过长,影响倒车影像数据的显示速度,继而影响倒车操作的快速进行。Currently, electronic devices installed with the Android system must wait for the Android system to start before they can perform corresponding operations. For example, a vehicle-mounted terminal can operate its own camera to collect reversing image data for display only after the Android system is started. As a result, the camera startup time is too long, affecting the display speed of the reversing image data, and then affecting the rapidity of the reversing operation.
概述Overview
第一方面,本公开提供了倒车影像显示方法,应用于安装Android系统的车载终端,其包括:In a first aspect, the present disclosure provides a method for displaying a reversing image, which is applied to a vehicle-mounted terminal installed with an Android system, and includes:
在所述Android系统的kernel_init线程启动阶段,挂载目标分区;During the kernel_init thread startup phase of the Android system, mounting the target partition;
运行所述目标分区中的预设程序来创建倒车应用程序的文件系统目录,并挂载所述目标分区中的文件系统至所述文件系统目录,所述文件系统包括所述倒车应用程序运行所需的文件;Running a preset program in the target partition to create a file system directory of the reversing application, and mounting the file system in the target partition to the file system directory, wherein the file system includes files required for running the reversing application;
重新运行所述预设程序来设置所述倒车应用程序在所述文件系统目录下的用户角色和读写权限;以及Re-running the preset program to set the user role and read-write permissions of the reversing application program in the file system directory; and
启动所述倒车应用程序来控制所述车载终端连接的照相机采集倒车影像数据,并对所述倒车影像数据进行显示。 The reversing application is started to control the camera connected to the vehicle-mounted terminal to collect reversing image data and display the reversing image data.
在某些实施方案中,所述启动所述倒车应用程序来控制所述车载终端连接的照相机采集倒车影像数据,包括:In some embodiments, the step of starting the reversing application to control the camera connected to the vehicle-mounted terminal to collect reversing image data includes:
启动所述倒车应用程序来通过V4L2框架控制所述照相机采集所述倒车影像数据。The reversing application is started to control the camera to collect the reversing image data through the V4L2 framework.
在某些实施方案中,所述在所述Android系统的kernel_init线程启动阶段,挂载目标分区之后,还包括:In some embodiments, during the kernel_init thread startup phase of the Android system, after mounting the target partition, the method further includes:
在所述车载终端启动后,使用目标插件通过所述V4L2框架与所述照相机的驱动进行交互,以点亮所述照相机。After the vehicle-mounted terminal is started, the target plug-in is used to interact with the driver of the camera through the V4L2 framework to light up the camera.
在某些实施方案中,所述挂载所述目标分区中的文件系统至所述文件系统目录之后,所述重新运行所述预设程序来设置所述倒车应用程序在所述文件系统目录下的用户角色和读写权限之前,还包括:In some embodiments, after mounting the file system in the target partition to the file system directory and before re-running the preset program to set the user role and read/write permissions of the reversing application program in the file system directory, the method further includes:
加载SE安全策略,并设置SE安全模式。Load the SE security policy and set the SE security mode.
在某些实施方案中,所述对所述倒车影像数据进行处理,包括:In some embodiments, the processing of the reversing image data includes:
通过第一显卡显示所述倒车影像数据;Displaying the reversing image data via a first graphics card;
所述对所述倒车影像进行处理之后,还包括:After the reversing image is processed, the method further includes:
通过第二显卡显示所述倒车影像数据之外的其他图像数据。The other image data besides the reversing image data are displayed by the second graphics card.
第二方面,本公开提供了倒车影像显示装置,应用于安装Android系统的车载终端,其包括:In a second aspect, the present disclosure provides a reversing image display device, which is applied to a vehicle terminal installed with an Android system, and includes:
预设程序,用于在所述Android系统的kernel_init线程启动阶段,创建倒车应用程序的文件系统目录,并挂载所述车载终端的目标分区中的文件系统至所述文件系统目录,所述文件系统包括所述倒车应用程序运行所需的文件;设置所述倒车应用程序在所述文件系统目录下的用户角色和读写权限;A preset program is used to create a file system directory of the reversing application during the kernel_init thread startup phase of the Android system, and mount the file system in the target partition of the vehicle terminal to the file system directory, wherein the file system includes files required for the operation of the reversing application; and set the user role and read and write permissions of the reversing application in the file system directory;
所述倒车应用程序,用于控制所述车载终端连接的照相机采集倒车影像数据,并对所述倒车影像数据进行处理。The reversing application is used to control the camera connected to the vehicle-mounted terminal to collect reversing image data and process the reversing image data.
在某些实施方案中,倒车影像显示装置还包括:In some embodiments, the reversing image display device further includes:
V4L2框架,用于所述车载终端启动后,在目标插件的控制下,与所述照相机的驱动进行交互,以点亮所述照相机;用于在所述倒车应用程序的指示下,控制所述照相机采集所述倒车影像数据。The V4L2 framework is used to interact with the driver of the camera to light up the camera under the control of the target plug-in after the vehicle terminal is started; and is used to control the camera to collect the reversing image data under the instruction of the reversing application.
在某些实施方案中,倒车影像显示装置还包括: In some embodiments, the reversing image display device further includes:
第一显卡,配置为显示所述倒车影像数据;A first graphics card configured to display the reversing image data;
第二显卡,配置为显示所述倒车影像数据之外的其他图像数据。The second graphics card is configured to display other image data besides the reversing image data.
第三方面,本公开提供了计算机设备,其包括:In a third aspect, the present disclosure provides a computer device, comprising:
存储器,配置为存储计算机程序;a memory configured to store a computer program;
处理器,配置为执行所述计算机程序时实现本公开所述的倒车影像显示方法。The processor is configured to implement the reversing image display method described in the present disclosure when executing the computer program.
第四方面,本公开提供了计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现本公开所述的倒车影像显示方法。In a fourth aspect, the present disclosure provides a computer storage medium, in which a computer program is stored. When the computer program is executed by a processor, the reversing image display method described in the present disclosure is implemented.
在某些实施方案中,安装Android系统的车载终端在Android系统的kernell_init线程启动阶段,便可以挂载并运行目标分区中的预设程序来创建倒车应用程序的文件系统目录,挂载目标分区中的文件系统至文件系统目录,重新运行预设程序来设置倒车应用程序在文件系统目录下的用户角色和读写权限,提前为倒车应用程序搭建了运行环境,并可以启动倒车应用程序来控制照相机采集倒车影像数据,对倒车影像数据进行处理,实现了在Android系统的kernel_init线程启动阶段便可以通过倒车应用程序来启动照相机进行倒车显示,与在等待Android系统启动后才能启动照相机进行倒车显示的方案相比,加快了照相机的启动速度,继而加快了倒车影像数据的显示速度,最终加快了车载终端进行倒车显示的速度。In certain implementation schemes, during the kernel_init thread startup phase of the Android system, a vehicle terminal installed with an Android system can mount and run a preset program in a target partition to create a file system directory for a reversing application, mount the file system in the target partition to the file system directory, and rerun the preset program to set the user role and read-write permissions of the reversing application in the file system directory, thereby setting up a running environment for the reversing application in advance, and starting the reversing application to control the camera to collect reversing image data and process the reversing image data, thereby achieving the goal of starting the camera for reversing display through the reversing application during the kernel_init thread startup phase of the Android system. Compared with a solution in which the camera can be started for reversing display only after waiting for the Android system to start, the camera startup speed is accelerated, and then the display speed of the reversing image data is accelerated, and finally the reversing display speed of the vehicle terminal is accelerated.
附图简要说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本公开实施例的技术方案,下面将对实施例所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solution of the embodiment of the present disclosure, the drawings required for use in the embodiment will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
图1为本公开一实施例提供的倒车影像显示方法的第一流程图;FIG1 is a first flow chart of a method for displaying a reversing image provided by an embodiment of the present disclosure;
图2为本公开一实施例提供的倒车影像显示方法的第二流程图;FIG2 is a second flow chart of a method for displaying a reversing image provided by an embodiment of the present disclosure;
图3为本公开一实施例提供的倒车影像显示方法的第三流程图;FIG3 is a third flow chart of a method for displaying a reversing image according to an embodiment of the present disclosure;
图4为Android系统的正常开机流程图; Figure 4 is a normal boot flow chart of the Android system;
图5为倒车影像设备倒车启动流程图;FIG5 is a flowchart of reverse start of the reverse imaging device;
图6为本公开一实施例提供的倒车影像显示装置的结构示意流程图;以及FIG6 is a schematic flow chart of the structure of a reversing image display device provided by an embodiment of the present disclosure; and
图7是根据本公开一实施例示出的计算机设备20结构图。FIG. 7 is a structural diagram of a computer device 20 according to an embodiment of the present disclosure.
详述Details
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.
请参阅图1,图1为本公开实施例提供的倒车影像显示方法的第一流程图。Please refer to FIG. 1 , which is a first flow chart of a method for displaying a reversing image according to an embodiment of the present disclosure.
本公开实施例提供的倒车影像显示方法,应用于安装Android系统的车载终端,可以包括以下步骤:The reversing image display method provided by the embodiment of the present disclosure is applied to a vehicle terminal installed with an Android system, and may include the following steps:
步骤S101:在Android系统的kernel_init线程启动阶段,读取挂载目标分区;Step S101: during the kernel_init thread startup phase of the Android system, read the mount target partition;
步骤S102:运行目标分区中的预设程序来创建倒车应用程序的文件系统目录,并挂载目标分区中的文件系统至文件系统目录,文件系统包括倒车应用程序运行所需的文件;Step S102: running a preset program in the target partition to create a file system directory of the reversing application, and mounting the file system in the target partition to the file system directory, wherein the file system includes files required for running the reversing application;
步骤S103:重新运行预设程序来设置倒车应用程序在文件系统目录下的用户角色和读写权限;以及Step S103: re-running the preset program to set the user role and read/write permissions of the reversing application program in the file system directory; and
步骤S104:启动倒车应用程序来控制车载终端连接的照相机采集倒车影像数据,并对倒车影像数据进行显示。Step S104: Start the reversing application to control the camera connected to the vehicle terminal to collect reversing image data and display the reversing image data.
在某些实施方案中,安装Android系统的车载终端在Android系统的kernel_init线程启动阶段,便可以读取挂载目标分区,以便后续根据该挂载的目标分区提前搭建管控照相机的倒车应用程序的运行环境,以在Android系统的kernel_init线程启动阶段便启动车载终端所连接的照相机。In certain implementation schemes, a vehicle terminal installed with an Android system can read the mounted target partition during the startup phase of the kernel_init thread of the Android system, so as to subsequently build a running environment for a reversing application that controls the camera in advance based on the mounted target partition, so as to start the camera connected to the vehicle terminal during the startup phase of the kernel_init thread of the Android system.
在某些实施方案中,安装Android系统的车载终端在基于挂载的 目标分区搭建倒车应用程序的运行环境的过程中,可以先运行目标分区中的预设程序来创建倒车应用程序的文件系统目录,并挂载目标分区中的文件系统至文件系统目录,文件系统包括倒车应用程序运行所需的文件,需要说明的是,文件系统可以包括动态库、配置文件、安全策略、可执行文件等,可以包括sysfs、selinuxfs、devtmpfs等;再重新运行预设程序来设置倒车应用程序在文件系统目录下的用户角色和读写权限。In some implementation schemes, the vehicle terminal installed with the Android system is based on the mount In the process of building the operating environment of the reversing application in the target partition, you can first run the preset program in the target partition to create the file system directory of the reversing application, and mount the file system in the target partition to the file system directory. The file system includes the files required for the operation of the reversing application. It should be noted that the file system may include dynamic libraries, configuration files, security policies, executable files, etc., and may include sysfs, selinuxfs, devtmpfs, etc.; then re-run the preset program to set the user role and read and write permissions of the reversing application in the file system directory.
在某些实施方案中,安装Android系统的车载终端在挂载目标分区中的文件系统至文件系统目录之后,重新运行预设程序来设置倒车应用程序在文件系统目录下的用户角色和读写权限之前,为了降低倒车应用程序带来的危险,还可以加载目标分区中的SE安全策略,并设置SE安全模式,以对倒车应用程序进行安全防护等。In certain implementation schemes, after the vehicle terminal installed with the Android system mounts the file system in the target partition to the file system directory, before re-running the preset program to set the user role and read and write permissions of the reversing application in the file system directory, in order to reduce the dangers brought by the reversing application, the SE security policy in the target partition can also be loaded, and the SE security mode can be set to provide security protection for the reversing application.
在某些实施方案中,安装Android系统的车载终端在基于目标分区搭建倒车应用程序的运行环境之后,便可以启动倒车应用程序来控制车载终端所连接的照相机采集倒车影像数据,并对倒车影像数据进行显示,以实现在Android系统的kernel_init线程启动阶段便可以启动照相机进行倒车显示,从而快速为用户提供倒车服务。In certain implementation schemes, after a vehicle terminal installed with an Android system builds an operating environment for a reversing application based on a target partition, the reversing application can be started to control the camera connected to the vehicle terminal to collect reversing image data and display the reversing image data, so that the camera can be started for reversing display during the kernel_init thread startup phase of the Android system, thereby quickly providing reversing services to users.
在某些实施方案中,安装Android系统的车载终端在Android系统的kernell_init线程启动阶段,便可以挂载并运行目标分区中的预设程序来创建倒车应用程序的文件系统目录,挂载目标分区中的文件系统至文件系统目录,重新运行预设程序来设置倒车应用程序在文件系统目录下的用户角色和读写权限,提前为倒车应用程序搭建了运行环境,并可以启动倒车应用程序来控制照相机采集倒车影像数据,对倒车影像数据进行处理,实现了在Android系统的kernel_init线程启动阶段便可以通过倒车应用程序来启动照相机进行倒车显示,与在等待Android系统启动后才能启动照相机进行倒车显示的方案相比,加快了照相机的启动速度,继而加快了倒车影像数据的显示速度,最终加快了车载终端进行倒车显示的速度。In certain implementation schemes, during the kernel_init thread startup phase of the Android system, a vehicle terminal installed with an Android system can mount and run a preset program in a target partition to create a file system directory for a reversing application, mount the file system in the target partition to the file system directory, and rerun the preset program to set the user role and read-write permissions of the reversing application in the file system directory, thereby setting up a running environment for the reversing application in advance, and starting the reversing application to control the camera to collect reversing image data and process the reversing image data, thereby achieving the goal of starting the camera for reversing display through the reversing application during the kernel_init thread startup phase of the Android system. Compared with a solution in which the camera can be started for reversing display only after waiting for the Android system to start, the camera startup speed is accelerated, and then the display speed of the reversing image data is accelerated, and finally the reversing display speed of the vehicle terminal is accelerated.
请参阅图2,图2为本公开一实施例提供的倒车影像显示方法的第二流程图。 Please refer to FIG. 2 , which is a second flow chart of a method for displaying a reversing image according to an embodiment of the present disclosure.
本公开实施例提供的倒车影像显示方法,应用于安装Android系统的车载终端,可以包括以下步骤:The reversing image display method provided by the embodiment of the present disclosure is applied to a vehicle terminal installed with an Android system, and may include the following steps:
步骤S201:在Android系统的kernel_init线程启动阶段,挂载目标分区;Step S201: During the kernel_init thread startup phase of the Android system, the target partition is mounted;
步骤S202:在车载终端启动后,使用目标插件通过V4L2框架与照相机的驱动进行交互,以点亮照相机;Step S202: after the vehicle terminal is started, the target plug-in is used to interact with the camera driver through the V4L2 framework to light up the camera;
步骤S203:运行目标分区中的预设程序来创建倒车应用程序的文件系统目录,并挂载目标分区中的文件系统至文件系统目录,文件系统包括倒车应用程序运行所需的文件;Step S203: running a preset program in the target partition to create a file system directory of the reversing application, and mounting the file system in the target partition to the file system directory, wherein the file system includes files required for running the reversing application;
步骤S204:重新运行预设程序来设置倒车应用程序在文件系统目录下的用户角色和读写权限;以及Step S204: re-running the preset program to set the user role and read/write permissions of the reverse application program in the file system directory; and
步骤S205:启动倒车应用程序来通过V4L2框架控制照相机采集倒车影像数据。Step S205: Start the reversing application to control the camera to collect reversing image data through the V4L2 framework.
在某些实施方案中,安装Android系统的车载终端在Android系统的kernel_init线程启动阶段,挂载目标分区之后,还可以在车载终端启动后,先基于目标插件点亮照相机,也即可以先基于目标插件来在车载终端启动后便快速点亮照相机。且目标插件可以基于C语言或C++语言编写等,本公开在此不做具体限定。In some embodiments, the vehicle terminal installed with the Android system can light up the camera based on the target plug-in after mounting the target partition during the kernel_init thread startup phase of the Android system, that is, the camera can be quickly lit up based on the target plug-in after the vehicle terminal is started. The target plug-in can be written based on C language or C++ language, etc., which is not specifically limited in the present disclosure.
在某些实施方案中,安装Android系统的车载终端在基于目标插件点亮照相机的过程中,可以使用目标插件通过V4L2(Video for Linux2)框架与照相机的驱动进行交互,不必等待Android系统完全启动完成,达到快速点亮照相机的目的。In certain implementation schemes, when a vehicle-mounted terminal installed with an Android system is lighting up a camera based on a target plug-in, the target plug-in can be used to interact with the camera driver through the V4L2 (Video for Linux2) framework, without having to wait for the Android system to fully start up, thereby achieving the purpose of quickly lighting up the camera.
在某些实施方案中,在kernel_init线程中挂载目标分区并快速启动用户空间程序的过程可以如下:在kernel/msm-4.14/init/main.c的kernel_init()中,首先调用kernel_init_freeable()函数,在kernel_init_freeable()函数中,调用新增的launch_early_services()函数来挂载目标分区并通过call_usermodehelper()函数启动用户空间early_init程序(预设程序),然后调用get_early_services_status()函数查询early_init程序执行结果,并等待安全策略加载完成,"/dev/sedone"标识正是由early_init程序创建的,其代码可以如下:
In some embodiments, the process of mounting the target partition and quickly starting the user space program in the kernel_init thread can be as follows: in kernel_init() of kernel/msm-4.14/init/main.c, first call the kernel_init_freeable() function, in the kernel_init_freeable() function, call the newly added launch_early_services() function to mount the target partition and start the user space early_init program (preset program) through the call_usermodehelper() function, then call the get_early_services_status() function to query the execution result of the early_init program, and wait for the security policy to be loaded. The "/dev/sedone" identifier is created by the early_init program, and its code can be as follows:
在某些实施方案中,安装Android系统的车载终端在启动倒车应用程序来控制车载终端连接的照相机采集倒车影像数据的过程中,可以启动倒车应用程序来通过V4L2框架控制照相机采集倒车影像数据,也即可以借助V4L2框架来快速与照相机进行交互,继而快速获取倒车影像数据进行显示。In certain implementation schemes, when a vehicle terminal installed with an Android system starts a reversing application to control a camera connected to the vehicle terminal to collect reversing image data, the reversing application can be started to control the camera to collect reversing image data through a V4L2 framework. That is, the V4L2 framework can be used to quickly interact with the camera, and then the reversing image data can be quickly obtained for display.
请参阅图3,图3为本公开一实施例提供的倒车影像显示方法的第三流程图。Please refer to FIG. 3 , which is a third flow chart of a reversing image display method provided in an embodiment of the present disclosure.
本公开实施例提供的倒车影像显示方法,应用于安装Android系统的车载终端,可以包括以下步骤:The reversing image display method provided by the embodiment of the present disclosure is applied to a vehicle terminal installed with an Android system, and may include the following steps:
步骤S301:在Android系统的kernel_init线程启动阶段,挂载目标分区;Step S301: During the kernel_init thread startup phase of the Android system, the target partition is mounted;
步骤S302:运行目标分区中的预设程序来创建倒车应用程序的文件系统目录,并挂载目标分区中的文件系统至文件系统目录,文件系统包括倒车应用程序运行所需的文件;Step S302: running a preset program in the target partition to create a file system directory of the reversing application, and mounting the file system in the target partition to the file system directory, wherein the file system includes files required for running the reversing application;
步骤S303:重新运行预设程序来设置倒车应用程序在文件系统目录下的用户角色和读写权限;Step S303: re-running the preset program to set the user role and read-write permissions of the reverse application program in the file system directory;
步骤S304:启动倒车应用程序来控制车载终端连接的照相机采集倒车影像数据,并通过第一显卡显示倒车影像数据;以及Step S304: starting a reversing application to control the camera connected to the vehicle-mounted terminal to collect reversing image data, and displaying the reversing image data through the first graphics card; and
步骤S305:通过第二显卡显示倒车影像数据之外的其他图像数据。Step S305: displaying other image data except the reversing image data via the second graphics card.
在某些实施方案中,考虑到显示照相机采集的倒车影像数据的话会占用车载终端的显示界面,且在开机早期阶段,Android的surfacefinger服务还未运行,无法使用surfacefinger来做显示,为了 避免此种情况,且可以在kernel_init线程启动阶段灵活显示照相机采集的图像信息和其他图像,车载终端在对图像信息进行处理的过程中,可以通过第一显卡显示倒车影像数据;相应的,在对倒车影像数据进行显示之后,还可以基于车载终端的第二显卡显示倒车影像数据之外的其他图像数据,比如显示Android界面,显示汽车前进时的道路图像等。也即车载终端可以采用双显卡机制来显示照相机采集的倒车影像数据和Android界面,这样,照相机采集的倒车影像数据及Android界面可以用两个不同图层对应显示,使得照相机采集的倒车影像数据的显示完全不影响Android界面的显示流程,比如在开机动画播放阶段,即使频繁使用照相机采集倒车影像数据,也可以借助两个显卡来无缝切换显示照相机采集的倒车影像数据或显示开机动画。In some implementations, considering that displaying the reversing image data collected by the camera will occupy the display interface of the vehicle terminal, and in the early stage of booting, the Android surfacefinger service is not running, and the surfacefinger cannot be used for display. To avoid this situation, the image information and other images collected by the camera can be flexibly displayed during the kernel_init thread startup phase. In the process of processing the image information, the vehicle terminal can display the reversing image data through the first graphics card; accordingly, after displaying the reversing image data, other image data other than the reversing image data can also be displayed based on the second graphics card of the vehicle terminal, such as displaying the Android interface, displaying the road image when the car is moving forward, etc. That is, the vehicle terminal can use a dual graphics card mechanism to display the reversing image data collected by the camera and the Android interface. In this way, the reversing image data collected by the camera and the Android interface can be displayed correspondingly with two different layers, so that the display of the reversing image data collected by the camera does not affect the display process of the Android interface at all. For example, during the boot animation playback phase, even if the camera is frequently used to collect reversing image data, the two graphics cards can be used to seamlessly switch to display the reversing image data collected by the camera or display the boot animation.
为了便于理解本公开提供的倒车影像显示方案,现结合车载终端来对车载终端所连接的照相机的启动过程进行描述,且该车载终端采用了双显卡机制,也就是有两个图层,一个图层用于原Android界面的显示,使用/dev/dri/card0节点,另一个图层专门用于倒车画面的显示,使用/dev/dri/card2节点,并假设目标分区为early_services分区,则其可以包括以下步骤:In order to facilitate understanding of the reversing image display solution provided by the present disclosure, the startup process of the camera connected to the vehicle terminal is described in combination with the vehicle terminal, and the vehicle terminal adopts a dual graphics card mechanism, that is, there are two layers, one layer is used for displaying the original Android interface, using the /dev/dri/card0 node, and the other layer is specifically used for displaying the reversing screen, using the /dev/dri/card2 node, and assuming that the target partition is the early_services partition, it can include the following steps:
步骤一:将照相机的倒车应用程序early_camera及其需要的so动态库、配置文件、安全策略、以及系统启动所需的可执行文件写入early_services分区,通过车载终端的kernel_init线程挂载early_services分区;并设置启动照相机的early_init进程;Step 1: Write the camera's reversing application early_camera and its required so dynamic library, configuration file, security policy, and executable file required for system startup into the early_services partition, mount the early_services partition through the kernel_init thread of the vehicle terminal; and set the early_init process to start the camera;
步骤二:车载终端启动后,使用目标插件通过V4L2框架与照相机的驱动进行交互,以快速点亮照相机;Step 2: After the vehicle terminal is started, use the target plug-in to interact with the camera driver through the V4L2 framework to quickly light up the camera;
步骤三:车载终端在Android系统的kernel_init线程启动阶段,基于kernel_init线程对应的early_services分区,运行early_init进程,具体的,在early_init进程的第一阶段:创建文件系统目录并挂载相关文件系统,包括sysfs、selinuxfs、devtmpfs等;加载SE安全策略和设置SE安全模式,通过execv()函数重新启动进入第二阶段;第二阶段:设置early_services目录下文件的用户角色和读写权限、并解析early_init.conf配置文件启动在early_init.conf中定义的应用程序, 且early_camera应用程序被定义在该配置文件中;Step 3: During the startup phase of the kernel_init thread of the Android system, the vehicle terminal runs the early_init process based on the early_services partition corresponding to the kernel_init thread. Specifically, in the first phase of the early_init process: create a file system directory and mount related file systems, including sysfs, selinuxfs, devtmpfs, etc.; load SE security policies and set SE security mode, and restart to enter the second phase through the execv() function; the second phase: set the user role and read and write permissions of the files in the early_services directory, and parse the early_init.conf configuration file to start the application defined in the early_init.conf. And the early_camera application is defined in this configuration file;
步骤四:车载终端将倒车指令发送至early_camera应用程序,以使early_camera应用程序通过V4L2框架启动照相机来采集倒车影像,之后,early_camera应用程序往/dev/dri/card2节点上写数据,车载终端在自身显示屏上基于第一图层显示倒车影像,此时倒车影像覆盖原Android界面。在此过程中,early_camera应用程序可以使用DRM(DirectRenderingManager)图形显示框架进行渲染;以及Step 4: The vehicle terminal sends the reversing command to the early_camera application, so that the early_camera application starts the camera through the V4L2 framework to collect the reversing image. After that, the early_camera application writes data to the /dev/dri/card2 node, and the vehicle terminal displays the reversing image on its own display screen based on the first layer. At this time, the reversing image covers the original Android interface. In this process, the early_camera application can use the DRM (DirectRenderingManager) graphics display framework for rendering; and
步骤五:倒车结束后,early_camera应用程序停止往/dev/dri/card2节点上写数据,车载终端在自身显示屏上基于第二图层显示Android界面。Step 5: After reversing is completed, the early_camera application stops writing data to the /dev/dri/card2 node, and the vehicle terminal displays the Android interface based on the second layer on its own display.
需要说明的是,在Kernel阶段不直接启动early_camera倒车应用程序而是启动early_init程序是因为:需要先配置倒车应用运行所需的环境,通俗的讲,就是把init进程中保证倒车应用能正常运行的相关流程精简出来,在early_init中实现。此外,涉及到的devtmpfs的作用是在Linux内核启动早期建立一个初步的/dev,让一般应用程序不用等待udev完成就可以尽早的开始执行;且为了支持devtmpfs,需要在Kernel的xxx_defconfig和xxx-perf_defconfig配置文件中增加如下配置:It should be noted that the reason why the early_init program is started instead of the early_camera reversing application program is that the environment required for the reversing application to run needs to be configured first. In layman's terms, the relevant processes in the init process that ensure the normal operation of the reversing application are streamlined and implemented in early_init. In addition, the role of the devtmpfs involved is to establish a preliminary /dev in the early stage of Linux kernel startup, so that general applications can start execution as soon as possible without waiting for udev to complete; and in order to support devtmpfs, the following configuration needs to be added to the kernel's xxx_defconfig and xxx-perf_defconfig configuration files:
CONFIG_DEVTMPFS=yCONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y。CONFIG_DEVTMPFS_MOUNT=y.
还需说明的是,launch_early_services()和get_early_services_status()函数的实现可以如下:
It should also be noted that the implementation of launch_early_services() and get_early_services_status() functions can be as follows:
从代码中可以看出,saved_early_userspace里面保存着early_services分区的设备名称如/dev/block/sda14等,这个是从Bootloader(EDK2)中传入的,在EDK2中通过GetSystemPath()函数获取early_services分区的part_name,并通过命令行的方式传给Kernel, 所以在EDK2中也要进行相应的修改,具体改动这里就不再赘述;其中,EDK2也写作EDKII,是一套Intel对UEFI规范实现的开源代码,UEFI(UnifiedExtensibleFirmware)即统一可扩展固件接口,它定义了计算机和平台固件之间的接口规范。As can be seen from the code, saved_early_userspace contains the device name of the early_services partition, such as /dev/block/sda14, which is passed from the Bootloader (EDK2). In EDK2, the part_name of the early_services partition is obtained through the GetSystemPath() function and passed to the Kernel through the command line. Therefore, corresponding modifications must be made in EDK2. The specific changes will not be repeated here. Among them, EDK2 is also written as EDKII, which is a set of open source codes implemented by Intel for the UEFI specification. UEFI (Unified Extensible Firmware) is the unified extensible firmware interface, which defines the interface specification between the computer and platform firmware.
需要说明的是,车载终端按照本公开方案启动照相机后可以实现快速倒车,为了便于此效果,现结合图4和图5来对车载终端的倒车启动流程进行描述,其中,图4为Android系统的正常开机流程图,图5为车载终端倒车启动流程图,由图4可知,现有Android系统启动后,在init.rc中去启动early_camera应用程序做倒车显示,由图5可知,本公开在kernel_init线程中进行倒车显示,由于在kernel_init线程起来后,到init进程运行到第二阶段触发init.rc脚本,这期间做了很多工作,这些工作会使得倒车显示延迟进行,而本公开直接在kernel_init线程中进行倒车显示的话,可以加快倒车显示的进程,经过测试,本公开方案可以在车载终端开机后的4s内实现倒车影像预览,可以满足用户快速倒车后视的需求。It should be noted that the vehicle terminal can achieve rapid reversing after starting the camera according to the disclosed solution. In order to facilitate this effect, the reversing startup process of the vehicle terminal is described in combination with Figures 4 and 5, wherein Figure 4 is a normal startup flowchart of the Android system, and Figure 5 is a reversing startup flowchart of the vehicle terminal. It can be seen from Figure 4 that after the existing Android system is started, the early_camera application is started in init.rc to perform reversing display. It can be seen from Figure 5 that the present disclosure performs reversing display in the kernel_init thread. After the kernel_init thread is started, a lot of work is done until the init process runs to the second stage to trigger the init.rc script. These works will delay the reversing display. If the present disclosure performs reversing display directly in the kernel_init thread, the reversing display process can be accelerated. After testing, the disclosed solution can realize reversing image preview within 4 seconds after the vehicle terminal is turned on, which can meet the user's needs for rapid reversing and rear view.
请参阅图6,图6为本公开实施例提供的倒车影像显示装置的结构示意流程图。Please refer to FIG. 6 , which is a schematic structural flowchart of a reversing image display device provided in an embodiment of the present disclosure.
本公开实施例提供的倒车影像显示装置,应用于安装Android系统的车载终端,可以包括:The reversing image display device provided by the embodiment of the present disclosure is applied to a vehicle terminal installed with an Android system, and may include:
预设程序101,用于在Android系统的kernel_init线程启动阶段,创建倒车应用程序的文件系统目录,并挂载车载终端的目标分区中的文件系统至文件系统目录,文件系统包括倒车应用程序运行所需的文件;设置倒车应用程序在文件系统目录下的用户角色和读写权限;以及The preset program 101 is used to create a file system directory of the reversing application program during the kernel_init thread startup phase of the Android system, and mount the file system in the target partition of the vehicle terminal to the file system directory, wherein the file system includes files required for the reversing application program to run; set the user role and read/write permissions of the reversing application program in the file system directory; and
倒车应用程序102,用于控制车载终端连接的照相机采集倒车影像数据,并对倒车影像数据进行处理。The reversing application 102 is used to control the camera connected to the vehicle-mounted terminal to collect reversing image data and process the reversing image data.
本公开实施例提供倒车影像显示装置,应用于安装Android系统的车载终端,还可以包括:The embodiment of the present disclosure provides a reversing image display device, which is applied to a vehicle-mounted terminal installed with an Android system, and may further include:
V4L2框架103,用于车载终端启动后,在目标插件104的控制下,与照相机的驱动进行交互,以点亮照相机;用于在倒车应用程序 的指示下,控制照相机采集倒车影像数据。The V4L2 framework 103 is used to interact with the camera driver under the control of the target plug-in 104 after the vehicle terminal is started to light up the camera; it is used in the reversing application Under the instruction of the user, the camera is controlled to collect reversing image data.
本公开实施例提供倒车影像显示装置,应用于安装Android系统的车载终端,还可以包括:The embodiment of the present disclosure provides a reversing image display device, which is applied to a vehicle-mounted terminal installed with an Android system, and may further include:
第一显卡105,配置为显示倒车影像数据;A first graphics card 105, configured to display reversing image data;
第二显卡106,配置为显示倒车影像数据之外的其他图像数据。The second graphics card 106 is configured to display other image data besides the reversing image data.
本公开提供的倒车影像显示装置中相应部件的描述可以参阅上述实施例,在此不再赘述。The description of the corresponding components in the reversing image display device provided by the present disclosure can be referred to the above embodiments, and will not be repeated here.
本公开实施例还提供了计算机设备。图7是根据一示例性实施例示出的计算机设备20结构图,图中的内容不能被认为是对本公开的使用范围的任何限制。The embodiment of the present disclosure also provides a computer device. Fig. 7 is a structural diagram of a computer device 20 according to an exemplary embodiment, and the content in the diagram cannot be regarded as any limitation on the scope of application of the present disclosure.
图7为本公开实施例提供的计算机设备20的结构示意图。该计算机设备20,可以包括:至少一个处理器21、至少一个存储器22、电源23、通信接口24、输入输出接口25和通信总线26,其中,存储器22配置为存储计算机程序,所述计算机程序由所述处理器21加载并执行,以实现前述本公开的倒车影像显示方法中的相关步骤。在某些实施方案中,本实施例中的计算机设备20可以为服务器。FIG7 is a schematic diagram of the structure of a computer device 20 provided in an embodiment of the present disclosure. The computer device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input/output interface 25, and a communication bus 26, wherein the memory 22 is configured to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the aforementioned reversing image display method of the present disclosure. In some embodiments, the computer device 20 in this embodiment may be a server.
本实施例中,电源23用于为计算机设备20上的各硬件设备提供工作电压;通信接口24能够为计算机设备20创建与外界设备之间的数据传输通道,其所遵循的通信协议是能够适用于本公开技术方案的任意通信协议,在此不对其进行具体限定;输入输出接口25,配置为获取外界输入数据或向外界输出数据,其具体的接口类型可以根据具体应用需要进行选取,在此不进行具体限定。In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the computer device 20; the communication interface 24 can create a data transmission channel between the computer device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present disclosure, and is not specifically limited here; the input and output interface 25 is configured to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
在某些实施方案中,存储器22作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源可以包括操作系统221、计算机程序222及视频数据223等,存储方式可以是短暂存储或者永久存储。In some embodiments, the memory 22 serves as a carrier for storing resources, which may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222, and video data 223, etc. The storage method may be temporary storage or permanent storage.
在某些实施方案中,操作系统221用于管理与控制计算机设备20上的各硬件设备以及计算机程序222,以实现处理器21对存储器22中海量视频数据223的运算与处理,其可以是WindowsServer、Netware、Unix、Linux等。计算机程序222除了包括能够用于完成本 公开的由计算机设备20执行的倒车影像显示方法的计算机程序之外,还可以进一步包括能够用于完成其他特定工作的计算机程序。在某些实施方案中,数据223可以包括计算机设备20收集到的各种数据。In some embodiments, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the computer device 20 to enable the processor 21 to calculate and process the massive video data 223 in the memory 22. The operating system 221 can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer programs 222 that can be used to complete the present invention, In addition to the disclosed computer program of the reversing image display method executed by the computer device 20 , the computer program that can be used to complete other specific tasks can also be included. In some embodiments, the data 223 can include various data collected by the computer device 20 .
在某些实施方案中,计算机设备可以为能够实现定位通信功能的模组或包含模组的终端设备等,终端设备可以为移动终端和/或智能设备等,移动终端可以为手机、平板电脑、笔记本电脑等中的至少一种,智能设备可以为智能手表、智能冰箱、智能音箱、智能洗衣机、智能电视机等中的至少一种,模组可以为2G通信模组、3G通信模组、4G通信模组、5G通信模组、NB-IOT通信模组等中的任意一种。In certain embodiments, the computer device may be a module capable of realizing a positioning communication function or a terminal device comprising a module, etc. The terminal device may be a mobile terminal and/or a smart device, etc. The mobile terminal may be at least one of a mobile phone, a tablet computer, a laptop computer, etc. The smart device may be at least one of a smart watch, a smart refrigerator, a smart speaker, a smart washing machine, a smart TV, etc. The module may be any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, a NB-IOT communication module, etc.
本公开实施例还公开了计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序被处理器加载并执行时,实现本公开的倒车影像显示方法。The embodiment of the present disclosure further discloses a computer storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the reversing image display method of the present disclosure is implemented.
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本公开。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其他实施例中实现。因此,本公开将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。 The above description of the disclosed embodiments enables those skilled in the art to implement or use the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311016273.0 | 2023-08-11 | ||
| CN202311016273.0A CN117061832A (en) | 2023-08-11 | 2023-08-11 | Reversing image display method, device, equipment and computer storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025035906A1 true WO2025035906A1 (en) | 2025-02-20 |
Family
ID=88654626
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/097240 Pending WO2025035906A1 (en) | 2023-08-11 | 2024-06-04 | Reversing image display method and apparatus, device, and computer storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN117061832A (en) |
| WO (1) | WO2025035906A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117061832A (en) * | 2023-08-11 | 2023-11-14 | 深圳市广和通无线股份有限公司 | Reversing image display method, device, equipment and computer storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1170171A2 (en) * | 2000-07-03 | 2002-01-09 | Toyota Jidosha Kabushiki Kaisha | Vehicle-parking assisting system |
| CN108248509A (en) * | 2018-01-17 | 2018-07-06 | 深圳市路畅科技股份有限公司 | A kind of method, apparatus that reverse image is controlled to show and automatic navigator |
| CN109831624A (en) * | 2019-01-28 | 2019-05-31 | 武汉光庭信息技术股份有限公司 | Installed video based on virtualization starts method and system, readable storage medium storing program for executing |
| CN111045752A (en) * | 2020-03-12 | 2020-04-21 | 延锋伟世通电子科技(南京)有限公司 | Method for rapidly starting reversing image based on android system |
| CN112040173A (en) * | 2020-07-20 | 2020-12-04 | 南斗六星系统集成有限公司 | Method for rapidly displaying reversing video through Android car machine system |
| CN114756191A (en) * | 2022-06-14 | 2022-07-15 | 南京芯驰半导体科技有限公司 | Video data rapid display method and system based on android system |
| CN117061832A (en) * | 2023-08-11 | 2023-11-14 | 深圳市广和通无线股份有限公司 | Reversing image display method, device, equipment and computer storage medium |
-
2023
- 2023-08-11 CN CN202311016273.0A patent/CN117061832A/en active Pending
-
2024
- 2024-06-04 WO PCT/CN2024/097240 patent/WO2025035906A1/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1170171A2 (en) * | 2000-07-03 | 2002-01-09 | Toyota Jidosha Kabushiki Kaisha | Vehicle-parking assisting system |
| CN108248509A (en) * | 2018-01-17 | 2018-07-06 | 深圳市路畅科技股份有限公司 | A kind of method, apparatus that reverse image is controlled to show and automatic navigator |
| CN109831624A (en) * | 2019-01-28 | 2019-05-31 | 武汉光庭信息技术股份有限公司 | Installed video based on virtualization starts method and system, readable storage medium storing program for executing |
| CN111045752A (en) * | 2020-03-12 | 2020-04-21 | 延锋伟世通电子科技(南京)有限公司 | Method for rapidly starting reversing image based on android system |
| CN112040173A (en) * | 2020-07-20 | 2020-12-04 | 南斗六星系统集成有限公司 | Method for rapidly displaying reversing video through Android car machine system |
| CN114756191A (en) * | 2022-06-14 | 2022-07-15 | 南京芯驰半导体科技有限公司 | Video data rapid display method and system based on android system |
| CN117061832A (en) * | 2023-08-11 | 2023-11-14 | 深圳市广和通无线股份有限公司 | Reversing image display method, device, equipment and computer storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117061832A (en) | 2023-11-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12061892B2 (en) | Firmware updating method, and electronic apparatus and storage media for same | |
| RU2641257C2 (en) | Device management method and device | |
| CN112988213B (en) | Program data updating method, electronic equipment and computer storage medium | |
| CN110083399B (en) | Mini program running method, computer device and storage medium | |
| CN106020893B (en) | Application installation method and device | |
| CN106775644B (en) | File operation method and equipment | |
| CN111079125A (en) | Method and device for calling third-party library dynamic lifting authority by application program | |
| CN109388475A (en) | A kind of dispositions method, device, electronic equipment and the storage medium of physics bare machine | |
| CN112181467A (en) | Method and device for upgrading memory firmware of terminal, terminal and storage medium | |
| WO2025035906A1 (en) | Reversing image display method and apparatus, device, and computer storage medium | |
| US20100122075A1 (en) | Method for controlling boot sequence of server | |
| CN116028267A (en) | Dual-system secure mobile phone resetting method and device, server and storage medium | |
| WO2023060893A1 (en) | Storage space management method and apparatus, and device and storage medium | |
| US20160314047A1 (en) | Managing a Computing System Crash | |
| CN113824830A (en) | Application management method and device | |
| CN118484211B (en) | Operating system upgrade method and electronic device | |
| CN115098177B (en) | Display card drive switching method and device and readable storage medium | |
| CN118312273A (en) | Dependency library sharing method and device and readable storage medium | |
| CN116737213A (en) | Hot patch upgrade method, multi-core processor, related equipment and storage medium | |
| WO2015184902A1 (en) | Concurrent processing method for intelligent split-screen and corresponding intelligent terminal | |
| GB2365177A (en) | System and method for exchange of digital data from personal appliances | |
| US20130103907A1 (en) | Memory management device, memory management method, control program, and recording medium | |
| CN116594698A (en) | System control method, device and readable storage medium | |
| CN116400938A (en) | Operating system upgrading method, device and storage medium | |
| CN115827076A (en) | Method and equipment for booting operating system storage medium and program product |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24853321 Country of ref document: EP Kind code of ref document: A1 |