CN115720253B - Video processing method, device, vehicle and storage medium - Google Patents
Video processing method, device, vehicle and storage medium Download PDFInfo
- Publication number
- CN115720253B CN115720253B CN202211395823.XA CN202211395823A CN115720253B CN 115720253 B CN115720253 B CN 115720253B CN 202211395823 A CN202211395823 A CN 202211395823A CN 115720253 B CN115720253 B CN 115720253B
- Authority
- CN
- China
- Prior art keywords
- video
- target
- target video
- videos
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 238000000034 method Methods 0.000 claims abstract description 50
- 230000008569 process Effects 0.000 claims abstract description 26
- 238000012545 processing Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 11
- 230000001960 triggered effect Effects 0.000 claims description 7
- 230000007613 environmental effect Effects 0.000 abstract description 14
- 238000012217 deletion Methods 0.000 description 21
- 230000037430 deletion Effects 0.000 description 21
- 230000001133 acceleration Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000012544 monitoring process Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000008859 change Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000002474 experimental method Methods 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004378 air conditioning Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本申请公开了一种视频处理方法、装置、车辆以及存储介质。该方法包括:通过图像采集装置连续采集N个视频,并将N个视频存储在第一指定文件夹;基于车辆进入紧急状态的时间信息,从N个视频中获取目标视频;对多个目标视频进行拼接处理,得到紧急状态视频,并将紧急状态视频存储在第二指定文件夹。本申请实施例提供的技术方案,车辆进入紧急状态后,会复用图像采集装置按照循环录制方式采集得到的视频,得到用于记录车辆进入紧急状态前后的环境信息的紧急状态视频,该过程仅需消耗较小的算力,减小对电子控制器的硬件资源的消耗,从而使电子控制器存在足够的硬件资源去处理车辆中的其他业务,减小卡顿感。
The present application discloses a video processing method, device, vehicle and storage medium. The method includes: continuously collecting N videos through an image acquisition device, and storing the N videos in a first designated folder; based on the time information of the vehicle entering an emergency state, obtaining a target video from the N videos; splicing multiple target videos to obtain an emergency state video, and storing the emergency state video in a second designated folder. The technical solution provided by the embodiment of the present application, after the vehicle enters an emergency state, will reuse the video collected by the image acquisition device in a loop recording manner to obtain an emergency state video for recording environmental information before and after the vehicle enters the emergency state. This process only consumes a small amount of computing power, reducing the consumption of hardware resources of the electronic controller, so that the electronic controller has sufficient hardware resources to handle other services in the vehicle and reduce the sense of jamming.
Description
技术领域Technical Field
本申请涉及数据处理技术领域,尤其涉及一种视频处理方法、装置、车辆以及存储介质。The present application relates to the field of data processing technology, and in particular to a video processing method, device, vehicle and storage medium.
背景技术Background technique
行车记录仪可以实时记录车辆行驶过程中所处的环境,被广泛应用于汽车领域。Driving recorders can record the environment in which a vehicle is traveling in real time and are widely used in the automotive field.
相关技术中,电子控制器除了对行车记录仪进行控制之外,还需要处理车辆中的其他业务,在车辆进入紧急状态时,行车记录仪对车辆行驶过程中所处的环境进行紧急采集时会消耗电子控制器的大量算力,导致电子控制器处理其他业务时产生卡顿。In the related technology, in addition to controlling the driving recorder, the electronic controller also needs to process other services in the vehicle. When the vehicle enters an emergency state, the driving recorder will consume a lot of computing power of the electronic controller when performing emergency collection of the environment in which the vehicle is traveling, causing the electronic controller to be stuck when processing other services.
发明内容Summary of the invention
本申请提出了一种视频处理方法、装置、车辆以及存储介质。The present application proposes a video processing method, device, vehicle and storage medium.
第一方面,本申请实施例提供一种视频处理方法,该方法包括:通过图像采集装置连续采集N个视频,并将N个视频存储在第一指定文件夹,N为大于2的正整数,第一指定文件夹中的视频在存储时长大于或等于预设时长的情况下被删除;在监测到车辆进入紧急状态后,基于车辆进入紧急状态的时间信息,从N个视频中获取目标视频;在目标视频存在多个的情况下,对多个目标视频进行拼接处理,得到紧急状态视频,并将紧急状态视频存储在第二指定文件夹,第二指定文件夹中的文件不响应指定删除指令,指定删除指令是用户触发的删除指令之外的其他删除指令,紧急状态视频用于记录车辆在进入紧急状态前后的环境信息。In a first aspect, an embodiment of the present application provides a video processing method, the method comprising: continuously acquiring N videos through an image acquisition device, and storing the N videos in a first designated folder, N being a positive integer greater than 2, and the videos in the first designated folder being deleted when the storage time is greater than or equal to a preset time; after monitoring that a vehicle enters an emergency state, obtaining a target video from the N videos based on the time information when the vehicle enters the emergency state; when there are multiple target videos, splicing the multiple target videos to obtain an emergency state video, and storing the emergency state video in a second designated folder, the files in the second designated folder do not respond to a specified deletion instruction, the specified deletion instruction is a deletion instruction other than a deletion instruction triggered by a user, and the emergency state video is used to record environmental information before and after the vehicle enters the emergency state.
第二方面,本申请实施例提供一种视频处理装置,该装置包括:视频采集模块,用于通过图像采集装置连续采集N个视频,N为大于2的正整数;第一存储模块,用于将N个视频存储在第一指定文件夹,第一指定文件夹中的视频在存储时长大于或等于预设时长的情况下被删除;视频获取模块,用于在监测到车辆处于紧急状态之后,基于车辆进入紧急状态的时间信息,从多个视频中获取目标视频;视频处理模块,用于在目标视频存在多个的情况下,对多个目标视频进行拼接处理,得到紧急状态视频,紧急状态视频用于记录车辆在进入紧急状态前后的环境信息;第二存储模块,用于将紧急状态视频存储在第二指定文件夹,其中,第二指定文件夹中的文件不响应指定删除指令,指定删除指令是用户触发的删除指令之外的其他删除指令。In a second aspect, an embodiment of the present application provides a video processing device, which includes: a video acquisition module, which is used to continuously acquire N videos through an image acquisition device, where N is a positive integer greater than 2; a first storage module, which is used to store the N videos in a first designated folder, and the videos in the first designated folder are deleted when the storage time is greater than or equal to a preset time; a video acquisition module, which is used to acquire a target video from multiple videos based on the time information of the vehicle entering the emergency state after monitoring that the vehicle is in an emergency state; a video processing module, which is used to splice multiple target videos when there are multiple target videos to obtain an emergency state video, and the emergency state video is used to record the environmental information of the vehicle before and after entering the emergency state; a second storage module, which is used to store the emergency state video in a second designated folder, wherein the files in the second designated folder do not respond to a specified deletion instruction, and the specified deletion instruction is a deletion instruction other than a deletion instruction triggered by the user.
第三方面,本申请实施例提供一种车辆,包括:一个或多个处理器;存储器;图像采集装置;一个或多个应用程序,其中一个或多个应用程序被存储在存储器中并被配置为由一个或多个处理器执行,一个或多个应用程序配置用于执行如第一方面所述的视频处理方法。In a third aspect, an embodiment of the present application provides a vehicle, comprising: one or more processors; a memory; an image acquisition device; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the video processing method as described in the first aspect.
第四方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序指令,计算机程序指令可被处理器调用执行如第一方面的视频处理方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer program instructions are stored. The computer program instructions can be called by a processor to execute the video processing method of the first aspect.
第五方面,本申请实施例提供一种计算机程序产品,当该计算机程序产品被执行时,器用于实现如第一方面所述的视频处理方法。In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is executed, the device is used to implement the video processing method described in the first aspect.
相较于现有技术,本申请实施例提供的视频处理方法,通过在车辆进入紧急状态后,从图像采集装置通过循环录制方式采集的多个视频中获取三个目标视频,以拼接得到用于记录车辆进入紧急状态前后的环境信息的紧急状态视频,由于该过程中复用图像采集装置通过循环录制方式采集的视频,视频拼接过程仅消耗电子控制器的少量算力,减小对电子控制器的硬件资源的消耗,从而使电子控制器存在足够的硬件资源去处理车辆中的其他业务,减少卡顿感。Compared with the prior art, the video processing method provided in the embodiment of the present application obtains three target videos from multiple videos captured by an image acquisition device in a loop recording manner after the vehicle enters an emergency state, so as to splice them together to obtain an emergency state video for recording environmental information before and after the vehicle enters the emergency state. Since the videos captured by the image acquisition device in a loop recording manner are reused in this process, the video splicing process only consumes a small amount of computing power of the electronic controller, reducing the consumption of the hardware resources of the electronic controller, so that the electronic controller has sufficient hardware resources to process other services in the vehicle and reduce the sense of lag.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1是本申请一个实施例提供的实施环境的示意图。FIG1 is a schematic diagram of an implementation environment provided by an embodiment of the present application.
图2是本申请一个实施例提供的视频处理方法的流程图。FIG. 2 is a flow chart of a video processing method provided by an embodiment of the present application.
图3是本申请一个实施例提供的视频处理的示意图。FIG. 3 is a schematic diagram of video processing provided by an embodiment of the present application.
图4是本申请一个实施例提供的视频处理方法的流程图。FIG. 4 is a flow chart of a video processing method provided by an embodiment of the present application.
图5是本申请一个实施例提供的播放紧急状态视频的界面示意图。FIG5 is a schematic diagram of an interface for playing an emergency video provided by an embodiment of the present application.
图6是本申请一个实施例提供的视频处理装置的框图。FIG. 6 is a block diagram of a video processing device provided by an embodiment of the present application.
图7是本申请一个实施例提供的车辆的结构框图。FIG. 7 is a structural block diagram of a vehicle provided in one embodiment of the present application.
图8是本申请一个实施例提供的计算机可读存储介质的框图。FIG. 8 is a block diagram of a computer-readable storage medium provided by an embodiment of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施方式,实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性地,仅用于解释本申请,而不能理解为对本申请的限制。The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
为了使本技术领域的人员更好地理解本申请的方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
请参阅图1,其示出本申请一个实施例提供的实施环境的示意图。该实施环境包括车辆100。车辆100是指以动力装置驱动或者牵引,供人员乘用或者用于运送物品的交通工具,其包括但不限于小轿车、运动型多用途汽车(Suburban Utility Vehicle,SUV)、多用途汽车(Multi-Purpose Vehicle,MPV)等等。车辆100设有图像采集装置和电子控制器,该图像采集装置和电子控制器之间建立有通信连接。Please refer to FIG1 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment includes a vehicle 100. The vehicle 100 refers to a vehicle driven or towed by a power device for passengers or for transporting goods, including but not limited to a sedan, a suburban utility vehicle (SUV), a multi-purpose vehicle (MPV), etc. The vehicle 100 is provided with an image acquisition device and an electronic controller, and a communication connection is established between the image acquisition device and the electronic controller.
图像采集装置用于对车辆100行驶过程中的环境信息进行记录。可选地,该图像采集装置为行车记录仪,行车记录仪可以安装在汽车前挡风玻璃靠上中央后视镜后方的位置。在一些实施例中,行车记录仪在车辆100的行驶过程中,持续进行图像采集,得到若干个时长相同的视频,之后依次向电子控制器发送上述视频,电子控制器存储上述视频,但在上述视频的存储时长达到预设时长的情况下,将其删除,以容纳行车记录仪新采集的视频。上述这种工作方式称之为循环录制方式。The image acquisition device is used to record environmental information during the driving process of the vehicle 100. Optionally, the image acquisition device is a driving recorder, which can be installed at a position behind the upper central rearview mirror of the front windshield of the car. In some embodiments, the driving recorder continuously acquires images during the driving process of the vehicle 100 to obtain several videos of the same duration, and then sends the above videos to the electronic controller in sequence. The electronic controller stores the above videos, but when the storage duration of the above videos reaches a preset duration, it is deleted to accommodate the newly collected video of the driving recorder. The above working mode is called a loop recording mode.
电子控制器用于处理车辆100中的各项业务,包括且不限于:驱动系统的控制、制动系统的控制、娱乐系统的控制、车内环境组件(比如空调、氛围灯等等)的控制。在本申请实施例中,电子控制器在监测到进入紧急状态(比如发生碰撞事故,发生急刹等等),复用图像采集装置通过循环录制方式采集的视频,并将上述多个视频拼接,得到用于记录车辆100在进入紧急状态前后的环境信息的紧急状态视频,该过程仅消耗电子控制器的少量算力,减小对电子控制器的硬件资源的消耗,从而使电子控制器存在足够的硬件资源去处理车辆100中的其他业务,减少卡顿感。The electronic controller is used to process various services in the vehicle 100, including but not limited to: control of the drive system, control of the brake system, control of the entertainment system, and control of the in-vehicle environmental components (such as air conditioning, ambient lighting, etc.). In the embodiment of the present application, when the electronic controller detects that an emergency state has been entered (such as a collision accident, sudden braking, etc.), it reuses the video collected by the image acquisition device through a loop recording method, and splices the above multiple videos to obtain an emergency state video for recording the environmental information of the vehicle 100 before and after entering the emergency state. This process consumes only a small amount of computing power of the electronic controller, reducing the consumption of the hardware resources of the electronic controller, so that the electronic controller has sufficient hardware resources to process other services in the vehicle 100 and reduce the sense of jamming.
请参考图2,其示出本申请一个实施例提供的视频处理方法的流程图。该方法中各步骤的执行主体可以是电子控制器,该方法包括如下过程。Please refer to Figure 2, which shows a flow chart of a video processing method provided by an embodiment of the present application. The execution subject of each step in the method can be an electronic controller, and the method includes the following process.
步骤S201,通过图像采集装置连续采集的N个视频,并将N个视频存储在第一指定文件夹。Step S201: continuously capture N videos through an image capture device, and store the N videos in a first designated folder.
N为大于2的正整数。在本申请实施例中。图像采集装置在车辆的行驶过程中,持续进行视频采集,得到N个时长相同的视频。N is a positive integer greater than 2. In the embodiment of the present application, the image acquisition device continuously acquires videos during the driving of the vehicle to obtain N videos of the same length.
第一指定文件夹中的视频在存储时长大于或等于预设时长的情况下被删除,以容纳图像采集装置新采集的视频。在其他可能的实施方式中,在第一指定文件夹中的视频的数据量大于预设数据量的情况下,电子控制器将最先存储的一个或多个视频删除,,以容纳图像采集装置新采集的视频。The videos in the first designated folder are deleted when the storage time is greater than or equal to the preset time to accommodate the videos newly collected by the image acquisition device. In other possible implementations, when the data volume of the videos in the first designated folder is greater than the preset data volume, the electronic controller deletes one or more videos stored first to accommodate the videos newly collected by the image acquisition device.
步骤S202,在监测到车辆处于紧急状态之后,基于车辆进入紧急状态的时间信息,从N个视频中获取目标视频。Step S202, after monitoring that the vehicle is in an emergency state, a target video is obtained from N videos based on the time information when the vehicle enters the emergency state.
紧急状态包括且不限于:车辆发生急刹、车辆突然加速、车辆发生碰撞事件、车辆的方向盘转角发生较大变化等等,上述紧急状态表征车辆大概率发生事故,此时需要准确记录车辆当前的环境信息,以便后续进行救援、追责等等。Emergency states include but are not limited to: sudden braking of the vehicle, sudden acceleration of the vehicle, collision of the vehicle, large changes in the steering wheel angle of the vehicle, etc. The above emergency states indicate that the vehicle is likely to have an accident. At this time, it is necessary to accurately record the current environmental information of the vehicle for subsequent rescue, accountability, etc.
在一些实施例中,车辆通过加速度传感器实时获取车辆加速度,在车辆加速度的绝对值大于第一预设数值的情况下,确定车辆进入紧急状态。第一预设数值根据实验或经验设定,本申请实施例对此不作限定。车辆加速度的绝对值大于第一预设数值,表征车辆发生急刹,或者,车辆突然加速。需要说明的是,车辆在刚进入行驶状态的情况下,也存在加速度较大的情况,然而这并非是车辆发生事故,因此在通过车辆加速度判断车辆是否进入紧急状态时,还需要获取车辆在加速度大于第一预设数值前的行驶速度,若车辆在加速度大于第一预设数值前的行驶速度小于预设行驶速度,则表征车辆大概率处于起步加速阶段,而并非进入紧急状态,若车辆在加速度大于第一预设数值前的行驶速度大于预设行驶速度,则表征车辆进入紧急状态。In some embodiments, the vehicle obtains the vehicle acceleration in real time through the acceleration sensor, and when the absolute value of the vehicle acceleration is greater than the first preset value, it is determined that the vehicle enters an emergency state. The first preset value is set according to experiments or experience, and the embodiments of the present application are not limited to this. The absolute value of the vehicle acceleration is greater than the first preset value, indicating that the vehicle brakes suddenly, or the vehicle accelerates suddenly. It should be noted that when the vehicle just enters the driving state, there is also a situation where the acceleration is large, but this is not an accident of the vehicle. Therefore, when judging whether the vehicle enters an emergency state by the vehicle acceleration, it is also necessary to obtain the driving speed of the vehicle before the acceleration is greater than the first preset value. If the driving speed of the vehicle before the acceleration is greater than the first preset value is less than the preset driving speed, it indicates that the vehicle is most likely in the starting acceleration stage, rather than entering an emergency state. If the driving speed of the vehicle before the acceleration is greater than the first preset value is greater than the preset driving speed, it indicates that the vehicle enters an emergency state.
在另一些实施例中,车辆监测方向盘转角的变化情况,在监测到方向盘转角的变化率大于第二预设数值的情况下,确定车辆进入紧急状态。第二预设数值根据实验或经验设定,本申请实施例对此不作限定。方向盘转角的变化率大于第二预设数值,表征车辆的方向盘转角在短时间内发生较大变化,也即车辆发生紧急转向。In other embodiments, the vehicle monitors the change of the steering wheel angle, and when the change rate of the steering wheel angle is greater than a second preset value, it is determined that the vehicle has entered an emergency state. The second preset value is set based on experiments or experience, and the embodiments of the present application are not limited to this. The change rate of the steering wheel angle is greater than the second preset value, indicating that the steering wheel angle of the vehicle has changed significantly in a short period of time, that is, the vehicle has made an emergency turn.
在另一些实施例中,车辆在检测出碰撞事件的情况下,确定处于紧急状态。可选地,车辆可以对图像采集装置采集的视频帧进行分析,以确定是否发生碰撞事件。In other embodiments, the vehicle determines that it is in an emergency state when a collision event is detected. Optionally, the vehicle can analyze the video frames captured by the image acquisition device to determine whether a collision event has occurred.
在一些实施例中,车辆进入紧急状态的时间信息包括车辆进入紧急状态的目标时刻,目标视频包括第一目标视频、第二目标视频以及第三目标视频。在该实施例中,步骤S202可以替换实现为如下子步骤:在监测到车辆处于紧急状态之后,将N个视频中采集时间包含目标时刻的视频确定为第一目标视频;将N个视频中采集时间在第一目标视频的采集时间之前,且与第一目标视频的采集时间之间的时间间隔小于或等于第一时间间隔的视频确定为第二目标视频;将N个视频中采集时间在第一目标视频的采集时间之后,且与第一目标视频的采集时间之间的时间间隔小于或等于第二时间间隔的视频确定为第三目标视频。In some embodiments, the time information of the vehicle entering the emergency state includes the target moment when the vehicle enters the emergency state, and the target video includes a first target video, a second target video, and a third target video. In this embodiment, step S202 can be replaced by the following sub-steps: after monitoring that the vehicle is in an emergency state, the video whose acquisition time includes the target moment among the N videos is determined as the first target video; the video whose acquisition time among the N videos is before the acquisition time of the first target video and whose time interval with the acquisition time of the first target video is less than or equal to the first time interval is determined as the second target video; the video whose acquisition time among the N videos is after the acquisition time of the first target video and whose time interval with the acquisition time of the first target video is less than or equal to the second time interval is determined as the third target video.
第一时间间隔和第二时间间隔可以根据图像采集装置采集的视频的时长确定,二者可以相同,也可以不相同。具体地,第一时间间隔可以是图像采集装置采集的视频的时长的正整数倍,第二时间间隔也可以是图像采集装置采集的视频的时长的正整数倍,这样在后续生成紧急状态视频时,可以直接获取图像采集视频采集的视频,无需对其进行拆分。The first time interval and the second time interval can be determined according to the duration of the video collected by the image acquisition device, and the two can be the same or different. Specifically, the first time interval can be a positive integer multiple of the duration of the video collected by the image acquisition device, and the second time interval can also be a positive integer multiple of the duration of the video collected by the image acquisition device, so that when the emergency state video is subsequently generated, the video collected by the image acquisition video can be directly obtained without splitting it.
进一步地,上述第一时间间隔和第二时间间隔均为图像采集视频的时长,进一步地,将N个视频中采集时间在第一目标视频的采集时间之前,且与第一目标视频的采集时间之间的时间间隔小于或等于第一时间间隔的视频确定为第二目标视频,包括:将N个视频中采集时间在第一目标视频的采集时间之前,且与第一目标视频的采集时间之间的时间间隔最小的视频,确定为第二目标视频。将N个视频中采集时间在第一目标视频的采集时间之后,且与第一目标视频的采集时间之间的时间间隔小于或等于第二时间间隔的视频确定为第三目标视频,包括:将N个视频中采集时间在第一目标视频的采集时间之后,且与第一目标视频的采集时间之间的时间间隔最小的视频,确定为第三目标视频。Furthermore, the first time interval and the second time interval are both the duration of the image acquisition video. Furthermore, the video whose acquisition time among the N videos is before the acquisition time of the first target video and whose time interval with the acquisition time of the first target video is less than or equal to the first time interval is determined as the second target video, including: the video whose acquisition time among the N videos is before the acquisition time of the first target video and whose time interval with the acquisition time of the first target video is the smallest is determined as the second target video. The video whose acquisition time among the N videos is after the acquisition time of the first target video and whose time interval with the acquisition time of the first target video is less than or equal to the second time interval is determined as the third target video, including: the video whose acquisition time among the N videos is after the acquisition time of the first target video and whose time interval with the acquisition time of the first target video is the smallest is determined as the third target video.
结合参考图3,其示出了本申请一个实施例提供的视频处理的示意图。图像采集装置通过循环录制方式采集N个视频,在t0时刻,车辆监测到自身进入紧急状态,然后在上述N个视频中查找采集时间包括t0时刻的视频作为第一目标视频31,然后将采集时间在第一目标视频31的采集时间之前,且距离第一目标视频31的采集时间最近的视频确定为第二目标视频32,将采集时间在第一目标视频31的采集时间之后,且距离第一目标视频31的采集时间最近的视频确定为第三目标视频33。Combined with reference to Figure 3, it shows a schematic diagram of video processing provided by an embodiment of the present application. The image acquisition device acquires N videos in a loop recording manner. At time t0, the vehicle detects that it has entered an emergency state, and then searches for a video whose acquisition time includes time t0 in the above N videos as the first target video 31, and then determines the video whose acquisition time is before the acquisition time of the first target video 31 and closest to the acquisition time of the first target video 31 as the second target video 32, and determines the video whose acquisition time is after the acquisition time of the first target video 31 and closest to the acquisition time of the first target video 31 as the third target video 33.
需要说明的是,第一目标视频、第二目标视频和第三目标视频的获取时间可以相同,也可以不相同。在一些实施例中,车辆在进入紧急状态时获取第二目标视频,在第一目标视频采集完成时获取第一目标视频,在第三目标视频采集完成时获取第三目标视频。在另一些实施例中,车辆在第三目标视频采集完成后同时获取第一目标视频、第二目标视频和第三目标视频。It should be noted that the acquisition time of the first target video, the second target video, and the third target video may be the same or different. In some embodiments, the vehicle acquires the second target video when entering an emergency state, acquires the first target video when the acquisition of the first target video is completed, and acquires the third target video when the acquisition of the third target video is completed. In other embodiments, the vehicle acquires the first target video, the second target video, and the third target video at the same time after the acquisition of the third target video is completed.
在其他可能的实施方式中,若图像采集装置在处于紧急状态前未进行视频采集(比如图像采集装置处于刚安装的状态下),则电子控制器可以获取采集时间包括目标时刻的第一目标视频,以及采集时间在目标时刻之后的第三目标视频;若图像采集装置在车辆进入紧急状态后停止工作,则电子控制器可以获取采集时间包括目标时刻的第一目标视频,以及采集时间在目标时刻之前的第三目标视频;若上述两种情况均发生的情况,则电子控制器可以仅获取采集时间包括目标视频的第一目标视频。In other possible implementations, if the image acquisition device does not perform video acquisition before entering an emergency state (for example, the image acquisition device is in a newly installed state), the electronic controller may acquire a first target video whose acquisition time includes the target moment, and a third target video whose acquisition time is after the target moment; if the image acquisition device stops working after the vehicle enters an emergency state, the electronic controller may acquire a first target video whose acquisition time includes the target moment, and a third target video whose acquisition time is before the target moment; if both of the above situations occur, the electronic controller may only acquire the first target video whose acquisition time includes the target video.
步骤S203,在目标视频存在多个的情况下,对多个目标视频进行拼接处理,得到紧急状态视频,并将紧急状态视频存储在第二指定文件夹。Step S203: when there are multiple target videos, the multiple target videos are spliced together to obtain an emergency state video, and the emergency state video is stored in a second designated folder.
紧急状态视频用于记录车辆在进入紧急状态前后的环境信息。第二指定文件夹中的视频不响应指定删除指令,指定删除指令是用户触发的删除指令之外的其他删除指令,也即,也即指定存储路径中的文件仅能被用户手动删除,不会被自动删除,避免紧急状态视频被误删的情况发生,避免紧急状态视频被误删的情况发生。第一指定文件夹和第二指定文件夹不相同。Emergency videos are used to record the environment information before and after the vehicle enters an emergency state. The videos in the second designated folder do not respond to designated deletion instructions. Designated deletion instructions are deletion instructions other than deletion instructions triggered by the user. That is, the files in the designated storage path can only be deleted manually by the user and will not be automatically deleted, so as to avoid accidental deletion of emergency videos. The first designated folder and the second designated folder are different.
在目标视频包括第一目标视频、第二目标视频和第三目标视频的情况下,步骤S203实现为:将第二目标视频、第一目标视频以及第三目标视频按照采集时间的先后顺序首尾拼接,得到紧急状态视频。When the target video includes the first target video, the second target video and the third target video, step S203 is implemented as follows: splicing the second target video, the first target video and the third target video in the order of acquisition time to obtain the emergency state video.
在目标视频包括第一目标视频、第三目标视频的情况下,步骤S203实现为将第一目标视频以及第三目标视频按照采集时间的先后顺序首尾拼接,得到紧急状态视频。在目标视频包括第一目标视频、第二目标视频的情况下,步骤S203实现为将第二目标视频以及第一目标视频按照采集时间的先后顺序首尾拼接,得到紧急状态视频。在目标视频仅包括第一目标视频的情况下,电子控制器将第一目标视频确定为紧急状态视频。请再次参阅图3,电子控制器将上述第二目标视频32、第一目标视频31、第三目标视频33依次拼接,得到紧急状态视频34。In the case where the target video includes the first target video and the third target video, step S203 is implemented by splicing the first target video and the third target video end to end in the order of acquisition time to obtain an emergency state video. In the case where the target video includes the first target video and the second target video, step S203 is implemented by splicing the second target video and the first target video end to end in the order of acquisition time to obtain an emergency state video. In the case where the target video only includes the first target video, the electronic controller determines the first target video as the emergency state video. Please refer to Figure 3 again. The electronic controller splices the above-mentioned second target video 32, the first target video 31, and the third target video 33 in sequence to obtain an emergency state video 34.
综上所述,本申请实施例提供的技术方案,通过在车辆进入紧急状态后,从图像采集装置通过循环录制方式采集的多个视频中获取三个目标视频,以拼接得到用于记录车辆进入紧急状态前后的环境信息的紧急状态视频,由于获取紧急状态视频的过程中复用了图像采集装置通过循环录制方式采集的视频,视频拼接过程仅消耗电子控制器的少量算力,减小对电子控制器的硬件资源的消耗,从而使电子控制器存在足够的硬件资源去处理车辆中的其他业务,减少卡顿感。To summarize, the technical solution provided by the embodiment of the present application obtains three target videos from multiple videos captured by an image acquisition device in a loop recording manner after the vehicle enters an emergency state, so as to splice them together to obtain an emergency state video for recording environmental information before and after the vehicle enters the emergency state. Since the videos captured by the image acquisition device in a loop recording manner are reused in the process of obtaining the emergency state video, the video splicing process only consumes a small amount of computing power of the electronic controller, thereby reducing the consumption of the hardware resources of the electronic controller, so that the electronic controller has sufficient hardware resources to handle other services in the vehicle and reduce the sense of lag.
在一些实施例中,车辆得到紧急状态视频之后,还可以对紧急状态视频的名称进行设置,以便后续进行查找。可选地,车辆基于车辆进入紧急状态的时间信息,对紧急状态视频的名称进行设置。可选地,紧急状态视频的名称包含上述时间信息。比如,车辆进入紧急状态的目标时刻为2022年10月19日下午15点23分,则该紧急状态视频的名称可以为“2210191523”。通过上述方式,可以使得用户可以根据车辆进入紧急状态的时间快速查找紧急状态视频,提高查找效率。In some embodiments, after the vehicle obtains the emergency state video, the name of the emergency state video can also be set for subsequent search. Optionally, the vehicle sets the name of the emergency state video based on the time information when the vehicle enters the emergency state. Optionally, the name of the emergency state video contains the above time information. For example, if the target time for the vehicle to enter the emergency state is 15:23 pm on October 19, 2022, the name of the emergency state video can be "2210191523". In the above manner, users can quickly find emergency state videos according to the time when the vehicle enters the emergency state, thereby improving search efficiency.
进一步地,车辆还可以基于车辆进入紧急状态的时间信息,以及车辆进入紧急状态时所处的位置信息,对紧急状态视频的名称进行设置。其中,车辆可以通过定位模块获取车辆进入紧急状态时所处的位置信息。上述定位模块可以是车辆中的GPS模块。在该实施例中,紧急状态视频的名称除了包含上述时间信息之外,还包括车辆进入紧急状态时所处的位置信息。结合上文示例,车辆于2022年10月19日下午15点23分,在xx高速收费站发生追尾事故,此时紧急状态视频的名称可以设置为“xx高速收费站2210191523”。通过上述方式,可以使得用户可以根据车辆进入紧急状态的时间以及位置信息快速查找紧急状态视频,提高查找效率。Furthermore, the vehicle can also set the name of the emergency state video based on the time information when the vehicle enters the emergency state and the location information when the vehicle enters the emergency state. Among them, the vehicle can obtain the location information of the vehicle when it enters the emergency state through the positioning module. The above positioning module can be a GPS module in the vehicle. In this embodiment, in addition to the above time information, the name of the emergency state video also includes the location information of the vehicle when it enters the emergency state. Combined with the above example, the vehicle had a rear-end collision at the xx highway toll station at 15:23 pm on October 19, 2022. At this time, the name of the emergency state video can be set to "xx Highway Toll Station 2210191523". In the above way, users can quickly find emergency state videos according to the time and location information when the vehicle enters the emergency state, thereby improving search efficiency.
在一些实施例中,车辆还可以从紧急状态视频中获取目标视频帧,然后将该目标视频帧设置为紧急状态视频的视频封面。其中,目标视频帧用于记录车辆进入紧急状态时的环境信息,也即,目标视频帧是车辆进入紧急状态时(也即目标时刻)图像采集装置采集的视频帧。通过上述方式,使得用户在查看到紧急状态视频的视频封面时,即可快速了解紧急状态视频的内容。In some embodiments, the vehicle can also obtain a target video frame from the emergency video, and then set the target video frame as the video cover of the emergency video. The target video frame is used to record the environmental information when the vehicle enters the emergency state, that is, the target video frame is the video frame captured by the image acquisition device when the vehicle enters the emergency state (that is, the target moment). In the above manner, when the user views the video cover of the emergency video, he can quickly understand the content of the emergency video.
请参考图4,其示出本申请一个实施例提供的视频处理方法的流程图。该方法包括如下过程。Please refer to Figure 4, which shows a flow chart of a video processing method provided by an embodiment of the present application. The method includes the following process.
步骤S401,通过图像采集装置连续采集的N个视频,并将N个视频存储在第一指定文件夹。Step S401: continuously capture N videos through an image capture device, and store the N videos in a first designated folder.
第一指定文件夹中的视频在存储时长大于或等于预设时长的情况下被删除。The videos in the first designated folder are deleted when the storage duration is greater than or equal to the preset duration.
步骤S402,在监测到车辆处于紧急状态之后,基于车辆进入紧急状态的时间信息,从N个视频中获取目标视频。Step S402, after monitoring that the vehicle is in an emergency state, a target video is obtained from N videos based on the time information when the vehicle enters the emergency state.
步骤S403,在目标视频存在多个的情况下,对多个目标视频进行拼接处理,得到紧急状态视频,并将紧急状态视频存储在第二指定文件夹。Step S403: when there are multiple target videos, the multiple target videos are spliced to obtain an emergency state video, and the emergency state video is stored in a second designated folder.
紧急状态视频用于记录车辆在进入紧急状态前后的环境信息。第二指定文件夹中的文件不响应指定删除指令,指定删除指令是用户触发的删除指令之外的其他删除指令。The emergency state video is used to record the environmental information of the vehicle before and after entering the emergency state. The files in the second designated folder do not respond to the designated deletion command, and the designated deletion command is a deletion command other than the deletion command triggered by the user.
步骤S404,在接收针对紧急状态视频的播放指令后,播放紧急状态视频。Step S404, after receiving the play instruction for the emergency state video, play the emergency state video.
在一些实施例中,车辆设置有可触控的中控屏幕,中控屏幕显示有紧急状态视频的名称,在获取到针对紧急状态视频的名称的触发信号时,电子控制器接收到上述播放指令。上述触发信号可以是单击触发信号、双击触发信号、长按触发信号中的任意一种。在一些实施例中,车辆设置有不可触控的中控屏幕,以及可操作控件,用户可以通过对可操作控件的触发操作,以实现触发针对紧急状态视频的播放指令。在另一些实施例中,播放指令为语音信号,电子控制器通过声音采集装置采集语音信号,在检测出声音信号包括指定关键词的情况下,接收到播放指令。In some embodiments, the vehicle is provided with a touch-sensitive central control screen, and the central control screen displays the name of the emergency video. When a trigger signal for the name of the emergency video is obtained, the electronic controller receives the above-mentioned play instruction. The above-mentioned trigger signal can be any one of a single-click trigger signal, a double-click trigger signal, and a long-press trigger signal. In some embodiments, the vehicle is provided with a non-touch-sensitive central control screen and operable controls. The user can trigger the operable controls to trigger the play instruction for the emergency video. In other embodiments, the play instruction is a voice signal, and the electronic controller collects the voice signal through a sound collection device. When it is detected that the sound signal includes a specified keyword, the play instruction is received.
步骤S405,在播放紧急状态视频的过程中,显示紧急状态视频的播放进度条。Step S405: During the process of playing the emergency video, a playing progress bar of the emergency video is displayed.
播放进度条用于指示紧急状态视频的播放进度。播放进度条包括目标标记。该目标标记用于标记车辆在进入紧急状态时图像采集装置采集的视频帧。The play progress bar is used to indicate the play progress of the emergency state video. The play progress bar includes a target mark. The target mark is used to mark the video frame collected by the image acquisition device when the vehicle enters the emergency state.
结合参考图5,其示出本申请一个实施例提供的紧急状态视频的播放示意图,中控屏幕在播放紧急状态视频的过程中,显示播放进度条51,播放进度条51包括目标标记52。With reference to FIG5 , which shows a schematic diagram of playing an emergency status video provided in one embodiment of the present application, the central control screen displays a playing progress bar 51 during playing the emergency status video, and the playing progress bar 51 includes a target mark 52 .
步骤S406,在接收到针对目标标记的触发信号后,显示车辆在进入紧急状态时图像采集装置采集的视频帧。Step S406, after receiving the trigger signal for the target mark, display the video frame captured by the image acquisition device when the vehicle enters the emergency state.
该触发信号可以是用户针对目标印记的单击触发信号、双击触发信号、长按触发信号中的任意一种,在本申请实施例中,仅以触发信号为单击触发信号为例进行说明。此外,触发信号还可以是语音信号。The trigger signal may be any one of a single-click trigger signal, a double-click trigger signal, and a long-press trigger signal for the target mark by the user. In the embodiment of the present application, only a single-click trigger signal is used as an example for explanation. In addition, the trigger signal may also be a voice signal.
在本申请实施例中,用户通过触发信号触发目标标记后,中控屏幕跳转显示车辆在进入紧急状态时图像采集装置采集的视频帧,通过上述方式,可以对车辆进入紧急状态时的画面进行快速定位,提高查找效率。请再次参阅图5,用户触发目标标记52后,中控屏幕显示车辆在进入紧急状态时图像采集装置采集的视频帧53。In the embodiment of the present application, after the user triggers the target mark through the trigger signal, the central control screen jumps to display the video frame collected by the image acquisition device when the vehicle enters the emergency state. In this way, the image when the vehicle enters the emergency state can be quickly located to improve the search efficiency. Please refer to Figure 5 again. After the user triggers the target mark 52, the central control screen displays the video frame 53 collected by the image acquisition device when the vehicle enters the emergency state.
综上所述,本申请实施例提供的技术方案,还通过在播放紧急状态视频时,在紧急状态视频的播放进度条上显示目标标记,当用户触发目标标记后,中控屏幕会跳转显示车辆在进入紧急状态时图像采集装置采集的视频帧,实现对车辆进入紧急状态时的画面进行快速定位,提高查找效率。To sum up, the technical solution provided in the embodiment of the present application also displays a target mark on the playback progress bar of the emergency state video when playing the emergency state video. When the user triggers the target mark, the central control screen will jump to display the video frame captured by the image acquisition device when the vehicle enters the emergency state, thereby realizing rapid positioning of the picture when the vehicle enters the emergency state and improving search efficiency.
在一些实施例中,车辆还监测到电子控制器的可用硬件资源与总硬件资源之间的占比小于预设占比的情况下,执行后续的视频处理步骤,以获取紧急状态视频。预设占比根据实验或经验设定。电子控制器的可用硬件资源与总硬件资源之间的占比小于预设占比,则说明电子控制器的可用硬件资源不足,此时可以复用图像采集装置通过循环录制方式采集的视频,以减小算力,减小对电子控制器的硬件资源的消耗,使得电子控制器有足够的硬件资源去处理其他业务,减少卡顿感。In some embodiments, when the vehicle also detects that the ratio between the available hardware resources of the electronic controller and the total hardware resources is less than a preset ratio, subsequent video processing steps are performed to obtain emergency status videos. The preset ratio is set based on experiments or experience. If the ratio between the available hardware resources of the electronic controller and the total hardware resources is less than the preset ratio, it means that the available hardware resources of the electronic controller are insufficient. At this time, the video collected by the image acquisition device through loop recording can be reused to reduce computing power and reduce the consumption of hardware resources of the electronic controller, so that the electronic controller has sufficient hardware resources to handle other services and reduce the sense of jamming.
请参阅图6,其示出本申请一个实施例提供的视频处理装置的结构框图。该装置包括:视频采集模块610、第一存储模块620,视频获取模块630、视频处理模块630和第二存储模块650。Please refer to FIG6 , which shows a structural block diagram of a video processing device provided by an embodiment of the present application. The device includes: a video acquisition module 610 , a first storage module 620 , a video acquisition module 630 , a video processing module 630 and a second storage module 650 .
视频采集模块610,用于通过图像采集装置连续采集N个视频,N为大于2的正整数。The video acquisition module 610 is used to continuously acquire N videos through an image acquisition device, where N is a positive integer greater than 2.
第一存储模块620,用于将N个视频存储在第一指定文件夹,第一指定文件夹中的视频在存储时长大于或等于预设时长的情况下被删除。The first storage module 620 is used to store N videos in a first designated folder. The videos in the first designated folder are deleted when the storage time is greater than or equal to a preset time.
视频获取模块630,用于在监测到车辆处于紧急状态之后,基于车辆进入紧急状态的时间信息,从多个视频中获取目标视频。The video acquisition module 630 is used to acquire a target video from multiple videos based on the time information when the vehicle enters the emergency state after monitoring that the vehicle is in the emergency state.
视频处理模块640,用于在目标视频存在多个的情况下,对目标视频进行拼接处理,得到紧急状态视频,紧急状态视频用于记录车辆在进入紧急状态前后的环境信息。The video processing module 640 is used to splice the target videos to obtain an emergency state video when there are multiple target videos. The emergency state video is used to record the environmental information of the vehicle before and after entering the emergency state.
第二存储模块650,用于将紧急状态视频存储在第二指定文件夹,其中,第二指定文件夹中的文件不响应指定删除指令,指定删除指令是用户触发的删除指令之外的其他删除指令。The second storage module 650 is used to store the emergency status video in a second designated folder, wherein the files in the second designated folder do not respond to a designated deletion instruction, and the designated deletion instruction is a deletion instruction other than a deletion instruction triggered by a user.
综上所述,本申请实施例提供的技术方案,通过在车辆进入紧急状态后,从图像采集装置通过循环录制方式采集的多个视频中获取三个目标视频,以拼接得到用于记录车辆进入紧急状态前后的环境信息的紧急状态视频,由于获取紧急状态视频的过程中复用了图像采集装置通过循环录制方式采集的视频,视频拼接过程仅消耗电子控制器的少量算力,减小对电子控制器的硬件资源的消耗,从而使电子控制器存在足够的硬件资源去处理车辆中的其他业务,减少卡顿感。To summarize, the technical solution provided by the embodiment of the present application obtains three target videos from multiple videos captured by an image acquisition device in a loop recording manner after the vehicle enters an emergency state, so as to splice them together to obtain an emergency state video for recording environmental information before and after the vehicle enters the emergency state. Since the videos captured by the image acquisition device in a loop recording manner are reused in the process of obtaining the emergency state video, the video splicing process only consumes a small amount of computing power of the electronic controller, thereby reducing the consumption of the hardware resources of the electronic controller, so that the electronic controller has sufficient hardware resources to handle other services in the vehicle and reduce the sense of lag.
在一些实施例中,车辆进入紧急状态的时间信息包括目标时刻;目标视频包括第一目标视频、第二目标视频和第三目标视频;视频获取模块630,用于:在监测到车辆处于紧急状态之后,将N个视频中采集时间包含目标时刻的视频确定为第一目标视频;将N个视频中采集时间在第一目标视频的采集时间之前,且与第一目标视频的采集时间之间的时间间隔小于第一时间间隔的视频确定为第二目标视频;将N个视频中采集时间在第一目标视频的采集时间之后,且与第一目标视频的采集时间之间的时间间隔小于第二时间间隔的视频确定为第三目标视频。In some embodiments, the time information when the vehicle enters an emergency state includes a target moment; the target videos include a first target video, a second target video, and a third target video; the video acquisition module 630 is used to: after monitoring that the vehicle is in an emergency state, determine the video whose acquisition time includes the target moment among the N videos as the first target video; determine the video whose acquisition time among the N videos is before the acquisition time of the first target video and whose time interval with the acquisition time of the first target video is less than the first time interval as the second target video; determine the video whose acquisition time among the N videos is after the acquisition time of the first target video and whose time interval with the acquisition time of the first target video is less than the second time interval as the third target video.
在一些实施例中,视频获取模块630,用于将N个视频中采集时间在第一目标视频的采集时间之前,且与第一目标视频的采集时间之间的时间间隔最小的视频确定为第二目标视频;将N个视频中采集时间在第一目标视频的采集时间之后,且与第一目标视频的采集时间之间的时间间隔最小的视频确定为第三目标视频。In some embodiments, the video acquisition module 630 is used to determine the video among the N videos whose acquisition time is before the acquisition time of the first target video and whose time interval with the acquisition time of the first target video is the smallest as the second target video; and to determine the video among the N videos whose acquisition time is after the acquisition time of the first target video and whose time interval with the acquisition time of the first target video is the smallest as the third target video.
在一些实施例中,装置还包括:播放模块(图中未示出)。播放模块,用于:在接收针对紧急状态视频的播放指令后,播放紧急状态视频;在播放紧急状态视频的过程中,显示紧急状态视频的播放进度条,播放进度条包括目标标记,目标标记用于指示车辆进入紧急状态时,图像采集装置采集的视频帧在紧急状态视频中的位置;在接收到针对目标标记的触发信号后,播放车辆进入紧急状态时,图像采集装置采集的视频帧。In some embodiments, the device further includes: a playback module (not shown in the figure). The playback module is used to: play the emergency state video after receiving a playback instruction for the emergency state video; display a playback progress bar of the emergency state video during the playback of the emergency state video, the playback progress bar includes a target mark, and the target mark is used to indicate the position of the video frame captured by the image acquisition device when the vehicle enters the emergency state in the emergency state video; after receiving a trigger signal for the target mark, play the video frame captured by the image acquisition device when the vehicle enters the emergency state.
在一些实施例中,视频处理模块640,用于:将第二目标视频、第一目标视频以及第三目标视频按照采集时间的先后顺序首尾拼接,得到紧急状态视频。In some embodiments, the video processing module 640 is used to: splice the second target video, the first target video and the third target video in the order of acquisition time to obtain the emergency state video.
在一些实施例中,装置还包括:命名模块(图中未示出)。命名模块,用于:基于车辆进入紧急状态的时间信息,对将紧急状态视频的名称进行设置。In some embodiments, the device further includes: a naming module (not shown in the figure). The naming module is used to: set the name of the emergency state video based on the time information when the vehicle enters the emergency state.
在一些实施例中,命名模块,用于:通过定位模块获取车辆进入紧急状态时所处的位置信息;基于车辆进入紧急状态的时间信息,以及车辆进入紧急状态时所处的位置信息,对紧急状态视频的名称进行设置。In some embodiments, the naming module is used to: obtain the location information of the vehicle when it enters the emergency state through the positioning module; set the name of the emergency state video based on the time information when the vehicle enters the emergency state and the location information when the vehicle enters the emergency state.
在一些实施例中,装置还包括:封面设置模块(图中未示出)。封面设置模块,用于:从紧急状态视频中获取目标视频帧,目标视频帧用于记录车辆进入紧急状态时的环境信息;将目标视频帧设置为紧急状态视频的封面。In some embodiments, the device further includes: a cover setting module (not shown in the figure). The cover setting module is used to: obtain a target video frame from the emergency state video, the target video frame is used to record the environmental information when the vehicle enters the emergency state; and set the target video frame as the cover of the emergency state video.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
请参阅图7,其示出了本申请实施例还提供一种车辆700,该车辆700包括:一个或多个处理器710、存储器720以及一个或多个应用程序。其中,一个或多个应用程序被存储在存储器中并被配置为由一个或多个处理器执行,一个或多个应用程序配置用于执行上述实施例中所描述的方法。Please refer to FIG. 7 , which shows that an embodiment of the present application further provides a vehicle 700, which includes: one or more processors 710, a memory 720, and one or more applications. The one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method described in the above embodiment.
处理器710可以包括一个或者多个处理核。处理器710利用各种接口和线路连接整个电池管理系统内的各种部分,通过运行或执行存储在存储器720内的指令、程序、代码集或指令集,以及调用存储在存储器720内的数据,执行电池管理系统的各种功能和处理数据。可选地,处理器710可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(ProgrammableLogic Array,PLA)中的至少一种硬件形式来实现。处理器710可集成中央处理器710(Central Processing Unit,CPU)、图像处理器710(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器710中,单独通过一块通信芯片进行实现。The processor 710 may include one or more processing cores. The processor 710 uses various interfaces and lines to connect various parts within the entire battery management system, and executes various functions and processes data of the battery management system by running or executing instructions, programs, code sets or instruction sets stored in the memory 720, and calling data stored in the memory 720. Optionally, the processor 710 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 710 can integrate one or more combinations of a central processing unit 710 (CPU), a graphics processing unit 710 (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 710, but may be implemented separately through a communication chip.
存储器720可以包括随机存储器720(Random Access Memory,RAM),也可以包括只读存储器720(Read-Only Memory,ROM)。存储器720可用于存储指令、程序、代码、代码集或指令集。存储器720可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(例如,触控功能、声音播放功能、图像播放功能等)、用于实现上述各种方法实施例的指令等。存储数据区还可以存储电子设备图在使用中所创建的数据(例如,电话本、音视频数据、聊天记录数据)等。The memory 720 may include a random access memory 720 (Random Access Memory, RAM), and may also include a read-only memory 720 (Read-Only Memory, ROM). The memory 720 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 720 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the various method embodiments described above, etc. The data storage area may also store data created by the electronic device during use (e.g., a phone book, audio and video data, chat record data), etc.
请参阅图8,其示出了本申请实施例还提供一种计算机可读存储介质800,该计算机可读存储介质800中存储有计算机程序指令810,计算机程序指令810可被处理器调用以执行上述实施例中所描述的方法。Please refer to FIG. 8 , which shows that an embodiment of the present application further provides a computer-readable storage medium 800 , in which computer program instructions 810 are stored. The computer program instructions 810 can be called by a processor to execute the method described in the above embodiment.
计算机可读存储介质800可以是诸如闪存、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、电动程控只读存储器(Electrical Programmable Read Only Memory,EPROM)、硬盘或者只读存储器(Read-Only Memory,ROM)。可选地,计算机可读存储介质包括非易失性计算机可读存储介质(Non-transitory Computer-readable Storage Medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的计算机程序指令810的存储空间。这些计算机程序指令810可以从一个或者多个计算机程序产品中读出或者可以写入到这一个或者多个计算机程序产品中。The computer-readable storage medium 800 may be, for example, a flash memory, an electrically erasable programmable read-only memory (EEPROM), an electrically programmable read-only memory (EPROM), a hard disk, or a read-only memory (ROM). Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has storage space for computer program instructions 810 for executing any method step of the above method. These computer program instructions 810 can be read from one or more computer program products or can be written into one or more computer program products.
以上,仅是本申请的较佳实施例而已,并非对本申请作任何形式上的限制,虽然本申请已以较佳实施例揭示如上,然而并非用以限定本申请,任何本领域技术人员,在不脱离本申请技术方案范围内,当可利用上述揭示的技术内容做出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本申请技术方案内容,依据本申请的技术实质对以上实施例所作的任何简介修改、等同变化与修饰,均仍属于本申请技术方案的范围内。The above are only preferred embodiments of the present application and are not intended to limit the present application in any form. Although the present application has been disclosed as a preferred embodiment as above, it is not intended to limit the present application. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present application. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211395823.XA CN115720253B (en) | 2022-11-08 | 2022-11-08 | Video processing method, device, vehicle and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211395823.XA CN115720253B (en) | 2022-11-08 | 2022-11-08 | Video processing method, device, vehicle and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115720253A CN115720253A (en) | 2023-02-28 |
CN115720253B true CN115720253B (en) | 2024-05-03 |
Family
ID=85255065
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211395823.XA Active CN115720253B (en) | 2022-11-08 | 2022-11-08 | Video processing method, device, vehicle and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115720253B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116028435B (en) * | 2023-03-30 | 2023-07-21 | 深圳市深航华创汽车科技有限公司 | Data processing method, device and equipment of automobile data recorder and storage medium |
CN116798144A (en) * | 2023-04-18 | 2023-09-22 | 润芯微科技(江苏)有限公司 | Collision video storage method, system, device and computer readable storage medium |
CN116740837A (en) * | 2023-06-25 | 2023-09-12 | 广东省安全生产技术中心有限公司 | Black box for whole process tracing of limited space operation |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012003607A (en) * | 2010-06-18 | 2012-01-05 | Yazaki Corp | Drive recorder for vehicle and recorded information management method |
CN102722574A (en) * | 2012-06-05 | 2012-10-10 | 深圳市中兴移动通信有限公司 | Device and method for naming photo/video file on basis of shooting position and time |
CN106027934A (en) * | 2016-07-13 | 2016-10-12 | 深圳市爱培科技术股份有限公司 | Vehicle driving video storing method and system based on rearview mirror |
CN107564130A (en) * | 2016-07-02 | 2018-01-09 | 上海卓易科技股份有限公司 | Driving recording method and drive recorder, mobile terminal |
CN110381357A (en) * | 2019-08-15 | 2019-10-25 | 杭州鸿晶自动化科技有限公司 | A kind of processing method of driving recording video |
CN110570542A (en) * | 2019-08-08 | 2019-12-13 | 北京汽车股份有限公司 | Video recording method, device, vehicle and machine readable storage medium |
CN114640823A (en) * | 2022-02-22 | 2022-06-17 | 东风汽车集团股份有限公司 | Emergency video recording method based on cockpit domain controller |
CN114783180A (en) * | 2022-04-07 | 2022-07-22 | 合众新能源汽车有限公司 | Vehicle collision accident recording method and system and vehicle |
-
2022
- 2022-11-08 CN CN202211395823.XA patent/CN115720253B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012003607A (en) * | 2010-06-18 | 2012-01-05 | Yazaki Corp | Drive recorder for vehicle and recorded information management method |
CN102722574A (en) * | 2012-06-05 | 2012-10-10 | 深圳市中兴移动通信有限公司 | Device and method for naming photo/video file on basis of shooting position and time |
CN107564130A (en) * | 2016-07-02 | 2018-01-09 | 上海卓易科技股份有限公司 | Driving recording method and drive recorder, mobile terminal |
CN106027934A (en) * | 2016-07-13 | 2016-10-12 | 深圳市爱培科技术股份有限公司 | Vehicle driving video storing method and system based on rearview mirror |
CN110570542A (en) * | 2019-08-08 | 2019-12-13 | 北京汽车股份有限公司 | Video recording method, device, vehicle and machine readable storage medium |
CN110381357A (en) * | 2019-08-15 | 2019-10-25 | 杭州鸿晶自动化科技有限公司 | A kind of processing method of driving recording video |
CN114640823A (en) * | 2022-02-22 | 2022-06-17 | 东风汽车集团股份有限公司 | Emergency video recording method based on cockpit domain controller |
CN114783180A (en) * | 2022-04-07 | 2022-07-22 | 合众新能源汽车有限公司 | Vehicle collision accident recording method and system and vehicle |
Also Published As
Publication number | Publication date |
---|---|
CN115720253A (en) | 2023-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115720253B (en) | Video processing method, device, vehicle and storage medium | |
CN111131422A (en) | Push message prompting method, vehicle-mounted terminal and computer storage medium | |
CN109683827A (en) | A kind of date storage method, device, automobile data recorder and storage medium | |
CN114103944B (en) | Method, device and equipment for adjusting time interval between workshops | |
CN115848377A (en) | Lane changing control method, system, equipment and medium under different traffic environments | |
CN115649111A (en) | Vehicle external monitoring method and device, electronic equipment and storage medium | |
CN111324202A (en) | Interaction method, device, equipment and storage medium | |
WO2024124906A1 (en) | Vehicle-following operation risk state determination method and system, and device | |
EP4365733A1 (en) | Management system, method and apparatus, and device and storage medium | |
CN106394407A (en) | Vehicle-mounted intelligent rearview mirror system and control method thereof | |
WO2023241508A1 (en) | Active service method for disembarking scenario, and terminal device | |
CN115712404A (en) | Image display method, device, electronic equipment and storage medium | |
CN116010003A (en) | A vehicle-mounted SOA-based interface display control method, device, terminal and medium | |
CN111324815B (en) | Automobile information processing method and device and storage medium | |
CN108055401B (en) | Bullet frame processing method, device, storage medium and electronic device | |
CN109976812B (en) | Vehicle starting method and system, vehicle and device with storage function | |
CN115690944B (en) | Vehicle information acquisition method and device, vehicle and storage medium | |
EP4528433A1 (en) | Human-computer interaction method and apparatus | |
CN119226096B (en) | Dual system memory monitoring method, vehicle-mounted system, vehicle, equipment and storage medium | |
CN109543639B (en) | Information display method, system, server and storage medium | |
CN118804864A (en) | Prompt method, device and vehicle | |
CN119248134A (en) | Vehicle information display method, device, intelligent device and storage medium | |
CN118733247A (en) | Video analysis method, device, electronic device and readable storage medium | |
CN117061863A (en) | Frame rate control method, device and equipment | |
CN114299630A (en) | Method and system for processing data of automobile data recorder and vehicle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |