A camera calling method, device, vehicle and medium under virtualized management
By introducing a virtualization management architecture into the vehicle control system in the smart cockpit scenario, and selecting the pass-through or paravirtualization call method according to the camera call configuration parameters, the problems of scalability and portability of the paravirtualization solution are solved. Implemented support for multi-system and multi-channel scenarios.
Patent Information
- Application Number
- CN202210770377.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-06-30
AI Technical Summary
In the smart cockpit scenario, the existing paravirtualized camera calling scheme reduces the scalability and portability of the client camera driver, making it difficult to support multi-system, multi-channel and multi-purpose scenarios.
By introducing a virtualization management architecture into the vehicle's vehicle control system, it is decided whether to use central control system pass-through call or para-virtualization call according to the camera call configuration parameters, and the camera driver loading method is controlled to support both camera pass-through and para-virtualization. method of calling.
It improves the scalability and portability of the camera driver, supports multi-channel and multi-use scenarios across systems, and enhances the flexibility of camera application in smart cockpits.
Smart Images

Figure CN115098264B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of virtualization technology, and in particular to a camera calling method, device, vehicle and medium under virtualization management. Background Art
[0002] The computing and storage capabilities of automotive chips in smart cockpit scenarios are becoming increasingly powerful, and can support the operation of more and more operating systems. Among them, virtualization technology based on Hypervisor is widely used, and this technology mainly conducts in-depth research on the sharing and usage efficiency of different hardware devices.
[0003] In the early days, the virtualization devices studied by hypervisors were mainly network cards and disks, and gradually extended to sound cards, graphics cards, and other devices. Compared with full virtualization devices, paravirtualization devices have higher performance, but not as good as device pass-through technology. In addition, the paravirtualization solutions in this research field vary, depending on factors such as application scenarios and device performance requirements.
[0004] Modern smart cockpit scenarios often include multiple display systems such as the central control system, instrument system, rear-seat entertainment screen, and 360-degree panoramic view. For multi-system operation scenarios using cameras, the Camera semi-virtualization solution is usually used, but this solution reduces the scalability and portability of the client Camera driver. Summary of the invention
[0005] The embodiments of the present invention provide a camera calling method, device, vehicle and medium under virtualization management to support both camera direct pass and semi-virtualization, and support cross-system multi-channel and multi-use scenarios.
[0006] In a first aspect, this embodiment provides a camera calling method under virtualization management, which is applied to a vehicle control system of a vehicle, wherein a virtualization management architecture is set up in the vehicle, wherein the virtualization management architecture has a host machine constructed in the vehicle control system, a central control client is constructed in the central control system of the vehicle, and an instrument client is constructed in the instrument system of the vehicle, wherein the method includes:
[0007] Get the camera configuration parameters after power-on.
[0008] If the camera call configuration parameter is a central control system direct call, control the central control client to load the camera physical driver and the instrument client to load the camera virtual driver;
[0009] If the camera call configuration parameter is a semi-virtualized call, the host machine is controlled to load the camera physical driver, and the central control client and the instrument client are controlled to load the camera virtual driver respectively.
[0010] In a second aspect, the present embodiment provides a camera calling device under virtualization management, which is integrated into a vehicle control system of a vehicle, wherein a virtualization management architecture is set up in the vehicle, wherein the virtualization management architecture has a host machine constructed in the vehicle control system, a central control client constructed in the vehicle central control system, and an instrument client constructed in the vehicle instrument system, wherein the device includes:
[0011] Parameter acquisition module, used to obtain camera call configuration parameters after power-on;
[0012] A direct calling module, used for controlling the central control client to load the camera physical driver and the instrument client to load the camera virtual driver if the camera calling configuration parameter is a central control system direct calling;
[0013] The paravirtualization calling module is used to control the host machine to load the camera physical driver and control the central control client and the instrument client to load the camera virtual driver respectively if the camera calling configuration parameter is a paravirtualization calling.
[0014] In a third aspect, this embodiment provides a vehicle, the vehicle comprising:
[0015] A vehicle control system, a central control system, an instrument system and a memory connected to the vehicle control system in communication, wherein a virtualization management architecture is set up in the vehicle, wherein the virtualization management architecture has a host machine constructed in the vehicle control system, a central control client is constructed in the vehicle's central control system, and an instrument client is constructed in the vehicle's instrument system; wherein,
[0016] The memory stores a computer program that can be executed by the vehicle control system, and the computer program is executed by the vehicle control system so that the vehicle control system can execute the camera calling method under virtualization management described in an embodiment of the present invention.
[0017] In a fourth aspect, the present embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the camera calling method under virtualization management described in any embodiment of the present invention when executed.
[0018] The embodiment of the present invention provides a camera calling method, device, vehicle and medium under virtualization management, the method is applied to the whole vehicle control system of the vehicle, the vehicle is provided with a virtualization management architecture, the virtualization management architecture is constructed with a host machine in the whole vehicle control system, a central control client is constructed in the central control system of the vehicle, and an instrument client is constructed in the instrument system of the vehicle, the method comprises: obtaining the camera calling configuration parameters after power-on startup; if the camera calling configuration parameters are direct calls to the central control system, then controlling the central control client to load the camera physical driver and the instrument client to load the camera virtual driver; if the camera calling configuration parameters are semi-virtualized calls, then controlling the host machine to load the camera physical driver, and controlling the central control client and the instrument client to load the camera virtual driver respectively. The above technical scheme determines whether the camera calling mode is a direct call to the central control system or a semi-virtualized call based on the camera calling configuration parameters, can support both direct and semi-virtualized camera modes, and supports multi-channel and multi-use scenarios across systems.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 A flowchart of a camera calling method under virtualization management provided in the first embodiment of the present invention;
[0022] Figure 2 A flowchart of a camera calling method under virtualization management provided in the second embodiment of the present invention;
[0023] Figure 2a This is a flowchart of a method for directly calling a central control system provided in Embodiment 2 of the present invention;
[0024] Figure 2b A flowchart of a semi-virtualization calling method provided in Embodiment 2 of the present invention;
[0025] Figure 3 A schematic diagram of the structure of a camera calling device under virtualized management provided in Embodiment 3 of the present invention;
[0026] Figure 4A schematic diagram of the structure of a vehicle provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "original", "target", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] Figure 1 A flow chart of a camera calling method under virtualization management is provided in Embodiment 1 of the present invention. The method can be applicable to multi-system operation scenarios using cameras. The method can be executed by a camera calling device under virtualization management. The camera calling device under virtualization management can be implemented in the form of hardware and / or software. The device can be configured in the vehicle control system of the vehicle.
[0031] In this embodiment, the virtualization management architecture refers to an architecture implemented using Hypervisor technology. Hypervisor is an intermediate software layer that runs between the basic physical server and the operating system, allowing multiple operating systems and applications to share hardware. The computer used by the Hypervisor to execute one or more virtual machines is called a host machine, and these virtual machines are called clients. The hypervisor provides a virtual operating platform to execute the client operating system and is responsible for managing the execution phase of other client operating systems; these guest operating systems share virtualized hardware resources.
[0032] The method is applied to the vehicle control system of a vehicle. A virtualization management architecture is set up in the vehicle. The virtualization management architecture has a host machine built in the vehicle control system, a central control client built in the vehicle's central control system, and an instrument client built in the vehicle's instrument system.
[0033] like Figure 1 As shown, a camera calling method under virtualization management provided in the first embodiment may specifically include the following steps:
[0034] S101, obtaining camera call configuration parameters after power-on.
[0035] In this embodiment, an extensible Camera virtualization method is used to support both camera pass-through and paravirtualization. The camera call configuration parameters refer to the Qemu parameters of the simulated processor, and only the above two methods are required through the Qemu parameter area.
[0036] Specifically, when the vehicle is powered on, the host initializes the virtualized environment. Exemplarily, the user turns on ACC ON to start the vehicle. The host initializes the virtualized environment by loading the host's root file system, loading the physical drivers of various peripherals, and building a bridge between clients. It should be noted that loading the camera physical driver is not included at this time. Get the call configuration parameters after the vehicle is powered on.
[0037] S102, determining whether the camera call configuration parameter is a direct call of the central control system or a paravirtualized call, if the camera call configuration parameter is a direct call of the central control system, executing step S103, if the camera call configuration parameter is a paravirtualized call, executing step S104.
[0038] In this step, the camera call configuration parameters are used to distinguish whether it is a direct call from the central control system or a paravirtualized call. The direct call from the central control system refers to the camera being directly connected to the central control system, and paravirtualization refers to the host machine implementing the camera physical driver loading. For direct calls from the central control system or paravirtualized calls, the corresponding Qemu parameters are different. For example, if it is a direct call from the central control system, the Qemu parameters include parameters for which system to connect to.
[0039] Specifically, after obtaining the camera call configuration parameters, determine whether the camera call configuration parameters are central control system direct calls or paravirtualized calls. If the camera call configuration parameters are central control system direct calls, indicating that the current scene is a central control system direct call, then it is necessary to execute the camera driver loading corresponding to the central control system direct call; if the camera call configuration parameters are paravirtualized calls, indicating that the current scene is a paravirtualized call, then it is necessary to execute the camera driver loading corresponding to the paravirtualization.
[0040] S103, controlling the central control client to load the camera physical driver and the instrument client to load the camera virtual driver.
[0041] Specifically, if the camera call configuration parameter is a direct call to the central control system, the camera is directly connected to the central control client. The central control client starts and loads the camera physical driver. At the same time, the instrument client starts and loads the camera virtual driver. In this step, the camera virtual driver loaded by the instrument client is the camera front-end virtual driver GG mode. After the central control client loads the camera physical driver, the central control client can capture the original image through the camera device.
[0042] It is understandable that in this embodiment, the camera is directly connected to the central control system. Of course, the camera can also be directly connected to the instrument system, or to other systems when there are multiple systems. Accordingly, the system client loads the camera physical driver, and other systems load the camera virtual driver.
[0043] S104: Control the host machine to load the camera physical driver, and control the central control client and the instrument client to load the camera virtual driver respectively.
[0044] Specifically, if the camera call configuration parameter is a semi-virtualized call, the host loads the camera physical driver. At the same time, the instrument client starts and loads the camera virtual driver. In this step, the camera virtual driver loaded by the instrument client is the camera front-end virtual driver HG mode. After the host loads the camera physical driver, the host can capture the original image through the camera device.
[0045] It is understandable that in this embodiment, the central control system and the instrument system are used as examples for description. Of course, if there are multiple systems, the camera virtual driver is loaded on the system client respectively.
[0046] The embodiment of the present invention provides a camera calling method under virtualization management, which is applied to the whole vehicle control system of a vehicle. A virtualization management architecture is set up in the vehicle. The virtualization management architecture is constructed with a host machine in the whole vehicle control system, a central control client is constructed in the central control system of the vehicle, and an instrument client is constructed in the instrument system of the vehicle. The method includes: obtaining camera calling configuration parameters after power-on startup; if the camera calling configuration parameters are direct calls to the central control system, then controlling the central control client to load the camera physical driver and the instrument client to load the camera virtual driver; if the camera calling configuration parameters are semi-virtualized calls, then controlling the host machine to load the camera physical driver, and controlling the central control client and the instrument client to load the camera virtual driver respectively. The above technical solution determines whether the camera calling method is a direct call to the central control system or a semi-virtualized call based on the camera calling configuration parameters, and can support both camera direct and semi-virtualized methods, and supports multi-channel and multi-use scenarios across systems.
[0047] Embodiment 2
[0048] Figure 2 A flow chart of a camera calling method under virtualization management provided in the second embodiment of the present invention. This embodiment is a further optimization of the above embodiment. In this embodiment, "controlling the central control client to load the camera physical driver and the instrument client to load the camera virtual driver" is further limited and optimized, and "controlling the host machine to load the camera physical driver, and controlling the central control client and the instrument client to load the camera virtual driver respectively" is limited and optimized.
[0049] like Figure 2 As shown, this embodiment 2 provides a camera calling method under virtualization management, which specifically includes the following steps:
[0050] S201, obtaining camera call configuration parameters after power-on.
[0051] S202, determine whether the camera call configuration parameter is a direct call of the central control system or a paravirtualized call. If the camera call configuration parameter is a direct call of the central control system, execute steps S203-S204; if the camera call configuration parameter is a paravirtualized call, execute steps S205-S206.
[0052] S203: If the camera call configuration parameter is a direct call to the central control system, the central control client is controlled to start, and the camera physical driver is loaded through the central control client.
[0053] Specifically, if the camera call configuration parameter is a central control system direct call, the central control client is controlled to start. Because the current scenario is to connect the camera directly to the central control client, the central control client loads the camera physical driver.
[0054] S204, controlling the instrument client to start, and loading the camera virtual driver through the instrument client.
[0055] Specifically, the instrument client is controlled to start, the camera virtual driver loaded by the instrument client is the camera front-end virtual driver GG mode, and the instrument program of the instrument client runs normally.
[0056] It should be noted that there is no specific limitation on the order in which steps S203 and S204 are executed.
[0057] S205: If the camera call configuration parameter is a semi-virtualized call, control the host machine to load the camera physical driver and virtualize the camera backend device based on the simulated processor for access by the central control client and the instrument client.
[0058] Specifically, if the camera call configuration parameter is a paravirtualized call, the host machine is controlled to load the camera physical driver, and at the same time, a virtual camera backend device is simulated through the Qemu processor for access by the client.
[0059] S206 , controlling the central control client to start, and loading the camera virtual driver through the central control client.
[0060] Specifically, the control instrument client is started, the camera virtual driver loaded by the central control client is the camera front-end virtual driver HG mode, and the instrument program of the central control client runs normally.
[0061] S207 , controlling the instrument client to start, and loading the camera virtual driver through the instrument client.
[0062] Specifically, the instrument client is controlled to start, the camera virtual driver loaded by the instrument client is the camera front-end virtual driver HG mode, and the instrument program of the instrument client runs normally.
[0063] It should be noted that there is no specific limitation on the order in which steps S205, S206 and S207 are executed.
[0064] At this point, the camera driver models related to the host and two clients have been loaded.
[0065] The embodiment of the present invention specifies the specific steps of loading the camera driver model when the central control system is directly called, and the specific steps of loading the camera driver model when the paravirtualization is called. Using this method, the camera call mode is determined to be a central control system direct call or a paravirtualization call based on the camera call configuration parameters, which can support both camera direct call and paravirtualization, support cross-system multi-channel multi-use scenarios, and improve the scalability and portability of the client camera driver.
[0066] As an optional embodiment of the embodiment of the present invention, this optional embodiment, based on the above embodiment, after directly calling the camera through the central control system, also includes: controlling the camera device through the camera physical driver in the central control client to capture the original image and form an image on the central control screen and the instrument screen.
[0067] Specifically, if the camera call configuration parameter is a direct call to the central control system, after the camera is directly called by the central control system, the camera device works normally, and the camera physical driver in the central control client controls the camera device to capture the original image. After the central control system captures multiple images, it renders and fuses them to the virtual screen through the local graphics processing unit (GPU), and then passes the virtual screen image to the instrument system through the shared memory.
[0068] Furthermore, the camera device is controlled by the camera physical driver in the central control client to capture the original image and image it on the central control screen and the instrument screen, including:
[0069] a1) The camera device is controlled by the camera physical driver in the central control client to capture various original images.
[0070] Specifically, the camera device works normally, and the camera physical driver in the central control client controls the camera device to capture various original images. For example, the external scenes of multiple cameras can be obtained.
[0071] b1) Controlling the central control client to process each channel of original images according to a set image processing algorithm, obtain a first processing result and output the first processing result to a virtual screen of the central control client.
[0072] Among them, setting the image processing algorithm can be understood as GPU rendering fusion, stitching and rasterizing multiple original images, etc.
[0073] Specifically, the central control client is controlled to render and fuse the collected multiple original images through the local GPU, and to perform splicing and rasterization processing on the multiple original images. The central control client outputs the rendering fusion result as the first processing result to the local virtual screen, and other applications can copy the frame buffer data corresponding to the virtual screen for secondary business development.
[0074] c1) Determine whether the current scene supports cross-system camera reuse. If yes, execute step d1); if not, execute e1).
[0075] Specifically, determine whether the current scene supports cross-system multiplexing of multiple cameras. If cross-system multiplexing of cameras is supported, the frame buffer data on the virtual screen of the central control client can be shared with the instrument client. If cross-system multiplexing of cameras is not supported, the central control interface can be displayed in combination with the local application of the central control client.
[0076] d1) Based on the first processing result, a first target image is generated and presented on the instrument screen.
[0077] Specifically, if the current scene supports multiple cameras across systems, the first processing result on the virtual screen of the central control client, that is, the frame buffer data, is shared with the instrument client. After obtaining the first processing result, the instrument client can directly display the instrument interface based on the first processing result, or perform secondary rendering on the first processing result before displaying the instrument interface.
[0078] Optionally, based on the first processing result, generating a first target image and presenting it on a meter screen includes:
[0079] d11) Establishing a first data transmission channel between the central control client and the instrument client.
[0080] Specifically, a first data transmission channel is established between the central control client and the instrument client. The first data transmission channel is used to share the image data in the central control client with the instrument client. The first data transmission channel is an IVShm-GG (The Shared Memory Between Guest OS and Guest OS) channel.
[0081] d12) Control the central control client to copy the first processing result on the virtual screen to the first data transmission channel and inform the instrument client.
[0082] Specifically, the central control client copies the first processing result, that is, the frame buffer data, to the first data transmission channel, and then informs the instrument client through a cross-system process synchronization method.
[0083] d13) Controlling the camera virtual driver of the instrument client to copy the first processing result from the first data transmission channel.
[0084] Specifically, the camera virtual driver of the control instrument client copies the first processing result of the central control client virtual screen from the first data transmission channel, and uses the data as the "original image" of the camera of the instrument client.
[0085] d14) Determine whether the instrument client supports secondary processing of the first processing result, if so, execute d15), if not, execute d16).
[0086] Specifically, it is determined whether the instrument client supports secondary rendering processing of the "original image" of the camera virtual driver.
[0087] d15) If yes, perform secondary processing on the first processing result to generate a first target image and present it on the instrument screen.
[0088] Specifically, if the instrument client supports secondary processing of the first processing result, the first processing result is secondary rendered by the local GPU in combination with the instrument interface and other applications, and the final image is output to the instrument screen. Exemplarily, the instrument client secondary renders the obtained "original image" and the instrument interface and navigation icon by the local GPU, and the final image is output to the instrument screen.
[0089] d16) If not, based on the first processing result and the instrument screen control, a first target image is generated and presented on the instrument screen.
[0090] Specifically, if the instrument client does not support secondary processing of the first processing result, the final image is presented on the instrument screen based on the obtained first processing result and the instrument screen control. Exemplarily, the instrument client obtains the "original image" to implement the instrument client's Around View Monitor (AVM) function or other functions.
[0091] e1) Based on the first processing result, a second target image is generated and presented on the central control screen.
[0092] Specifically, if the current scene does not support multiplexing of multiple cameras across systems, the application of the central control client obtains the first processing result, that is, the frame buffer data, and adds screen controls to implement local application functions. For example, based on the frame buffer data, a touch screen control is added to implement the local AVM function.
[0093] Optionally, based on the first processing result, the step of generating a second target image and presenting it on the central control screen can be expressed as: the application controlling the central control client obtains the first processing result from the virtual screen; based on the first processing result and the central control screen control, generates a second target image and presents it on the central control screen.
[0094] In this step, the application program controlling the central control client obtains the first processing result from the virtual screen, and generates a final image based on the first processing result and the central control screen control and outputs it to the central control screen as the second target image.
[0095] This optional embodiment specifies the steps of controlling the camera device to capture the original image and image it on the central control screen and the instrument screen through the physical driver of the camera in the central control client after determining that the camera is called directly through the central control system. The camera is directly connected to the central control system. After the central control system captures multiple images, it outputs them to the virtual screen through local GPU rendering and fusion. The image on the virtual screen is then passed to the instrument system through shared memory. After the instrument system camera virtual driver obtains the "original image", it can fuse the "original image" with the instrument interface for secondary rendering to complete the final instrument interface display. The technical solution provided by this optional embodiment supports cross-system multi-channel and multi-use scenarios.
[0096] As an optional embodiment of the embodiment of the present invention, this optional embodiment, based on the above embodiment, after calling the camera through semi-virtualization, also includes: controlling the camera device through the camera physical driver in the host machine to capture the original image and form an image on the central control screen and the instrument screen.
[0097] Specifically, if the camera call configuration parameter is a semi-virtualized call, after the camera is called through semi-virtualization, the camera device works normally, and the host implements the camera physical driver to capture the original image and store the processed image signal in the random access memory RAM. Assuming that the cache space is refreshed 60 frames per second, the Qemu process of the central control client and the instrument client copies the original image data from the cache and transmits it to the two clients every second. The central control client processes the original image data through the local GPU and generates the final image output to the central control screen. The instrument client processes the original image data through the local GPU and generates the final image output to the instrument screen.
[0098] Furthermore, the original image is captured by the physical driver of the camera in the host machine and imaged on the central control screen and the instrument screen, including:
[0099] a2) Establishing a second data transmission channel between the instrument client and the host machine, and a third data transmission channel between the central control client and the host machine.
[0100] Specifically, a second data transmission channel is established between the instrument client and the host. The second data transmission channel is used to share the image data in the host with the instrument client. The second data transmission channel is the IVShm-HG (The Shared Memory Between Host OS and Guest OS) channel.
[0101] A third data transmission channel is established between the central control client and the host. The third data transmission channel is used to share the image data in the host with the central control client. The third data transmission channel is the IVShm-HG (The Shared Memory Between Host OS and Guest OS) channel.
[0102] b2) controlling the camera device to capture each channel of original images through the camera physical driver in the host machine and copying each channel of original images to the second data transmission channel and the third data transmission channel respectively.
[0103] Specifically, the camera device works normally, and the camera physical driver in the host machine controls the camera device to capture various original images. For example, the external scenes of multiple cameras can be obtained.
[0104] The original images of each channel are copied to the second data transmission channel and the third data transmission channel respectively, and the central control client and the instrument client are informed based on the synchronization method.
[0105] c2) Controlling the camera virtual driver of the instrument client to copy each channel of original images from the second data transmission channel, and based on each channel of original images, generating a fourth target image and presenting it on the instrument screen.
[0106] Specifically, the camera virtual driver of the instrument client is controlled to copy each channel of original images from the second data transmission channel, and render or fuse each channel of original images to generate a final image recorded as the fourth target image and output it to the instrument screen for presentation.
[0107] Optionally, based on the original images, the step of generating a fourth target image and presenting it on the instrument screen can be described as follows: controlling the instrument client to process the original images according to the set image processing algorithm to obtain a second processing result; based on the second processing result and the instrument screen control, generating a fourth target image and presenting it on the instrument screen.
[0108] Among them, setting the image processing algorithm can be understood as GPU rendering fusion, stitching and rasterizing multiple original images, etc.
[0109] Specifically, the control instrument client renders and fuses the collected multiple original images through the local GPU, and performs splicing and rasterization processing on the multiple original images, and uses the processing result as the second processing result. Based on the second processing result and the instrument screen control, a fourth target image is generated and presented on the instrument screen.
[0110] d2) Controlling the camera virtual driver of the central control client to copy each channel of original images from the third data transmission channel, and based on each channel of original images, generating a fifth target image and presenting it on the central control screen.
[0111] Specifically, the camera virtual driver of the central control client is controlled to copy each channel of original images from the third data transmission channel, and render or fuse each channel of original images to generate a final image recorded as the fifth target image and output it to the central control screen for presentation.
[0112] Optionally, based on the original images, the step of generating a fifth target image and presenting it on the central control screen can be expressed as: controlling the central control client to process the original images according to the set image processing algorithm to obtain a third processing result; based on the third processing result and the central control screen controls, generating a fifth target image and presenting it on the central control screen.
[0113] Similarly, setting the image processing algorithm can be understood as GPU rendering fusion, stitching and rasterizing multiple original images, etc.
[0114] Specifically, the central control client is controlled to render and fuse the collected multiple original images through the local GPU, and the multiple original images are spliced, rasterized, etc., and the processing result is used as the third processing result. Based on the third processing result and the central control screen control, a fifth target image is generated and presented on the central control screen.
[0115] This optional embodiment specifies the steps of controlling the camera device to capture the original image and image it on the central control screen and the instrument screen through the camera physical driver in the host machine after determining to call the camera through semi-virtualization. The camera physical driver is implemented by the host machine, and the host machine controls the camera device through the camera physical driver to obtain the original image. The data of the original image after image signal processing is stored in the memory. The central control system and the instrument system copy the image data from the cache and transmit it to the two systems, and further perform image rendering and fusion processing to form the final image, which is presented on the central control screen and the instrument screen respectively. The technical solution provided by this optional embodiment supports cross-system multi-channel and multi-use scenarios.
[0116] In order to more clearly describe the embodiment of the present invention, a multi-system operation scenario of a camera is taken as an example for description, and it is assumed that the multi-system refers to a central control system and an instrument system. Figure 2a This is a flowchart of a method for directly calling a central control system provided in Embodiment 2 of the present invention. Figure 2b This is a flow chart of a semi-virtualization calling method provided in the second embodiment of the present invention. Figure 2a As shown, the camera calling steps under virtualization management can be expressed as:
[0117] S1. Get the camera configuration parameters after power-on.
[0118] S2. Determine whether the camera call configuration parameter is a central control system direct call or a paravirtualized call. If it is a central control system direct call, execute steps S3 to S15; if it is a paravirtualized call, execute steps S3' to S15'.
[0119] Among them, steps S3 to S15 are steps executed by direct calling of the central control system, which can be specifically expressed as follows:
[0120] S3. Control the central control client to start, and load the camera physical driver through the central control client.
[0121] S4. Control the instrument client to start, and load the camera virtual driver through the instrument client.
[0122] S5. Control the camera device to capture various original images through the camera physical driver in the central control client.
[0123] S6. Control the central control client to process the original images according to the set image processing algorithm to obtain a first processing result and output the first processing result to the virtual screen of the central control client.
[0124] S7. Determine whether the current scene supports cross-system camera reuse. If so, execute step S8; if not, execute step S14.
[0125] S8. If the current scenario supports cross-system multiplexing of cameras, a first data transmission channel is established between the central control client and the instrument client.
[0126] S9. Control the central control client to copy the first processing result on the virtual screen to the first data transmission channel and inform the instrument client.
[0127] S10 , controlling the camera virtual driver of the instrument client to copy the first processing result from the first data transmission channel.
[0128] S11. Determine whether the instrument client supports secondary processing of the first processing result. If so, execute step S12; if not, execute step S13.
[0129] S12: Perform secondary processing on the first processing result to generate a first target image and present it on the instrument screen.
[0130] S13: Generate a first target image based on the first processing result and the instrument screen control and present it on the instrument screen.
[0131] S14: Control the application program of the central control client to obtain the first processing result from the virtual screen.
[0132] S15: Generate a second target image based on the first processing result and the central control screen control and present it on the central control screen.
[0133] like Figure 2b As shown, steps S3' to S15' are steps for paravirtualization call execution, and steps S3' to S9' are steps for the instrument system, which can be specifically expressed as:
[0134] S3', controlling the host machine to load the camera physical driver and simulate the processor based virtual camera backend device.
[0135] S4', control the instrument client to start, and load the camera virtual driver through the instrument client.
[0136] S5', establishing a second data transmission channel between the instrument client and the host machine.
[0137] S6′, controlling the camera device to capture each channel of original images through the camera physical driver in the host machine and copying each channel of original images to the second data transmission channel respectively.
[0138] S7', controlling the camera virtual driver of the instrument client to copy each channel of original images from the second data transmission channel.
[0139] S8', controlling the instrument client to process each channel of original images according to the set image processing algorithm to obtain a second processing result.
[0140] S9', generating a fourth target image based on the second processing result and the instrument screen control and presenting it on the instrument screen.
[0141] Steps S10' to S15' are steps for the central control system, which can be specifically described as follows:
[0142] S10', controlling the central control client to start, and loading the camera virtual driver through the central control client.
[0143] S11', establishing a third data transmission channel between the central control client and the host machine.
[0144] S12', controlling the camera device to capture each channel of original images through the camera physical driver in the host machine and copying each channel of original images to the third data transmission channel respectively.
[0145] S13', controlling the camera virtual driver of the central control client to copy each channel of original images from the third data transmission channel.
[0146] S14', controlling the central control client to process the original images of each channel according to the set image processing algorithm to obtain a third processing result.
[0147] S15′, generating a fifth target image based on the third processing result and the central control screen control and presenting it on the central control screen.
[0148] It can be understood that in the semi-virtualized calling mode, the screen generation of the instrument system does not affect the screen generation of the instrument system, and both obtain the original image from the host machine for related image processing and presentation.
[0149] Embodiment 3
[0150] Figure 3 The schematic diagram of the structure of a camera calling device under virtualized management provided in the third embodiment of the present invention is applicable to the multi-system operation scenario using the camera. The device can be implemented in the form of hardware and / or software and is generally integrated in the vehicle control system of the vehicle. The vehicle is provided with a virtualized management architecture. The virtualized management architecture is constructed with a host machine in the vehicle control system, a central control client is constructed in the vehicle's central control system, and an instrument client is constructed in the vehicle's instrument system. Figure 3 As shown, the device includes: a parameter acquisition module 31, a direct calling module 32 and a paravirtualization calling module 33, wherein:
[0151] The parameter acquisition module 31 is used to obtain the camera call configuration parameters after power-on;
[0152] The direct calling module 32 is used to control the central control client to load the camera physical driver and the instrument client to load the camera virtual driver if the camera calling configuration parameter is the central control system direct calling;
[0153] The paravirtualization calling module 33 is used to control the host machine to load the camera physical driver and control the central control client and the instrument client to load the camera virtual driver respectively if the camera calling configuration parameter is a paravirtualization calling.
[0154] Optionally, the direct calling module 32 is specifically used for:
[0155] Control the startup of the central control client and load the camera physical driver through the central control client;
[0156] Control the instrument client to start and load the camera virtual driver through the instrument client.
[0157] Optionally, the paravirtualization calling module 33 is specifically used for:
[0158] Control the host machine to load the camera physical driver and simulate the processor-based virtual camera backend device for access by the central control client and instrument client;
[0159] Control the startup of the central control client and load the camera virtual driver through the central control client;
[0160] Control the instrument client to start and load the camera virtual driver through the instrument client.
[0161] Optionally, the device further includes a first imaging module, configured to:
[0162] The camera device is controlled by the camera physical driver in the central control client to capture the original image and form an image on the central control screen and instrument screen.
[0163] Furthermore, the first imaging module includes:
[0164] The first capturing unit is used to control the camera device to capture various original images through the camera physical driver in the central control client;
[0165] A first result determination unit, used to control the central control client to process each channel of original images according to a set image processing algorithm, obtain a first processing result, and output the first processing result to a virtual screen of the central control client;
[0166] The target image presentation unit is used to determine whether the current scene supports cross-system camera reuse. If so, a first target image is generated based on the first processing result and presented on the instrument screen. If not, a second target image is generated based on the first processing result and presented on the central control screen.
[0167] Optionally, the target image presentation unit includes an instrument image subunit, and the instrument image subunit is specifically used for:
[0168] Establishing a first data transmission channel between the central control client and the instrument client;
[0169] Controlling the central control client to copy the first processing result on the virtual screen to the first data transmission channel and inform the instrument client;
[0170] Controlling the camera virtual driver of the instrument client to copy the first processing result from the first data transmission channel;
[0171] Determining whether the instrument client supports secondary processing of the first processing result;
[0172] If yes, the first processing result is subjected to secondary processing to generate a first target image and present it on the instrument screen;
[0173] If not, a first target image is generated based on the first processing result and the instrument screen control and presented on the instrument screen.
[0174] Optionally, the target image presentation unit includes a central control image subunit, and the central control image subunit is specifically used for:
[0175] Controlling the application program of the central control client to obtain the first processing result from the virtual screen;
[0176] Based on the first processing result and the central control screen control, a second target image is generated and presented on the central control screen.
[0177] Optionally, the device further comprises a second imaging module, configured to:
[0178] The camera physical driver in the host machine controls the camera device to capture the original image and form an image on the central control screen and instrument screen.
[0179] Optionally, the second imaging module includes:
[0180] A channel establishment module, used to establish a second data transmission channel between the instrument client and the host machine, and a third data transmission channel between the central control client and the host machine;
[0181] An image copy module, used for controlling the camera device to capture each channel of original images through the camera physical driver in the host machine and copying each channel of original images to the second data transmission channel and the third data transmission channel respectively;
[0182] The instrument image presentation unit is used to control the camera virtual driver of the instrument client to copy the original images from the second data transmission channel, and generate a fourth target image based on the original images to present on the instrument screen;
[0183] The central control image presentation unit is used to control the camera virtual driver of the central control client to copy each channel of original images from the third data transmission channel, and generate a fifth target image based on each channel of original images and present it on the central control screen.
[0184] Furthermore, the instrument image presentation unit is specifically used for:
[0185] The control instrument client processes each channel of original images according to a set image processing algorithm to obtain a second processing result;
[0186] Based on the second processing result and the instrument screen control, a fourth target image is generated and presented on the instrument screen.
[0187] Furthermore, the central control image presentation unit is specifically used for:
[0188] Controlling the central control client to process the original images of each channel according to the set image processing algorithm to obtain a third processing result;
[0189] Based on the third processing result and the central control screen control, a fifth target image is generated and presented on the central control screen.
[0190] The camera calling device under virtualization management provided in the embodiment of the present invention can execute the camera calling method under virtualization management provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0191] Embodiment 4
[0192] Figure 4 This is a schematic diagram of the structure of a vehicle provided in Embodiment 4 of the present invention. Figure 4 As shown, the vehicle comprises:
[0193] A vehicle control system 41, a central control system 42, an instrument system 43 and a memory 44 connected to the vehicle control system in communication, wherein a virtualization management architecture is set up in the vehicle, wherein the virtualization management architecture has a host machine constructed in the vehicle control system, a central control client is constructed in the vehicle's central control system, and an instrument client is constructed in the vehicle's instrument system; wherein,
[0194] The memory stores a computer program that can be executed by the vehicle control system, and the computer program is executed by the vehicle control system so that the vehicle control system can execute the camera calling method under virtualization management described in any of the above embodiments.
[0195] Embodiment 5
[0196] Embodiment 5 of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a camera calling method under virtualization management when executed by a computer processor, the method comprising:
[0197] Get the camera configuration parameters after power-on.
[0198] If the camera call configuration parameter is a central control system direct call, control the central control client to load the camera physical driver and the instrument client to load the camera virtual driver;
[0199] If the camera call configuration parameter is a semi-virtualized call, the host machine is controlled to load the camera physical driver, and the central control client and the instrument client are controlled to load the camera virtual driver respectively.
[0200] Of course, the computer executable instructions of a storage medium including computer executable instructions provided by an embodiment of the present invention are not limited to the method operations described above, and can also execute related operations in the camera calling method under virtualization management provided by any embodiment of the present invention.
[0201] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0202] It is worth noting that in the embodiment of the camera calling device under the above-mentioned virtualization management, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0203] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A camera calling method under virtualization management, characterized in that: A whole vehicle control system applied to a vehicle, wherein a virtualized management architecture is set up in the vehicle, wherein the virtualized management architecture has a host machine constructed in the whole vehicle control system, a central control client is constructed in the central control system of the vehicle, and an instrument client is constructed in the instrument system of the vehicle, wherein the method comprises: Get the camera configuration parameters after power-on. If the camera call configuration parameter is a central control system direct call, control the central control client to load the camera physical driver and the instrument client to load the camera virtual driver; After the camera is directly called through the central control system, it also includes: Control the camera device to capture the original image and form an image on the central control screen and the instrument screen through the camera physical driver in the central control client; The method of controlling the camera device to capture the original image and forming an image on the central control screen and the instrument screen through the physical camera driver in the central control client includes: Controlling the camera device to capture various original images through the camera physical driver in the central control client; Controlling the central control client to process the original images according to a set image processing algorithm, obtain a first processing result, and output the first processing result to a virtual screen of the central control client; Determine whether the current scene supports cross-system camera reuse, and if so, generate a first target image based on the first processing result and present it on the instrument screen; if not, generate a second target image based on the first processing result and present it on the central control screen; If the camera call configuration parameter is a semi-virtualized call, controlling the host machine to load the camera physical driver, and controlling the central control client and the instrument client to load the camera virtual driver respectively; After calling the camera through the paravirtualization, it also includes: Controlling the camera device to capture the original image and forming an image on the central control screen and the instrument screen through the camera physical driver in the host machine; The method of capturing the original image by physically driving the camera in the host machine and imaging it on the central control screen and the instrument screen includes: Establishing a second data transmission channel between the instrument client and the host machine, and a third data transmission channel between the central control client and the host machine; Controlling the camera device to capture each channel of original images through the camera physical driver in the host machine and copying each channel of original images to the second data transmission channel and the third data transmission channel respectively; Controlling the camera virtual driver of the instrument client to copy the original images from the second data transmission channel, and generating a fourth target image based on the original images to present on the instrument screen; The camera virtual driver of the central control client is controlled to copy the original images from the third data transmission channel, and based on the original images, a fifth target image is generated and presented on the central control screen.
2. The method according to claim 1, characterized in that The controlling the central control client to load the camera physical driver and the instrument client to load the camera virtual driver includes: Control the central control client to start, and load the camera physical driver through the central control client; The instrument client is controlled to start, and a camera virtual driver is loaded through the instrument client.
3. The method according to claim 1, characterized in that The controlling the host machine to load the camera physical driver, the central control client to load the camera virtual driver, and the instrument client to load the camera virtual driver includes: Control the host machine to load the camera physical driver and simulate the processor based virtual camera backend device for the central control client and the instrument client to access; Control the central control client to start, and load the camera virtual driver through the central control client; The instrument client is controlled to start, and a camera virtual driver is loaded through the instrument client.
4. The method according to claim 1, characterized in that: The step of generating a first target image based on the first processing result and presenting the image on the instrument screen includes: Establishing a first data transmission channel between the central control client and the instrument client; Controlling the central control client to copy the first processing result on the virtual screen to the first data transmission channel and inform the instrument client; Controlling the camera virtual driver of the instrument client to copy the first processing result from the first data transmission channel; Determining whether the instrument client supports secondary processing of the first processing result; If yes, the first processing result is subjected to secondary processing to generate a first target image and present it on the instrument screen; If not, a first target image is generated based on the first processing result and the instrument screen control and presented on the instrument screen.
5. The method according to claim 1, characterized in that The generating a second target image based on the first processing result and presenting it on the central control screen includes: Controlling the application of the central control client to obtain a first processing result from the virtual screen; Based on the first processing result and the central control screen control, a second target image is generated and presented on the central control screen.
6. The method according to claim 1, characterized in that The generating a fourth target image based on the original images of each channel and presenting it on the instrument screen includes: Controlling the instrument client to process the original images according to a set image processing algorithm to obtain a second processing result; Based on the second processing result and the instrument screen control, a fourth target image is generated and presented on the instrument screen.
7. The method according to claim 1, characterized in that The generating a fifth target image based on the original images of each channel and presenting it on the central control screen includes: Controlling the central control client to process the original images according to a set image processing algorithm to obtain a third processing result; Based on the third processing result and the central control screen control, a fifth target image is generated and presented on the central control screen.
8. A camera calling device under virtualization management, characterized in that: The device is integrated into a vehicle control system of a vehicle, wherein a virtualized management architecture is set up in the vehicle, wherein a host machine is constructed in the vehicle control system, a central control client is constructed in the central control system of the vehicle, and an instrument client is constructed in the instrument system of the vehicle. The device comprises: Parameter acquisition module, used to obtain camera call configuration parameters after power-on; A direct calling module, used for controlling the central control client to load the camera physical driver and the instrument client to load the camera virtual driver if the camera calling configuration parameter is a central control system direct calling; Also included is a first imaging module, configured to: The camera device is controlled by the camera physical driver in the central control client to capture the original image and form an image on the central control screen and instrument screen; Wherein, the first imaging module includes: The first capturing unit is used to control the camera device to capture various original images through the camera physical driver in the central control client; A first result determination unit, used to control the central control client to process each channel of original images according to a set image processing algorithm, obtain a first processing result, and output the first processing result to a virtual screen of the central control client; a target image presentation unit, configured to determine whether the current scene supports cross-system camera reuse, and if so, to generate a first target image based on the first processing result and present it on the instrument screen; and if not, to generate a second target image based on the first processing result and present it on the central control screen; A paravirtualization calling module, used for controlling the host machine to load the camera physical driver and controlling the central control client and the instrument client to load the camera virtual driver respectively if the camera calling configuration parameter is a paravirtualization calling; Also included is a second imaging module, configured to: The camera device is controlled by the camera physical driver in the host machine to capture the original image and form an image on the central control screen and instrument screen; Wherein, the second imaging module includes: A channel establishment module, used to establish a second data transmission channel between the instrument client and the host machine, and a third data transmission channel between the central control client and the host machine; An image copy module, used for controlling the camera device to capture each channel of original images through the camera physical driver in the host machine and copying each channel of original images to the second data transmission channel and the third data transmission channel respectively; The instrument image presentation unit is used to control the camera virtual driver of the instrument client to copy the original images from the second data transmission channel, and generate a fourth target image based on the original images to present on the instrument screen; The central control image presentation unit is used to control the camera virtual driver of the central control client to copy each channel of original images from the third data transmission channel, and generate a fifth target image based on each channel of original images and present it on the central control screen.
9. A vehicle, characterized in that: The vehicle comprises: A vehicle control system, a central control system, an instrument system and a memory connected to the vehicle control system in communication, wherein a virtualization management architecture is set up in the vehicle, wherein the virtualization management architecture has a host machine constructed in the vehicle control system, a central control client is constructed in the vehicle's central control system, and an instrument client is constructed in the vehicle's instrument system; wherein, The memory stores a computer program that can be executed by the vehicle control system, and the computer program is executed by the vehicle control system so that the vehicle control system can execute the camera calling method under virtualization management as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the camera calling method under virtualization management according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Vehicle-mounted image starting method and system based on virtualization and readable storage medium
CN109831624A
Method and system for optimizing virtualization performance of Shenwei platform storage input and output equipment
CN111796912A
Screen display method, vehicle and computer storage medium
CN112644276A
Cockpit domain controller system based on i. MX8 platform and Xen technology and application method
CN113050483A
System and method for realizing vehicle-mounted virtual reality and vehicle
CN114461070A
