A driving recorder control method and related device

CN118840798BActive Publication Date: 2026-09-22GREAT WALL MOTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410838743.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2026-09-22
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

[0004]鉴于上述问题,本申请提供了一种行车记录仪控制方法及相关装置,以解决现有技术中若找到的视频帧正在被新的视频帧覆盖时无法正常录像的问题

Benefits of technology

[0037]借由上述技术方案,本申请提供的一种行车记录仪控制方法及相关装置,在车辆处于全车通电档位时,确定前视循环录像缓存区中预先存储的预设时长之前的第一帧信息,并在前视循环录像缓存区查询预设时长之前的第一视频帧,由于预设时长小于前视循环录像的循环覆盖周期的时长,第一视频帧正在被循环覆盖的概率极低,在此基础上,计算第一视频帧的帧信息,得到第二帧信息,第二帧信息与第一帧信息一致,解决了现有技术中若找到的视频帧正在被新的视频帧覆盖时无法正常录像的问题,提高了行车记录仪前视循环录像功能的可靠性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118840798B_ABST
    Figure CN118840798B_ABST
Patent Text Reader

Abstract

The application discloses a driving recorder control method and related device, and relates to the technical field of driving recorders. When a vehicle is in a full-vehicle power-on gear, first frame information before a preset time length is stored in advance in a front-view cyclic recording buffer area is determined, and a first video frame before the preset time length is inquired in the front-view cyclic recording buffer area. Since the preset time length is smaller than the time length of a cyclic coverage period of the front-view cyclic recording, the probability that the first video frame is being cyclically covered is extremely low. On this basis, frame information of the first video frame is calculated to obtain second frame information, and the second frame information is consistent with the first frame information. The problem that if a found video frame is being covered by a new video frame, normal recording cannot be performed in the prior art is solved, and the reliability of a front-view cyclic recording function of the driving recorder is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of dash cam technology, and more specifically, to a dash cam control method and related device. Background Technology

[0002] In vehicles equipped with dashcams, when the dashcam's front-view loop recording function is activated, the front-view loop recordings are stored in the dashcam's front-view loop recording buffer. Due to the limited storage space in the buffer, the front-view loop recording buffer is periodically overwritten.

[0003] Taking a dashcam with a 22.5MB front-view loop recording buffer as an example, this type of dashcam typically stores 15 seconds of front-view loop video frames. Once the buffer is full, it begins to overwrite existing frames. The current principle behind the front-view loop recording function is as follows: After the vehicle is powered on for a period of time, the dashcam starts recording the first frame. When the vehicle is fully powered on, it retrieves the target frame from the pre-saved frame information, looking back 15 seconds. Based on this target frame information, it searches for the corresponding video frame in the front-view loop recording buffer, calculates the frame information of the found frame, and checks if the calculated frame information matches the pre-saved target frame information. If they match, recording continues normally. However, if the found video frame is being overwritten by a new video frame, the calculated frame information will not match the pre-saved target frame information, causing the frame search to fail and recording to stop. Summary of the Invention

[0004] In view of the above problems, this application provides a dashcam control method and related device to solve the problem in the prior art that recording cannot be performed normally when a found video frame is being overwritten by a new video frame. The specific solution is as follows:

[0005] The first aspect of this application provides a method for controlling a vehicle dashcam, including:

[0006] In response to the vehicle being in the fully powered-on position, the information of the first frame before the preset duration stored in the forward loop recording buffer is determined, wherein the preset duration is less than the duration of the loop coverage cycle of the forward loop recording.

[0007] Query the first video frame before the preset duration in the forward loop recording buffer;

[0008] Calculate the frame information of the first video frame to obtain the second frame information;

[0009] Verify whether the information in the first frame is consistent with the information in the second frame;

[0010] If the first frame information is consistent with the second frame information, the first video frame and the video frames after the first video frame in the forward loop recording buffer are stored in the storage unit.

[0011] One possible implementation also includes:

[0012] A portion of the storage space of the surround loop recording buffer is allocated to the forward loop recording buffer to obtain the updated forward loop recording buffer.

[0013] The duration of the loop coverage period for the forward loop recording is updated based on the size of the updated forward loop recording buffer.

[0014] One possible implementation also includes:

[0015] If the first frame information is inconsistent with the second frame information, return to the step of determining the first frame information before the preset duration stored in the forward loop recording buffer, and perform iterative verification on the first frame information and the second frame information until the first frame information is consistent with the second frame information or the iterative verification stop condition is met. In each iterative verification, the preset duration is less than the preset duration of the previous iterative verification.

[0016] If the iterative verification stop condition is met, the video frames recorded after the vehicle is in the fully powered-on position are stored in the storage unit.

[0017] In one possible implementation, after the vehicle is in the fully powered-on state, the following is also included:

[0018] Determine the information of the third frame prior to the loop coverage period pre-stored in the forward loop recording buffer;

[0019] Query the second video frame preceding the loop coverage period in the forward loop recording buffer;

[0020] Calculate the frame information of the second video frame to obtain the information of the fourth frame;

[0021] Verify whether the information in the third frame is consistent with the information in the fourth frame;

[0022] If the information of the third frame is inconsistent with the information of the fourth frame, the step of determining the information of the first frame before the preset duration stored in the forward loop recording buffer is executed.

[0023] In one possible implementation, verifying whether the first frame information and the second frame information are consistent includes:

[0024] The check value in the first frame information is checked to see if it is consistent with the check value in the second frame information. The check value in the frame information is the sum of the first N bytes of the video frame corresponding to the frame information, where N is a positive integer.

[0025] A second aspect of this application provides a vehicle recorder control device, comprising:

[0026] The first frame information determination unit is used to determine the first frame information before a preset duration stored in the forward loop recording buffer in response to the vehicle being in the fully powered-on position. The preset duration is less than the duration of the loop coverage cycle of the forward loop recording.

[0027] The first video frame query unit is used to query the first video frame before the preset duration in the forward loop recording buffer.

[0028] The first frame information calculation unit is used to calculate the frame information of the first video frame to obtain the second frame information;

[0029] The first frame information verification unit is used to verify whether the first frame information and the second frame information are consistent.

[0030] The first video frame storage unit is configured to store the first video frame and the video frames following the first video frame in the forward loop recording buffer into the storage unit if the first frame information is consistent with the second frame information.

[0031] A third aspect of this application provides a dashcam, comprising at least one processor and a memory connected to the processor, wherein:

[0032] The memory is used to store computer programs;

[0033] The processor is used to execute the computer program so that the dashcam can implement the dashcam control method of the first aspect or any implementation thereof.

[0034] The fourth aspect of this application provides a vehicle that includes the dashcam described in the third aspect above.

[0035] The fifth aspect of this application provides a computer program product, including computer-readable instructions, which, when executed on a dashcam, cause the dashcam to implement the dashcam control method of the first aspect or any implementation thereof.

[0036] The sixth aspect of this application provides a computer storage medium carrying one or more computer programs, which, when executed by a dashcam, enable the dashcam to implement the dashcam control method described in the first aspect or any implementation thereof.

[0037] By employing the above technical solution, the dashcam control method and related device provided in this application, when the vehicle is in the fully powered-on position, determines the first frame information before a preset duration stored in the forward loop recording buffer, and queries the forward loop recording buffer for the first video frame before the preset duration. Since the preset duration is less than the duration of the forward loop recording's loop coverage cycle, the probability that the first video frame is being loop-covered is extremely low. Based on this, the frame information of the first video frame is calculated to obtain the second frame information, which is consistent with the first frame information. This solves the problem in the prior art that recording cannot proceed normally when the found video frame is being covered by a new video frame, and improves the reliability of the dashcam's forward loop recording function. Attached Figure Description

[0038] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0039] Figure 1 A schematic diagram illustrating the principle of enabling the forward loop recording function of a dashcam provided in this application;

[0040] Figure 2 A schematic diagram illustrating the principle of enabling the forward loop recording function of another dashcam provided in this application;

[0041] Figure 3 A flowchart illustrating a vehicle recorder control method provided in an embodiment of this application;

[0042] Figure 4 A schematic diagram illustrating the principle of enabling the forward loop recording function of a dashcam, as provided in this application embodiment;

[0043] Figure 5 A schematic diagram illustrating the principle of enabling the forward loop recording function of another dashcam provided in an embodiment of this application;

[0044] Figure 6 This is a schematic diagram of the structure of a vehicle recorder control device provided in an embodiment of this application;

[0045] Figure 7 This is a schematic diagram of the structure of a dashcam provided in an embodiment of this application. Detailed Implementation

[0046] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.

[0047] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.

[0048] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.

[0049] Taking a dashcam with a 22.5MB front-view loop recording buffer as an example, this type of dashcam typically stores 15 seconds of front-view loop video frames. Once the buffer is full, it begins to overwrite the existing frames. The current principle for enabling front-view loop recording is as follows: After the vehicle is awakened from sleep mode for a period of time (usually 5 seconds), the dashcam starts recording the first frame. Once the vehicle is in the ON position (fully powered on), it retrieves the target frame from the pre-saved frame information, looking back 15 seconds. Based on this target frame information, it searches for the corresponding video frame in the front-view loop recording buffer, calculates the frame information of the found frame, and determines whether the calculated frame information matches the pre-saved target frame information. If they match, normal recording continues.

[0050] Please see Figure 1 The diagram shown illustrates the principle of the dashcam's forward loop recording function. If the ON position is turned on after the first frame is started but before the initial video frame is covered, that is, within 15 seconds after the first frame is started, the target frame is found by searching backwards for 15 seconds from the current frame. The target frame has not yet been covered, and the calculated frame information is consistent with the pre-saved target frame information.

[0051] Please see Figure 2The diagram shown illustrates the principle of the dashcam's forward loop recording function. When the dashcam is powered on (ON), after the initial video frame is overwritten, the forward loop recording buffer is full of 15 seconds of video frames, and the loop overwriting has already begun. If the target frame found 15 seconds before the current frame is being overwritten by a new video frame, the calculated frame information is inconsistent with the pre-saved target frame information, resulting in failure and exit. Currently, the dashcam's control logic will continue to search for video frames, thus resulting in continuous failures and inability to record normally.

[0052] To address the aforementioned problems, this application provides a dashcam control method. The dashcam control method of this application embodiment will be described in detail below with reference to the accompanying drawings.

[0053] Reference Figure 3 , Figure 3 This is a flowchart illustrating a dashcam control method provided in an embodiment of this application, as shown below. Figure 3 As shown in the embodiment of this application, a vehicle recorder control method may include steps 301 to 305, which are described in detail below.

[0054] 301: In response to the vehicle being in the fully powered-on position, determine the first frame information before a preset duration stored in the forward loop recording buffer, wherein the preset duration is less than the duration of the loop coverage cycle of the forward loop recording;

[0055] The ON position, also known as the vehicle ignition switch, is one of the positions on the vehicle's ignition switch. Its main function is to connect the power supply to all electrical equipment inside the vehicle.

[0056] It should be noted that when the vehicle is woken up from sleep mode, such as by unlocking the vehicle, the dashcam will start recording the first frame after the vehicle has been awakened for a period of time. At this time, since the vehicle is not powered on, the dashcam cannot display the recorded video.

[0057] The front-view loop recording buffer of the dashcam includes a frame information queue and a frame data queue. The frame data queue stores video frames within the loop coverage period. After a video frame is saved to the frame data queue, the frame information of the video frame is calculated and saved to the frame information queue.

[0058] For example, the frame information includes the video frame data generation time, the time of entering the frame data queue, the size of the video frame data, the position of the video frame in the frame data queue, and a check value. The check value is calculated based on the video frame data, such as the sum of the first N bytes of the video frame data, where N is a positive integer, for example, N can be 16.

[0059] In response to the vehicle being in a fully powered-on state, the system first calculates the time when the video frame data was generated or entered the frame data queue a preset duration prior to the event. Then, based on the calculated time, the system retrieves the corresponding first frame information from the frame information queue in the forward loop recording buffer. The preset duration is less than the duration of the forward loop recording's loop coverage period. For example, if the duration of the forward loop recording's loop coverage period is 15 seconds, the preset duration can be 14 seconds.

[0060] 302: Query the first video frame before the preset duration in the forward loop recording buffer;

[0061] For example, based on the position of the video frame in the frame data queue in the first frame information, the first video frame before the preset duration is queried in the forward loop recording buffer. The position of the video frame in the frame data queue in the first frame information is the position of the first video frame in the frame data queue.

[0062] 303: Calculate the frame information of the first video frame to obtain the second frame information;

[0063] For example, the checksum of the first video frame is calculated to obtain the information of the second frame containing the checksum.

[0064] For example, the time when the first video frame enters the data queue is determined, and information about the second frame containing that time is obtained.

[0065] 304: Verify whether the information in the first frame is consistent with the information in the second frame;

[0066] For example, it is verified whether the check value in the first frame information is consistent with the check value in the second frame information.

[0067] For example, it is verified whether the time when the video frame enters the frame data queue in the first frame information is consistent with the time when the video frame enters the frame data queue in the second frame information.

[0068] 305: If the first frame information is consistent with the second frame information, store the first video frame and the video frames after the first video frame in the forward loop recording buffer into the storage unit.

[0069] It should be noted that storing the first video frame and the video frames after the first video frame in the forward loop recording buffer into the storage unit means copying the video frames recorded after the vehicle is woken up from the forward loop recording buffer into the storage unit. Users can then access the dashcam APP on the multimedia display screen to view the videos stored in the storage unit.

[0070] It is understandable that if the vehicle's ON position power is not in use before the initial video frame is covered, i.e. before the loop coverage begins, the first video frame retrieved from the forward loop recording buffer has not yet been covered, and at this time the information of the first frame is consistent with the information of the second frame.

[0071] If the vehicle is in the ON position and the initial video frame is being covered, since the preset duration is less than the duration of the loop coverage cycle of the forward loop recording, the first video frame before the preset duration is not yet covered when querying the forward loop recording buffer. At this time, the information of the first frame is consistent with the information of the second frame. This solves the problem in the prior art that recording cannot be performed normally when the found video frame is being covered by a new video frame, and improves the reliability of the forward loop recording function of the dashcam.

[0072] The dashcam's buffer stores video types including: front-view loop recording, surround-view loop recording, and event recording. For different video types, different buffer sizes are predefined in the dashcam's buffer, with front-view loop recording, surround-view loop recording, and event recording each corresponding to one buffer.

[0073] In one possible implementation, a portion of the storage space in the surround-view loop recording buffer is allocated to the forward-view loop recording buffer, resulting in an updated forward-view loop recording buffer, for example, expanding the forward-view loop recording buffer from 22.5M to 25.5M. Then, the duration of the loop coverage period for the forward-view loop recording is updated based on the size of the updated forward-view loop recording buffer, for example, updating the duration of the loop coverage period for the forward-view loop recording from 15 seconds to 17 seconds. This further increases the time difference between the duration of the loop coverage period for the forward-view loop recording and a preset duration.

[0074] Please see Figure 4 The diagram shown illustrates the principle of the dashcam's forward loop recording function. If the ON position is turned on after the first frame is activated but before the initial video frame is covered (i.e., within 17 seconds of the loop coverage period after the first frame is activated), the time when the video frame data was generated or entered the frame data queue before the preset duration (14 seconds) is first calculated. Then, based on the calculated time when the video frame data was generated or entered the frame data queue, the corresponding first frame information is retrieved from the frame information queue in the forward loop recording buffer. Next, the first video frame before the preset duration (14 seconds) is retrieved from the frame data queue. Since the first video frame has not yet been covered, the frame information of the first video frame is calculated to obtain the second frame information. The second frame information is consistent with the pre-saved target frame information.

[0075] Please see Figure 5The diagram shown illustrates the principle of the dashcam's forward loop recording function. When the dashcam is in the ON position, after the initial video frame is covered, the forward loop recording buffer is full of 17 seconds of video frames, and the loop coverage has begun. That is, the loop coverage starts from the first frame. Since the preset duration (14 seconds) is much shorter than the loop coverage period (17 seconds), the first video frame before the preset duration (14 seconds) has not yet been covered when querying the forward loop recording buffer. At this time, the information of the first frame is consistent with the information of the second frame.

[0076] This embodiment extends the duration of the loop coverage period of the front-view loop recording by expanding the size of the front-view loop recording buffer. This further increases the time difference between the duration of the loop coverage period of the front-view loop recording and the preset duration, further reducing the probability that the first video frame is being loop-overwritten. This solves the problem in the prior art that recording cannot be performed normally when the found video frame is being overwritten by a new video frame, and improves the reliability of the front-view loop recording function of the dashcam.

[0077] In one possible implementation, this embodiment also adds a protection mechanism: if the first frame information is inconsistent with the second frame information, the step of determining the first frame information before the preset duration stored in the forward loop recording buffer is returned, and the first frame information and the second frame information are iteratively verified until the first frame information and the second frame information are consistent or the iterative verification stop condition is met. In each iterative verification, the preset duration is less than the preset duration of the previous iterative verification. If the iterative verification stop condition is met, the video frames recorded after the vehicle is in the fully powered-on position are stored in the storage unit.

[0078] For example, taking a 15-second loop coverage period for forward-looking video recording as an example, the preset duration for the first iteration check is 14 seconds, the preset duration for the second iteration check is 13 seconds, the preset duration for the third iteration check is 12 seconds, and so on. Specifically, in response to the vehicle being in a fully powered-on state, the system determines the first frame information from 14 seconds prior, which is pre-stored in the forward-looking loop recording buffer; it queries the first video frame from 14 seconds prior in the forward-looking loop recording buffer; then it calculates the frame information of the first video frame to obtain the second frame information; it checks whether the first frame information and the second frame information are consistent; if the first frame information and the second frame information are inconsistent, it returns to determining the first frame information from 13 seconds prior, which is pre-stored in the forward-looking loop recording buffer, and starts iterative verification, recording the duration or number of iteration checks, until the first frame information and the second frame information are consistent or the iterative verification stop condition is met. The iterative verification stop condition is that the duration of the iteration check reaches a first threshold (e.g., 10 seconds) or the number of iteration checks reaches a second threshold (e.g., 10 times).

[0079] This embodiment adds a protection mechanism to ensure that forward loop recording can be started normally in any scenario.

[0080] Furthermore, if the first frame information is consistent with the second frame information, the first video frame and the video frames after the first video frame in the forward loop recording buffer will be stored in the storage unit so that the user can access the dashcam APP on the multimedia display screen and watch the video stored in the storage unit. In order to allow the user to see the longest possible video, the dashcam control method provided in this embodiment responds to the vehicle being in the fully powered-on position and uses an adaptive duration to query the duration of the first video frame.

[0081] Specifically, in response to the vehicle being in the fully powered-on position, the system determines the third frame information before the pre-stored loop coverage period in the forward loop recording buffer; queries the second video frame before the loop coverage period in the forward loop recording buffer; calculates the frame information of the second video frame to obtain the fourth frame information; verifies whether the third frame information and the fourth frame information are consistent; if the third frame information and the fourth frame information are inconsistent, the system executes the step of determining the first frame information before the pre-stored preset duration in the forward loop recording buffer.

[0082] Taking a 15-second loop coverage period as an example, firstly, the third frame information 15 seconds ago, which is pre-stored in the forward loop recording buffer, is determined. Then, the second video frame 15 seconds ago is queried in the forward loop recording buffer, and the frame information of the second video frame is calculated to obtain the fourth frame information. The consistency between the third and fourth frame information is verified. If the third and fourth frame information are inconsistent, the step of determining the first frame information 14 seconds ago, which is pre-stored in the forward loop recording buffer, is executed. The first video frame 14 seconds ago is queried in the forward loop recording buffer, and the frame information of the first video frame is calculated to obtain the second frame information. The consistency between the first and second frame information is then verified.

[0083] In other words, if the video frames within 15 seconds before the vehicle is switched on are stored in the storage unit, then the video frames within 15 seconds before the vehicle is switched on are stored in the storage unit. If not, then the video frames within 14 seconds before the vehicle is switched on are stored in the storage unit, so that the user can see the longest possible video and achieve adaptive duration for querying the first video frame.

[0084] The above describes a vehicle recorder control method provided by the embodiments of this application. The following will describe the apparatus for performing the above-described vehicle recorder control method.

[0085] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of a vehicle recorder control device provided in an embodiment of this application. Figure 6As shown, the dashcam control device includes:

[0086] The first frame information determination unit 601 is used to determine the first frame information before a preset duration stored in the forward loop recording buffer in response to the vehicle being in the fully powered-on position. The preset duration is less than the duration of the loop coverage cycle of the forward loop recording.

[0087] The first video frame query unit 602 is used to query the first video frame before the preset duration in the forward loop recording buffer.

[0088] The first frame information calculation unit 603 is used to calculate the frame information of the first video frame to obtain the second frame information;

[0089] The first frame information verification unit 604 is used to verify whether the first frame information and the second frame information are consistent.

[0090] The first video frame storage unit 605 is used to store the first video frame and the video frames following the first video frame in the forward loop recording buffer into the storage unit if the first frame information is consistent with the second frame information.

[0091] In one possible implementation, the vehicle recorder control device further includes:

[0092] A buffer expansion unit is used to allocate a portion of the storage space of the surround loop recording buffer to the forward loop recording buffer to obtain an updated forward loop recording buffer.

[0093] The loop coverage period update unit is used to update the duration of the loop coverage period of the forward loop recording according to the updated size of the forward loop recording buffer.

[0094] In one possible implementation, the vehicle recorder control device further includes:

[0095] An iterative verification unit is used to trigger the first frame information determination unit if the first frame information is inconsistent with the second frame information, and to perform iterative verification on the first frame information and the second frame information until the first frame information is consistent with the second frame information or the iterative verification stop condition is met. In each iterative verification, the preset duration is less than the preset duration of the previous iterative verification.

[0096] The second video frame storage unit is used to store video frames recorded after the vehicle is in the fully powered-on position if the iterative verification stop condition is met.

[0097] In one possible implementation, the vehicle recorder control device further includes:

[0098] The third frame information determination unit is used to determine the third frame information before the loop coverage period that is pre-stored in the forward loop recording buffer after the vehicle is in the fully powered position.

[0099] The second video frame query unit is used to query the second video frame before the loop coverage period in the forward loop recording buffer.

[0100] The second frame information calculation unit is used to calculate the frame information of the second video frame to obtain the fourth frame information;

[0101] The second frame information verification unit is used to verify whether the third frame information is consistent with the fourth frame information; if the third frame information is inconsistent with the fourth frame information, the first frame information determination unit is triggered.

[0102] In one possible implementation, the first frame information verification unit 604 is specifically used to verify whether the verification value in the first frame information is consistent with the verification value in the second frame information. The verification value in the frame information is the sum of the first N bytes of the video frame corresponding to the frame information, where N is a positive integer.

[0103] This embodiment discloses a dashcam control device that, when the vehicle is fully powered on, determines the first frame information before a preset duration stored in the forward loop recording buffer, and queries the forward loop recording buffer for the first video frame before the preset duration. Since the preset duration is less than the duration of the forward loop recording's loop coverage cycle, the probability that the first video frame is being loop-overwritten is extremely low. Based on this, the frame information of the first video frame is calculated to obtain the second frame information, which is consistent with the first frame information. This solves the problem in the prior art that recording cannot proceed normally when the found video frame is being overwritten by a new video frame, thus improving the reliability of the dashcam's forward loop recording function.

[0104] This application also provides a dashcam in its embodiments. (See reference...) Figure 7 As shown, it illustrates a structural schematic diagram suitable for implementing the dashcam in the embodiments of this application.

[0105] like Figure 7As shown, the dashcam may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. When the dashcam is powered on, the RAM 703 also stores various programs and data required for the operation of the dashcam. The processing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0106] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, a touchscreen, touchpad, buttons, camera, microphone, accelerometer, gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 708 including, for example, memory card, hard disk, etc.; and communication devices 709. Communication device 709 allows the dashcam to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 A dashcam with various devices is shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or included alternatively.

[0107] This application also provides a vehicle, including the dashcam provided in the above embodiments.

[0108] This application also provides a computer program product including computer-readable instructions, which, when executed on a dashcam, cause the dashcam to implement any of the dashcam control methods provided in this application.

[0109] This application also provides a computer-readable storage medium carrying one or more computer programs. When the one or more computer programs are executed by the dashcam, the dashcam can implement any of the dashcam control methods provided in this application.

[0110] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.

[0111] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0112] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.

[0113] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).

Claims

1. A method for controlling a vehicle dashcam, characterized in that, include: In response to the vehicle being in the fully powered-on position, the information of the first frame before the preset duration stored in the forward loop recording buffer is determined, wherein the preset duration is less than the duration of the loop coverage cycle of the forward loop recording. Query the first video frame before the preset duration in the forward loop recording buffer; Calculate the frame information of the first video frame to obtain the second frame information; Verify whether the information in the first frame is consistent with the information in the second frame; If the first frame information is consistent with the second frame information, the first video frame and the video frames after the first video frame in the forward loop recording buffer are stored in the storage unit. If the first frame information is inconsistent with the second frame information, return to the step of determining the first frame information before the preset duration stored in the forward loop recording buffer, and perform iterative verification on the first frame information and the second frame information until the first frame information is consistent with the second frame information or the iterative verification stop condition is met. In each iterative verification, the preset duration is less than the preset duration of the previous iterative verification. If the iterative verification stop condition is met, the video frames recorded after the vehicle is in the fully powered-on position are stored in the storage unit.

2. The vehicle recorder control method according to claim 1, characterized in that, Also includes: A portion of the storage space of the surround loop recording buffer is allocated to the forward loop recording buffer to obtain the updated forward loop recording buffer. The duration of the loop coverage period for the forward loop recording is updated based on the size of the updated forward loop recording buffer.

3. The vehicle recorder control method according to claim 1, characterized in that, After the vehicle is in the fully powered-on state, the response also includes: Determine the information of the third frame prior to the loop coverage period pre-stored in the forward loop recording buffer; Query the second video frame preceding the loop coverage period in the forward loop recording buffer; Calculate the frame information of the second video frame to obtain the information of the fourth frame; Verify whether the information in the third frame is consistent with the information in the fourth frame; If the information of the third frame is inconsistent with the information of the fourth frame, the step of determining the information of the first frame before the preset duration stored in the forward loop recording buffer is executed.

4. The vehicle recorder control method according to claim 1, characterized in that, The step of verifying whether the first frame information and the second frame information are consistent includes: The check value in the first frame information is checked to see if it is consistent with the check value in the second frame information. The check value in the frame information is the sum of the first N bytes of the video frame corresponding to the frame information, where N is a positive integer.

5. A vehicle recorder control device, characterized in that, include: The first frame information determination unit is used to determine the first frame information before a preset duration stored in the forward loop recording buffer in response to the vehicle being in the fully powered-on position. The preset duration is less than the duration of the loop coverage cycle of the forward loop recording. The first video frame query unit is used to query the first video frame before the preset duration in the forward loop recording buffer. The first frame information calculation unit is used to calculate the frame information of the first video frame to obtain the second frame information; The first frame information verification unit is used to verify whether the first frame information and the second frame information are consistent. The first video frame storage unit is used to store the first video frame and the video frames after the first video frame in the forward loop recording buffer into the storage unit if the first frame information is consistent with the second frame information. An iterative verification unit is used to trigger the first frame information determination unit if the first frame information is inconsistent with the second frame information, and to perform iterative verification on the first frame information and the second frame information until the first frame information is consistent with the second frame information or the iterative verification stop condition is met. In each iterative verification, the preset duration is less than the preset duration of the previous iterative verification. The second video frame storage unit is used to store video frames recorded after the vehicle is in the fully powered-on position if the iterative verification stop condition is met.

6. A dashcam, characterized in that, It includes at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the dashcam can implement the dashcam control method as described in any one of claims 1 to 4.

7. A vehicle, characterized in that, Includes the dashcam as described in claim 6.

8. A computer program product, characterized in that, It includes computer-readable instructions that, when executed on the dash cam, cause the dash cam to implement the dash cam control method as described in any one of claims 1 to 4.

9. A computer storage medium, characterized in that, The storage medium carries one or more computer programs, which, when executed by the dashcam, enable the dashcam to implement the dashcam control method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method for processing multi-channel monitoring video data, streaming media server and electronic equipment

    CN113382210A

  • Autonomous vehicle data recorders

    CN113382909A