Vehicle panoramic image hot plug recovery method and device
Through the collaborative work between the AVM system, deserializer, ISP subsystem and AIS system in the car, the problem of black screen in the panoramic image caused by the disconnection of the camera link is solved, and the data flow recovery and recovery during the hot swap process are realized. Distribution ensures the normal progress of video streaming and improves the system's fault tolerance and user experience.
Patent Information
- Application Number
- CN202410811615.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-06
AI Technical Summary
In cars, the physical link of the camera is disconnected, causing the panoramic imaging system to fail to work properly. Especially during the hot-swapping process, VFE hardware resource allocation is random and unstable, resulting in video stream reporting failure, resulting in a black screen for 360 panoramic images, affecting users. use.
By establishing a connection between the AVM system, deserializer, ISP subsystem and AIS system, the video data is obtained for deserialization and decoding, and when a hot plug event is detected, the CCI subsystem is reset, released and reallocated VFE hardware resources ensure the recovery and distribution of data streams, add active detection logic for hot-swappable data streams, monitor DTC fault signals to generate fault codes and adapt algorithm processing.
The self-recovery function is implemented after the camera link is disconnected, ensuring the continuation of the video streaming operation, improving the fault tolerance of the host, avoiding the black screen of the panoramic image, and improving the user experience.
Smart Images

Figure CN118612368A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle camera management, and more specifically, to a vehicle panoramic image hot-swap recovery method and device. Background Art
[0002] At present, in the automotive field, with the development of automobile electrification and intelligence, the number of cameras used in automobiles is increasing. The disconnection of the physical link of the camera will cause AVM (panoramic monitoring image system) problems, including black screen of some or all viewing angles, or inability to enter the image interface. In the actual use of the vehicle, due to the aging of the connector, frequent plugging and unplugging leading to loose connectors, etc., the physical link between the IVI (in-vehicle infotainment system) host and the Camera module may be temporarily disconnected, resulting in the inability of visual applications such as AVM to continue working. At this time, even if the physical link is restored, the link inside the host cannot be restored and can only be restored by restarting.
[0003] Currently, the hot-swap function is affected by the VFE (Qualcomm Camera subsystem, used to process and decode video data) hardware management module inside the 6125 chip. Each VFE hardware resource corresponds to three data stream channels; when four-way streaming is performed, two data stream channels under the VFE hardware will be used, and the VFE hardware channel resources are currently randomly allocated. During the hot-swap process, the VFE hardware will probabilistically not report the video stream, resulting in the application being unable to obtain the video stream.
[0004] Therefore, according to the description in the prior art, when the vehicle is driving, it is easy for the camera harness to loosen or the camera link to be disconnected, resulting in a black screen for the 360 panoramic image, affecting user use and posing risks. Summary of the invention
[0005] An object of the present invention is to provide a vehicle panoramic image hot-swap recovery method and device to solve the aforementioned problem that the panoramic image cannot be self-restored during the hot-swap process.
[0006] According to a first aspect of the present invention, a vehicle panoramic image hot-swap recovery method is provided, which is used for a vehicle panoramic image hot-swap recovery device, the device comprising an AVM system, a deserializer, an ISP subsystem and an AIS system connected in sequence; the method comprises:
[0007] Obtain video data collected by the AVM system, which is configured with multiple cameras;
[0008] The video data collected by the AVM system is deserialized through the deserializer, and the processed video data is sent to the ISP subsystem;
[0009] The ISP subsystem processes and decodes the deserialized video data through the VFE hardware;
[0010] The AIS system creates and manages the socket resources for client communication, extracts the data stream from the video data and distributes it to different upper-layer applications.
[0011] Optionally, the AVM system is configured with 4 cameras, which are respectively installed at the front, rear, and left and right sides of the vehicle, and the VFE hardware is configured into two groups of 6 in total, and 4 of the 6 VFE hardware are randomly assigned to the 4 cameras.
[0012] Optionally, the vehicle panoramic image hot-swap recovery method also includes: in the step of distributing the data stream to different upper-level applications, through the interface conversion service, the HIDL interface called by the AVM system is converted into the client interface of the Camera stream acquisition and diversion service qcarcam_Server, and given to the AVM application.
[0013] Optionally, the AVM application includes an AVM cross-end framework and an AVM surround view system. Data streams are acquired through the AVM application, processed through an image recognition algorithm, and the algorithm-processed data streams are used for UI rendering through the AVM cross-end framework. The AVM surround view system achieves seamless switching between front and rear wide-angle and wheel perspectives through a homography matrix.
[0014] Optionally, the vehicle panoramic image hot-swap recovery method also includes: the AIS system sends an I2C control command to the deserializer through the CCI subsystem.
[0015] Optionally, in the step of creating and managing the socket resources for client communication through the AIS system, extracting the data stream in the video data and distributing it to different upper layer applications, it also includes:
[0016] After a hot plug event is detected, the CCI subsystem is reset, the CCI communication interface is reinitialized, the enable state of the forward channel is set, the correct format of the I2C control command used to set the forward channel enable is determined, the data verification code in the I2C control command is rewritten, and the I2C control command is sent to the deserializer through the CCI subsystem.
[0017] Optionally, the vehicle panoramic image hot-swap recovery method further includes:
[0018] After detecting a hot-plug event, the hot-plug data stream active detection logic is added to the Camera stream diversion service qcarcam_Server. When a hot-plug event occurs, when the camera is inserted, the Camera stream diversion service qcarcam_Server stops all currently opened data streams, releases all VFE hardware resources, and then immediately restarts all data streams, reallocating VFE hardware resources to restore the data stream.
[0019] Optionally, the vehicle panoramic image hot-swap recovery method further includes:
[0020] Monitor the DTC fault signal and trigger the hot-plug task of the corresponding camera: generate the camera fault code and adapt the algorithm interface for blackening processing;
[0021] Monitor the DTC fault recovery signal and trigger the hot plug task of the corresponding camera: after recovery, shut down and restart all pipeline nodes; generate a new camera fault code and pass it into the algorithm.
[0022] Optionally, two tasks are added for plugging and unplugging for one camera, one for unplugging processing logic and one for restoring processing logic. Eight tasks are added for four cameras, and the eight tasks are mutually exclusive.
[0023] According to a second aspect of the present invention, a vehicle panoramic image hot-swap recovery device is provided, comprising:
[0024] An AVM system, used to obtain video data collected by the AVM system, the AVM system is configured with multiple cameras;
[0025] A deserializer, used for deserializing the video data collected by the AVM system through the deserializer, and sending the processed video data to the ISP subsystem;
[0026] The ISP subsystem processes and decodes the deserialized video data through the VFE hardware;
[0027] The AIS system is used to create and manage the socket resources for client communication through the AIS system, extract the data stream from the video data and distribute it to different upper-layer applications.
[0028] According to the vehicle panoramic image hot-swap recovery method and device disclosed in the present invention, after a hot-swap event is detected, the CCI subsystem is reset, the CCI communication interface is reinitialized, the enable state of the forward channel is set, the correct format of the I2C control command used to set the forward channel enable is determined, the data verification code in the I2C control command is rewritten, and the I2C control command is sent to the deserializer through the CCI subsystem. The hot-swap data stream active detection logic is added to the Camera stream diversion service qcarcam_Server; when a hot-swap event occurs, when the camera is inserted, the Camera stream diversion service qcarcam_Server stops the flow for all currently opened data streams, releases all VFE hardware resources, and then immediately restarts the flow for all data streams, and reallocates VFE hardware resources to restore the data stream. The above control strategy can improve the fault tolerance of the host, and has a self-recovery function after the camera link is disconnected and reconnected, and can continue the video stream operation.
[0029] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0031] Figure 1 A schematic diagram of a process flow of a vehicle panoramic image hot-swap recovery method provided by an embodiment of the present invention;
[0032] Figure 2 A schematic diagram of hot-swap control logic in a vehicle panoramic image hot-swap recovery method provided in an embodiment of the present invention.
[0033] Explanation of the numbers in the figure: ①AVM1~4: cameras, used to collect sensor data; ②communication bus; ③Max96722: deserializer, used to obtain serial data from the module end and deserialize it to the ISP subsystem; ④CCI subsystem, responsible for AIS_Server sending I2C control commands to the deserializer through the CCI subsystem; ⑤VFE hardware: Qualcomm Camera subsystem, used to process and decode video data; ⑥AIS system: Qualcomm vehicle imaging system service, ais_Server for short, all hardware (deserializer, VFE, CSI) switches are configured through this service, creating and managing socke communicating with its client t resources;⑦ Communication bus;⑧qcarcam_Server: Camera streaming service, which is the client of AIS, used to start streaming from AIS and distribute it to different upper-layer applications;⑨ Communication bus;⑩AIS_HIDL_Server: Interface conversion service, used to convert the HIDL interface called by AVM into the client interface of qcarcam_Server;⑪AVMAPP: AVM application, including functions such as Camera data stream acquisition, algorithm processing, UI rendering, and perspective switching;⑫CameraHAL: V4L2 interface channel, providing a standard Android Camera2 interface for DVR APK to call. DETAILED DESCRIPTION
[0034] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0035] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0036] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0037] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0038] Currently, what affects the normal implementation of the hot-swap function is the VFE hardware ⑤ management module inside the Qualcomm 6125 chip. Each VFE hardware ⑤ resource corresponds to three data stream channels; when four-way streaming is performed, two data stream channels under the VFE hardware ⑤ will be used, and the VFE hardware ⑤ channel resources are currently randomly allocated. During the hot-swap action, the VFE hardware ⑤ will probabilistically fail to report the video stream, resulting in the application being unable to obtain the video stream. When the vehicle is driving, it is easy for the camera harness to loosen or the camera link to disconnect, resulting in a black screen for the 360 panoramic image, affecting user use and posing risks. This application adds a hot-swap mechanism, that is, when the physical link of the Camera is restored, the internal link of the host is restored, and the video streaming operation can continue.
[0039] The present invention proposes an embodiment of a vehicle panoramic image hot plug recovery method. Specifically, Figure 1 As shown, the vehicle panoramic image hot-swap recovery method is used for a vehicle panoramic image hot-swap recovery device, the device includes an AVM system ①, a deserializer ③, an ISP subsystem and an AIS system ⑥ connected in sequence; the method includes:
[0040] Get the video data collected by AVM system ①, which is equipped with multiple cameras. It should be noted that AVM system ① collects video through the surround camera assembly, which uses a fisheye lens design to capture a 360-degree panoramic view around the vehicle. The camera is powered by the IVI (in-vehicle infotainment system) host and transmits the camera data to the IVI host. The IVI host communicates with the vehicle through the CAN transceiver module. The IVI host is responsible for the bottom layer of the panoramic image and the signal interaction with the panoramic APP.
[0041] The deserializer ③ is connected to the AVM system ① via the communication bus ②. The deserializer ③ deserializes the video data collected by the AVM system ① and sends the processed video data to the ISP subsystem. The deserializer ③ reassembles the video data information into the original parallel data format, that is, the video data format output by the camera sensor or the ISP.
[0042] The ISP subsystem processes and decodes the deserialized video data through VFE hardware ⑤; VFE hardware ⑤ is a key hardware component in the ISP subsystem, responsible for preprocessing and format conversion of video data; the video data processed and decoded by VFE hardware ⑤ is output to other parts of the ISP subsystem.
[0043] The AIS system ⑥ creates and manages the socket resources for client communication, extracts the data stream from the video data and distributes it to different upper-layer applications; once the video data is extracted and decoded, the AIS system ⑥ needs to distribute the corresponding video data stream to them according to the request of the upper-layer application. The AIS system ⑥ needs to effectively manage the socket resources to ensure that new socket connections can be allocated when needed and release these resources when they are no longer needed; when the socket connection is erroneous or disconnected, the AIS system ⑥ needs to be able to detect these errors and try to re-establish the connection. Specifically, the overall process of the vehicle panoramic image hot-swap recovery method is as follows: Figure 1 shown.
[0044] It should be noted that a DDR (double rate synchronous dynamic random access memory) is also connected between the AIS system ⑥ and the VFE hardware ⑤, and the video data pre-processed and format-converted by the VFE hardware ⑤ is stored through the DDR.
[0045] In an embodiment of the present invention, the AVM system ① is configured with 4 cameras, and the 4 cameras are respectively installed at the front, rear, and left and right sides of the vehicle, and the VFE hardware ⑤ is configured into two groups of 6, and 4 VFE hardware ⑤ of the 6 VFE hardware ⑤ are randomly assigned to the 4 cameras. The 6 VFE hardware ⑤ allow the system to process video data from multiple cameras at the same time, improving the video processing capability and efficiency. Among the 6 VFE hardware ⑤ units, 4 are randomly assigned to the 4 cameras to ensure that each camera has a corresponding VFE hardware ⑤ unit to process video data. The remaining 2 VFE hardware ⑤ are in standby state or used for other purposes (such as expanding camera support, processing additional video data, etc.).
[0046] In an embodiment of the present invention, the vehicle panoramic image hot-swap recovery method also includes: in the step of distributing the data stream to different upper-layer applications, the HIDL interface called by the AVM system ① is converted into the client interface of the Camera stream acquisition and shunting service qcarcam_Server⑧ through the interface conversion service AIS_HIDL_Server⑩, and given to the AVM application AVMAPP⑪. Specifically, the interface conversion service AIS_HIDL_Server⑩ needs to monitor requests from the AVM system ①, parse these requests, and then call the client interface of the Camera stream acquisition and shunting service qcarcam_Server⑧ to obtain the video stream. In addition, it also includes testing and verifying the interface conversion service AIS_HIDL_Server⑩ to ensure that it can correctly convert the HIDL interface and the client interface of the Camera stream acquisition and shunting service qcarcam_Server⑧, and can provide a stable video stream to the AVM system ①.
[0047] In an embodiment of the present invention, the AVM application AVMAPP⑪ includes an AVM cross-end framework and an AVM surround view system. The data stream is acquired through the AVM application AVMAPP⑪, and the acquired data stream is processed through an image recognition algorithm. The data stream processed by the algorithm is used for UI rendering through the AVM cross-end framework. The AVM surround view system realizes seamless switching between front and rear wide-angle and wheel perspectives through the homography matrix, and finally presents a 360 panoramic image.
[0048] In an embodiment of the present invention, the vehicle panoramic image hot-swap recovery method further includes: the AIS system ⑥ sends an I2C control command to the deserializer ③ through the CCI subsystem ④. When the AIS system ⑥ needs to communicate with the deserializer ③, it generates a corresponding I2C control command through the CCI subsystem ④. The CCI subsystem ④ transmits the generated I2C control command to the deserializer ③ through the I2C bus.
[0049] In the embodiment of the present invention, in the step of creating and managing the socket resources for client communication through the AIS system ⑥, extracting the data stream in the video data and distributing it to different upper layer applications, it also includes:
[0050] After a hot-plug event is detected, the CCI subsystem ④ is reset, the CCI communication interface is reinitialized, the forward channel enable state is set, the correct format of the I2C control command used to set the forward channel enable is determined, the data verification code in the I2C control command is rewritten, and the I2C control command is sent to the deserializer ③ through the CCI subsystem ④. The above strategies can prevent interference from the remote serializer and solve the CCI unreachable problem.
[0051] In an embodiment of the present invention, the vehicle panoramic image hot-swap recovery method also includes: after detecting a hot-swap event, adding hot-swap data stream active detection logic in the Camera stream diversion service qcarcam_Server⑧; when a hot-swap event occurs, when the camera is inserted, the Camera stream diversion service qcarcam_Server⑧ stops the flow for all currently opened data streams, releases all VFE hardware ⑤ resources, and then immediately restarts the flow for all data streams, and reallocates VFE hardware ⑤ resources to restore the data stream. It should be noted that before the VFE hardware ⑤ needs to be reset, ensure that the last frame of data of the camera is captured, and store the captured last frame of data in a buffer or memory so that it can be quickly accessed when needed, and use the captured last frame of data as false data. During the VFE hardware ⑤ reset process, the display is switched to false data (i.e., the last frame of data), which is achieved by controlling the input source of the display device to ensure that a static image is displayed instead of a black screen during the VFE hardware ⑤ reset.
[0052] It should be noted that the V4L2 interface channel CameraHAL⑫ is also used to provide a standard AndroidCamera2 interface for DVR APK to call.
[0053] In an embodiment of the present invention, the vehicle panoramic image hot-swap recovery method further includes:
[0054] Monitor the DTC fault signal and trigger the hot-plug task of the corresponding camera: Generate a camera fault code and adapt the algorithm interface for black processing; specifically, generate a fault code related to the camera fault, which should be able to clearly identify the type, location and possible cause of the fault. Adapting the algorithm interface includes modifying the image processing algorithm, updating the display driver or adjusting the system configuration. Specifically, such as Figure 2 As shown, when the camera signal is detected to be disconnected, it is determined whether the DTC signal has changed compared with the camera status Camera_Status. When the camera signal is disconnected, it is checked whether a new DTC signal is generated, and it is determined whether Camera_Status changes from "available" to "unavailable" or other error states; if the DTC signal or Camera_Status changes, the four tasks are closed, and the fault display interface UI of the current Camera is updated according to the type and status of the camera fault, including displaying an error message on the screen, flashing indicator lights, etc., and the fault parameters of the corresponding Camera are generated and passed into the algorithm, and then all pipeline nodes are closed, and the flow is restarted according to s_Camera_Status.
[0055] Listen to the DTC fault recovery signal and trigger the hot-plug task of the corresponding camera: after recovery, shut down and restart all pipeline nodes; generate a new camera fault code and pass it into the algorithm. It should be noted that shutting down and restarting these pipeline nodes can ensure that they use the latest configuration and parameters and are correctly synchronized with the reinitialized camera. The new camera fault code can indicate that the camera has resumed normal operation and can be used for subsequent diagnosis, monitoring or logging. Specifically, if Figure 2As shown, after the camera signal connection is detected, it is determined whether the DTC signal and the camera status Camera_Status have changed, for example, from "unavailable" to "available"; if the DTC signal or the camera status Camera_Status changes, four tasks are started, and it is determined whether the conditions for image output are met, including whether the camera has successfully acquired the image, whether the image processing pipeline has been correctly configured, etc. If so, the interface UI corresponding to the current camera Camera is restored. If the conditions for image output are not met, the corresponding camera Camera information (such as placeholders, error messages, etc.) is cleared, and the camera status is reset so that the image output can be tried again when the conditions are met.
[0056] It should be noted that if Figure 2 As shown in the figure, after the camera fault is restored, the data is re-sent to the algorithm for splicing and outputting images. In the AVM fast start phase, the Camera HAL (Hardware Abstraction Layer) starts slower than the AVM (Around View Monitoring) system, resulting in that after the Camera fault is restored, although the Camera may be ready to provide image data, the DTC (Diagnostic Trouble Code) fault signal may not be reported to the AVM system in time①. Therefore, the qcarcam_start() function is added to determine whether the camera has the conditions for normal image output. The qcarcam_start() function and the DTC fault signal are coupled and need to be decoupled.
[0057] In the embodiment of the present invention, Figure 2 As shown in the figure, one camera adds two tasks for plugging and unplugging, one for unplugging processing logic and one for restoring processing logic. Four cameras add eight tasks, and the eight tasks are mutually exclusive. Specifically, the AVM plug-in and unplugging corresponding scenarios are mainly divided into AVM foreground and AVM background; each camera requires an independent task, and the algorithm needs to receive all the tasks of these four cameras before splicing, so if a camera is unplugged and reinserted, all tasks on the current pipeline need to be stopped and restarted.
[0058] The present invention also provides a vehicle panoramic image hot-swap recovery device, comprising:
[0059] AVM system ①, used to obtain video data collected by AVM system ①, AVM system ① is configured with multiple cameras;
[0060] Deserializer ③, used for deserializing the video data collected by the AVM system ① through the deserializer ③, and sending the processed video data to the ISP subsystem;
[0061] The ISP subsystem processes and decodes the deserialized video data through the VFE hardware⑤;
[0062] The AIS system⑥ is used to create and manage the socket resources for client communication through the AIS system⑥, and extract the data stream in the video data and distribute it to different upper layer applications.
[0063] In the embodiment of the present invention, when a hot-plug event occurs, when a camera is inserted, the Camera stream diversion service qcarcam_Server stops all currently opened data streams, releases all VFE hardware resources, and then immediately restarts all data streams, reallocating VFE hardware resources to restore the data streams. If the camera is in the AVM (panoramic monitoring image system) interface when the camera insertion signal is received, the corresponding area of the camera can be unblackened; after the camera fault disappears, if the camera is not in the AVM interface when the camera insertion signal is received, after the AVM is turned on, the image of the corresponding area can be displayed normally; after the camera insertion signal is received, the AVM transparent chassis is normal and the dynamic blind area returns to normal.
[0064] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings, but the above is only a preferred embodiment of the present invention. It should be noted that the technical features involved in the above embodiments and their preferred methods can be reasonably combined and matched into a variety of equivalent schemes by those skilled in the art without departing from or changing the design ideas and technical effects of the present invention; therefore, the present invention is not limited to the scope of implementation shown in the drawings, and all changes made in accordance with the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the specification and drawings, should be within the protection scope of the present invention.
Claims
1. A vehicle panoramic image hot-swap recovery method, characterized in that: A hot-swap recovery device for vehicle panoramic images, the device comprising an AVM system, a deserializer, an ISP subsystem and an AIS system connected in sequence; the method comprising: Obtain video data collected by the AVM system, which is configured with multiple cameras; The video data collected by the AVM system is deserialized through the deserializer, and the processed video data is sent to the ISP subsystem; The ISP subsystem processes and decodes the deserialized video data through the VFE hardware; The AIS system creates and manages the socket resources for client communication, extracts the data stream from the video data and distributes it to different upper-layer applications.
2. The vehicle panoramic image hot-swap recovery method according to claim 1, characterized in that: The AVM system is configured with 4 cameras, which are installed at the front, rear, left and right sides of the vehicle respectively. The VFE hardware is configured into two groups of 6, and 4 of the 6 VFE hardware are randomly assigned to the 4 cameras.
3. The vehicle panoramic image hot-swap recovery method according to claim 1, characterized in that: Also includes: In the step of distributing the data stream to different upper-layer applications, the HIDL interface called by the AVM system is converted into the client interface of the Camera stream acquisition and distribution service qcarcam_Server through the interface conversion service AIS_HIDL_Server, and given to the AVM application.
4. The vehicle panoramic image hot-swap recovery method according to claim 3, characterized in that: The AVM application includes the AVM cross-end framework and the AVM surround view system. The data stream is acquired through the AVM application, processed through the image recognition algorithm, and the algorithm-processed data stream is used for UI rendering through the AVM cross-end framework. The AVM surround view system uses the homography matrix to achieve seamless switching between front and rear wide-angle and wheel perspectives.
5. The vehicle panoramic image hot-swap recovery method according to claim 1, characterized in that: Also includes: The AIS system sends I2C control commands to the deserializer through the CCI subsystem.
6. The vehicle panoramic image hot-swap recovery method according to claim 5, characterized in that: The steps of creating and managing the socket resources for client communication through the AIS system, extracting the data stream in the video data and distributing it to different upper layer applications also include: After a hot plug event is detected, the CCI subsystem is reset, the CCI communication interface is reinitialized, the enable state of the forward channel is set, the correct format of the I2C control command used to set the forward channel enable is determined, the data verification code in the I2C control command is rewritten, and the I2C control command is sent to the deserializer through the CCI subsystem.
7. The vehicle panoramic image hot-swap recovery method according to claim 6, characterized in that: Also includes: After detecting a hot-plug event, the hot-plug data stream active detection logic is added to the Camera stream diversion service qcarcam_Server. When a hot-plug event occurs, when the camera is inserted, the Camera stream diversion service qcarcam_Server stops all currently opened data streams, releases all VFE hardware resources, and then immediately restarts all data streams, reallocating VFE hardware resources to restore the data stream.
8. The vehicle panoramic image hot-swap recovery method according to claim 6 or 7, characterized in that: Also includes: Monitor DTC fault signals and trigger the hot-plug task of the corresponding camera: generate camera fault codes and adapt the algorithm interface for blackening processing; Monitor the DTC fault recovery signal and trigger the hot-plug task of the corresponding camera: after recovery, shut down and restart all pipeline nodes; generate a new camera fault code and pass it into the algorithm.
9. The vehicle panoramic image hot-swap recovery method according to claim 8, characterized in that: For one camera, two tasks are added for plugging and unplugging, one for unplugging processing logic and one for restoring processing logic. For four cameras, eight tasks are added, and the eight tasks are mutually exclusive.
10. A vehicle panoramic image hot-swap recovery device, characterized in that: include: An AVM system, used to obtain video data collected by the AVM system, the AVM system is configured with multiple cameras; A deserializer, used for deserializing the video data collected by the AVM system through the deserializer, and sending the processed video data to the ISP subsystem; The ISP subsystem processes and decodes the deserialized video data through the VFE hardware; The AIS system is used to create and manage the socket resources for client communication through the AIS system, extract the data stream from the video data and distribute it to different upper-layer applications.
