Electronic rearview mirror software processing method and electronic rearview mirror software system
By setting resource handles for the hardware media resources of the electronic rearview mirror software system and splitting the responsibilities of the video path management module and the electronic rearview mirror business processing module, the problem of instability of the existing system is solved and the stability and reliability of the system are improved.
Patent Information
- Application Number
- CN202411881827.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-05-13
AI Technical Summary
The existing electronic rearview mirror software system is unstable, and problems such as black screen of the display and failed image display often occur, which affects driving safety.
By setting a resource handle for each hardware media resource, the video path management module and the electronic rearview mirror service processing module are respectively responsible for controlling the corresponding hardware media resources to realize the display and service processing of real-time video data.
It improves the stability of the electronic rearview mirror software system, ensuring that when one module fails, the other module can still execute normally, improving the reliability and packaging of the system.
Smart Images

Figure CN119987918A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic rearview mirrors, and in particular to an electronic rearview mirror software processing method and an electronic rearview mirror software system. Background Art
[0002] With the development of science and technology, electronic rearview mirrors have emerged to replace conventional glass rearview mirrors. The overall system of the electronic rearview mirror consists of high-definition cameras, image processors, display screens and other main components. The camera first captures the image, and then the image processor displays the processed image on the display screen. The display screen can be located in the position of a traditional rearview mirror or in the car, so that the driver can drive the vehicle based on the content displayed on the display screen.
[0003] The electronic rearview mirror software system is the software system of the overall system of the electronic rearview mirror. However, the current electronic rearview mirror software system is not stable and often causes problems such as black screen and image display failure, affecting driving safety. Summary of the invention
[0004] Based on this, it is necessary to provide an electronic rearview mirror software processing method, device, computer equipment, computer-readable storage medium and computer program product that can improve the stability of the electronic rearview mirror software system in response to the above-mentioned technical problems.
[0005] In a first aspect, the present application provides an electronic rearview mirror software processing method, the method comprising:
[0006] The video channel management module obtains the real-time video data collected by the electronic rearview mirror camera from the first hardware media resource corresponding to the first target handle based on the preset first target handle, and triggers the display screen to display the real-time video data;
[0007] The electronic rearview mirror service processing module sends a handle acquisition request to the video path management module, so that the video path management module returns at least one second target handle requested by the handle acquisition request to the electronic rearview mirror service processing module for storage;
[0008] When performing target business processing, the electronic rearview mirror business processing module determines a second target handle related to the target business processing from at least one saved second target handle, and controls the corresponding second hardware media resource based on the second target handle related to the target business processing to perform target business processing.
[0009] In one embodiment, the video path management module runs in a first electronic rearview mirror software process; the electronic rearview mirror business processing module runs in a second electronic rearview mirror software process; the first electronic rearview mirror software process and the second electronic rearview mirror software process are monitored by a system management process through an inter-process communication mechanism, and when it is determined based on the monitoring results that there are abnormal running processes in the first electronic rearview mirror software process and the second electronic rearview mirror software process, the system management process triggers a reset of the abnormal running process.
[0010] In one of the embodiments, when the second electronic rearview mirror software process is an abnormal running process, the second electronic rearview mirror software process will not release the second target handle during the reset process, and when the second electronic rearview mirror software process is reset successfully, it will continue to control the second hardware media resource based on the second target handle.
[0011] In one embodiment, the handle acquisition request includes resource numbers corresponding to respective business processes; and returning at least one second target handle requested by the handle acquisition request to the electronic rearview mirror business processing module for storage includes:
[0012] Parsing the handle acquisition request to obtain at least one resource number;
[0013] According to a preset correspondence relationship between a resource number and a resource handle, obtaining a second target handle corresponding to each of the at least one resource number;
[0014] The second target handle of each of the at least one resource number is returned to the electronic rearview mirror business processing module so that the electronic rearview mirror business processing module saves it.
[0015] In one of the embodiments, the electronic rearview mirror business processing module is deployed in the second electronic rearview mirror software process;
[0016] The controlling of the corresponding second hardware media resource based on the second target handle related to the target business processing includes:
[0017] The electronic rearview mirror business processing module interacts with a preset resource driving module within the second electronic rearview mirror software process to pass the second target handle related to the target business processing to the hardware media resource control interface in the resource driving module; the second target handle passed in is used to trigger the hardware media resource control interface to control the second hardware media resource corresponding to the second target handle related to the target business processing based on the second target handle related to the target business processing.
[0018] In one embodiment, the target service processing request is blind spot detection or field of view control; the method further includes:
[0019] When the target business processing is blind spot detection, the hardware media resource control interface obtains blind spot detection media data from the corresponding second hardware media resource based on the second target handle related to the target business processing, and sends the blind spot detection media data to the machine learning module; the sent blind spot detection media data is used to trigger the machine learning module to generate a blind spot detection result based on the blind spot detection media data, and return the blind spot detection result to the electronic rearview mirror business processing module;
[0020] The electronic rearview mirror service processing module triggers the display screen to display the blind spot detection result;
[0021] When the target service processing request is field of view control, the hardware media resource control interface obtains field of view control media data from the corresponding second hardware media resource based on the second target handle related to the target service processing, and returns the field of view control media data to the electronic rearview mirror service processing module;
[0022] The electronic rearview mirror business processing module triggers the display screen to display the field of view control media data.
[0023] In a second aspect, the present application further provides an electronic rearview mirror software processing device, the device comprising:
[0024] A video channel management module, configured to obtain, based on a preset first target handle, real-time video data collected by the electronic rearview mirror camera from a first hardware media resource corresponding to the first target handle, and trigger a display screen to display the real-time video data;
[0025] An electronic rearview mirror business processing module is used for the electronic rearview mirror business processing module to send a handle acquisition request to the video path management module, so that the video path management module returns at least one second target handle requested by the handle acquisition request to the electronic rearview mirror business processing module for storage; when performing target business processing, the electronic rearview mirror business processing module determines the second target handle related to the target business processing from the at least one saved second target handle, and controls the second hardware media resource corresponding to the second target handle based on the second target handle related to the target business processing to perform business processing.
[0026] In a third aspect, the present application further provides an electronic rearview mirror software system, the electronic rearview mirror software system comprising a resource driving module, a video path management module deployed in a first electronic rearview mirror software process, an electronic rearview mirror business processing module deployed in a second electronic rearview mirror software process, and a system management process;
[0027] The video path management module is used to obtain a resource handle and manage the resource handle;
[0028] The electronic rearview mirror business processing module is used to obtain the resource handle from the video path management module, and interact with the resource driving module in the second electronic rearview mirror software process to trigger the resource driving module to control the corresponding hardware media resources through the resource handle to perform business processing;
[0029] The system management process is used to monitor the first electronic rearview mirror software process and the second electronic rearview mirror software process, determine the abnormal running process based on the monitoring result, and reset the abnormal running process.
[0030] In a fourth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it implements the steps in any one of the electronic rearview mirror software processing methods provided in the embodiments of the present application.
[0031] In a fifth aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any electronic rearview mirror software processing method provided in the embodiments of the present application are implemented.
[0032] In a sixth aspect, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of any electronic rearview mirror software processing method provided in the embodiments of the present application.
[0033] In the above-mentioned electronic rearview mirror software processing method, device, computer equipment, storage medium, computer program product and electronic rearview mirror software system, by setting a resource handle for each hardware media resource, the video channel management module can control the first hardware media resource based on the first target handle to obtain the real-time video data collected by the electronic rearview mirror camera, so that the display screen can display the real-time video data. And the electronic rearview mirror business processing module can control the second hardware media resource based on the second target handle obtained from the video channel management module to realize business processing. By deploying the real-time video data display function in the video channel management module and the business processing function in the electronic rearview mirror business processing module, compared with realizing the display of real-time video and business processing through the same module, the video channel management module and the electronic rearview mirror business post-processing module are separated, so that when one module fails, the other module can still execute normally, thereby improving the stability of the electronic rearview mirror software system.
[0034] In addition, by setting a resource handle for each hardware media resource, the detailed information of the underlying hardware media resource can be hidden based on the resource handle, and only the necessary interfaces are exposed to the video channel management module and the electronic rearview mirror business post-processing module, which improves encapsulation and security. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 An application environment diagram of an electronic rearview mirror software processing method in one embodiment;
[0036] Figure 2 A schematic diagram of the structure of an electronic rearview mirror software system in one embodiment;
[0037] Figure 3 A schematic diagram of a flow chart of an electronic rearview mirror software processing method in one embodiment;
[0038] Figure 4 is an interactive schematic diagram of a software process in one embodiment;
[0039] Figure 5 A schematic diagram of a resource-driven framework based on a resource handle in one embodiment;
[0040] Figure 6 is a schematic diagram of a video path management module in one embodiment;
[0041] Figure 7 is a schematic diagram of an electronic rearview mirror service processing module in one embodiment;
[0042] Figure 8 is a structural block diagram of an electronic rearview mirror software processing device in one embodiment;
[0043] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] The electronic rearview mirror software processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown in FIG. 1 , an electronic rearview mirror software system may be deployed in the central control of the vehicle 102. The electronic rearview mirror software system may enable the display screen to display corresponding content, such as real-time video captured by the camera, blind spot monitoring prompts, magnified images of local areas, and the like.
[0046] It should be noted that the words "first", "second" and similar terms used in this application do not indicate any order, quantity or importance, but are only used to distinguish different components. Unless the context clearly indicates otherwise, the singular form "one", "an" or "the" and similar terms do not indicate a quantity restriction, but rather indicate the presence of at least one. The quantities of "multiple" or "multiple copies" mentioned in the various embodiments of the present application all refer to the quantity of "at least two", for example, "multiple" refers to "at least two", and "multiple copies" refers to "at least two copies".
[0047] The electronic rearview mirror software processing method of the present application can be applied to the electronic rearview mirror software system. In order to better understand the present application, the electronic rearview mirror software system is first introduced. Figure 2 , Figure 2 The overall structural diagram of an electronic rearview mirror software system in one embodiment is shown. The electronic rearview mirror software system includes a resource driving module, a video path management module deployed in a first electronic rearview mirror software process, an electronic rearview mirror business processing module deployed in a second electronic rearview mirror software process, and a system management process. Among them, the video path management module is used to obtain a resource handle and manage the resource handle; the electronic rearview mirror business processing module is used to request the video path management module to obtain a resource handle, and interact with the resource driving module in the second electronic rearview mirror software process, triggering the resource driving module to control the corresponding hardware media resources through the resource handle for business processing; the system management process is used to monitor the first electronic rearview mirror software process and the second electronic rearview mirror software process, determine the abnormal running process based on the monitoring results, and reset the abnormal running process.
[0048] Hardware media resources refer to hardware resources related to media processing in the device. These resources usually include dedicated hardware modules or components for processing multimedia content (such as audio, video, images, etc.), as well as their supporting functions. Hardware media resources can be, for example, audio processing units, audio and video input / output devices, audio and video codecs, video processors, hardware decoders / encoders, etc.
[0049] Each hardware media resource may be provided with a resource handle, which is also called a handle and is usually an integer or a pointer used to identify and manage the hardware media resource.
[0050] In one embodiment, Figure 3 As shown, a method for processing electronic rearview mirror software is provided, and the method is applied to Figure 1 The vehicle in the example is used as an example to illustrate, including the following steps:
[0051] Step 302: The video channel management module obtains the real-time video data collected by the electronic rearview mirror camera from the first hardware media resource corresponding to the first target handle based on the preset first target handle, and triggers the display screen to display the real-time video data.
[0052] Specifically, after the startup is completed, the video path management module can obtain the preset first target handle, and control the first hardware media resource corresponding to the first target handle through the first target handle to obtain the real-time video data collected by the electronic rearview mirror camera from the first hardware media resource. The video path management module writes the real-time video data to the screen cache of the display screen, so that the display screen can display the real-time video data. Among them, the first hardware media resource refers to a hardware media resource used to generate / receive / output real-time video data. For example, the first hardware media resource can be a video input module (Video Input). The first target handle is a resource handle corresponding to the first hardware media resource.
[0053] In one embodiment, the video path management module may be activated when the vehicle is started, or the video path management module may be activated when the user turns on the display screen.
[0054] In one embodiment, the electronic rearview mirror camera can be installed on the outside of the vehicle, so as to collect the real-time environment around the vehicle and obtain real-time video data.
[0055] In one embodiment, the video path management module has the authority to create a resource handle. When creating a first hardware media resource, and the video path management module confirms that the resource handle can be created, the resource driver module can create a first target handle corresponding to the first hardware media resource and return the first target handle to the video path management module. Controlling the first hardware media resource corresponding to the first target handle through the first target handle can be to interact with the first hardware media resource through the first target handle to obtain real-time video data generated in the first hardware media resource.
[0056] Step 304: the electronic rearview mirror service processing module sends a handle acquisition request to the video path management module, so that the video path management module returns at least one second target handle requested by the handle acquisition request to the electronic rearview mirror service processing module.
[0057] Specifically, the electronic rearview mirror business processing module can send a handle acquisition request to the video channel during initialization. When the video channel management module receives the handle acquisition request, it can search for at least one second target handle requested by the handle acquisition request, and return the at least one second target handle to the electronic rearview mirror business processing module. For example, the electronic rearview mirror business processing module can perform blind spot detection and field of view control. The electronic rearview mirror business processing module can generate a handle acquisition request based on the resource number of the hardware media resources involved in the blind spot detection and field of view control, and send the handle acquisition request to the video channel management module. In this way, the video channel management module can obtain the second target handle corresponding to the hardware media resources involved in the blind spot detection and field of view control, and return the second target handle corresponding to the hardware media resources involved in the blind spot detection and field of view control to the electronic rearview mirror business processing module.
[0058] In one embodiment, the electronic rearview mirror business processing module can determine the business that it can process, determine which hardware media resources are needed to process the business, and determine the unique resource number of the hardware media resources that need to be used, generate a handle acquisition request based on the unique resource number, and send the handle acquisition request to the video path management module. When the video path management module receives the handle acquisition request, it can determine the corresponding second target handle based on the unique resource number carried in the handle acquisition request, and return the second target handle to the electronic rearview mirror business processing module.
[0059] Step 306, when performing target business processing, the electronic rearview mirror business processing module determines a second target handle related to the target business processing from at least one saved second target handle, and controls the corresponding second hardware media resource based on the second target handle related to the target business processing to perform target business processing.
[0060] Specifically, when the electronic rearview mirror service processing module needs to perform target service processing, it can determine the second target handle related to the target service from at least one saved second target handle, that is, determine the second target handle corresponding to the hardware media resource involved in the target service, and control the second hardware media resource corresponding to the second target handle based on the second target handle, and perform target service processing by controlling the second hardware media resource, for example, by controlling the second hardware media resource to obtain the media data generated in the second hardware media resource, and based on the media data generated in the second hardware media resource, realize the target service function provided by the electronic rearview mirror. Among them, the media data can be a video or a picture.
[0061] In one embodiment, the target service processing may be blind spot detection or field of view control, etc. That is, displaying real-time video data may be a basic function of the electronic rearview mirror system, and blind spot detection, field of view control, etc. may be service functions other than the basic functions provided by the electronic rearview mirror system.
[0062] In the above-mentioned electronic rearview mirror software processing method, by setting a resource handle for each hardware media resource, the video channel management module can control the first hardware media resource based on the first target handle to obtain the real-time video data collected by the electronic rearview mirror camera, so that the display screen can display the real-time video data. And the electronic rearview mirror business processing module can control the second hardware media resource based on the second target handle obtained from the video channel management module to realize the processing of the business. By deploying the real-time video data display function in the video channel management module and the business processing function in the electronic rearview mirror business processing module, compared with realizing the display of real-time video and the processing of business through the same module, the video channel management module and the electronic rearview mirror business post-processing module are separated, and when one module fails, the other module can still be executed normally, thereby improving the stability of the electronic rearview mirror software system. In addition, by setting a resource handle for each hardware media resource, the detailed information of the underlying hardware media resource can be hidden based on the resource handle, and only the necessary interfaces are exposed to the video channel management module and the electronic rearview mirror business post-processing module for use, thereby improving the encapsulation and security.
[0063] In one of the embodiments, the video channel management module runs in the first electronic rearview mirror software process; the electronic rearview mirror business processing module runs in the second electronic rearview mirror software process; the first electronic rearview mirror software process and the second electronic rearview mirror software process are monitored by the system management process through an inter-process communication mechanism, and when it is determined based on the monitoring results that there are abnormal running processes in the first electronic rearview mirror software process and the second electronic rearview mirror software process, the system management process triggers the reset of the abnormal running process.
[0064] Specifically, refer to Figure 4 , the electronic rearview mirror software processing system includes a first electronic rearview mirror software process, a second electronic rearview mirror software process and a system management process. The video channel management module and the electronic rearview mirror business processing module are deployed in different processes respectively. The video channel management module is deployed in the first electronic rearview mirror software process, and the electronic rearview mirror business processing module is deployed in the second electronic rearview mirror software process. The system management process can monitor the first electronic rearview mirror software process and the second electronic rearview mirror software process through the inter-process communication mechanism to determine whether the first electronic rearview mirror software process and the second electronic rearview mirror software process are operating normally. When it is determined that there are abnormal running processes in the first electronic rearview mirror software process and the second electronic rearview mirror software process, the system management process can trigger the reset of the abnormal running process. For example, when the first electronic rearview mirror software process is an abnormal running process, the system management process can send a reset instruction to the first electronic rearview mirror software process to reset the first electronic rearview mirror software process. Figure 4 A schematic diagram of the interaction of software processes in one embodiment is shown.
[0065] In this embodiment, by deploying the video channel management module and the electronic rearview mirror business processing module in different processes, when one process runs abnormally, the other process can still run normally, thereby improving the stability of the electronic rearview mirror software system. The first electronic rearview mirror software process and the second electronic rearview mirror software process are monitored through the system management process. When an abnormal running process is monitored, the abnormal running process can be reset immediately, further improving the stability of the electronic rearview mirror software system and maintaining the normal operation of the electronic rearview mirror software system.
[0066] In one embodiment, reference Figure 2 An on-chip system monitoring module is deployed in the electronic rearview mirror microcontroller unit. The system management process can be monitored through the on-chip system monitoring module. When the system management process runs abnormally, the on-chip system monitoring module can trigger the reset of the system management process.
[0067] In one of the embodiments, when the second electronic rearview mirror software process is an abnormal running process, the second electronic rearview mirror software process will not release the second target handle during the reset process, and when the second electronic rearview mirror software process is reset successfully, it continues to control the second hardware media resource based on the second target handle.
[0068] Specifically, when the second electronic rearview mirror software process is an abnormally running process, the second electronic rearview mirror software process will not release the second target handle during the reset process, but will continue to control the corresponding second hardware media resource based on the second target handle after the reset is successful. Releasing the second target handle means that the control over the second hardware media resource and the media resources obtained from the second hardware media resource based on the second target handle will not be released. When the reset is successful, the second target handle can be re-acquired, and the second hardware media resource can continue to be controlled through the second target handle without rebuilding the media path, thus improving the recovery speed.
[0069] In one of the embodiments, the handle acquisition request includes a resource number corresponding to each business processing; at least one second target handle requested by the handle acquisition request is returned to the electronic rearview mirror business processing module for storage, including: parsing the handle acquisition request to obtain at least one resource number corresponding to the business processing request; according to the correspondence between the preset resource number and the resource handle, obtaining the second target handle corresponding to each of the at least one resource number; returning the second target handle corresponding to each of the at least one resource number to the electronic rearview mirror business processing module so that the electronic rearview mirror business processing module can save it.
[0070] Specifically, each hardware media resource has a corresponding unique resource number. The electronic rearview mirror business processing module can determine the hardware media resources involved in business processing, and determine the resource number of the hardware media resources involved according to the corresponding relationship between the hardware media resources and the resource number, and obtain at least one resource number. Further, the electronic rearview mirror business processing module can generate a handle acquisition request according to at least one resource number, and send the handle acquisition request to the video path management module. When the video path management module receives the handle acquisition request, the video path management module can parse the handle acquisition request to obtain at least one resource number.
[0071] The video path management module pre-stores the correspondence between the resource number and the resource handle, so that when obtaining at least one resource number, the video path management module can find the second target handle corresponding to each of the at least one resource number according to the correspondence between the resource number and the resource handle, and return the second target handle corresponding to each of the at least one resource number to the electronic rearview mirror business processing module.
[0072] In one embodiment, reference Figure 5 , Figure 5A schematic diagram of a resource driver framework based on a resource handle in one embodiment is shown. The resource driver module drives the hardware media resources to work normally on the one hand, and provides an interface for controlling the hardware media resources for the electronic rearview mirror business processing module and the video channel management module on the other hand. The resource driver framework based on the resource handle mechanism provides basic functions for the electronic rearview mirror business processing module and the video channel management module to control the hardware media resources using the resource handle. Resource handle mapping refers to finding the corresponding hardware media resources through the resource handle.
[0073] In this embodiment, by setting a unique resource number for each hardware media resource, the corresponding resource handle can be quickly found based on the resource number, thereby improving the efficiency of obtaining the resource handle.
[0074] In one embodiment, the electronic rearview mirror business processing module is deployed in a second electronic rearview mirror software process; the electronic rearview mirror business processing module controls the corresponding second hardware media resource based on the second target handle related to the target business processing, including: the electronic rearview mirror business processing module interacts with a preset resource driving module within the second electronic rearview mirror software process to pass the second target handle related to the target business processing to the hardware media resource control interface in the resource driving module; the passed second target handle is used to trigger the hardware media resource control interface to control the second hardware media resource corresponding to the second target handle related to the target business processing based on the second target handle related to the target business processing.
[0075] Specifically, the electronic rearview mirror software system also includes a resource driver module. After the electronic rearview mirror business processing module obtains the second target handle related to the target business processing, the electronic rearview mirror business processing module can directly interact with the resource driver module in the second target electronic rearview mirror software process, and pass the second target handle related to the target business processing to the hardware media resource control interface in the resource driver module, so that the hardware media resource control interface can control the second hardware media resource corresponding to the second target handle related to the target business processing through the second target handle related to the target business processing. That is, the hardware media resource control interface can be used as an intermediate layer to connect the electronic rearview mirror business processing module and the hardware media resources.
[0076] Correspondingly, the video path management module can also interact with the resource driver within the first electronic rearview mirror software process to pass the first target handle to the hardware media resource control interface, so that the hardware media resource interface can control the corresponding hardware media resource based on the first target handle.
[0077] In this embodiment, the hardware media resources are directly controlled within the process through the resource handle without being transferred through the process where the video path is located, thereby solving the performance and time consumption caused by cross-process communication and improving the control efficiency of the hardware media resources.
[0078] In one embodiment, reference Figure 6 , Figure 6 A schematic diagram of a video path management module in an embodiment is shown. The video path management module can be used to manage resource handles and manage hardware media resources through resource handles, such as starting and stopping hardware media resources. The video path management module can interact with the resource driver module in the process, so that the resource driver module determines the corresponding hardware media resource based on the resource handle passed in by the video path management module and controls the hardware media resource.
[0079] In one embodiment, reference Figure 7 , Figure 7 A schematic diagram of an electronic rearview mirror business processing module in an embodiment is shown. The electronic rearview mirror business processing module has the right to use the resource handle. The electronic rearview mirror business processing module can interact with the resource driving module in the process, so that the resource driving module determines the corresponding hardware media resource based on the resource handle passed in by the electronic rearview mirror business processing module and controls the hardware media resource.
[0080] In one of the embodiments, the target business processing is blind spot detection or field of view control; the above method also includes: when the target business processing is blind spot detection, the hardware media resource control interface obtains blind spot detection media data from the corresponding second hardware media resource based on the second target handle related to the target business processing, and sends the blind spot detection media data to the machine learning module; the sent blind spot detection media data is used to trigger the machine learning module to generate a blind spot detection result based on the blind spot detection media data, and return the blind spot detection result to the electronic rearview mirror business processing module; the electronic rearview mirror business processing module triggers the display screen to display the blind spot detection result; when the target business processing request is a field of view control request, the hardware media resource control interface obtains field of view control media data from the corresponding second hardware media resource based on the second target handle related to the target business processing, and returns the field of view control media data to the electronic rearview mirror business processing module; the electronic rearview mirror business processing module triggers the display screen to display the field of view control media data.
[0081] Specifically, the target business processing may be blind spot detection or field of view control. When the target business processing is blind spot detection, the second target handle related to the target business processing is the resource handle corresponding to the hardware media resource involved in the blind spot detection. Thus, the hardware media resource control interface can obtain blind spot detection media data from the corresponding second hardware media resource based on the second target handle related to the target business processing. The blind spot detection media data can be sent to the machine learning module, so that the machine learning module can analyze the blind spot detection media data based on the blind spot detection media data to obtain the blind spot detection result. The machine learning module can return the blind spot detection result to the electronic rearview mirror business processing module, and the electronic rearview mirror business processing module can trigger the display screen to display the blind spot detection result, or the electronic rearview mirror business processing module can also trigger the speaker voice broadcast the blind spot detection result.
[0082] The target business process may also be field of view control. When the target business process is field of view control, the second target handle associated with the target business process is the resource handle corresponding to the hardware media resource involved in the field of view control. Thus, the hardware media resource control interface can obtain field of view control media data from the corresponding second hardware media resource based on the second target handle associated with the target business process. The field of view control media data can be returned to the electronic rearview mirror business processing module, and the electronic rearview mirror business processing module can trigger the display screen to display the field of view control media data, for example, the display screen can be triggered to zoom and display the field of view control media data. Exemplarily, the field of view control media data can be specifically an image frame. When the vehicle speed is low, in order to better judge the distance from the vehicle next to it and avoid scratches, the image frame can be enlarged and displayed. When the vehicle speed is fast, the field of view of the camera can also be adjusted through the second target handle associated with the target business process to expand the field of view of the camera. By expanding the field of view of the camera, the camera can collect image data with a larger field of view, so as to facilitate the user to drive the vehicle based on the image data with a larger field of view.
[0083] In this embodiment, the safety of vehicle driving can be improved by performing blind spot monitoring and field of view control.
[0084] In one of the embodiments, an electronic rearview mirror software system is provided, the electronic rearview mirror software system comprising a resource driving module, a video path management module deployed in a first electronic rearview mirror software process, an electronic rearview mirror business processing module deployed in a second electronic rearview mirror software process, and a system management process;
[0085] A video channel management module is used to obtain resource handles and manage the resource handles;
[0086] The electronic rearview mirror service processing module is used to request the video channel management module to obtain a resource handle, and interact with the resource driving module in the second electronic rearview mirror software process to trigger the resource driving module to control the corresponding hardware media resources through the resource handle to perform service processing;
[0087] The system management process is used to monitor the first electronic rearview mirror software process and the second electronic rearview mirror software process, determine the abnormal running process based on the monitoring result, and reset the abnormal running process.
[0088] In one embodiment, the video channel management module has the authority to manage the resource handle; the electronic rearview mirror business processing module has the authority to use the resource handle, but does not have the authority to manage the resource handle; the management authority of the resource handle at least includes the authority to start or stop the corresponding hardware media resources based on the resource handle, and the authority to release the computer resources occupied by the resource handle when it is used.
[0089] Specifically, the video channel management module and the electronic rearview mirror business processing module are deployed on two processes respectively. The system management process uses the inter-process communication mechanism to monitor the running status of the two processes respectively. When a process fails, the abnormal process is reset independently. The resource driver module, on the one hand, drives the hardware to work normally, and on the other hand, provides an interface for controlling hardware media resources. The resource driver framework based on the resource handle mechanism provides basic functions for the video channel management module and the electronic rearview mirror business processing module to use resource handles to control hardware media resources; when creating hardware media resources, the framework will return the resource handle corresponding to the hardware media resource to the video channel management module, so that the video channel management module can store the returned resource handle. The video channel management module and the electronic rearview mirror business processing module can use resource handles to control media resources. The video channel management module is responsible for creating a media resource channel, obtaining resource handles through the resource driver module, and managing the resource handles for subsequent electronic rearview mirror business processing module to query; the video channel management module has the management authority to create and destroy resource handles. The electronic rearview mirror business processing module requests a resource handle from the media channel, and uses the resource handle to interact directly with the resource driver module in this process to control the media hardware resources. The video channel refers to a complete link from the capture and processing of video signals to the final output, including input devices (such as cameras), processing modules, and output devices (such as displays or storage).
[0090] In this electronic rearview mirror software system, the video channel management module and the electronic rearview mirror business processing module are deployed as independent processes. When a failure occurs in the electronic rearview mirror business processing module, it can be reset separately without affecting the video channel management module or causing abnormal display of the video terminal on the screen, thus improving system stability. Since the multi-process deployment scheme will cause delays and performance issues due to inter-process communication, this electronic rearview mirror software system proposes a driver framework scheme based on resource handles. The electronic rearview mirror business processing module can directly interact with the resource driver module to solve the performance and time consumption caused by cross-process communication.
[0091] The life cycle of the resource handle is maintained by the video channel management module. The electronic rearview mirror business processing module only has the right to use the resource handle. The abnormal restart of the second electronic rearview mirror software process will not release the media resources corresponding to the resource handle. After the resource handle is reset, the resource handle can be obtained again to continue to control the hardware media resources without rebuilding the media channel, thereby improving the recovery speed.
[0092] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0093] Based on the same inventive concept, the embodiment of the present application also provides an electronic rearview mirror software processing device for implementing the electronic rearview mirror software processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more electronic rearview mirror software processing device embodiments provided below can refer to the limitations of the electronic rearview mirror software processing method above, and will not be repeated here.
[0094] In one embodiment, Figure 8 As shown, an electronic rearview mirror software processing device 800 is provided, including: a video channel management module 802 and an electronic rearview mirror business processing module 804, wherein:
[0095] The video channel management module 802 is used to obtain the real-time video data collected by the electronic rearview mirror camera from the first hardware media resource corresponding to the first target handle based on the preset first target handle, and trigger the display screen to display the real-time video data;
[0096] The electronic rearview mirror business processing module 804 is used to send a handle acquisition request to the video channel management module 802, and obtain at least one second target handle through the handle acquisition request, and save the obtained at least one second target handle; when performing target business processing, determine the second target handle related to the target business processing from the at least one saved second target handle, and control the corresponding second hardware media resource based on the second target handle related to the target business processing to perform target business processing.
[0097] In one embodiment, the video channel management module 802 runs in a first electronic rearview mirror software process; the electronic rearview mirror business processing module 804 runs in a second electronic rearview mirror software process; the first electronic rearview mirror software process and the second electronic rearview mirror software process are monitored by a system management process through an inter-process communication mechanism, and when it is determined based on the monitoring results that there are abnormal running processes in the first electronic rearview mirror software process and the second electronic rearview mirror software process, the system management process triggers a reset of the abnormal running process.
[0098] In one of the embodiments, when the second electronic rearview mirror software process is an abnormal running process, the second electronic rearview mirror software process will not release the second target handle during the reset process, and when the second electronic rearview mirror software process is reset successfully, it continues to control the second hardware media resource based on the second target handle.
[0099] In one of the embodiments, the handle acquisition request includes the resource number corresponding to each business processing; the video path management module 802 is also used to parse the handle acquisition request to obtain at least one resource number; according to the correspondence between the preset resource number and the resource handle, obtain the second target handle corresponding to at least one resource number; return the second target handle of at least one resource number to the electronic rearview mirror business processing module 804, so that the electronic rearview mirror business processing module 804 can save it.
[0100] In one embodiment, the electronic rearview mirror business processing module 804 is also used to interact with a preset resource driver module within the second electronic rearview mirror software process to pass a second target handle related to the target business processing to the hardware media resource control interface in the resource driver module; the passed second target handle is used to trigger the hardware media resource control interface to control the corresponding second hardware media resource based on the second target handle related to the target business processing.
[0101] In one of the embodiments, the target business processing request is blind spot detection or field of view control; the electronic rearview mirror business processing module 804 is also used to, when the target business processing is blind spot detection, the hardware media resource control interface obtains blind spot detection media data from the corresponding second hardware media resource based on the second target handle related to the target business processing, and sends the blind spot detection media data to the machine learning module; the sent blind spot detection media data is used to trigger the machine learning module to generate a blind spot detection result based on the blind spot detection media data, and return the blind spot detection result to the electronic rearview mirror business processing module; the electronic rearview mirror business processing module triggers the display screen to display the blind spot detection result; when the target business processing is field of view control, the hardware media resource control interface obtains field of view control media data from the corresponding second hardware media resource based on the second target handle related to the target business processing, and returns the field of view control media data to the electronic rearview mirror business processing module; the electronic rearview mirror business processing module triggers the display screen to display the field of view control media data.
[0102] Each module in the above-mentioned electronic rearview mirror software processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0103] In one embodiment, a computer device deployed in a car is provided, and its internal structure diagram can be as follows: Fig. 9As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for processing electronic rearview mirror software is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.
[0104] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0105] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0106] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0107] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.
[0108] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0109] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0110] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0111] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for processing electronic rearview mirror software, characterized in that: The method comprises: The video channel management module obtains the real-time video data collected by the electronic rearview mirror camera from the first hardware media resource corresponding to the first target handle based on the preset first target handle, and triggers the display screen to display the real-time video data; The electronic rearview mirror service processing module sends a handle acquisition request to the video path management module, so that the video path management module returns at least one second target handle requested by the handle acquisition request to the electronic rearview mirror service processing module for storage; When performing target business processing, the electronic rearview mirror business processing module determines a second target handle related to the target business processing from at least one saved second target handle, and controls the corresponding second hardware media resource based on the second target handle related to the target business processing to perform target business processing.
2. The method according to claim 1, characterized in that The video path management module runs in the first electronic rearview mirror software process; the electronic rearview mirror business processing module runs in the second electronic rearview mirror software process; the first electronic rearview mirror software process and the second electronic rearview mirror software process are monitored by the system management process through an inter-process communication mechanism, and when it is determined based on the monitoring results that there are abnormal running processes in the first electronic rearview mirror software process and the second electronic rearview mirror software process, the system management process triggers the resetting of the abnormal running process.
3. The method according to claim 2, characterized in that When the second electronic rearview mirror software process is an abnormal running process, the second electronic rearview mirror software process will not release the second target handle during the reset process, and when the second electronic rearview mirror software process is reset successfully, it will continue to control the second hardware media resource based on the second target handle.
4. The method according to claim 1, characterized in that The handle acquisition request includes resource numbers corresponding to the respective business processes; and returning at least one second target handle requested by the handle acquisition request to the electronic rearview mirror business processing module for storage, including: Parsing the handle acquisition request to obtain at least one resource number; According to a preset correspondence relationship between a resource number and a resource handle, obtaining a second target handle corresponding to each of the at least one resource number; The second target handle corresponding to each of the at least one resource numbers is returned to the electronic rearview mirror business processing module so that the electronic rearview mirror business processing module saves it.
5. The method according to claim 1, characterized in that The electronic rearview mirror business processing module is deployed in the second electronic rearview mirror software process; The controlling of the corresponding second hardware media resource based on the second target handle related to the target business processing includes: The electronic rearview mirror business processing module interacts with a preset resource driving module within the second electronic rearview mirror software process to pass the second target handle related to the target business processing to the hardware media resource control interface in the resource driving module; the second target handle passed in is used to trigger the hardware media resource control interface to control the second hardware media resource corresponding to the second target handle related to the target business processing based on the second target handle related to the target business processing.
6. The method according to claim 5, characterized in that The target service processing is blind spot detection or field of view control; the method further includes: When the target business processing is blind spot detection, the hardware media resource control interface obtains blind spot detection media data from the corresponding second hardware media resource based on the second target handle related to the target business processing, and sends the blind spot detection media data to the machine learning module; the sent blind spot detection media data is used to trigger the machine learning module to generate a blind spot detection result based on the blind spot detection media data, and return the blind spot detection result to the electronic rearview mirror business processing module; The electronic rearview mirror service processing module triggers the display screen to display the blind spot detection result; When the target business process is field of view control, the hardware media resource control interface obtains field of view control media data from the corresponding second hardware media resource based on the second target handle related to the target business process, and returns the field of view control media data to the electronic rearview mirror business processing module; The electronic rearview mirror business processing module triggers the display screen to display the field of view control media data.
7. An electronic rearview mirror software system, characterized in that: The electronic rearview mirror software system includes a resource driving module, a video path management module deployed in a first electronic rearview mirror software process, an electronic rearview mirror business processing module and a system management process deployed in a second electronic rearview mirror software process; The video path management module is used to obtain a resource handle and manage the resource handle; The electronic rearview mirror business processing module is used to obtain the resource handle from the video path management module, and interact with the resource driving module in the second electronic rearview mirror software process to trigger the resource driving module to control the corresponding hardware media resources through the resource handle to perform business processing; The system management process is used to monitor the first electronic rearview mirror software process and the second electronic rearview mirror software process, determine the abnormal running process based on the monitoring result, and reset the abnormal running process.
8. The system according to claim 7, characterized in that The video path management module has the authority to manage the resource handle; the electronic rearview mirror business processing module has the authority to use the resource handle, but does not have the authority to manage the resource handle; the management authority to the resource handle at least includes the authority to start or stop the corresponding hardware media resources based on the resource handle, and the authority to release the computer resources occupied by the resource handle when it is used.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.