Camera video processing method and system

By setting up camera multiplexing components and video collection modules in the vehicle-mounted system and processing them according to different video collection request modes, the problem of resource waste and long reversing display time caused by independent cameras in the vehicle-mounted system is solved, and multi-channel video sharing and Improved user experience.

CN114866686BActive Publication Date: 2024-09-17FORYOU GENERAL ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210299580.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-25
Publication Date
2024-09-17
Estimated Expiration
2042-03-25

Smart Images

  • Figure CN114866686B
    Figure CN114866686B
Patent Text Reader

Abstract

The present invention relates to the technical field of image processing, and provides a camera video processing method and system. According to a first video acquisition request and a second video acquisition request actually received by a vehicle-mounted system, a corresponding first video acquisition mode and a second video acquisition mode are set to perform video processing and sending. On the one hand, according to the startup state of the vehicle-mounted system when the video acquisition request is received, a first video acquisition mode is added on the basis of an original ordinary reversing display, so that a reversing monitoring picture can be quickly obtained, thereby realizing fast reversing, shortening the user waiting time and improving the user experience. On the other hand, according to the second video acquisition mode, multi-channel video sharing of the same camera can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a camera video processing method and system. Background Art

[0002] With the development of the current automotive industry, the functions of the vehicle system are becoming more and more complex, such as: rear view camera, driving recorder, parking space detection, blind spot monitoring, etc. However, the cameras of each system function are independent of each other, resulting in the car being filled with various cameras, which not only causes a serious waste of resources, but also increases the user's cost of use. Summary of the invention

[0003] The present invention provides a camera video processing method, which solves the technical problems of long startup time of the existing reversing display, poor user experience, resource waste and cost surge caused by the independent camera used by the vehicle function module.

[0004] In order to solve the above technical problems, the present invention provides a camera video processing method, comprising the steps of:

[0005] S1. The vehicle-mounted system receives a first video acquisition request or a second video acquisition request;

[0006] S2. If the acquisition request is a first video acquisition request, acquiring a corresponding camera video according to a first video acquisition mode and sending the video to a corresponding first request module;

[0007] S3: If the acquisition request is a second video acquisition request, acquiring a corresponding camera video according to a second video acquisition mode and sending the video to a corresponding second request module;

[0008] The first video acquisition request is: generated by a first preset signal when the target system has not completed startup;

[0009] The second video acquisition request is generated by being driven by a second preset signal after the target system is started up.

[0010] This basic solution sets the corresponding first video acquisition mode and second video acquisition mode for video processing and sending according to the first video acquisition request and the second video acquisition request actually received by the vehicle-mounted system; on the one hand, according to the startup state of the vehicle-mounted system when the video acquisition request is received, a first video acquisition mode is added to the original ordinary reversing display, so that the reversing monitoring screen can be quickly obtained, thereby realizing fast reversing, shortening the user's waiting time and improving the user experience; on the other hand, according to the second video acquisition mode, multi-channel video sharing of the same camera can be realized.

[0011] In a further embodiment, acquiring the corresponding camera video according to the second video acquisition mode and sending it to the corresponding second request module includes:

[0012] A1. Determine a target camera according to the second video acquisition request;

[0013] A2, determining in turn whether each of the second video acquisition requests is a third video acquisition request, if yes, proceeding to the next step, otherwise proceeding to step A6, the third video acquisition request is a multi-channel video acquisition request for the same target camera;

[0014] A3. Determine the number of access requests for each camera according to the third video acquisition request;

[0015] A4. Mapping the physical channels of the corresponding cameras according to the number of each access request, obtaining a corresponding number of video channels and generating a corresponding number of camera device nodes;

[0016] A5. Open each of the camera device nodes;

[0017] A6. Collect a corresponding number of camera videos and send them to the second request module.

[0018] This solution sets up a camera multiplexing component at the hardware layer, so that when multiple acquisition requests for the same camera video data are detected (i.e., the third video acquisition request), the physical channels of the corresponding camera can be mapped according to the number of each access request, thereby obtaining the corresponding number of video channels and generating the corresponding number of camera device nodes. In this way, the video acquisition driver opens each camera device node, obtains the corresponding video data and sends it to the corresponding second request module. This allows any functional module in the system to access the camera at the same time, realizes the sharing of video data of each camera, and avoids the waste of resources and time consumption caused by the dedicated camera of the functional module.

[0019] In a further implementation, when the vehicle-mounted system is a single system, the target system is a U-BOOT system.

[0020] In a further implementation, when the vehicle-mounted system is a dual system, the target system is a host system.

[0021] In a further embodiment, the first preset signal is a reversing signal, and the second preset signal is a plurality of driving signals including the reversing signal.

[0022] The present invention provides a camera video processing system according to an embodiment of the present invention, which is applied to a single-system vehicle-mounted system, including a camera multiplexing component, a video acquisition module, a first request module, and a second request module; the camera multiplexing component and at least one group of cameras are arranged in a hardware layer; the video acquisition module is arranged in a system layer; the first request module and the second request module are arranged in an application layer;

[0023] The camera is used to obtain video around the vehicle and output video data;

[0024] The camera multiplexing component is used to map a single camera hardware channel to obtain multiple hardware channels corresponding to different request modules through channel mapping;

[0025] The video acquisition module is used to access each camera of the hardware layer according to the acquisition request, and send the read video data to the corresponding first request module or the second request module;

[0026] The first request module is used to generate a second video acquisition request when the vehicle-mounted system has not yet been started;

[0027] The second request module includes a plurality of function request units, which are used to generate a second video acquisition request after the vehicle-mounted system is started.

[0028] In a further implementation scheme, the first request module is a fast reversing module set in the system layer, which is used to generate an acquisition request for obtaining the rearview camera video according to the reversing signal when the system has not completed startup; the second request module is a plurality of function request units set in the application layer, which is used to generate an acquisition request for obtaining the video of at least one of the cameras after the system has completed startup.

[0029] In the embodiment of the present invention, a first request module sends a first video capture or a first request module sends a second video capture request to a video capture module, and the video capture module sends the acquired video data to a corresponding request module (the request module includes a first request module and a second request module). This can not only quickly acquire camera video for display when system startup is not completed, but also satisfy multiple functional units to acquire camera video for display at the same time after system startup is completed.

[0030] The present invention provides a camera video processing system, which is applied to a dual-system (including a host system and a client system) vehicle-mounted system, comprising a camera multiplexing component, a video acquisition module, a first request module, a second request module, a front-end virtual driver, a back-end virtual service, and a back-end virtual driver: the camera multiplexing component and at least one group of cameras are arranged in a hardware layer; the video acquisition module is arranged in an application layer of a host machine, the first request module is arranged in an application layer of a host machine, the second request module comprises a plurality of function request units arranged in an application layer of a client machine, the front-end virtual driver in a client system layer, and the back-end virtual driver and the back-end virtual service arranged in the host machine system layer;

[0031] The camera is used to obtain video around the vehicle and output video data;

[0032] The camera multiplexing component is used to map a single camera hardware channel to obtain multiple hardware channels corresponding to different request modules through channel mapping;

[0033] The front-end virtual driver is used to process the access request of each request module (including the first request module and the second request module) to access the camera, and send a collection request to the back-end virtual service;

[0034] The backend virtual service is used to convert the collection request sent by the frontend virtual driver into a corresponding operation instruction;

[0035] The backend virtual driver is used to receive the operation instruction issued by the backend virtual service, and call the video acquisition module to complete the acquisition of video data;

[0036] The video acquisition module is used to send the video data to the corresponding first request module or the second request module according to the hardware channel;

[0037] The first request module is used to generate a second video acquisition request when the vehicle-mounted system has not yet been started;

[0038] The second request module includes a plurality of function request units, which are used to generate a second video acquisition request after the vehicle-mounted system is started.

[0039] In a further embodiment, the present invention also includes a virtual layer, which is used to manage shared memory space, provide a virtual machine (such as a QNX virtual machine) environment for the host machine and the client machine, and implement front-end and back-end communications of multi-channel camera communication instructions.

[0040] In this embodiment, the first request module is a fast reversing module set in the host application layer, which is used to generate an acquisition request for obtaining the rearview camera video according to the reversing signal when the client system has not completed the startup; the second request module is a plurality of functional modules set in the client application layer, which is used to generate an acquisition request for obtaining at least one of the camera videos after the client system has completed the startup.

[0041] The embodiment of the present invention is based on a dual-system vehicle-mounted system, and a camera multiplexing component and at least one group of cameras are set at the hardware layer; a video acquisition module, a back-end virtual driver and a back-end virtual service are set at the system layer of the host machine, and a front-end virtual driver is set at the system layer of the client machine; a first request module is set at the application layer of the host machine, and a function request unit of the second request module is set at the application layer of the client machine to form a dual-system camera video processing system, so that any function module (such as the first request module) in the host machine system (such as the instrument system) and any function module (such as the function request unit) in the client machine (such as the entertainment system) can access the same camera at the same time without conflict. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a workflow diagram of a camera video processing method provided by an embodiment of the present invention;

[0043] Figure 2 is a system framework diagram of a camera video processing system provided by Embodiment 2 of the present invention;

[0044] Figure 3 This is a system framework diagram of a camera video processing system provided in Example 4 of the present invention. DETAILED DESCRIPTION

[0045] The following specifically illustrates the implementation mode of the present invention in conjunction with the accompanying drawings. The embodiments are provided for illustrative purposes only and cannot be understood as limiting the present invention. The accompanying drawings are provided for reference and illustration only and do not constitute a limitation on the scope of patent protection of the present invention, because many changes can be made to the present invention without departing from the spirit and scope of the present invention.

[0046] Example 1

[0047] An embodiment of the present invention provides a camera video processing method, such as Figure 1 As shown, in this embodiment, steps S1 to S3 are included:

[0048] S1. The vehicle-mounted system receives a first video acquisition request or a second video acquisition request;

[0049] In this embodiment, the first video capture request is: generated by a first preset signal when the target system is not completely started;

[0050] The second video capture request is generated by being driven by a second preset signal after the target system is started up.

[0051] In this embodiment, the first preset signal is a reversing signal, and the second preset signal is a plurality of driving signals including the reversing signal.

[0052] S2. If the acquisition request is a first video acquisition request, obtain the corresponding camera video according to the first video acquisition mode and send it to the corresponding first request module;

[0053] S3: If the acquisition request is a second video acquisition request, obtain the corresponding camera video according to the second video acquisition mode and send it to the corresponding second request module;

[0054] In this embodiment, obtaining the corresponding camera video according to the second video acquisition mode and sending it to the corresponding second request module includes A1-A6:

[0055] A1. Determine the target camera according to the second video acquisition request;

[0056] The target camera is the camera corresponding to the request module. For example, if the request module is a reversing module, the target camera is the rear view camera; if the request module is a panoramic module, the target cameras are the front, back, left, and right cameras.

[0057] A2, determining in turn whether each second video acquisition request is a third video acquisition request, if yes, proceeding to the next step, otherwise proceeding to step A6, the third video acquisition request is a multi-channel video acquisition request for the same target camera (for example, while realizing the reversing video, other functional modules are also accessing the video data of the rearview camera at the same time);

[0058] A3. Determine the number of access requests for each camera according to the third video acquisition request;

[0059] A4. Map the physical channels of the corresponding cameras according to the number of each access request, obtain the corresponding number of video channels and generate the corresponding number of camera device nodes;

[0060] A5. Open each camera device node;

[0061] A6. Collect a corresponding number of camera videos and send them to the second request module.

[0062] Specifically, if the video acquisition driver obtains the number of access requests k (k>1) for accessing the same camera acquisition request, the camera multiplexing component is controlled to map the hardware channel of the camera to obtain k video channels of the camera, and generate k camera device nodes based on these k video channels.

[0063] At this time, the video acquisition driver opens the device nodes of the k cameras, obtains the video data of the corresponding cameras, and then sends the video data to the corresponding second request module.

[0064] This embodiment sets a camera multiplexing component at the hardware layer, so that when multiple acquisition requests for the same camera video data are detected (i.e., the third video acquisition request), the physical channels of the corresponding camera can be mapped according to the number of each access request, so as to obtain the corresponding number of video channels and generate the corresponding number of camera device nodes, so that the video acquisition driver opens each camera device node, the corresponding video data can be obtained and sent to the corresponding second request module. Any functional module in the system can access the camera at the same time, realizing the sharing of video data of each camera, and avoiding the waste of resources and time consumption caused by the dedicated function module camera.

[0065] In this embodiment, when the vehicle-mounted system is a single system, the target system is a U-BOOT system.

[0066] In this embodiment, when the vehicle-mounted system is a dual system, the target system is the host system.

[0067] The embodiment of the present invention sets the corresponding first video acquisition mode and second video acquisition mode for video processing and sending according to the first video acquisition request and the second video acquisition request actually received by the vehicle-mounted system; on the one hand, according to the startup state of the vehicle-mounted system when the video acquisition request is received, a first video acquisition mode is added on the basis of the original ordinary reversing display, so that the reversing monitoring screen can be quickly obtained, thereby realizing fast reversing, shortening the user's waiting time and improving the user experience; on the other hand, according to the second video acquisition mode, multi-channel video sharing of the same camera can be realized.

[0068] Example 2

[0069] The reference numerals appearing in the drawings of this embodiment include: a camera multiplexing component 1 , a video acquisition module 2 , a first request module 3 , and a second request module 4 .

[0070] The embodiment of the present invention provides a camera video processing system, which is applied to a single-system vehicle-mounted system. Figure 2 , the camera multiplexing component 1 and at least one group of cameras are arranged in the hardware layer; the video acquisition module 2 is arranged in the system layer; the first request module 3 and the second request module 4 are arranged in the application layer;

[0071] The camera is used to obtain video of the vehicle's surroundings and output video data; for example, camera A1 (front view) to camera A4 (right side) in the figure.

[0072] The camera multiplexing component 1 is used to map a single camera hardware channel to obtain multiple hardware channels corresponding to different request modules through channel mapping;

[0073] The video acquisition module 2 is used to access each camera of the hardware layer according to the acquisition request, and send the read video data to the corresponding first request module 3 or second request module 4;

[0074] The first request module 3 is used to generate a second video acquisition request when the vehicle-mounted system has not yet been started;

[0075] The second request module 4 includes a plurality of function request units 41 - 4n, which are used to generate a second video acquisition request after the vehicle-mounted system is started.

[0076] In this embodiment, the first request module 3 is a fast reversing module set at the system layer, which is used to generate an acquisition request for obtaining the rearview camera video according to the reversing signal when the system has not completed startup; the second request module 4 is a number of function request units set at the application layer, which is used to generate an acquisition request for obtaining at least one of the camera videos after the system has completed startup.

[0077] In this embodiment, the single system of the vehicle-mounted system is the Android system.

[0078] In the embodiment of the present invention, the first request module 3 sends a first video capture request or the first request module 4 sends a second video capture request to the video capture module 2, and the video capture module 2 sends the acquired video data to the corresponding request module (including the first request module 3 and the second request module 4). This can not only quickly acquire the camera video for display when the system startup is not completed, but also satisfy multiple functional units to acquire the camera video for display at the same time after the system startup is completed.

[0079] The embodiment of the present invention is based on a single-system vehicle-mounted system, and a camera multiplexing component 1 and at least one group of cameras are set at the hardware layer; a video acquisition module 2 is set at the system layer; a first request module 3 and a second request module 4 are set at the application layer to form a single-system camera video processing system, which is used to implement the camera video processing method in the above-mentioned embodiment 1.

[0080] Example 3

[0081] The reference numerals appearing in the drawings of this embodiment include: camera multiplexing component 1, video acquisition module 2, first request module 3, second request module 4, front-end virtual driver 5, back-end virtual service 6, and back-end virtual driver 7.

[0082] The embodiment of the present invention provides a camera video processing system, which is applied to a dual-system (including a host system and a client system) vehicle-mounted system, see Figure 3 , a camera multiplexing component 1 and at least one group of cameras are arranged in the hardware layer; a video acquisition module 2 is arranged in the application layer of the host machine, a first request module 3 is arranged in the application layer of the host machine, and a second request module 4 includes a plurality of function request units 41-4n arranged in the application layer of the client machine, a front-end virtual driver 5 in the client machine system layer, a back-end virtual driver 7 and a back-end virtual service 6 arranged in the system layer of the host machine;

[0083] The camera is used to obtain video of the vehicle's surroundings and output video data; for example, camera A1 (front view) to camera A4 (right side) in the figure.

[0084] The camera multiplexing component 1 is used to map a single camera hardware channel to obtain multiple hardware channels corresponding to different request modules through channel mapping;

[0085] The front-end virtual driver 5 is used to process the access request of each request module (including the first request module 3 and the second request module 4) to access the camera, and send a collection request to the back-end virtual service 6;

[0086] The backend virtual service 6 is used to convert the collection request sent by the frontend virtual driver 5 into a corresponding operation instruction;

[0087] The backend virtual driver 7 is used to receive the operation instruction issued by the backend virtual service 6, and call the video acquisition module 2 to complete the acquisition of video data;

[0088] The video acquisition module 2 is used to send the video data to the corresponding first request module or the second request module according to the hardware channel;

[0089] The first request module 3 is used to generate a second video acquisition request when the vehicle-mounted system has not yet been started;

[0090] The second request module 4 includes a plurality of function request units 41 - 4n, which are used to generate a second video acquisition request after the vehicle-mounted system is started.

[0091] In this embodiment, a virtual layer is also included, which is used to manage the shared memory space, provide a virtual machine (such as a QNX virtual machine) environment for the host machine and the client machine, and realize the front-end and back-end communication of multi-channel camera communication instructions;

[0092] In this embodiment, the first request module 3 is a fast reversing module set in the host application layer, which is used to generate an acquisition request for obtaining the rearview camera video according to the reversing signal when the client system has not completed the startup; the second request module 4 is a number of functional modules set in the client application layer, which is used to generate an acquisition request for obtaining at least one of the camera videos after the client system has completed the startup.

[0093] In this embodiment, the host system of the vehicle-mounted system is a QNX system, and the client system is an Android system.

[0094] The embodiment of the present invention is based on a dual-system vehicle system, and a camera multiplexing component 1 and at least one group of cameras are set at the hardware layer; a video acquisition module 2, a back-end virtual driver 7 and a back-end virtual service 6 are set at the system layer of the host machine, and a front-end virtual driver 5 is set at the system layer of the client machine; a first request module 3 is set at the application layer of the host machine, and a function request unit of the second request module 4 is set at the application layer of the client machine to form a dual-system camera video processing system, so that any function module (such as the first request module 3) in the host system (such as the instrument system) and any function module (such as the function request unit 41~4n) in the client machine (such as the entertainment system) can access the same camera at the same time without conflict.

[0095] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A camera video processing method, characterized in that: Includes steps: S1. The vehicle-mounted system receives a first video acquisition request or a second video acquisition request; S2. If the acquisition request is a first video acquisition request, acquiring a corresponding camera video according to a first video acquisition mode and sending the video to a corresponding first request module; S3: If the acquisition request is a second video acquisition request, acquiring a corresponding camera video according to a second video acquisition mode and sending the video to a corresponding second request module; The first video acquisition request is: generated by a first preset signal when the target system has not completed startup; The second video acquisition request is: generated by a second preset signal after the target system is started up; The step of acquiring the corresponding camera video according to the second video acquisition mode and sending it to the corresponding second request module comprises: A1. Determine a target camera according to the second video acquisition request; A2, determining in turn whether each of the second video acquisition requests is a third video acquisition request, if yes, proceeding to the next step, otherwise proceeding to step A6, the third video acquisition request is a multi-channel video acquisition request for the same target camera; A3. Determine the number of access requests for each camera according to the third video acquisition request; A4. Mapping the physical channels of the corresponding cameras according to the number of each access request, obtaining a corresponding number of video channels and generating a corresponding number of camera device nodes; A5. Open each of the camera device nodes; A6. Collect a corresponding number of camera videos and send them to the second request module; When the vehicle-mounted system is a single system, the target system is a U-BOOT system; When the vehicle-mounted system is a dual system, the target system is the host system.

2. A camera video processing method as claimed in claim 1, characterized in that: The first preset signal is a reversing signal, and the second preset signal is a plurality of driving signals including the reversing signal.

3. A camera video processing system, applied to a single-system vehicle-mounted system, for running a camera video processing method as claimed in any one of claims 1 to 2, characterized in that: It includes a camera multiplexing component, a video acquisition module, a first request module, and a second request module; the camera multiplexing component and at least one group of cameras are arranged in the hardware layer; the video acquisition module is arranged in the system layer; the first request module and the second request module are arranged in the application layer; The camera is used to obtain video around the vehicle and output video data; The camera multiplexing component is used to map a single camera hardware channel to obtain multiple hardware channels corresponding to different request modules through channel mapping; The video acquisition module is used to access each camera of the hardware layer according to the acquisition request, and send the read video data to the corresponding first request module or the second request module; The first request module is used to generate a first video acquisition request when the vehicle-mounted system has not yet been started; The second request module includes a plurality of function request units, which are used to generate a second video acquisition request after the vehicle-mounted system is started.

4. A camera video processing method as claimed in claim 3, characterized in that: The first request module is a fast reversing module set at the system layer, which is used to generate an acquisition request for obtaining the rearview camera video according to the reversing signal when the system has not completed startup; the second request module is a plurality of function request units set at the application layer, which is used to generate an acquisition request for obtaining at least one of the camera videos after the system has completed startup.

5. A camera video processing system, applied to a dual-system vehicle-mounted system, for running a camera video processing method as described in any one of claims 1 to 2, characterized in that: The system comprises a camera multiplexing component, a video acquisition module, a first request module, a second request module, a front-end virtual driver, a back-end virtual service, and a back-end virtual driver: the camera multiplexing component and at least one group of cameras are arranged in the hardware layer; the video acquisition module is arranged in the application layer of the host machine, the first request module is arranged in the application layer of the host machine, the second request module comprises a plurality of function request units arranged in the client machine application layer, the front-end virtual driver in the client machine system layer, and the back-end virtual driver and the back-end virtual service arranged in the host machine system layer; The camera is used to obtain video around the vehicle and output video data; The camera multiplexing component is used to map a single camera hardware channel to obtain multiple hardware channels corresponding to different request modules through channel mapping; The front-end virtual driver is used to process the access request of each request module to access the camera, and send a collection request to the back-end virtual service; The backend virtual service is used to convert the collection request sent by the frontend virtual driver into a corresponding operation instruction; The backend virtual driver is used to receive the operation instruction issued by the backend virtual service, and call the video acquisition module to complete the acquisition of video data; The video acquisition module is used to send the video data to the corresponding first request module or the second request module according to the hardware channel; The first request module is used to generate a second video acquisition request when the vehicle-mounted system has not yet been started; The second request module includes a plurality of function request units, which are used to generate a second video acquisition request after the vehicle-mounted system is started.

6. A camera video processing system as claimed in claim 5, characterized in that: It also includes a virtual layer, which is used to manage the shared memory space, provide a virtual machine environment for the host machine and the client machine, and realize the front-end and back-end communication of multi-channel camera communication instructions; The first request module is a fast reversing module set in the host application layer, which is used to generate a collection request for obtaining the rearview camera video according to the reversing signal before the client system is started; The second request module is a plurality of functional modules arranged in the client application layer, and is used to generate a collection request for obtaining at least one camera video after the client system is started.