Driving video monitoring method and device based on vehicle-mounted camera and automobile
By identifying the vehicle's motion status and adjusting camera parameters, it solves the problem of video surveillance resource occupation and image quality in driving and parking states, and achieves efficient video surveillance in different scenarios.
Patent Information
- Application Number
- CN202410891736.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-29
AI Technical Summary
Existing technology is difficult to ensure the clarity of driving videos in various vehicle scenarios, especially since high-resolution cameras occupy storage space and processing resources, and it is difficult to save resources when video monitoring is in a parking state.
By identifying the vehicle's motion status, adjust the frame rate and resolution of the camera, set a higher frame rate and resolution when the vehicle is driving to capture high-speed details, and set a lower frame rate and resolution when the vehicle is parked to save resources. And save the videos in different folders according to the loop recording cycle.
It ensures the best image quality and storage efficiency under different motion states, avoids waste of resources, and achieves clear video surveillance in various scenarios.
Smart Images

Figure CN118865518A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automobile video monitoring, and in particular to a driving video monitoring method, device and automobile based on an on-board camera. Background Art
[0002] A dashcam is a special type of camera device that is specially designed to be installed on a vehicle to record video, sound and other related information during the vehicle's driving process. Traditional fuel vehicles generally use external cameras as dashcams, but with the development of autonomous driving technology, vehicles themselves are generally equipped with cameras for sensing the surrounding environment, including on-board cameras used as dashcams. This on-board camera can not only be used to record video, sound and other related information during the vehicle's driving process, but can also be used for parking monitoring, that is, continuous video monitoring can be performed even when the vehicle is parked.
[0003] In practical applications, in order to ensure the clarity of driving video, a high-resolution camera is generally required. Higher resolution also means that more storage space will be occupied and a more powerful processor may be required to process and encode the video. Although the existing driving recorder has a loop recording function, it is still necessary to consider the size of the storage space occupied by the recorded video. In addition, when the vehicle is driving, if the object being photographed moves quickly or the direction of movement is inconsistent with the direction of movement of the camera, even a high-resolution camera may not be able to fully capture a clear image of the object. Therefore, based on various factors, the camera installed on the vehicle for driving recording has improved resolution, but due to the diversity of the video scenes captured by the camera, simply improving the camera resolution cannot guarantee that the video captured by the camera in all vehicle use scenarios (including but not limited to driving and parking scenes) has clear image quality.
[0004] It can be seen that how to use a camera as a recorder to shoot videos of vehicles in various scenarios and ensure that the video has clear picture quality is a technical problem encountered in actual vehicle use scenarios. Summary of the invention
[0005] In view of this, the embodiments of the present application provide a driving video monitoring method, device and vehicle based on a vehicle-mounted camera to solve the problem in the prior art of how to use a camera as a recorder to shoot videos of the vehicle in various scenarios and ensure that the video has clear picture quality.
[0006] According to a first aspect of an embodiment of the present application, a method for driving video monitoring based on a vehicle-mounted camera is provided, which includes: identifying the movement state of a vehicle, the movement state including a driving state and a parking state; when the vehicle is in a driving state, setting the shooting parameters of at least one camera for driving video monitoring to a first frame rate and a first resolution, and shooting a first video based on the first frame rate and the first resolution; when the vehicle is in a parking state, setting the shooting parameters of at least one camera for driving video monitoring to a second frame rate and a second resolution, and shooting a second video based on the second frame rate and the second resolution, wherein the first frame rate is greater than the second frame rate, and the first resolution is less than the second resolution; and saving the first video and the second video in different folders according to their respective preset loop recording periods, wherein each folder corresponds to a first video or a second video shot in a loop recording period.
[0007] According to a second aspect of an embodiment of the present application, a driving video monitoring device based on a vehicle-mounted camera is provided, comprising: a state recognition module, configured to recognize the motion state of a vehicle, the motion state including a driving state and a parking state; a first setting module, configured to set the shooting parameters of at least one camera of the driving video monitoring to a first frame rate and a first resolution when the vehicle is in a driving state, and to shoot a first video based on the first frame rate and the first resolution; a second setting module, configured to set the shooting parameters of at least one camera of the driving video monitoring to a second frame rate and a second resolution when the vehicle is in a parking state, and to shoot a second video based on the second frame rate and the second resolution, wherein the first frame rate is greater than the second frame rate, and the first resolution is less than the second resolution; a video saving module, configured to save the first video and the second video in different folders according to their respective preset loop recording periods, wherein each folder corresponds to the first video or the second video shot in a loop recording period.
[0008] According to a third aspect of an embodiment of the present application, a car is provided, comprising a vehicle-mounted camera and a camera controller, wherein the vehicle-mounted camera supports at least two resolutions and frame rates and is connected to the camera controller, wherein the camera controller comprises at least a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0009] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the driving video monitoring method based on the vehicle-mounted camera provides a camera with adjustable frame rate and resolution, and then identifies the movement state of the vehicle. When the vehicle is in a driving state, the shooting parameters of at least one camera of the driving video monitoring are set to a first frame rate and a first resolution, and a first recorded video is shot based on the first frame rate and the first resolution; when the vehicle is in a parked state, the shooting parameters of at least one camera of the driving video monitoring are set to a second frame rate and a second resolution, and a second recorded video is shot based on the second frame rate and the second resolution, wherein the first frame rate is greater than the second frame rate, and the first resolution is less than the second resolution; finally, the first recorded video and the second recorded video are shot. The two recorded videos are saved in different folders according to their respective preset loop recording periods, and each folder corresponds to the first recorded video or the second recorded video shot in a loop recording period. Since the vehicle is moving at a high speed, the camera can be set to a higher frame rate and resolution to capture details and abnormal situations during high-speed driving; while in the parked state, the scene does not change much, and the camera can be set to a lower frame rate and resolution to save energy and storage space. This ensures that video surveillance can be continued even in the parked state without consuming too many resources. It can be seen that the technical solution provided by this application can ensure that the vehicle can obtain the best image quality and storage efficiency through the camera in different motion states. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0011] Figure 1 It is a flow chart of a vehicle video monitoring method based on a vehicle-mounted camera provided in an embodiment of the present application;
[0012] Figure 2 It is a structural schematic diagram of a vehicle-mounted camera-based vehicle video monitoring device provided in an embodiment of the present application;
[0013] Figure 3 is a structural schematic diagram of a car provided in an embodiment of the present application;
[0014] Figure 4 It is a structural schematic diagram of a camera controller provided in an embodiment of the present application. DETAILED DESCRIPTION
[0015] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0016] See also Figure 1 In the first embodiment of the present application, a vehicle video monitoring method based on a vehicle-mounted camera is provided, comprising the following steps:
[0017] S101, identifying the motion state of the vehicle, where the motion state of the vehicle includes a driving state and a parking state;
[0018] S102, when the vehicle is in a driving state, setting shooting parameters of at least one camera for driving video monitoring to a first frame rate and a first resolution, and shooting a first recorded video based on the first frame rate and the first resolution;
[0019] S103, when the vehicle is in a parked state, setting shooting parameters of at least one camera of driving video monitoring to a second frame rate and a second resolution, and shooting a second recorded video based on the second frame rate and the second resolution, wherein the first frame rate is greater than the second frame rate, and the first resolution is less than the second resolution;
[0020] S104, saving the first video and the second video in different folders according to respective preset loop recording periods, wherein each folder corresponds to the first video or the second video shot in a loop recording period, and the loop recording period refers to the duration of the video stored in a loop.
[0021] The working principle of the driving video monitoring method based on the vehicle-mounted camera provided in this embodiment is: by identifying the movement state of the vehicle, when the vehicle is in a driving state, the shooting parameters of at least one camera for driving video monitoring are set to a first frame rate and a first resolution, and when the vehicle is in a parked state, the shooting parameters of at least one camera for driving video monitoring are set to a second frame rate and a second resolution. Since it is necessary to capture fast-moving objects or scenes in a mobile shooting scene, the camera can be set to a higher frame rate to ensure video smoothness, and a moderate resolution can be selected to save storage space, and the processing device where the camera is located can process high-frame rate video data faster; on the contrary, in a static shooting scene, the focus is on capturing the details and clarity of a static environment or object, so the camera can be set to a higher resolution to improve image clarity, and the frame rate can be moderately reduced to save storage space.
[0022] It can be seen that according to the technical solution provided by this embodiment, by providing a camera with adjustable frame rate and resolution, and then identifying the motion state of the vehicle, when the vehicle is in a driving state, the shooting parameters of at least one camera for driving video monitoring are set to a first frame rate and a first resolution, and a first video is shot based on the first frame rate and the first resolution; when the vehicle is in a parking state, the shooting parameters of at least one camera for driving video monitoring are set to a second frame rate and a second resolution, and a second video is shot based on the second frame rate and the second resolution, wherein the first frame rate is greater than the second frame rate, and the first resolution is less than the second resolution; finally, the first video and the second video are saved in different folders according to their respective preset loop recording periods, and each folder corresponds to a first video or a second video shot in a loop recording period. Since the vehicle speed is fast in the driving state, the camera can be set to a higher frame rate and resolution to capture details and abnormal situations in high-speed driving; while in the parking state, the scene changes little, and the camera can be set to a lower frame rate and resolution to save energy consumption and storage space, so that video monitoring can be continuously performed even in the parking state without consuming too many resources, thereby ensuring that the vehicle can obtain the best image quality and storage efficiency through the camera in different motion states.
[0023] Specifically, the actual motion scenarios of vehicles are complex and changeable. When the vehicle is in a driving state, the vehicle is usually in motion, the driver is controlling the vehicle, and the vehicle may experience actions such as acceleration, deceleration, and stopping and waiting; when the vehicle is in a parked state, the vehicle usually no longer moves, or the vehicle is in a low-speed moving state, rather than an absolute stationary state.
[0024] In an optional embodiment, in the above step S101, identifying the motion state of the vehicle includes:
[0025] Obtaining the speed of the vehicle, and comparing the speed with a preset first speed threshold;
[0026] When the vehicle speed is less than or equal to a preset first vehicle speed threshold, the gear state and brake state of the vehicle are obtained, and it is determined whether the vehicle gear is in the P gear: if the vehicle gear is in the P gear, the vehicle is determined to be in a parking state; if the vehicle gear is in the N gear, the R gear or the D gear, and the brake is in a braking state, the vehicle is determined to be in a driving state;
[0027] When the vehicle speed is greater than a preset first vehicle speed threshold, it is determined that the vehicle is in a driving state.
[0028] In automatic transmission models, the vehicle is generally equipped with four gears: P, R, N| and D. Among them, P means parking. When the gear lever is placed in the P gear, the vehicle is locked in the parking state, which means that the vehicle stops moving and the transmission is locked to prevent the vehicle from sliding or moving. It is usually used when parking, such as when parking in a parking lot or parking space. R means reverse. When the gear lever is placed in the R gear, the vehicle will reverse and drive. At this time, the power of the engine is transmitted to the wheels to make the vehicle drive in the opposite direction. It is usually used for operations such as reversing into a parking space or reversing out of a parking space, that is, the vehicle is usually in driving state at this time. N means neutral. When the gear lever is placed in the N gear, the vehicle is in neutral state, the power transmission between the engine and the wheels is disconnected, and the wheels can rotate freely without being driven by the engine. It is usually used when the vehicle needs to start but does not need to move, such as starting the engine or when waiting for parking. D means driving. When the gear lever is placed in the D gear, the vehicle is in driving mode. At this time, the vehicle is in a forward driving state, and the transmission will automatically select the appropriate gear according to the vehicle speed and acceleration to provide the power required for forward driving. Of course, some vehicles also have an S gear, where S stands for sport. The S gear has the same function as the D gear, except that when the gear lever is in the S gear, the vehicle usually enters the sport mode, where the vehicle's shift point is higher and the engine responds more actively to the accelerator pedal, providing stronger power output and a more aggressive driving experience. Therefore, for models with an S gear, if the gear lever is switched to the S gear, the vehicle can be considered to be in the D gear.
[0029] The preset first speed threshold may be a speed value set based on experience or experiment, or a new speed value obtained by re-adjusting the set speed value based on vehicle conditions. Generally speaking, the speed value may be 0 km / h, or any speed value between 1 and 10 km / h. In this embodiment, the first speed threshold may be a speed value greater than 0 km / h, such as any speed value between 1 km / h, 2 km / h, 3 km / h, 4 km / h, 5 km / h, 6 km / h, 7 km / h, 8 km / h, 9 km / h, and 10 km / h.
[0030] When the preset first vehicle speed threshold is a non-zero speed value, if the vehicle's driving speed is lower than or equal to the first vehicle speed threshold, the vehicle may be in a stopped state or in a low-speed moving state. At this time, if the vehicle's gear is in P gear, the vehicle is determined to be in a stopped state. If the vehicle's gear is in N gear, R gear or D gear, and the brake is in a braking state, the vehicle is determined to be in a driving state. On the contrary, if the vehicle's driving speed is greater than the first vehicle speed threshold, the vehicle is determined to be in a driving state. It should be noted that the vehicle's brake state is in a braking state. Due to different degrees of braking, the vehicle may also be in a moving state at this time.
[0031] This embodiment sets the first vehicle speed threshold to a non-zero speed value, which can improve the redundancy of the vehicle's motion state recognition. It can identify the vehicle's temporary parking waiting or low-speed gliding waiting and other motion states as the driving state, thereby avoiding the vehicle from frequently switching between the driving state and the parking state in some driving scenarios. For example, when the vehicle stops and waits for a traffic light during driving, the vehicle will not be misjudged as being in the parking state, thereby improving the stability of the camera shooting parameter setting and the video recording storage.
[0032] Specifically, at least one camera for driving video monitoring can be an external camera or a body camera of the vehicle. For example, a driving recorder can be installed on the vehicle as at least one camera for driving video monitoring, or a vehicle-mounted driving monitoring camera brought by the vehicle on a business trip, or a camera used to perceive the surrounding environment can be used as at least one camera for driving video monitoring. In addition, the number of cameras can be one or more. When the number of cameras is one, the camera supports at least two frame rates and resolutions. When the vehicle is in a driving state, the camera shooting parameters can be set to a first frame rate and a first resolution; and when the vehicle is in a parking state, the camera shooting parameters are set to a second frame rate and a second resolution, wherein the first frame rate is greater than the second frame rate, and the first resolution is less than the second resolution. When the number of cameras is multiple, for example, the number of cameras is two, including a first camera and a second camera, wherein the first camera can be a camera specifically used to shoot scenes in the driving state of the vehicle, and the second camera is a camera specifically used to shoot scenes in the parking state of the vehicle, for example, the shooting parameters of the first camera include a first frame rate and a first resolution, and the shooting parameters of the second camera include a second frame rate and a second resolution. When the vehicle is in a driving state, the first camera is controlled to shoot a first video, and when the vehicle is in a parking state, the second camera is controlled to shoot a second video.
[0033] In an optional embodiment, in the above step S102, setting the shooting parameters of at least one camera of the driving video monitoring to a first frame rate and a first resolution includes:
[0034] When the vehicle changes from a parking state to a driving state, detecting whether the remaining time of the loop recording period of the second recording video is greater than the first time threshold;
[0035] When the remaining time of the loop recording period of the second video recording is greater than the first time threshold, the speed of the vehicle is obtained; if the speed of the vehicle is greater than or equal to the preset second speed threshold before the loop recording period of the second video recording expires, the shooting parameters of at least one camera of the driving video monitoring are adjusted to the first frame rate and the first resolution; if the speed of the vehicle is less than the preset second speed threshold before the loop recording period of the second video recording expires, the shooting parameters of at least one camera of the current driving video monitoring are maintained at the second frame rate and the second resolution before the loop recording period of the second video recording expires, and the shooting parameters of at least one camera of the driving video monitoring are adjusted to the first frame rate and the first resolution when the loop recording period of the second video recording expires;
[0036] When the remaining time of the loop recording period of the second video recording is less than or equal to the first time threshold, the shooting parameters of at least one camera of the driving video monitoring are directly and immediately adjusted to the first frame rate and the first resolution.
[0037] Specifically, the first video and the second video captured by the camera will be saved according to their corresponding loop recording periods. The loop recording period refers to the length of time for the video to be looped and stored. Once the capacity for storing the first video and the second video is exhausted, the loop recording function will overwrite the earliest recorded video and continue to record new video. The loop recording period refers to the length of time for this overwritten storage. For example, the loop recording periods of the first video and the second video are both 3 minutes. When the storage space is full, the vehicle will keep the most recent 3 minutes of recorded video, then overwrite the earliest video, and repeat this process. This ensures that the recorder always keeps recording the latest video and does not stop recording due to insufficient storage space.
[0038] The duration of the first time threshold is less than the duration of the loop recording period. Taking the loop recording period corresponding to the second video as 3 minutes as an example, assuming that the first time threshold is 1.5 minutes, if the camera shoots the second video for 1 minute, the vehicle changes from a parking state to a driving state. Since there are still 2 minutes left before the expiration of the loop recording period, that is, the remaining time for the expiration of the loop recording period of the second video is greater than the first time threshold, the vehicle speed will be acquired at this time, and the second video will continue to be shot. Before the expiration of the loop recording period, if the vehicle speed is greater than or equal to the second speed threshold, the camera shooting parameters are set to the first frame rate and the first resolution, and the first video is shot; if the vehicle speed is always less than the second speed threshold, the second video is continued to be shot at the second frame rate and the second resolution until the loop recording period of the second video reaches 3 minutes, and then the shooting parameters of at least one camera of the driving video monitoring are set to the first frame rate and the first resolution, and the first video is shot. In addition, if the camera shoots the second video for 2 minutes, and the vehicle changes from a parking state to a driving state, since there is still 1 minute left before the expiration of the loop recording period, that is, the remaining time of the loop recording period of the second video is less than the first time threshold, then the shooting parameters of at least one camera of the driving video monitoring are directly set to the first frame rate and the first resolution, and the first video is shot. Among them, the second vehicle speed threshold can be set according to experience or experiments, or the second vehicle speed threshold that has been set can be modified during use to obtain a new second vehicle speed threshold, and the embodiments of the present application are not limited to this.
[0039] It is understandable that in practice, the loop recording periods of the first video and the second video may be different. For example, the loop recording period of the first video is 3 minutes, while the loop recording period of the second video is 4 minutes. Generally, the longer the loop recording period is, the longer the historical video can be saved, but it will also take up more storage space. Therefore, the appropriate length of the loop recording period can be selected for the first video and the second video according to the actual situation to balance the use of storage space and the length of the video to be saved, thereby improving the utilization efficiency of the storage space.
[0040] This embodiment determines the timing of adjusting the camera to the first frame rate and the first resolution by taking into account the remaining time of the second video's loop recording period and the vehicle speed when the vehicle changes from a parking state to a driving state, instead of making an immediate adjustment and switch. This ensures that the duration of the second video stored in the folder corresponding to each loop recording period is close to or equal to the loop recording period, thereby avoiding the generation of a large number of low-capacity folders due to large differences in the lengths of the videos stored in the folders storing the second video, thereby improving the utilization efficiency of the storage space.
[0041] In an optional embodiment, in the above step S103, setting the shooting parameters of at least one camera of the driving video monitoring to the second frame rate and the second resolution includes:
[0042] When the vehicle changes from a driving state to a parking state, detecting whether the remaining time of the loop recording period of the first recording video is greater than a second time threshold;
[0043] In the case where the remaining time of the cyclic recording period of the first video recording is greater than the second time threshold, the first preset time is delayed to set the shooting parameters of at least one camera of the driving video monitoring to the second frame rate and the second resolution, and during the delay of the first preset time, it is detected whether the vehicle is turned off, and the first preset time is less than or equal to the remaining time of the cyclic recording period of the first video recording:
[0044] If the vehicle is detected to be turned off during the delay of the first preset time period, adjusting the shooting parameters of at least one camera of the driving video monitoring to a second frame rate and a second resolution;
[0045] If the vehicle is not detected to be turned off during the delay of the first preset time period, the shooting parameters of at least one camera of the current driving video monitoring are maintained at the first frame rate and the first resolution before the first preset time period expires, and when the first preset time period expires, the shooting parameters of at least one camera of the driving video monitoring are adjusted to the second frame rate and the second resolution;
[0046] When the remaining time of the loop recording period of the first recorded video is less than or equal to the second time threshold, the second preset time is delayed to set the shooting parameters of at least one camera of the driving video monitoring to the second frame rate and the second resolution. The second preset time is less than or equal to the remaining time of the loop recording period of the first recorded video, and is less than the first preset time.
[0047] Specifically, the second time threshold may be the same as or different from the first time threshold. The second time threshold is less than the loop recording period of the first video. Taking the loop recording period corresponding to the first video as 3 minutes as an example, assuming that the second time threshold is 2 minutes, if the camera shoots 0.5 minutes of the first video, the vehicle changes from a driving state to a parking state. Since there are still 2.5 minutes left before the expiration of the loop recording period, that is, the remaining time for the expiration of the loop recording period of the first video is greater than the second time threshold, at this time, the first preset time is delayed to set the shooting parameters of at least one camera of the driving video monitoring to the second frame rate and the second resolution, wherein the first preset time can be any minute value between 0-2.5, and detect whether the vehicle is turned off during the delay of the first preset time: if the vehicle is detected to be turned off during the delay of the first preset time, set the shooting parameters of at least one camera of the driving video monitoring to the second frame rate and the second resolution, and change to Shoot a second video based on a second frame rate and a second resolution; if the vehicle is not detected to be turned off during the delay of the first preset time, then when the first preset time expires, set the shooting parameters of at least one camera of the driving video monitoring to the second frame rate and the second resolution, and switch to shooting the second video based on the second frame rate and the second resolution; in addition, if the camera shoots the first video for 1 minute, and the vehicle changes from a driving state to a parking state, since there are still 2 minutes before the expiration of the loop recording period, that is, the remaining time of the expiration of the loop recording period of the first video is equal to the second time threshold, then set the shooting parameters of at least one camera of the driving video monitoring to the second frame rate and the second resolution by delaying the second preset time, and the second preset time is any value between 0 and 2 minutes, and when the second preset time expires, switch to shooting the second video based on the second frame rate and the second resolution. Among them, the first preset time and the second preset time can be set according to experience or experiment, or the first preset time and the second preset time that have been set can be modified during use to obtain a new first preset time and the second preset time, which is not limited in the embodiment of the present application.
[0048] In this embodiment, when the vehicle changes from a driving state to a parking state, the delay time for adjusting the camera to the first frame rate and the first resolution is determined according to the remaining time of the loop recording period of the first video. At the same time, in view of the situation that the remaining time of the loop recording period of the first video is long, the vehicle's ignition-off state is detected to determine the timing for adjusting the camera to the first frame rate and the first resolution, so as to ensure that the length of the first video saved in the folder corresponding to each loop recording period is close to or equal to the loop recording period, so as to avoid the large difference in the length of the video saved between the folders storing the first video, which leads to the generation of a large number of low-capacity folders, thereby improving the utilization efficiency of the storage space.
[0049] Furthermore, after shooting and saving the first video and the second video, if the user wants to view the saved first video or the second video, the user often views the corresponding video by timestamping it in a folder corresponding to the corresponding loop recording period. This method of viewing surveillance videos is very inefficient.
[0050] In an optional embodiment, when the vehicle is in a driving state, the above-mentioned driving video monitoring method based on the vehicle-mounted camera further includes:
[0051] Detect whether the vehicle is using the in-vehicle navigation software for navigation;
[0052] If yes, then obtain a first timestamp of the first recorded video and navigation information of the vehicle, the navigation information at least including the name of the route the vehicle travels and a second timestamp; based on the first timestamp and the second timestamp, make a one-to-one correspondence between the name of the route the vehicle travels and the first recorded video, and generate a first index file of the first recorded video, the first index file including the name corresponding to the route the vehicle travels and the storage location of the first recorded video;
[0053] If not, identify the content of the image frame in the first video recording to obtain road sign information around the vehicle, the road sign information including the place name; based on the road sign information, generate a second index file for the first video recording, the second index file including the storage location of the first video recording corresponding to the road sign information.
[0054] Specifically, a timestamp is a mark indicating a specific time point, and is used to record the specific time when an event occurs. In this embodiment, the first timestamp is the time information generated when the camera on the vehicle records the first video; the second timestamp is one of the navigation information generated by the vehicle navigation software during the navigation process.
[0055] Specifically, the vehicle navigation software can be a navigation software installed on the vehicle system, or it can be a navigation software on an electronic device connected to the vehicle. When the vehicle navigation software is used for navigation, the corresponding navigation information can be obtained, and the navigation information includes but is not limited to the coordinate position of the vehicle, the driving route, the name of the driving route and the timestamp. In addition, since the first video and the second video captured by the camera also have corresponding timestamps, the name of the vehicle's driving route and the first video can be matched according to the first timestamp in the navigation information and the second timestamp of the first video, so as to generate a first index file of the first video. In addition, if the vehicle does not use navigation, the image frame in the captured first video can be identified to identify whether the image frame contains road sign information, and then the second index file of the first video is generated according to the route information, and the second index file includes the storage location of the first video recording corresponding to the road sign information.
[0056] In an application scenario, first, it is detected whether the vehicle has enabled the onboard navigation software for navigation. If the vehicle uses the navigation software, the first timestamp of the first video and the navigation information of the vehicle are obtained, and the navigation information at least includes the name of the route the vehicle is traveling and the second timestamp; then, according to the first timestamp and the second timestamp, the name of the route the vehicle is traveling is matched with the first video, and a first index file of the first video is generated, and the first index file includes the name corresponding to the route the vehicle is traveling and the storage location of the first video; secondly, if the vehicle does not use navigation, the content of the image frame in the first video is identified, and the road sign information around the vehicle is obtained, including the place name, and based on the road sign information, a second index file of the first video is generated, and the second index file includes the storage location of the first video corresponding to the road sign information. For example, a specific building is identified as the road sign information in the first video, and then the road sign information is matched with the timestamp of the first video, and a second index file is generated to indicate that the building appears at a specific time point in the second video, and the storage location of the second video associated with the characteristic time point is marked.
[0057] The specific implementation methods of identifying the content of the image frame in the first video recording and obtaining the road sign information around the vehicle are not unique, and include but are not limited to the following technical solutions:
[0058] 1. Use object detection algorithms to identify road signs and landmarks in image frames. For example, use deep learning models (such as YOLO, Faster R-CNN) to train a road sign recognition model, and use the images in the training dataset to let the model learn to recognize different types of road signs, such as traffic signs, buildings, etc.
[0059] 2. Segment the image into different regions, and then identify and analyze the content in each region. For example, use a semantic segmentation model (such as Mask R-CNN) to segment different parts of the image and then identify the road sign information contained therein, such as traffic signs, buildings, etc.
[0060] 3. Extract features from the image and match them with known landmark features to determine the place name. For example, use local feature descriptors (such as SIFT, SURF) to extract feature points in the image, and then use feature matching algorithms (such as RANSAC, FLANN) to match these feature points with pre-stored landmark features to determine the place names around the vehicle.
[0061] 4. Recognize text information in the image, such as the name of a place on a road sign. For example, use OCR (optical character recognition) technology to recognize the text in the image, and then analyze and process the recognized text to determine the place name.
[0062] It should be noted that the above four implementation methods can be used alone or in combination, and the most appropriate method can be selected according to actual application requirements. For example, object detection and text recognition can be used simultaneously to obtain more comprehensive road sign information.
[0063] According to the technical solution provided in this embodiment, the first index file and the second index file of the first recorded video are respectively generated by whether the vehicle uses navigation while driving. The generated index files can help the user quickly find the first recorded video corresponding to a specific location or route when needed.
[0064] In some optional embodiments, when the vehicle is in a parked state, the above-mentioned vehicle video monitoring method based on the vehicle-mounted camera further includes:
[0065] Using sensing equipment installed on the vehicle to monitor the vehicle's surroundings;
[0066] When a moving object is detected approaching the vehicle, the type or name of the moving object is identified, and a third timestamp of the moving object being detected is obtained;
[0067] Obtain the fourth timestamp of the second recorded video, and based on the third timestamp and the fourth timestamp, make a one-to-one correspondence between the type or name of the monitored moving object and the second recorded video, and generate a third index file of the second recorded video, wherein the third index file includes the storage location of the second recorded video corresponding to the type or name of the monitored moving object.
[0068] Specifically, the sensing devices installed on the vehicle include but are not limited to radar, ultrasonic sensor, infrared sensor and camera. In this embodiment, the sensing device can be selected as radar. When the vehicle is equipped with radar or laser radar, these sensors can monitor whether there is an obstacle approaching in front of the vehicle. If it is detected that an object is approaching the vehicle and the distance from the vehicle meets the preset distance, the third timestamp of the monitored moving object is recorded, and then the third timestamp of the monitored moving object is matched with the fourth timestamp of the second video to generate a third index file of the storage location of the second video of the monitored moving object. In addition, the sensing device is used to identify the type of the moving object, for example, radar data of the moving object is obtained using a radar or laser radar, and visual information of the moving object, such as color, shape and texture, is obtained using a camera, and then the camera data is fused with the radar or laser radar data to realize the identification of the type or classification of the moving object approaching the vehicle. For example, by combining visual information and radar data, different types of objects such as vehicles, pedestrians, bicycles, etc. can be identified. On this basis, a third index file including the storage location of the second video corresponding to the type or name of the monitored moving object can be further generated.
[0069] Furthermore, in some optional embodiments, when a moving object is detected approaching the vehicle, the above-mentioned vehicle-mounted camera-based driving video monitoring method further includes:
[0070] Based on the third timestamp of the detected moving object and the fourth timestamp of the second recorded video, a key frame image of the second recorded video corresponding to the detected moving object is obtained, the key frame image is associated with the third timestamp of the detected moving object, and the key frame image is sent as notification information to an electronic device connected to the vehicle for communication;
[0071] When the user responds to the notification information on the electronic device and triggers the preset operation to view the second recorded video corresponding to the detected moving object associated with the key frame image, the second recorded video corresponding to the detected moving object is sent to the electronic device for display.
[0072] Specifically, a timestamp is a mark indicating a specific time point, which is used to record the specific time when an event occurs. In this embodiment, the third timestamp is the time information when the sensing device on the vehicle detects the moving object; and the fourth timestamp is the time information when the camera on the vehicle records the second video.
[0073] Specifically, the key frame image can be a key frame image at the moment when the vehicle detects a moving object, or it can be a key frame image in the second video recording corresponding to the period when the vehicle monitors the moving object. If the vehicle can identify the type or category of the moving object, the type or category of the moving object can also be sent together with the key frame image as notification information to an electronic device, which includes but is not limited to a mobile terminal connected to the vehicle for communication, and a device equipped with a vehicle management terminal. Among them, the key frame image is also associated with the storage location of the second recorded video corresponding to the period when the vehicle monitors the moving object. When the user responds to the notification information on the electronic device, such as clicking to view the notification information, the user can quickly view the key frame image, which contains the image of the moving object, so that the user can quickly understand the moving object approaching the vehicle; after viewing, if the user feels that the moving object does not pose a risk, the notification information can be ignored. In this way, while notifying the user in a timely manner, the user can also quickly understand the situation around the vehicle without sending the entire or entire video to the electronic device, thereby improving the efficiency of vehicle monitoring notification; in addition, if the user feels that the moving object poses a risk and needs further confirmation, the second recorded video associated with the key frame image can be obtained according to the preset operation, that is, the second recorded video corresponding to the period when the vehicle monitors the moving object, thereby achieving the accuracy of vehicle monitoring and avoiding pushing some irrelevant recorded videos to the user's electronic device.
[0074] Among them, the preset operation for viewing the second recorded video corresponding to the monitored moving object associated with the key frame image is not unique. For example, the preset operation can be long pressing the key frame image, or clicking the corresponding graphic user button on the electronic device, or it can be other operations, and the embodiments of the present application are not limited to this.
[0075] According to the technical solution provided in this embodiment, by obtaining the key frame image of the second video corresponding to the monitored moving object as communication information, and sending it to the electronic device connected to the vehicle communication, the user can quickly and timely understand the moving objects around the vehicle through the key frame image, without the need for the user to passively access the storage folder of the second video, and the storage location of the video of the moving object monitored by the vehicle is associated with the key frame image. When the user wants to view the video corresponding to a key frame image, the user only needs to follow the preset operation to send the associated video to the electronic device for display for the user to view, without the need for the user to passively view the corresponding folder and view the video of the entire loop recording period, which greatly improves the efficiency and accuracy of the user's viewing of the video.
[0076] Following the previous embodiment, in some optional embodiments, the above-mentioned vehicle video monitoring method based on a vehicle-mounted camera further includes:
[0077] Establishing a corresponding video index system based on at least one of the first index file, the second index file and the third index file, and arranging the video index system on a vehicle or an electronic device connected to the vehicle for communication, wherein the video index system includes an index interface;
[0078] When the user enters the name of the vehicle's route, road sign information, or the type or name of a monitored moving object in the indexing interface of the video indexing system, the corresponding target video file is indexed and displayed on the vehicle or electronic device where the indexing interface is located. The target video file includes the first recorded video or the second recorded video.
[0079] Specifically, the video indexing system can be arranged on a variety of devices, including but not limited to vehicles and electronic devices connected to the vehicle in communication. Among them, when the video indexing system is arranged on the vehicle, the video indexing system can be directly integrated into the vehicle's driving video monitoring device, so that the monitoring device can directly record the video and generate an index file (including at least one of the first index file, the second index file and the third index file), which is convenient for users to query and replay inside the vehicle. When the video indexing system is arranged on an electronic device connected to the vehicle in communication, the video indexing system can be deployed on a cloud server, and the vehicle driving video and its index information can be uploaded to the cloud storage. Users can connect to the cloud server through the Internet and use the relevant client application or web interface to query and play the video. Or the video indexing system can provide a mobile application, and the user can install the application on electronic devices such as smart phones and tablets, connect to the video indexing system through the mobile network, and query and play the corresponding driving monitoring video. Alternatively, the video indexing system can also be deployed on a local area network server, such as in the local area network environment of a fleet management center or a vehicle management department, and the user can connect to the server through the local area network to query and replay the vehicle driving monitoring video.
[0080] According to the technical solution provided by the present embodiment, a corresponding video indexing system is established through at least one of the first index file, the second index file and the third index file, and the video indexing system is arranged on a vehicle or an electronic device connected to the vehicle for communication. The video indexing system includes an indexing interface, so that the user can input the name of the route traveled by the vehicle, the road sign information or the type or name of the monitored moving object in the indexing interface of the video indexing system to index the corresponding target video file, thereby achieving the effect of searching and playing back specific video clips. Compared with the method of querying recorded videos only by timestamps in the prior art, the recorded video indexing method of the present embodiment is more diversified, and the indexing efficiency and accuracy are higher.
[0081] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0082] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0083] See also Figure 2 In a second embodiment of the present application, a driving video monitoring device based on a vehicle-mounted camera is provided, the device comprising:
[0084] The state recognition module 201 is configured to recognize the motion state of the vehicle, where the motion state includes a driving state and a parking state;
[0085] The first setting module 202 is configured to set the shooting parameters of at least one camera of the driving video monitoring to a first frame rate and a first resolution when the vehicle is in a driving state, and shoot a first recorded video based on the first frame rate and the first resolution;
[0086] The second setting module 203 is configured to set the shooting parameters of at least one camera of the driving video monitoring to a second frame rate and a second resolution when the vehicle is in a parked state, and shoot a second video based on the second frame rate and the second resolution, wherein the first frame rate is greater than the second frame rate, and the first resolution is less than the second resolution;
[0087] The video saving module 204 is configured to save the first video and the second video in different folders according to their respective preset loop recording periods, wherein each folder corresponds to the first video or the second video shot in a loop recording period, and the loop recording period refers to the length of the video stored in a loop.
[0088] According to the technical solution provided by the embodiment of the present application, a camera with adjustable frame rate and resolution is provided, and then the motion state of the vehicle is identified. When the vehicle is in a driving state, the shooting parameters of at least one camera for driving video monitoring are set to a first frame rate and a first resolution, and a first video is shot based on the first frame rate and the first resolution; when the vehicle is in a parking state, the shooting parameters of at least one camera for driving video monitoring are set to a second frame rate and a second resolution, and a second video is shot based on the second frame rate and the second resolution, wherein the first frame rate is greater than the second frame rate, and the first resolution is less than the second resolution; finally, the first video and the second video are saved in different folders according to their respective preset loop recording periods, and each folder corresponds to a first video or a second video shot in a loop recording period. Since the vehicle speed is fast in the driving state, the camera can be set to a higher frame rate and resolution to capture details and abnormal situations in high-speed driving; while in the parking state, the scene changes little, and the camera can be set to a lower frame rate and resolution to save energy consumption and storage space, so that video monitoring can be continuously performed even in the parking state without consuming too many resources, thereby ensuring that the vehicle can obtain the best image quality and storage efficiency through the camera in different motion states.
[0089] In some embodiments, the state recognition module 201 is further configured to obtain the vehicle speed and compare the vehicle speed with a preset first speed threshold; when the vehicle speed is less than or equal to the preset first speed threshold, obtain the gear state and brake state of the vehicle, and determine whether the vehicle gear is in the P gear; if the vehicle gear is in the P gear, determine that the vehicle is in a parked state; if the vehicle gear is in the N gear or the D gear, and the brake is in a braking state, determine that the vehicle is in a driving state; when the vehicle speed is greater than the preset first speed threshold, determine that the vehicle is in a driving state.
[0090] In some embodiments, the first setting module 202 is configured to detect whether the remaining time of the loop recording period of the second video is greater than the first time threshold when the vehicle changes from a parking state to a driving state; if the remaining time of the loop recording period of the second video is greater than the first time threshold, obtain the vehicle speed; if the vehicle speed is greater than or equal to the preset second vehicle speed threshold before the loop recording period of the second video expires, set the shooting parameters of at least one camera of the driving video monitoring to the first frame rate and the first resolution; if the vehicle speed is less than or equal to the preset second vehicle speed threshold before the loop recording period of the second video expires, set the shooting parameters of at least one camera of the driving video monitoring to the first frame rate and the first resolution; if the vehicle speed is less than or equal to the preset second vehicle speed threshold before the loop recording period of the second video expires, set the shooting parameters of at least one camera of the driving video monitoring to the first frame rate and the first resolution. At a preset second vehicle speed threshold, before the expiration of the loop recording period of the second video, the shooting parameters of at least one camera of the current driving video monitoring are maintained at the second frame rate and the second resolution, and when the loop recording period of the second video expires, the shooting parameters of at least one camera of the driving video monitoring are adjusted to the first frame rate and the first resolution; when the remaining time of the loop recording period of the second video is less than or equal to the first time threshold, the shooting parameters of at least one camera of the driving video monitoring are adjusted to the first frame rate and the first resolution, wherein the duration of the first time threshold is less than the duration of the loop recording period.
[0091] In some embodiments, the second setting module 203 is configured to detect whether the remaining time of the loop recording period of the first video recording is greater than a second time threshold when the vehicle changes from a driving state to a parking state; if the remaining time of the loop recording period of the first video recording is greater than the second time threshold, then delay the first preset time to set the shooting parameters of at least one camera of the driving video monitoring to the second frame rate and the second resolution, and detect whether the vehicle is turned off during the delay of the first preset time, and the first preset time is less than or equal to the remaining time of the loop recording period of the first video recording; if the vehicle is detected to be turned off during the delay of the first preset time, then set the shooting parameters of at least one camera of the driving video monitoring to the second frame rate and the second resolution. rate and a second resolution; if the vehicle is not detected to be turned off during the delay of the first preset time period, then before the expiration of the first preset time period, the shooting parameters of at least one camera of the current driving video surveillance are maintained at the first frame rate and the first resolution, and when the first preset time period expires, the shooting parameters of at least one camera of the driving video surveillance are adjusted to the second frame rate and the second resolution; when the remaining time of the loop recording period of the first recording video is less than or equal to the second time threshold, the second preset time period is delayed to set the shooting parameters of at least one camera of the driving video surveillance to the second frame rate and the second resolution, and the second preset time period is less than or equal to the remaining time of the loop recording period of the first recording video, and is less than the first preset time period.
[0092] In some embodiments, the above-mentioned vehicle-mounted camera-based driving video monitoring device further includes:
[0093] The first index generation module 205 is configured to detect whether the vehicle uses the vehicle navigation software for navigation when the vehicle is in a driving state; if so, obtain the first timestamp of the first video and the navigation information of the vehicle, the navigation information at least including the name of the route the vehicle is traveling and the second timestamp; based on the first timestamp and the second timestamp, the name of the route the vehicle is traveling and the first video are matched one-to-one to generate a first index file of the first video, the first index file including the name corresponding to the route the vehicle is traveling and the storage location of the first video, wherein the first timestamp is the time information generated when the camera on the vehicle records the first video, and the second timestamp is one of the navigation information generated by the vehicle navigation software during the navigation process; if not, identify the content of the image frame in the first video, obtain the road sign information around the vehicle, the road sign information including the place name; based on the road sign information, generate the second index file of the first video, the second index file including the storage location of the first video corresponding to the road sign information;
[0094] In some embodiments, the above-mentioned vehicle-mounted camera-based driving video monitoring device further includes:
[0095] The second index generation module 206 is configured to monitor the vehicle's surrounding environment using a sensing device installed on the vehicle when the vehicle is in a parked state; when a moving object is detected approaching the vehicle, identify the type or name of the moving object, and obtain a third timestamp of the detected moving object, the third timestamp being the time information when the sensing device on the vehicle detects the moving object; obtain a fourth timestamp of the second recorded video, and based on the third timestamp and the fourth timestamp, make a one-to-one correspondence between the type or name of the detected moving object and the second recorded video, and generate a third index file of the second recorded video, the third index file including a storage location of the second recorded video corresponding to the type or name of the detected moving object, and the fourth timestamp being the time information generated when the second recorded video was recorded by the camera on the vehicle.
[0096] In some embodiments, the above-mentioned vehicle-mounted camera-based driving video monitoring device further includes:
[0097] The parking monitoring module 207 is configured to, when a moving object is detected approaching the vehicle, obtain a key frame image of the second recorded video corresponding to the detected moving object based on the third timestamp of the detected moving object and the fourth timestamp of the second recorded video, associate the key frame image with the third timestamp of the detected moving object, and send the key frame image as notification information to an electronic device connected to the vehicle communication; when the user responds to the notification information on the electronic device and triggers a preset operation to view the second recorded video corresponding to the detected moving object associated with the key frame image, the second recorded video corresponding to the detected moving object is sent to the electronic device for display.
[0098] In some embodiments, the above-mentioned vehicle-mounted camera-based driving video monitoring device further includes:
[0099] The video index module 208 is configured to establish a corresponding video index system based on at least one of the first index file, the second index file and the third index file, and arrange the video index system on a vehicle or an electronic device connected to the vehicle for communication, wherein the video index system includes an index interface; when a user inputs the name of the route traveled by the vehicle, the road sign information or the type or name of the monitored moving object in the index interface of the video index system, the corresponding target video file is indexed and the target video file is displayed on the vehicle or the electronic device where the index interface is located, wherein the target video file includes the first recorded video or the second recorded video.
[0100] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0101] See also Figure 3In the third embodiment of the present application, a car 3 is provided, which includes a vehicle camera 31 and a camera controller 32. The vehicle camera 31 supports at least two resolutions and frame rates and is connected to the camera controller 32. In practice, the car 3 can be a fuel vehicle or a new energy vehicle. In this embodiment, the car 3 can be a new energy vehicle, such as a pure electric vehicle and an extended-range vehicle.
[0102] The vehicle-mounted camera 31 is a camera device installed on the vehicle for capturing the surrounding environment, and is used to monitor the situation around the vehicle in real time, record the driving process, or be used for a driving assistance system. The camera controller 32 is a device for controlling the vehicle-mounted camera 31, and is usually used to adjust the camera's direction, focal length, exposure, frame rate, resolution, and other shooting parameters to meet different monitoring requirements or vehicle driving scenarios.
[0103] The vehicle-mounted camera 31 and the camera controller 32 may be an integrated device, such as a driving recorder. Alternatively, the vehicle-mounted camera 31 and the camera controller 32 may be independent devices, for example, the vehicle-mounted camera 31 is a camera that supports at least two frame rates and resolutions, and the camera controller 32 is a vehicle controller or a domain controller, the camera is connected to the vehicle controller or the domain controller, and the vehicle controller or the domain controller adjusts and controls the camera's shooting parameters.
[0104] For example, when the vehicle-mounted camera 31 and the camera controller 32 are integrated together, the vehicle-mounted camera 31 and the camera controller 32 are integrated together to form an integrated driving recorder. This device is usually installed at the front or rear of the vehicle to record the video of the vehicle during driving, and the camera controller 32 can adjust the shooting parameters such as recording angle, frame rate and resolution.
[0105] For another example, when the vehicle-mounted camera 31 and the camera controller 32 are independent of each other, the vehicle-mounted camera 31 may use independent front and rear cameras to record the situation in front and behind the vehicle. These cameras can be fixed or adjustable in direction, but they usually support one or more adjustable frame rates and resolutions. In addition, the camera controller 32 can exist independently and be used to control the cameras installed on the vehicle. For example, a vehicle with multiple cameras installed may use a separate camera controller 32 so that the driver can adjust the direction or shooting parameters of the camera as needed, such as controlling the first camera to shoot a first video when the vehicle is in a driving state, and controlling the second camera to shoot a second video when the vehicle is in a parked state.
[0106] See also Figure 4In some optional embodiments, the camera controller 32 at least includes: a processor 321, a memory 322, and a computer program 323 stored in the memory 322 and executable on the processor 321. When the processor 321 executes the computer program 323, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 321 executes the computer program 323, the functions of the modules in the above-mentioned device embodiments are implemented.
[0107] The camera controller 32 may include but is not limited to a processor 321 and a memory 322. Those skilled in the art will appreciate that Figure 4 The camera controller 32 is merely an example and does not constitute a limitation of the camera controller 32 , and may include more or less components than those shown in the figure, or different components.
[0108] The processor 321 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0109] The memory 322 may be an internal storage unit of the camera controller 32, for example, a hard disk or memory of the camera controller 32. The memory 322 may also be an external storage device of the camera controller 32, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the camera controller 32. The memory 322 may also include both an internal storage unit of the camera controller 32 and an external storage device. The memory 322 is used to store computer programs and other programs and data required by the camera controller.
[0110] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional modules in the embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0111] If the integrated module is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium (e.g., a computer-readable storage medium). Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. Computer-readable storage media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0112] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A vehicle video monitoring method based on a vehicle-mounted camera, characterized in that: include: Identifying a vehicle's motion state, wherein the motion state includes a driving state and a parking state; When the vehicle is in a driving state, setting shooting parameters of at least one camera of driving video monitoring to a first frame rate and a first resolution, and shooting a first recorded video based on the first frame rate and the first resolution; When the vehicle is in a parked state, setting the shooting parameters of at least one camera of the driving video monitoring to a second frame rate and a second resolution, and shooting a second recorded video based on the second frame rate and the second resolution, wherein the first frame rate is greater than the second frame rate, and the first resolution is less than the second resolution; The first video and the second video are saved in different folders according to their respective preset loop recording periods, wherein each folder corresponds to the first video or the second video shot in a loop recording period, and the loop recording period refers to the duration of the video stored in a loop.
2. The method according to claim 1, characterized in that The identifying the motion state of the vehicle comprises: Obtaining the speed of the vehicle, and comparing the speed with a first speed threshold; When the vehicle speed is less than or equal to a preset first vehicle speed threshold, the gear state and brake state of the vehicle are obtained, and it is determined whether the vehicle gear is in the P gear: if the vehicle gear is in the P gear, the vehicle is determined to be in a parking state; if the vehicle gear is in the N gear or the D gear, and the brake is in a braking state, the vehicle is determined to be in a driving state; When the vehicle speed is greater than a preset first vehicle speed threshold, it is determined that the vehicle is in a driving state.
3. The method according to claim 1, characterized in that The step of setting the shooting parameters of at least one camera of the driving video monitoring to a first frame rate and a first resolution comprises: When the vehicle changes from a parking state to a driving state, detecting whether the remaining time of the loop recording period of the second recording video is greater than the first time threshold; When the remaining time of the loop recording period of the second video is greater than the first time threshold, the speed of the vehicle is obtained; if the speed of the vehicle is greater than or equal to the preset second speed threshold before the loop recording period of the second video expires, the shooting parameters of at least one camera of the driving video monitoring are set to the first frame rate and the first resolution; if the speed of the vehicle is less than the preset second speed threshold before the loop recording period of the second video expires, the shooting parameters of at least one camera of the driving video monitoring are maintained at the second frame rate and the second resolution before the loop recording period of the second video expires, and the shooting parameters of at least one camera of the driving video monitoring are adjusted to the first frame rate and the first resolution when the loop recording period of the second video expires; When the remaining time of the second recorded video's loop recording period is less than or equal to the first time threshold, the shooting parameters of at least one camera of the driving video monitoring are adjusted to the first frame rate and the first resolution, wherein the duration of the first time threshold is less than the duration of the loop recording period.
4. The method according to claim 1, characterized in that: The step of setting the shooting parameters of at least one camera of the driving video monitoring to the second frame rate and the second resolution includes: When the vehicle changes from a driving state to a parking state, detecting whether the remaining time of the loop recording period of the first recording video is greater than a second time threshold; In the case where the remaining time of the cyclic recording period of the first video recording is greater than the second time threshold, the first preset time is delayed to set the shooting parameters of at least one camera of the driving video monitoring to the second frame rate and the second resolution, and whether the vehicle is turned off is detected during the delay of the first preset time, and the first preset time is less than or equal to the remaining time of the cyclic recording period of the first video recording: If the vehicle is detected to be turned off during the delay of the first preset time period, adjusting the shooting parameters of at least one camera of the driving video monitoring to a second frame rate and a second resolution; If the vehicle is not detected to be turned off during the delay of the first preset time period, the shooting parameters of at least one camera of the current driving video monitoring are maintained at the first frame rate and the first resolution before the first preset time period expires, and the shooting parameters of at least one camera of the driving video monitoring are adjusted to the second frame rate and the second resolution when the first preset time period expires; When the remaining time of the loop recording period of the first recorded video is less than or equal to the second time threshold, the shooting parameters of at least one camera of the driving video monitoring are set to the second frame rate and the second resolution by delaying for a second preset time period, and the second preset time period is less than or equal to the remaining time of the loop recording period of the first recorded video, and is less than the first preset time period.
5. The method according to any one of claims 1 to 4, characterized in that When the vehicle is in motion, it also includes: Detect whether the vehicle is using the in-vehicle navigation software for navigation; If yes, then obtain a first timestamp of the first recorded video and navigation information of the vehicle, the navigation information at least including the name of the route the vehicle is traveling on and a second timestamp; based on the first timestamp and the second timestamp, make a one-to-one correspondence between the name of the route the vehicle is traveling on and the first recorded video, and generate a first index file for the first recorded video, the first index file including the name corresponding to the route the vehicle is traveling on and the storage location of the first recorded video, wherein the first timestamp is the time information generated when the camera on the vehicle records the first recorded video, and the second timestamp is one of the navigation information generated by the vehicle navigation software during the navigation process; If not, identify the content of the image frame in the first recorded video to obtain road sign information around the vehicle, and the road sign information includes the place name; based on the road sign information, generate a second index file of the first recorded video, and the second index file includes the storage location of the first video recording corresponding to the road sign information.
6. The method according to claim 5, characterized in that When the vehicle is parked, it also includes: Using sensing equipment installed on the vehicle to monitor the vehicle's surroundings; When a moving object is detected approaching the vehicle, the type or name of the moving object is identified, and a third timestamp of when the moving object is detected is obtained, where the third timestamp is time information when the sensing device on the vehicle detects the moving object; Obtain the fourth timestamp of the second recorded video, and based on the third timestamp and the fourth timestamp, make a one-to-one correspondence between the type or name of the monitored moving object and the second recorded video, and generate a third index file of the second recorded video, wherein the third index file includes the storage location of the second recorded video corresponding to the type or name of the monitored moving object, and the fourth timestamp is the time information generated when the second recorded video is recorded by the camera on the vehicle.
7. The method according to claim 6, characterized in that When a moving object is detected approaching the vehicle, it also includes: Based on the third timestamp of the detected moving object and the fourth timestamp of the second recorded video, a key frame image of the second recorded video corresponding to the detected moving object is obtained, the key frame image is associated with the third timestamp of the detected moving object, and the key frame image is sent as notification information to an electronic device connected to the vehicle in communication; When the user responds to the notification information on the electronic device and triggers a preset operation to view the second recorded video corresponding to the detected moving object associated with the key frame image, the second recorded video corresponding to the detected moving object is sent to the electronic device for display.
8. The method according to claim 6, characterized in that Also includes: Establishing a corresponding video index system based on at least one of the first index file, the second index file and the third index file, and arranging the video index system on a vehicle or an electronic device connected to the vehicle for communication, wherein the video index system includes an index interface; When the user enters the name of the vehicle's route, road sign information, or the type or name of a monitored moving object in the index interface of the video indexing system, the corresponding target video file is indexed and displayed on the vehicle or electronic device where the index interface is located. The target video file includes the first recorded video or the second recorded video.
9. A vehicle-mounted camera-based driving video monitoring device, characterized in that: include: A state recognition module is configured to recognize a motion state of the vehicle, wherein the motion state includes a driving state and a parking state; A first setting module is configured to set the shooting parameters of at least one camera of the driving video monitoring to a first frame rate and a first resolution when the vehicle is in a driving state, and shoot a first recorded video based on the first frame rate and the first resolution; A second setting module is configured to set the shooting parameters of at least one camera of the driving video monitoring to a second frame rate and a second resolution when the vehicle is in a parked state, and shoot a second recorded video based on the second frame rate and the second resolution, wherein the first frame rate is greater than the second frame rate, and the first resolution is less than the second resolution; The video saving module is configured to save the first video and the second video in different folders according to their respective preset loop recording periods, wherein each folder corresponds to the first video or the second video shot in a loop recording period.
10. A car, comprising a vehicle-mounted camera and a camera controller, wherein the vehicle-mounted camera supports at least two resolutions and frame rates and is connected to the camera controller, wherein the camera controller comprises at least a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Method and device for storing vehicle video recordings
CN106210585A
Parking monitoring method, parking monitoring device and parking monitoring system
CN109087533A
Driving track recording method and device and driving track sharing system
CN110753199A
Video record display method and device and storage medium
CN110929097A
Vehicle anti-theft method and device based on sentry mode, electronic equipment and medium
CN117601801A
Cited By
Audio and video file generation method and system, vehicle-mounted terminal and storage medium
CN119851369A
