US-12626509-B2 - Driving recorder and method for storing video
Abstract
A driving recorder includes a capturing module, a communication module, a storage medium, and a processor. The capturing module is configured to capture a driving video. The communication module is configured to communicate with a server using wireless communication technology. The storage medium is configured to store the driving video. The processor is electrically connected to the capturing module, the communication module and the storage medium, and is configured to, when determining that a weather condition meets a predetermined condition, upload a time-lapse video to the server through the communication module, where the time-lapse video is related to the driving video.
Inventors
- Shu-Ling Chen
Assignees
- Mitac Digital Technology Corporation
Dates
- Publication Date
- 20260512
- Application Date
- 20240815
- Priority Date
- 20230818
Claims (18)
- 1 . A driving recorder, comprising: a capturing module configured to capture a driving video; a communication module configured to communicate with a server using wireless communication technology; a storage medium configured to store the driving video; and a processor electrically connected to said capturing module, said communication module and said storage medium, and configured to, when determining that a weather condition meets a predetermined condition, upload a time-lapse video to the server through said communication module, where the time-lapse video is related to the driving video, wherein said processor is further configured to obtain a determination score related to the weather condition by inputting successive frames of the driving video into a deep learning model, and wherein said processor is configured to determine that the predetermined condition is met when a preset count of determination scores that are consecutively obtained by the deep learning model converge to a predetermined score, where the predetermined score corresponds to a bad weather condition that is related to one of fog, rain, snow and dust.
- 2 . The driving recorder as claimed in claim 1 , wherein: said processor is further configured to obtain a visibility index by performing image recognition for one of the frames of the driving video; and said processor is further configured to, when determining that the visibility index is smaller than a threshold, adjust the weather condition obtained by the deep learning model to be another weather condition that corresponds to a lower visibility.
- 3 . The driving recorder as claimed in claim 1 , wherein: said processor is further configured to obtain a plurality of visibility indices by performing image recognition for multiple ones of the frames of the driving video; and said processor is further configured to, when determining that a plurality of drops in the visibility indices occurred consecutively over a predetermined period, and that each of the drops in the visibility indices reaches a threshold, adjust the weather condition obtained by the deep learning model to be another weather condition that corresponds to a lower visibility.
- 4 . The driving recorder as claimed in claim 1 , further comprising a global positioning system (GPS) module electrically connected to said processor and configured to obtain geographical coordinate information, wherein said processor is further configured to determine whether a road type is a regular road or a high-speed road based on the driving video, to obtain a driving speed based on the geographical coordinate information, and to determine, based on the driving speed and the road type, a video duration and an upload frequency for the time-lapse video.
- 5 . The driving recorder as claimed in claim 4 , wherein said processor is configured to, when determining that the weather condition meets the predetermined condition, that the road type is the regular road, and that the driving speed is greater than a first predetermined speed, upload, to the server, a compressed video as the time-lapse video every a first time period, where the compressed video is obtained by reducing a number of frames of the driving video in a manner that every minute of the driving video is presented in the compressed video for a first duration that is less than one minute, and where the driving video is last captured by said capturing module and has a duration equal to the first time period.
- 6 . The driving recorder as claimed in claim 4 , wherein said processor is configured to, when determining that the weather condition meets the predetermined condition, that the road type is the high-speed road, and that the driving speed is greater than a second predetermined speed and slower than a third predetermined speed, upload, to the server, a compressed video as the time-lapse video every a second time period, where the compressed video is obtained by reducing a number of frames of the driving video in a manner that every minute of the driving video is presented in the compressed video for a second duration that is less than one minute, and where the driving video is last captured by said capturing module and has a duration equal to the second time period.
- 7 . The driving recorder as claimed in claim 6 , wherein said processor is configured to, when determining that the weather condition meets the predetermined condition, that the road type is the high-speed road, and that the driving speed is greater than the third predetermined speed, upload, to the server, another compressed video as the time-lapse video every a third time period, where the another compressed video is obtained by reducing the number of frames of the driving video in a manner that every minute of the driving video is presented in the compressed video for a third duration that is less than one minute, and where the driving video is last captured by said capturing module and has a duration equal to the third time period.
- 8 . A method for storing video adapted for a driving recorder and a server, the driving recorder including a capturing module, a communication module, a storage medium, and a processor, the driving recorder communicating with the server through the communication module, the method comprising: the capturing module capturing a driving video; the storage medium storing the driving video; in response to determining that a weather condition meets a predetermined condition, the processor uploading a time-lapse video to the server through the communication module, where the time-lapse video is related to the driving video; and before uploading the time-lapse video to the server, the processor obtaining a determination score related to the weather condition by inputting successive frames of the driving video into a deep learning model, wherein the processor determines that the predetermined condition is met when a preset count of determination scores that are consecutively obtained by the deep learning model converge to a predetermined score, where the predetermined score corresponds to a bad weather condition that is related to one of fog, rain, snow and dust.
- 9 . The method as claimed in claim 8 , wherein obtaining the weather condition includes: the processor obtaining a visibility index by performing image recognition for one of the frames of the driving video; and in response to determining that the visibility index is smaller than a threshold, the processor adjusting the weather condition obtained by the deep learning model to be another weather condition that corresponds to a lower visibility.
- 10 . The method as claimed in claim 8 , wherein obtaining the weather condition includes: the processor obtaining a plurality of visibility indices by performing image recognition for multiple ones of the frames of the driving video; and in response to determining that a plurality of drops in the visibility indices occurred consecutively over a predetermined period, and that each of the drops in the visibility indices reaches a threshold, the processor adjusting the weather condition obtained by the deep learning model to be another weather condition that corresponds to a lower visibility.
- 11 . The method as claimed in claim 8 , the driving recorder further including a global positioning system (GPS) module that obtains geographical coordinate information, wherein uploading the time-lapse video to the server includes: the processor determining whether a road type is a regular road or a high-speed road based on the driving video; the processor obtaining a driving speed based on the geographical coordinate information; and the processor determining, based on the driving speed and the road type, a video duration and an upload frequency for the time-lapse video.
- 12 . The method as claimed in claim 11 , wherein uploading the time-lapse video to the server further includes, in response to determining that the weather condition meets the predetermined condition, that the road type is the regular road, and that the driving speed is greater than a first predetermined speed, the processor uploading, to the server, a compressed video as the time-lapse video every a first time period, where the compressed video is obtained by reducing a number of frames of the driving video in a manner that every minute of the driving video is presented in the compressed video for a first duration that is less than one minute, and where the driving video is last captured by said capturing module and has a duration equal to the first time period.
- 13 . The method as claimed in claim 11 , wherein uploading the time-lapse video to the server further includes, in response to determining that the weather condition meets the predetermined condition, that the road type is the high-speed road, and that the driving speed is greater than a second predetermined speed and slower than a third predetermined speed, the processor uploading, to the server, a compressed video as the time-lapse video every a second time period, where the compressed video is obtained by reducing a number of frames of the driving video in a manner that every minute of the driving video is presented in the compressed video for a second duration that is less than one minute, and where the driving video is last captured by said capturing module and has a duration equal to the second time period.
- 14 . The method as claimed in claim 13 , wherein uploading the time-lapse video to the server further includes, in response to determining that the weather condition meets the predetermined condition, that the road type is the high-speed road, and that the driving speed is greater than the third predetermined speed, the processor uploading, to the server, another compressed video as the time-lapse video every a third time period, where the another compressed video is obtained by reducing the number of frames of the driving video in a manner that every minute of the driving video is presented in the compressed video for a third duration that is less than one minute, and where the driving video is last captured by said capturing module and has a duration equal to the third time period.
- 15 . A driving recorder, comprising: a capturing module configured to capture a driving video; a communication module configured to communicate with a server using wireless communication technology; a storage medium configured to store the driving video; a processor electrically connected to said capturing module, said communication module and said storage medium, and configured to, when determining that a weather condition meets a predetermined condition, upload a time-lapse video to the server through said communication module, where the time-lapse video is related to the driving video; and a global positioning system (GPS) module electrically connected to said processor and configured to obtain geographical coordinate information, wherein said processor is further configured to determine whether a road type is a regular road or a high-speed road based on the driving video, to obtain a driving speed based on the geographical coordinate information, and to determine, based on the driving speed and the road type, a video duration and an upload frequency for the time-lapse video.
- 16 . The driving recorder as claimed in claim 15 , wherein said processor is configured to, when determining that the weather condition meets the predetermined condition, that the road type is the regular road, and that the driving speed is greater than a first predetermined speed, upload, to the server, a compressed video as the time-lapse video every a first time period, where the compressed video is obtained by reducing a number of frames of the driving video in a manner that every minute of the driving video is presented in the compressed video for a first duration that is less than one minute, and where the driving video is last captured by said capturing module and has a duration equal to the first time period.
- 17 . The driving recorder as claimed in claim 15 , wherein said processor is configured to, when determining that the weather condition meets the predetermined condition, that the road type is the high-speed road, and that the driving speed is greater than a second predetermined speed and slower than a third predetermined speed, upload, to the server, a compressed video as the time-lapse video every a second time period, where the compressed video is obtained by reducing a number of frames of the driving video in a manner that every minute of the driving video is presented in the compressed video for a second duration that is less than one minute, and where the driving video is last captured by said capturing module and has a duration equal to the second time period.
- 18 . The driving recorder as claimed in claim 17 , wherein said processor is configured to, when determining that the weather condition meets the predetermined condition, that the road type is the high-speed road, and that the driving speed is greater than the third predetermined speed, upload, to the server, another compressed video as the time-lapse video every a third time period, where the another compressed video is obtained by reducing the number of frames of the driving video in a manner that every minute of the driving video is presented in the compressed video for a third duration that is less than one minute, and where the driving video is last captured by said capturing module and has a duration equal to the third time period.
Description
CROSS-REFERENCE TO RELATED APPLICATION This application claims priority to Taiwanese Invention patent application No. 112131114, filed on Aug. 18, 2023, the entire disclosure of which is incorporated by reference herein. FIELD The disclosure relates to a driving recorder and a method for storing video. BACKGROUND A driving recorder is a recording device installed on a vehicle, and is configured to record and store a driving video (usually an image in front of the vehicle) once the driving recorder is turned on. The driving video stored in the driving recorder may be used as an evidence if a traffic accident occurs. A conventional driving recorder typically stores the driving video in a memory card therein (e.g., a secure digital (SD) card). However, the SD card may be damaged during the traffic accident, especially when the traffic accident involves a large impact force or fire. In poor weather conditions, traffic accidents are more likely to occur, which could lead to damage to the SD card, thereby potentially causing loss of the driving video stored in the SD card. A conventional method to avoid losing the driving video is to connect the conventional driving recorder to a server, so that the driving video may be uploaded to the server as a backup in case the driving video stored in the SD card is lost or damaged in the traffic accident. However, since data size of the driving video is large, uploading the entire driving video to the server might not be easily affordable. SUMMARY Therefore, an object of the disclosure is to provide a driving recorder and a method for storing video that can alleviate at least one of the drawbacks of the prior art. According to the disclosure, a driving recorder includes a capturing module, a communication module, a storage medium, and a processor. The capturing module is configured to capture a driving video. The communication module is configured to communicate with a server using wireless communication technology. The storage medium is configured to store the driving video. The processor is electrically connected to the capturing module, the communication module and the storage medium, and is configured to, when determining that a weather condition meets a predetermined condition, upload a time-lapse video to the server through the communication module, where the time-lapse video is related to the driving video. According to the disclosure, a method for storing video adapted for a driving recorder and a server is provided. The driving recorder includes a capturing module, a communication module, a storage medium, and a processor. The driving recorder communicates with the server through the communication module. The method includes: the capturing module capturing a driving video; the storage medium storing the driving video; and in response to determining that a weather condition meets a predetermined condition, the processor uploading a time-lapse video to the server through the communication module, where the time-lapse video is related to the driving video. BRIEF DESCRIPTION OF THE DRAWINGS Other features and advantages of the disclosure will become apparent in the following detailed description of the embodiment(s) with reference to the accompanying drawings. It is noted that various features may not be drawn to scale. FIG. 1 is a block diagram illustrating a driving recorder according to an embodiment of the disclosure. FIG. 2 is a flow chart illustrating a method for storing video according to an embodiment of the disclosure. DETAILED DESCRIPTION Before the disclosure is described in greater detail, it should be noted that where considered appropriate, reference numerals or terminal portions of reference numerals have been repeated among the figures to indicate corresponding or analogous elements, which may optionally have similar characteristics. Referring to FIG. 1, a driving recorder 100 according to an embodiment of the disclosure is adapted to communicate with a remote server 91 and a weather information server 92. The driving recorder 100 includes a processor 1, and a capturing module 2, a communication module 3, a storage medium 4, a global positioning system (GPS) module 6 and an inertial measurement unit (IMU) 7 that are electrically connected to the processor 1. The capturing module 2 is a camera including, for example, a photographic lens and an image sensor. The driving recorder 100 is disposed on a vehicle (not shown), and is configured to capture a driving video, such as an image in front of the vehicle. The communication module 3 is configured to communicate with the remote server 91 and the weather information server 92 using wireless communication technology (e.g., third generation (3G), fourth generation (4G) or fifth generation (5G) of the wireless mobile telecommunications technology, or Wi-Fi). The storage medium 4 is configured to store the driving video, and may be implemented as a memory card (e.g., a secure digital (SD) card). The IMU 7 is c