Data storage method and device, equipment and medium

By using a multi-way circumferential camera to collect video data on the vehicle, the problem that a single-way camera is difficult to cover the surrounding environment of the vehicle is solved, and the reliability of video data and the accuracy of alarm events are improved.

CN119441535APending Publication Date: 2025-02-14BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310952868.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-31
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

Existing vehicles use a single-channel camera to record videos in sentinel mode, making it difficult to cover all visual information about the vehicle's surrounding environment, resulting in unreliable video data and low accuracy in identifying alarm information.

Method used

Multi-circle view cameras are used to synchronize video data collection, and whether there is an alarm event is identified through multiple video data, and multiple video data is stored when there is an alarm.

Benefits of technology

The acquisition range of multi-circle view cameras is wider, the video data obtained is more reliable, and the accuracy of identifying alarm events is higher.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119441535A_ABST
    Figure CN119441535A_ABST
Patent Text Reader

Abstract

The invention relates to a data storage method and device, equipment and a medium, and the method comprises the steps: responding to the start of a guard mode of a vehicle, and controlling a multi-path around-view camera of the vehicle to carry out the synchronous collection of video data; acquiring multi-channel video data acquired by the multi-channel look-around camera; wherein the acquisition ranges of the video data corresponding to all the paths of all-round cameras are different; and based on the multi-channel video data, identifying whether an alarm event exists, and if yes, storing the multi-channel video data. According to the technical scheme of the invention, a sentry mode and a multi-path around-view camera can be combined for use, and the accuracy of identifying the vehicle alarm event is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of vehicle technology, and in particular to a data storage method, device, equipment and medium. Background Art

[0002] As the number of vehicles increases, vehicle safety issues are receiving more attention from users. Sentry mode is a function launched to meet vehicle safety needs. When the vehicle turns on sentry mode, it can store video recordings of warning events such as collisions and scratches.

[0003] At present, when a vehicle is in sentry mode, a single-channel camera is used for video recording. It is difficult for a single-channel camera to cover all the visual information of the vehicle's surrounding environment. The video data it collects is unreliable, and the accuracy of identifying warning information is low. Summary of the invention

[0004] In order to solve the above technical problems, the present disclosure provides a data storage method, device, equipment and storage medium.

[0005] In a first aspect, an embodiment of the present disclosure provides a data storage method, including:

[0006] In response to the sentry mode of the vehicle being activated, controlling the multi-channel surround view cameras of the vehicle to synchronously collect video data;

[0007] Obtaining multiple channels of video data collected by the multiple surround view cameras; wherein the collection range of the video data corresponding to each surround view camera is different;

[0008] Based on the multiple channels of video data, it is identified whether there is an alarm event, and if so, the multiple channels of video data are stored.

[0009] In a second aspect, an embodiment of the present disclosure provides a data storage device, including:

[0010] A collection module, for controlling the multi-channel surround view cameras of the vehicle to synchronously collect video data in response to the activation of the sentry mode of the vehicle;

[0011] An acquisition module, used to obtain the multi-channel video data collected by the multi-channel surround view cameras; wherein the collection range of the video data corresponding to each surround view camera is different;

[0012] The storage module is used to identify whether an alarm event exists based on the multiple channels of video data, and if so, store the multiple channels of video data.

[0013] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the data storage method described in the first aspect above.

[0014] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the data storage method described in the first aspect is implemented.

[0015] In a fifth aspect, an embodiment of the present disclosure provides a vehicle, comprising the data storage device as described in the second aspect above, or the electronic device as described in the third aspect above.

[0016] Compared with the prior art, the technical solution provided by the disclosed embodiment has the following advantages: in response to the vehicle's sentry mode being activated, the vehicle's multi-channel surround-view cameras are controlled to synchronously collect video data, and multi-channel video data collected by the multi-channel surround-view cameras are obtained. Based on the multi-channel video data, it is identified whether there is an alarm event. If so, the multi-channel video data is stored. Since the acquisition range of a single-channel camera is limited, and the acquisition range of a multi-channel surround-view camera is much larger than that of a single-channel camera, the multi-channel video data synchronously collected by the vehicle's multi-channel surround-view cameras has more visual information, the accuracy of identifying alarm events based on the multi-channel video data is higher, and the reliability of the multi-channel video data collected by the multi-channel surround-view cameras with different acquisition ranges is also higher. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 A schematic diagram of a data storage method provided by an embodiment of the present disclosure;

[0020] Figure 2 A schematic diagram of a flow chart of another data storage method provided by an embodiment of the present disclosure;

[0021] Figure 3 A schematic diagram of the structure of a data storage device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0022] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0023] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0024] Figure 1 This is a flow chart of a data storage method provided in an embodiment of the present disclosure. The method provided in an embodiment of the present disclosure can be executed by a data storage device, which can be implemented in software and / or hardware and can be integrated on any electronic device with computing capabilities.

[0025] like Figure 1 As shown, the data storage method provided by the embodiment of the present disclosure may include:

[0026] Step 101 , in response to the sentry mode of the vehicle being activated, controlling the vehicle's multi-channel surround view cameras to synchronously collect video data.

[0027] The data storage method provided in the embodiment of the present application is applied to an electronic device, which may be a vehicle-mounted terminal, a mobile terminal or other device with computing capabilities.

[0028] Among them, the sentry mode is a function launched to meet vehicle safety needs, which can store video data when vehicle safety is compromised.

[0029] Since the collection range of a single-channel camera is limited and it is difficult to cover all visual information of the vehicle's surrounding environment, in order to make the collected video data cover more visual information of the vehicle's surrounding environment and ensure the reliability of the collected video data, multiple surround view cameras are installed on the vehicle to collect video data of the environment outside the vehicle.

[0030] Optionally, when the camera is turned on, multiple surround view cameras are turned on simultaneously using multiple threads, and after the multiple surround view cameras are turned on successfully, multiple video data are collected through the multiple surround view cameras. The multiple surround view cameras can be installed on the side of the vehicle or on the top of the vehicle. The specific installation position can be adjusted according to actual needs. The collection ranges of adjacent surround view cameras in the multiple surround view cameras can have overlapping areas to cover the visual information of the vehicle's surrounding environment. The number of the multiple surround view cameras can be three, four, etc., which can be set according to needs.

[0031] As an example, a vehicle is provided with four surround-view cameras, namely, a front camera, a left camera, a rear camera and a right camera. The four surround-view cameras are opened simultaneously using multi-threading. After the four surround-view cameras are successfully opened, four channels of video data are collected respectively through the four surround-view cameras, including front video data, left video data, rear video data and right video data.

[0032] Step 102: obtaining multi-channel video data collected by multi-channel surround view cameras.

[0033] Among them, the collection range of the video data corresponding to each surround view camera is different.

[0034] In this embodiment, after obtaining the multi-channel video data collected by the multi-channel surround view cameras, the multi-channel video data are synchronously added to the multiple cache queues respectively. The multi-channel video data cached in the cache queues can be used as input for multiple applications, solving the problem of using the video data separately. Optionally, in response to the startup of any camera in the multi-channel surround view cameras, the barrier lock is enabled, and the multi-channel surround view cameras are all started and start to collect data. Then, when all the multi-channel surround view cameras start to collect the multi-channel video data, the barrier lock is closed, and the multi-channel video data are added to the multiple cache queues respectively, so as to realize the synchronous caching of the multi-channel video.

[0035] As an example, a vehicle is equipped with four surround-view cameras, namely, a front camera, a left camera, a rear camera and a right camera. When the sentry mode is started, the four surround-view cameras are opened simultaneously by multithreading, and the barrier lock is enabled. After the four surround-view cameras are successfully opened, the camera data is waited to be available. After confirming that the data of the four surround-view cameras are all available, the barrier lock is closed, and the four surround-view cameras are used to synchronously collect four-channel video data, including front video data, left video data, rear video data and right video data, and the four-channel video data is cached at the same time to ensure the synchronization of the four-channel video data. Among them, the four-channel video data is encoded by an encoder, and the four-channel video data after encoding is cached by a blocking queue. The four-channel video data corresponds to four blocking queues, and each blocking queue caches one channel of video data.

[0036] Step 103: Based on the multiple channels of video data, identify whether there is an alarm event, and if so, store the multiple channels of video data.

[0037] In this embodiment, whether an alarm event exists is identified based on multiple channels of video data in multiple buffer queues.

[0038] Optionally, multiple video frames of the same acquisition time are determined from the multi-channel video data, and the multiple video frames of the same acquisition time are spliced ​​to generate a target image at the acquisition time. For example, for a four-channel surround view camera, four video frames at time T are determined from the four-channel video data, and the four video frames are respectively video frame 1 acquired by the front camera, video frame 2 acquired by the left camera, video frame 3 acquired by the rear camera, and video frame 4 acquired by the right camera. The four video frames are spliced ​​in the order of video frame 1, video frame 2, video frame 3, and video frame 4 to generate a target image at time T. The target image indicates the visual information of the vehicle's surrounding environment at time T. Therefore, a target image can be determined for each time. In subsequent steps, target detection is performed on each target image to obtain a corresponding target detection result.

[0039] Then, target detection is performed on the target image to generate a target detection result. The target detection result indicates whether there is a preset object in the target image, and the preset object includes pedestrians and vehicles. Optionally, a target detection model is trained based on a target detection algorithm and a training sample set, and the input of the target detection model is an image, and the output is a target detection result.

[0040] As an example, a vehicle is provided with multiple infrared cameras, which collect multiple infrared video data. The collection range of infrared video data corresponding to each infrared camera is different. Multiple infrared video frames of the same collection time are determined from the multiple infrared video data, and the multiple infrared video frames of the same collection time are spliced ​​to generate an infrared image of the collection time. The infrared image of the same collection time is fused with the target image, and the fused image is input into a pre-trained target detection model to generate a target detection result. The target detection result indicates whether there is a pedestrian in the target image. Compared with the method of only performing target detection on the target image, it can be combined with the infrared image to more accurately detect whether there is a pedestrian, thereby improving the accuracy of target detection, thereby further improving the accuracy of identifying alarm events. In this example, the target image is a visible light image, and the fused image of the visible light image and the infrared image is annotated to serve as training data for the target detection model.

[0041] Furthermore, when the target detection result is that a preset object is detected, it is determined that an alarm event occurs in the vehicle, and when an alarm event occurs in the vehicle, the multiple video data in the cache queue are stored. The preset object may be a pedestrian.

[0042] As an example, before storing multiple channels of video data, the occurrence time of the alarm event is obtained, and for the multiple channels of video data, the target video data within a preset time period before the occurrence time is obtained from the video data; and the target video data is updated to the video data, and then the multiple channels of video data are stored. In this example, for the target image generated by the multiple channels of video frames at time T, if the alarm algorithm determines that an alarm event has occurred, that is, the alarm event occurred at time T, then the target video data from time T to 30 seconds before time T is obtained from the multiple channels of video data in the cache queue, and the target video data is stored in the memory block, and then the target video data in the memory block is sent to the external device to complete the video corresponding to the alarm event. The disk, thereby enabling users to more clearly understand the visual information of the vehicle's surrounding environment when the alarm event occurs, is convenient for subsequent risk positioning.

[0043] As another example, before storing multiple channels of video data, the occurrence time of the alarm event is obtained, and for the multiple channels of video data, the target video data within a preset time period before the occurrence time is obtained from the channel of video data; and the target video data is updated to the channel of video data, and then, for the multiple channels of video data, multiple images corresponding to multiple moments are intercepted from the channel of video data at preset time intervals and stored. Optionally, within a preset time range including the occurrence time, multiple moments are selected at preset time intervals, multiple images corresponding to multiple moments are intercepted from the multiple channels of video data, and the multiple images are stored in the cloud.

[0044] In this example, for the target image generated by the multi-channel video frames at time T, if the alarm algorithm determines that an alarm event occurs, that is, the alarm event occurs at time T, the data return directory is opened, and it is checked whether the current available memory is sufficient to ensure that the data return directory is available, and then multiple moments selected according to a preset time interval within a certain time range before and after time T are obtained, and the image corresponding to each of the multiple moments is captured from the multi-channel video data in the cache queue, and the multiple images are stored in the data return directory. Subsequently, the images in the data return directory are uploaded to the cloud server, thereby realizing data return. The uploaded content is compressed and cropped, which is convenient for the algorithm to quickly locate the problem, and compared with the method of storing video data, it can further reduce the storage space occupied.

[0045] According to the technical solution of the disclosed embodiment, in response to the vehicle's sentry mode being activated, the vehicle's multi-channel surround-view cameras are controlled to synchronously collect video data to obtain multi-channel video data collected by the multi-channel surround-view cameras. Based on the multi-channel video data, it is identified whether there is an alarm event. If so, the multi-channel video data is stored. Since the acquisition range of a single-channel camera is limited, and the acquisition range of a multi-channel surround-view camera is much larger than that of a single-channel camera, the multi-channel video data synchronously collected by the vehicle's multi-channel surround-view cameras contains more visual information, and the accuracy of identifying alarm events based on the multi-channel video data is higher. The reliability of the multi-channel video data collected by multi-channel surround-view cameras with different acquisition ranges is also higher.

[0046] Based on the above embodiments, Figure 2 A flowchart of another data storage method provided by an embodiment of the present disclosure is shown in FIG. Figure 2 As shown, the method includes:

[0047] Step 201 , in response to the sentry mode of the vehicle being activated, controlling the vehicle's multi-channel surround view cameras to synchronously collect video data.

[0048] Step 202: obtain multiple channels of video data collected by multiple surround view cameras, and synchronously add the multiple channels of video data to multiple cache queues respectively.

[0049] Among them, the collection range of the video data corresponding to each surround view camera is different.

[0050] In this embodiment, in order to achieve cache cleaning and release redundant space, the cache data in the cache queue can be cleared regularly to update the cache queue and release cache space. The process of updating the cache queue includes: for multiple cache queues, obtaining the cache duration corresponding to the first frame cache data with the earliest cache time in the cache queue, if the cache duration corresponding to the first frame cache data reaches the preset duration, then determining the first key frame data after the first frame cache data from the cache queue, deleting the cache data in the cache queue with a cache time before the cache time of the first key frame data, and updating the corresponding cache queue after the deletion to the cache queue. The key frame data is used to specify the position, size, transparency and other attribute values ​​of the video clip at a certain time point on the timeline.

[0051] As an example, the cached data in the cache queue has corresponding timestamp information, which may be the cache time of the cached data. For each cache queue, the following judgment is made when adding video data to the cache queue: obtain the timestamp information corresponding to the first frame of cached data in the cache queue, and compare the time difference between the current time and the timestamp information corresponding to the first frame of cached data with the preset required cache time. If the time difference is greater than or equal to the required cache time, determine to perform a cache clearing operation, wherein the cache clearing operation is as follows: data is thrown out starting from the first frame of cached data in the cache queue until the next key frame data, to ensure that the first cached data in the cache queue is the key frame data. After performing the cache clearing operation, the currently acquired video data is added to the cache queue; if the time difference is less than the required cache time, the currently acquired video data is directly added to the cache queue, thereby achieving cache clearing and releasing redundant space.

[0052] Step 203, obtaining the occurrence time of the alarm event, obtaining target video data within a preset time period before the occurrence time from the multiple video data, and updating the target video data to the video data, and then storing the multiple video data.

[0053] In this embodiment, in order to ensure the synchronization of the target video data obtained from each channel of video data, for multiple channels of video data added to multiple cache queues, when the target video data within the preset time period before the occurrence time is obtained from the video data, in response to the acquisition operation of the target video data, the barrier lock is started, and when the multiple channels of video data have completed the data acquisition preparation, the barrier lock is closed, and for the multiple channels of video data, the target video data within the preset time period before the occurrence time is obtained from each channel of video data. Among them, when it is possible to obtain video data from multiple cache queues, it is determined that the multiple channels of video data have completed the data acquisition preparation, and when the target video data is obtained synchronously, it is obtained from the first key frame data within the preset time period before the occurrence time, that is, the first frame data of the target video data is the key frame data, so as to ensure that the obtained target video data is not distorted.

[0054] As an example, after the target video data is updated to the video data, for each video data, the video data is segmented according to the preset duration to generate and store multiple sub-videos corresponding to the video data; wherein the duration of each sub-video corresponding to the video data is less than or equal to the preset duration, and the first frame data of each sub-video is key frame data. The preset duration can be set as needed, for example, the preset duration is one minute, and for video data A within five minutes before the occurrence of the alarm event, video data A is segmented to generate five sub-videos with a duration of one minute each.

[0055] In this example, for each channel of video data, it is automatically segmented according to the preset duration during storage. If the frame data at the segmentation position is not key frame data, it is segmented at the position of the previous key frame data at the segmentation position, and the position of the previous key frame data is used as the starting position of the segment to ensure video continuity. The above steps are repeated until the storage of multiple channels of video data is completed. For example, multiple channels of video data are first stored in a memory block, and then the multiple channels of video data are copied from the memory block to an external device, such as a USB flash drive, to ensure fast storage of video data.

[0056] According to the technical solution of the embodiment of the present disclosure, video data is collected synchronously by multiple surround view cameras, and video data is cached synchronously, and the cached video data is used for event recording and algorithm calculation, so that the sentinel mode is used in combination with multiple surround view cameras, and the function of forward tracing records is realized. In addition, the video data in the cache queue can be used for various functions such as disk storage and data transmission for subsequent analysis, so as to meet different risk location analysis requirements.

[0057] The present disclosure also provides a data storage device.

[0058] Figure 3 A schematic diagram of a data storage device provided by an embodiment of the present disclosure is shown in FIG. Figure 3 As shown, the data storage device includes: a collection module 31, an acquisition module 32, and a storage module 33.

[0059] The acquisition module 31 is used to control the multi-channel surround view cameras of the vehicle to synchronously acquire video data in response to the activation of the sentry mode of the vehicle.

[0060] The acquisition module 32 is used to obtain multiple channels of video data collected by the multiple surround view cameras; wherein the collection range of the video data corresponding to each surround view camera is different.

[0061] The storage module 33 is used to identify whether there is an alarm event based on the multiple channels of video data, and if so, store the multiple channels of video data.

[0062] In one embodiment of the present disclosure, the device further includes: an adding module, configured to synchronously add the multiple channels of video data to multiple cache queues respectively;

[0063] The storage module 33 is specifically used to identify whether there is an alarm event based on the multiple channels of video data in the multiple cache queues.

[0064] In one embodiment of the present disclosure, the device also includes: a deletion module, which is used to obtain, for multiple cache queues, the cache duration corresponding to the first frame cache data with the earliest cache time in the cache queue; if the cache duration corresponding to the first frame cache data reaches a preset duration, determine the first key frame data cached after the first frame cache data from the cache queue; delete the cache data in the cache queue with a cache time before the cache time of the first key frame data, and update the corresponding cache queue after the deletion to the cache queue.

[0065] In one embodiment of the present disclosure, the device also includes: a determination module for obtaining the occurrence time of the alarm event; for multiple channels of video data, obtaining target video data within a preset time period before the occurrence time from the video data; and updating the target video data to the video data.

[0066] In one embodiment of the present disclosure, the determination module is specifically used to: start the barrier lock in response to the acquisition operation of the target video data; when the data acquisition preparation of the multiple channels of video data is completed, close the barrier lock, and for the multiple channels of video data, acquire the target video data within a preset time period before the occurrence time from the channel of video data.

[0067] In one embodiment of the present disclosure, the storage module 33 is specifically used to: for each channel of video data, segment the video data according to a preset duration to generate and store multiple sub-videos corresponding to the channel of video data; wherein the duration of each sub-video corresponding to the channel of video data is less than or equal to the preset duration, and the first frame data of each sub-video is key frame data.

[0068] In one embodiment of the present disclosure, the storage module 33 is specifically used to: for multiple channels of video data, intercept and store multiple images corresponding to multiple moments from the multiple channels of video data at preset time intervals.

[0069] The data storage device provided in the embodiment of the present disclosure can execute any data storage method provided in the embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method. For the contents not described in detail in the embodiment of the device of the present disclosure, reference can be made to the description in any method embodiment of the present disclosure.

[0070] An embodiment of the present disclosure also provides an electronic device, which includes one or more processors and a memory.

[0071] The processor may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.

[0072] The memory may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on a computer-readable storage medium, and a processor may run the program instructions to implement the method of the embodiments of the present disclosure above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.

[0073] In one example, the electronic device may further include: an input device and an output device, and these components are interconnected through a bus system and / or other forms of connection mechanisms. In addition, the input device may also include, for example, a keyboard, a mouse, etc. The output device may output various information to the outside, including determined distance information, direction information, etc. The output device may include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.

[0074] Of course, for simplicity, only some of the components in the electronic device related to the present disclosure are shown, omitting components such as a bus, an input / output interface, etc. In addition, the electronic device may further include any other appropriate components according to specific application scenarios.

[0075] In addition to the above methods and devices, the embodiments of the present disclosure may also be a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, the processor executes any method provided by the embodiments of the present disclosure.

[0076] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0077] In addition, the embodiments of the present disclosure may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes any method provided by the embodiments of the present disclosure.

[0078] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0079] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0080] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data storage method, characterized in that: include: In response to the sentry mode of the vehicle being activated, controlling the multi-channel surround view cameras of the vehicle to synchronously collect video data; Obtaining multiple channels of video data collected by the multiple surround view cameras; wherein the collection range of the video data corresponding to each surround view camera is different; Based on the multiple channels of video data, it is identified whether there is an alarm event, and if so, the multiple channels of video data are stored.

2. The method according to claim 1, characterized in that After obtaining the multi-channel video data collected by the multi-channel surround view camera, the method further includes: Synchronously adding the multiple channels of video data to multiple cache queues respectively; The identifying whether there is an alarm event based on the multiple channels of video data includes: Based on the multiple channels of video data in the multiple buffer queues, it is identified whether an alarm event exists.

3. The method according to claim 2, characterized in that The process of updating the cache queue includes: For multiple cache queues, obtain the cache duration corresponding to the first frame cache data with the earliest cache time in the cache queue; if the cache duration corresponding to the first frame cache data reaches a preset duration, determine the first key frame data cached after the first frame cache data from the cache queue; delete the cache data in the cache queue with a cache time before the cache time of the first key frame data, and update the corresponding cache queue after the deletion to this cache queue.

4. The method according to claim 1, characterized in that Before storing the multiple channels of video data, the method further includes: Obtaining the occurrence time of the alarm event; For multiple channels of video data, target video data within a preset time period before the occurrence time is obtained from the channel of video data; and the target video data is updated to the channel of video data.

5. The method according to claim 4, characterized in that The step of acquiring target video data within a preset time period before the occurrence time from the multiple video data includes: In response to an acquisition operation of target video data, a barrier lock is started; When the data acquisition preparation of the multiple channels of video data is completed, the barrier lock is closed, and the target video data within a preset time period before the occurrence time is acquired from the multiple channels of video data.

6. The method according to claim 1, characterized in that Storing the multiple channels of video data includes: For each channel of video data, the video data is segmented according to a preset duration to generate and store multiple sub-videos corresponding to the video data; wherein the duration of each sub-video corresponding to the video data is less than or equal to the preset duration, and the first frame data of each sub-video is key frame data.

7. The method according to claim 1, characterized in that The storing of the multiple channels of video data comprises: For multiple channels of video data, multiple images corresponding to multiple moments are captured from the multiple channels of video data at preset time intervals and stored.

8. A data storage device, characterized in that: include: A collection module, for controlling the multi-channel surround view cameras of the vehicle to synchronously collect video data in response to the activation of the sentry mode of the vehicle; An acquisition module, used to obtain the multi-channel video data collected by the multi-channel surround view cameras; wherein the collection range of the video data corresponding to each surround view camera is different; The storage module is used to identify whether an alarm event exists based on the multiple channels of video data, and if so, store the multiple channels of video data.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the data storage method described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the data storage method described in any one of claims 1 to 7 is implemented.

11. A vehicle, characterized in that: include: The device as claimed in claim 8, or the electronic device as claimed in claim 9.

Citation Information

Cited By

  • Vehicle sentry mode starting control method and system and intelligent domain controller

    CN121448314A