[go: up one dir, main page]

CN105959566A - Image pickup mode switching method and device, and automobile data recorder - Google Patents

Image pickup mode switching method and device, and automobile data recorder Download PDF

Info

Publication number
CN105959566A
CN105959566A CN201610453933.5A CN201610453933A CN105959566A CN 105959566 A CN105959566 A CN 105959566A CN 201610453933 A CN201610453933 A CN 201610453933A CN 105959566 A CN105959566 A CN 105959566A
Authority
CN
China
Prior art keywords
brightness
brightness values
grids
value
preset threshold
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.)
Pending
Application number
CN201610453933.5A
Other languages
Chinese (zh)
Inventor
魏党伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610453933.5A priority Critical patent/CN105959566A/en
Publication of CN105959566A publication Critical patent/CN105959566A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/741Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

本发明公开了一种摄像模式切换的方法、装置及行车记录仪,其包括将从所述视频信号中按照采样频率采样得到的每帧采样图像等分成M行N列的网格阵,并获取各个预选的网格的亮度值;再根据所述亮度值最高的前Q个网格的亮度值生成第一亮度值,以及根据所述亮度值最低的前Q个网格的亮度值生成第二亮度值;计算出所述第一亮度值与所述第二亮度值的亮度比值,并将所述亮度比值与预设门限值比较;若在连续X帧采样图像中有Y帧的亮度比值均大于所述预设门限值,则切换到HDR模式。该发明从按照采集频率采集连续帧数的采样图像中获取亮度比值并将其与预设门限值进行比较进而实现对切换HDR模式智能控制,方便用户的使用。

The invention discloses a method and device for switching camera modes and a driving recorder, which includes dividing each frame of sampled images obtained by sampling the video signal according to the sampling frequency into a grid array of M rows and N columns, and acquiring The brightness value of each pre-selected grid; then generate the first brightness value according to the brightness values of the first Q grids with the highest brightness value, and generate the second brightness value according to the brightness values of the first Q grids with the lowest brightness value Brightness value; calculate the brightness ratio of the first brightness value and the second brightness value, and compare the brightness ratio with a preset threshold value; if there is a brightness ratio of Y frames in the continuous X frame sampling image are greater than the preset threshold value, then switch to the HDR mode. The invention obtains the brightness ratio value from the sampled images of continuous frames collected according to the collection frequency and compares it with the preset threshold value to realize the intelligent control of switching the HDR mode, which is convenient for users to use.

Description

一种摄像模式切换的方法、装置及行车记录仪A camera mode switching method, device and driving recorder

技术领域technical field

本发明涉及电通信技术领域,更具体地,涉及一种摄像模式切换的方法、装置及行车记录仪。The present invention relates to the technical field of telecommunication, and more specifically, to a method and device for switching camera modes, and a driving recorder.

背景技术Background technique

随着数码光学的软硬件发展,数码摄像技术不断被更新,新技术新概念不断被提出以及被实现。以人们日常在使用行车记录仪拍摄为例,人们为了解决LDR(Low-Dynamic Range,简称LDR,低动态范围图像)模式拍摄的照片出现亮处过亮或者暗处过暗的情况,开始采用HDR(High-Dynamic Range,高动态范围)模式拍摄,因为LDR模式下的亮处过亮或者暗处过暗大都是由当前场景中光线的明暗相差太大而丢失了亮处或暗处的细节引起的。而HDR是根据不同的曝光时间的LDR图像以及每个曝光时间相对应最佳细节的LDR图像来合成最终的HDR图像,这样得到的HDR图像能够更好得反映真实环境中的视觉效果,解决LDR模式下的亮处过亮或者暗处过暗大的问题。目前市场上不断的出现带有HDR模式的行车记录仪也说明了这一趋势。With the development of software and hardware of digital optics, digital camera technology is constantly being updated, and new technologies and concepts are constantly being proposed and realized. Taking people’s daily use of driving recorders as an example, in order to solve the problem that the photos taken in LDR (Low-Dynamic Range, LDR, low dynamic range image) mode appear to be too bright in bright places or too dark in dark places, people began to use HDR (High-Dynamic Range, high dynamic range) mode shooting, because the bright part is too bright or the dark part is too dark in the LDR mode is mostly caused by the large difference between light and dark in the current scene and the loss of details in the bright or dark place of. HDR is to synthesize the final HDR image according to the LDR images of different exposure times and the LDR images corresponding to the best details of each exposure time, so that the obtained HDR images can better reflect the visual effects in the real environment and solve the problem of LDR. In the mode, the bright part is too bright or the dark part is too dark. The continuous emergence of driving recorders with HDR mode on the market also illustrates this trend.

同时,在人们的生活还有许多其他的类似情况,譬如说手机拍照、虚拟现实技术中,但是人们发现这些带有HDR模式的摄像设备往往需要用户去手动设置摄像模式,而大部分的普通用户并不具备专业的摄影知识与技能,这些普通用户并不清楚哪些场景应该用HDR模式才能获得良好的拍摄效果,再加上高端摄像机的模式更多,因此手动切换HDR模式不够智能,不方便普通用户使用。At the same time, there are many other similar situations in people's lives, such as mobile phone photography and virtual reality technology, but people find that these camera devices with HDR mode often require users to manually set the camera mode, and most ordinary users Without professional photography knowledge and skills, these ordinary users don’t know which scenes should use HDR mode to get good shooting effects. In addition, there are more modes in high-end cameras, so manual switching of HDR mode is not smart enough and inconvenient for ordinary people. user use.

发明内容Contents of the invention

鉴于上述问题,本发明提出了一种摄像模式切换的方法、装置及行车记录仪。In view of the above problems, the present invention proposes a camera mode switching method, device and driving recorder.

为实现该目的,本发明采用如下技术方案:To achieve this goal, the present invention adopts following technical scheme:

方案一:Option One:

提供了一种摄像模式切换的方法,包括:A method for switching camera modes is provided, including:

根据拍摄频率拍摄生成视频信号,从所述视频信号中按照采样频率采样得到采样图像;Shooting and generating a video signal according to the shooting frequency, sampling the video signal according to the sampling frequency to obtain a sampled image;

将每帧采样图像等分成M行N列的网格阵,并获取各个预选的网格的亮度值,其中,M、N均为大于1的正整数;Dividing each frame of the sampled image into a grid array of M rows and N columns, and obtaining the brightness value of each pre-selected grid, where M and N are both positive integers greater than 1;

获取亮度值最高的前Q个网格以及亮度值最低的前Q个网格,并根据所述亮度值最高的前Q个网格的亮度值生成第一亮度值,以及根据所述亮度值最低的前Q个网格的亮度值生成第二亮度值,其中,Q为大于1的正整数;Obtain the first Q grids with the highest brightness values and the first Q grids with the lowest brightness values, and generate a first brightness value according to the brightness values of the first Q grids with the highest brightness values, and generate the first brightness value according to the brightness values of the first Q grids with the lowest brightness values. The brightness values of the first Q grids generate a second brightness value, where Q is a positive integer greater than 1;

计算出所述第一亮度值与所述第二亮度值的亮度比值,并将所述亮度比值与预设门限值比较,判断所述亮度比值是否大于所述预设门限值;calculating a brightness ratio between the first brightness value and the second brightness value, and comparing the brightness ratio with a preset threshold value, and judging whether the brightness ratio is greater than the preset threshold value;

若在连续X帧采样图像中有Y帧的亮度比值均大于所述预设门限值,则切换到HDR模式,其中,X、Y均为大于1的正整数,且X大于或等于Y。If the brightness ratios of Y frames in consecutive X frames of sampled images are greater than the preset threshold value, then switch to the HDR mode, where X and Y are both positive integers greater than 1, and X is greater than or equal to Y.

本发明中,所述切换到HDR模式之后,还包括步骤:In the present invention, after the switching to the HDR mode, further steps are included:

若在连续X帧采样图像中有Z帧的亮度比值均小于所述预设门限值,则结束HDR模式,其中,Z为正整数且X大于或等于Z。If the luminance ratios of Z frames in consecutive X frames of sampled images are all smaller than the preset threshold value, the HDR mode is terminated, wherein Z is a positive integer and X is greater than or equal to Z.

本发明中,所述根据拍摄频率拍摄生成视频信号之前,还包括步骤:In the present invention, before the video signal is generated according to the shooting frequency, it also includes the steps:

获取摄像设备的速度信息;Obtain the speed information of the camera equipment;

基于所述的速度信息的大小确定所述拍摄频率的大小。The magnitude of the shooting frequency is determined based on the magnitude of the speed information.

本发明中,所述根据拍摄频率拍摄生成视频信号之前,还包括步骤:In the present invention, before the video signal is generated according to the shooting frequency, it also includes the steps:

获取摄像设备的速度信息;Obtain the speed information of the camera equipment;

基于所述的速度信息的大小确定所述采样频率的大小。The magnitude of the sampling frequency is determined based on the magnitude of the velocity information.

本发明中,所述预选的网格为:位于所述网格阵上部的K行网格,其中K为正整数且M大于K。In the present invention, the pre-selected grid is: K rows of grids located on the upper part of the grid array, wherein K is a positive integer and M is greater than K.

本发明中,所述亮度值为环境光强度值,所述获取各个预选的网格的亮度值为获取各个预选的网格的环境光强度值。In the present invention, the brightness value is an ambient light intensity value, and the acquired brightness value of each preselected grid is an ambient light intensity value of each preselected grid.

本发明中,所述获取预选的各个网格的环境光强度值包括以下步骤:In the present invention, said obtaining the ambient light intensity value of each pre-selected grid includes the following steps:

将所述各个预选的网格分别转为灰度图;converting each of the preselected grids into grayscale images;

根据所述灰度图获取预选的各个预选的网格的环境光强度值。The ambient light intensity values of the preselected grids are acquired according to the grayscale image.

本发明中,所述亮度值为YUV色彩空间的Y值,所述获取各个预选的网格的亮度值为获取各个预选的网格的Y值。In the present invention, the brightness value is the Y value of the YUV color space, and the brightness value of each pre-selected grid is obtained by obtaining the Y value of each pre-selected grid.

本发明中,所述第一亮度值为所述亮度值最高的前Q个网格的亮度值之和,所述根据亮度值最高的前Q个网格的亮度值生成第一亮度值包括:In the present invention, the first brightness value is the sum of brightness values of the first Q grids with the highest brightness values, and generating the first brightness value according to the brightness values of the first Q grids with the highest brightness values includes:

计算所述亮度值最高的前Q个网格的亮度值之和。Calculate the sum of brightness values of the first Q grids with the highest brightness values.

本发明中,所述第一亮度值为所述亮度值最高的前Q个网格的亮度值的平均值,所述根据亮度值最高的前Q个网格的亮度值生成第一亮度值包括:In the present invention, the first brightness value is the average value of the brightness values of the first Q grids with the highest brightness values, and generating the first brightness value according to the brightness values of the first Q grids with the highest brightness values includes :

计算所述亮度值最高的前Q个网格的亮度值之和;calculating the sum of the brightness values of the first Q grids with the highest brightness values;

根据所述亮度值之和计算出所述亮度值最高的前Q个网格的亮度值的平均值。The average value of the brightness values of the first Q grids with the highest brightness values is calculated according to the sum of the brightness values.

本发明中,所述第二亮度值为所述亮度值最低的前Q个网格的亮度值之和,所述根据亮度值最低的前Q个网格的亮度值生成第二亮度值包括:In the present invention, the second brightness value is the sum of brightness values of the first Q grids with the lowest brightness value, and generating the second brightness value according to the brightness values of the first Q grids with the lowest brightness value includes:

计算所述亮度值最低的前Q个网格的亮度值之和。Calculate the sum of brightness values of the first Q grids with the lowest brightness values.

本发明中,所述第二亮度值为所述亮度值最低的前Q个网格的亮度值的平均值,所述根据亮度值最低的前Q个网格的亮度值生成第二亮度值包括:In the present invention, the second brightness value is the average value of the brightness values of the first Q grids with the lowest brightness values, and generating the second brightness value according to the brightness values of the first Q grids with the lowest brightness values includes :

计算所述亮度值最低的前Q个网格的亮度值之和;calculating the sum of the brightness values of the first Q grids with the lowest brightness values;

根据所述亮度值之和计算出所述亮度值最低的前Q个网格的亮度值的平均值。Calculate the average value of the brightness values of the first Q grids with the lowest brightness values according to the sum of the brightness values.

方案二:Option II:

提供了一种摄像模式切换的装置,包括:A camera mode switching device is provided, including:

采样模块,用于根据拍摄频率拍摄生成视频信号,从所述视频信号中按照采样频率采样得到采样图像;A sampling module, configured to capture and generate a video signal according to the shooting frequency, and obtain a sampled image from the video signal according to the sampling frequency;

网格模块,用于将每帧采样图像等分成M行N列的网格阵,并获取各个预选的网格的亮度值,其中,M、N均为大于1的正整数;The grid module is used to equally divide each frame of sampling image into a grid array of M rows and N columns, and obtain the brightness value of each pre-selected grid, wherein M and N are both positive integers greater than 1;

筛选生成模块,用于获取亮度值最高的前Q个网格以及亮度值最低的前Q个网格,并根据所述亮度值最高的前Q个网格的亮度值生成第一亮度值,以及根据所述亮度值最低的前Q个网格的亮度值生成第二亮度值,其中,Q为大于1的正整数;A screening generation module, configured to obtain the first Q grids with the highest brightness values and the first Q grids with the lowest brightness values, and generate a first brightness value according to the brightness values of the first Q grids with the highest brightness values, and generating a second brightness value according to the brightness values of the first Q grids with the lowest brightness values, where Q is a positive integer greater than 1;

比值模块,用于计算出所述第一亮度值与所述第二亮度值的亮度比值,并将所述亮度比值与预设门限值比较,判断所述亮度比值是否大于所述预设门限值;A ratio module, configured to calculate a brightness ratio between the first brightness value and the second brightness value, compare the brightness ratio with a preset threshold value, and determine whether the brightness ratio is greater than the preset threshold limit value;

第一判断模块,用于若在连续X帧采样图像中有Y帧的亮度比值均大于所述预设门限值,则切换到HDR模式,其中,X、Y均为大于1的正整数,且X大于或等于Y。The first judging module is used to switch to the HDR mode if the brightness ratio of the Y frame in the continuous X frame sampling image is greater than the preset threshold value, wherein X and Y are both positive integers greater than 1, And X is greater than or equal to Y.

本发明中,所述装置还包括:In the present invention, the device also includes:

第二判断模块,用于在切换到HDR模式之后,若在连续X帧采样图像中有Z帧的亮度比值均小于所述预设门限值,则结束HDR模式,其中,Z为正整数且X大于或等于Z。The second judging module is used to end the HDR mode after switching to the HDR mode, if the brightness ratios of the Z frames in the continuous X frame sampled images are all less than the preset threshold value, where Z is a positive integer and X is greater than or equal to Z.

本发明中,所述装置包括:In the present invention, the device includes:

第一速度模块,用于在根据拍摄频率拍摄生成视频信号之前获取摄像设备的速度信息;The first speed module is used to obtain the speed information of the camera device before shooting and generating video signals according to the shooting frequency;

第一设定模块,用于基于所述的速度信息的大小确定所述拍摄频率的大小。The first setting module is used to determine the magnitude of the shooting frequency based on the magnitude of the speed information.

本发明中,所述装置包括:In the present invention, the device includes:

第二速度模块,用于在根据拍摄频率拍摄生成视频信号之前获取摄像设备的速度信息;The second speed module is used to obtain the speed information of the camera device before shooting and generating the video signal according to the shooting frequency;

第二设定模块,用于基于所述的速度信息的大小确定所述采样频率的大小。The second setting module is used to determine the magnitude of the sampling frequency based on the magnitude of the speed information.

本发明中,所述预选的网格为:位于所述网格阵上部的K行网格,其中K为正整数且M大于K。In the present invention, the pre-selected grid is: K rows of grids located on the upper part of the grid array, wherein K is a positive integer and M is greater than K.

本发明中,所述亮度值为环境光强度值,所述获取各个预选的网格的亮度值为获取预选的各个网格的环境光强度值。In the present invention, the brightness value is an ambient light intensity value, and the acquired brightness value of each preselected grid is the ambient light intensity value of each preselected grid.

本发明中,所述网格模块包括:In the present invention, the grid module includes:

转换单元,用于将所述各个预选的网格分别转为灰度图;A conversion unit, configured to convert each pre-selected grid into a grayscale image;

光强单元,用于根据所述灰度图获取各个预选的网格的环境光强度值。The light intensity unit is configured to acquire the ambient light intensity value of each preselected grid according to the grayscale image.

本发明中,所述亮度值为YUV色彩空间的Y值,所述获取各个预选的网格的亮度值为获取各个预选的网格的Y值。In the present invention, the brightness value is the Y value of the YUV color space, and the brightness value of each pre-selected grid is obtained by obtaining the Y value of each pre-selected grid.

本发明中,所述第一亮度值为所述亮度值最高的前Q个网格的亮度值之和,所述筛选生成模块包括:In the present invention, the first brightness value is the sum of the brightness values of the first Q grids with the highest brightness value, and the screening generation module includes:

第一相加单元,用于计算所述亮度值最高的前Q个网格的亮度值之和。The first adding unit is configured to calculate the sum of brightness values of the first Q grids with the highest brightness values.

本发明中,所述第一亮度值为所述亮度值最高的前Q个网格的亮度值的平均值,所述筛选生成模块包括:In the present invention, the first brightness value is the average value of the brightness values of the first Q grids with the highest brightness values, and the screening generation module includes:

第二相加单元,用于计算所述亮度值最高的前Q个网格的亮度值之和;The second adding unit is used to calculate the sum of the brightness values of the first Q grids with the highest brightness values;

第一均值单元,用于根据所述亮度值之和计算出所述亮度值最高的前Q个网格的亮度值的平均值。The first average unit is configured to calculate the average value of the brightness values of the first Q cells with the highest brightness values according to the sum of the brightness values.

本发明中,所述第二亮度值为所述亮度值最低的前Q个网格的亮度值之和,所述筛选生成模块包括:In the present invention, the second brightness value is the sum of the brightness values of the first Q grids with the lowest brightness value, and the screening generation module includes:

第三相加单元,用于计算所述亮度值最低的前Q个网格的亮度值之和。The third adding unit is configured to calculate the sum of the brightness values of the first Q cells with the lowest brightness values.

本发明中,所述第二亮度值为所述亮度值最低的前Q个网格的亮度值的平均值,所述筛选生成模块包括:In the present invention, the second brightness value is the average value of the brightness values of the first Q grids with the lowest brightness value, and the screening generation module includes:

第四相加单元,用于计算所述亮度值最低的前Q个网格的亮度值之和;A fourth adding unit, configured to calculate the sum of the brightness values of the first Q grids with the lowest brightness values;

第二均值单元,用于根据所述亮度值之和计算出所述亮度值最低的前Q个网格的亮度值的平均值。The second mean unit is configured to calculate the average value of the brightness values of the first Q cells with the lowest brightness values according to the sum of the brightness values.

方案三:third solution:

提供了一种行车记录仪,包括:A driving recorder is provided, comprising:

一个或多个处理器;one or more processors;

存储器;memory;

摄像头;camera;

一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于:one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more program programs are configured to:

根据拍摄频率拍摄生成视频信号,从所述视频信号中按照采样频率采样得到采样图像;Shooting and generating a video signal according to the shooting frequency, sampling the video signal according to the sampling frequency to obtain a sampled image;

将每帧采样图像等分成M行N列的网格阵,并获取各个预选的网格的亮度值,其中,M、N均为大于1的正整数;Dividing each frame of the sampled image into a grid array of M rows and N columns, and obtaining the brightness value of each pre-selected grid, where M and N are both positive integers greater than 1;

获取亮度值最高的前Q个网格以及亮度值最低的前Q个网格,并根据所述亮度值最高的前Q个网格的亮度值生成第一亮度值,以及根据所述亮度值最低的前Q个网格的亮度值生成第二亮度值,其中,Q为大于1的正整数;Obtain the first Q grids with the highest brightness values and the first Q grids with the lowest brightness values, and generate a first brightness value according to the brightness values of the first Q grids with the highest brightness values, and generate the first brightness value according to the brightness values of the first Q grids with the lowest brightness values. The brightness values of the first Q grids generate a second brightness value, where Q is a positive integer greater than 1;

计算出所述第一亮度值与所述第二亮度值的亮度比值,并将所述亮度比值与预设门限值比较,判断所述亮度比值是否大于所述预设门限值;calculating a brightness ratio between the first brightness value and the second brightness value, and comparing the brightness ratio with a preset threshold value, and judging whether the brightness ratio is greater than the preset threshold value;

若在连续X帧采样图像中有Y帧的亮度比值均大于所述预设门限值,则切换到HDR模式,其中,X、Y均为大于1的正整数,且X大于或等于Y。If the brightness ratios of Y frames in consecutive X frames of sampled images are greater than the preset threshold value, then switch to the HDR mode, where X and Y are both positive integers greater than 1, and X is greater than or equal to Y.

本发明中,所述切换到HDR模式之后,还包括步骤:In the present invention, after the switching to the HDR mode, further steps are included:

若在连续X帧采样图像中有Z帧的亮度比值均小于所述预设门限值,则结束HDR模式,其中,Z为正整数且X大于或等于Z。If the luminance ratios of Z frames in consecutive X frames of sampled images are all smaller than the preset threshold value, the HDR mode is terminated, wherein Z is a positive integer and X is greater than or equal to Z.

本发明中,所述根据拍摄频率拍摄生成视频信号之前,还包括步骤:In the present invention, before the video signal is generated according to the shooting frequency, it also includes the steps:

获取摄像设备的速度信息;Obtain the speed information of the camera equipment;

基于所述的速度信息的大小确定所述拍摄频率的大小。The magnitude of the shooting frequency is determined based on the magnitude of the speed information.

本发明中,所述根据拍摄频率拍摄生成视频信号之前,还包括步骤:In the present invention, before the video signal is generated according to the shooting frequency, it also includes the steps:

获取摄像设备的速度信息;Obtain the speed information of the camera equipment;

基于所述的速度信息的大小确定所述采样频率的大小。The magnitude of the sampling frequency is determined based on the magnitude of the speed information.

本发明中,所述预选的网格为:位于所述网格阵上部的K行网格,其中K为正整数且M大于K。In the present invention, the pre-selected grid is: K rows of grids located on the upper part of the grid array, wherein K is a positive integer and M is greater than K.

本发明中,所述亮度值为环境光强度值,所述获取各个预选的网格的亮度值为获取各个预选的网格的环境光强度值。In the present invention, the brightness value is an ambient light intensity value, and the acquired brightness value of each preselected grid is an ambient light intensity value of each preselected grid.

本发明中,所述获取预选的各个网格的环境光强度值包括以下步骤:In the present invention, said obtaining the ambient light intensity value of each pre-selected grid includes the following steps:

将所述各个预选的网格分别转为灰度图;converting each of the preselected grids into grayscale images;

根据所述灰度图获取预选的各个预选的网格的环境光强度值。The ambient light intensity values of the preselected grids are acquired according to the grayscale image.

本发明中,所述亮度值为YUV色彩空间的Y值,所述获取各个预选的网格的亮度值为获取各个预选的网格的Y值。In the present invention, the brightness value is the Y value of the YUV color space, and the brightness value of each pre-selected grid is obtained by obtaining the Y value of each pre-selected grid.

本发明中,所述第一亮度值为所述亮度值最高的前Q个网格的亮度值之和,所述根据亮度值最高的前Q个网格的亮度值生成第一亮度值包括:In the present invention, the first brightness value is the sum of brightness values of the first Q grids with the highest brightness values, and generating the first brightness value according to the brightness values of the first Q grids with the highest brightness values includes:

计算所述亮度值最高的前Q个网格的亮度值之和。Calculate the sum of brightness values of the first Q grids with the highest brightness values.

本发明中,所述第一亮度值为所述亮度值最高的前Q个网格的亮度值的平均值,所述根据亮度值最高的前Q个网格的亮度值生成第一亮度值包括:In the present invention, the first brightness value is the average value of the brightness values of the first Q grids with the highest brightness values, and generating the first brightness value according to the brightness values of the first Q grids with the highest brightness values includes :

计算所述亮度值最高的前Q个网格的亮度值之和;calculating the sum of the brightness values of the first Q grids with the highest brightness values;

根据所述亮度值之和计算出所述亮度值最高的前Q个网格的亮度值的平均值。The average value of the brightness values of the first Q grids with the highest brightness values is calculated according to the sum of the brightness values.

本发明中,所述第二亮度值为所述亮度值最低的前Q个网格的亮度值之和,所述根据亮度值最低的前Q个网格的亮度值生成第二亮度值包括:In the present invention, the second brightness value is the sum of brightness values of the first Q grids with the lowest brightness value, and generating the second brightness value according to the brightness values of the first Q grids with the lowest brightness value includes:

计算所述亮度值最低的前Q个网格的亮度值之和。Calculate the sum of brightness values of the first Q grids with the lowest brightness values.

本发明中,所述第二亮度值为所述亮度值最低的前Q个网格的亮度值的平均值,所述根据亮度值最低的前Q个网格的亮度值生成第二亮度值包括:In the present invention, the second brightness value is the average value of the brightness values of the first Q grids with the lowest brightness values, and generating the second brightness value according to the brightness values of the first Q grids with the lowest brightness values includes :

计算所述亮度值最低的前Q个网格的亮度值之和;calculating the sum of the brightness values of the first Q grids with the lowest brightness values;

根据所述亮度值之和计算出所述亮度值最低的前Q个网格的亮度值的平均值。Calculate the average value of the brightness values of the first Q grids with the lowest brightness values according to the sum of the brightness values.

与现有技术相比,该发明一种摄像模式切换的方法、装置及行车记录仪具有如下有益效果:Compared with the prior art, the invention has the following beneficial effects of a camera mode switching method, device and driving recorder:

该摄像模式切换的方法、装置及行车记录仪通过按照采集频率采集连续帧数的采样图像中获取第一亮度值与第二亮度值的并将其与预设门限值进行比较进而实现对切换HDR模式的智能控制,避免了普通用户并不清楚哪些场景应该用HDR模式才能获得良好的拍摄效果的问题,同时还在一定程度上简化了高端摄像机多模式的选择,方便了用户的使用。The method and device for switching camera modes and the driving recorder acquire the first brightness value and the second brightness value from the sampled images of continuous frames according to the collection frequency and compare them with the preset threshold value to realize the switching The intelligent control of the HDR mode avoids the problem that ordinary users do not know which scenes should use the HDR mode to obtain a good shooting effect. At the same time, it also simplifies the multi-mode selection of high-end cameras to a certain extent, which is convenient for users.

该摄像模式切换的方法、装置及行车记录仪通过先对采样图像进行网格化的处理方式并以网格化后的网格作为处理对象获取其亮度值的方式,减小了对采样图像进行计算的数据量,降低了硬件电路的功耗,符合低功耗的市场趋势,更加节能和环保。同时也在一定程度上降低了需要进行实时且长时间的摄像设备的热隐患。The method and device for switching the camera mode and the driving recorder reduce the processing time of the sampled image by first gridding the sampled image and using the gridded grid as the processing object to obtain its brightness value. The amount of calculated data reduces the power consumption of hardware circuits, conforms to the market trend of low power consumption, and is more energy-saving and environmentally friendly. At the same time, it also reduces the thermal potential of real-time and long-term camera equipment to a certain extent.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1示出了本发明一个实施例中摄像模式切换的方法的流程示意图;FIG. 1 shows a schematic flow diagram of a method for switching camera modes in one embodiment of the present invention;

图2示出了本发明一个实施例中摄像模式切换的方法中根据拍摄频率拍摄生成视频信号的流程示意图;Fig. 2 shows a schematic flow chart of generating a video signal according to the shooting frequency in the method for switching the camera mode in one embodiment of the present invention;

图3示出了本发明一个实施例中摄像模式切换的方法的预选网格示例示意图;Fig. 3 shows a schematic diagram of a preselected grid example of a method for switching camera modes in an embodiment of the present invention;

图4示出了本发明一个实施例中摄像模式切换的装置的模块示意图。Fig. 4 shows a block diagram of a camera mode switching device in an embodiment of the present invention.

具体实施方式detailed description

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention.

在本发明的说明书和权利要求书及上述附图中的描述的一些流程中,包含了按照特定顺序出现的多个操作,但是应该清楚了解,这些操作可以不按照其在本文中出现的顺序来执行或并行执行,操作的序号如101、102等,仅仅是用于区分开各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作可以按顺序执行或并行执行。需要说明的是,本文中的“第一”、“第二”等描述,是用于区分不同的消息、设备、模块等,不代表先后顺序,也不限定“第一”和“第二”是不同的类型。In some processes described in the specification and claims of the present invention and the above-mentioned drawings, a plurality of operations appearing in a specific order are contained, but it should be clearly understood that these operations may not be performed in the order in which they appear herein Execution or parallel execution, the serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. Additionally, these processes can include more or fewer operations, and these operations can be performed sequentially or in parallel. It should be noted that the descriptions of "first" and "second" in this article are used to distinguish different messages, devices, modules, etc. are different types.

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.

请参阅图1,在一些实施例中,提供了一种摄像模式切换的方法,其应用于摄像设备拍摄场面中,其中,摄像设备包括摄像机、手机、行车记录仪以及其他带有拍照或者摄像功能的设备。为了描述方便,本实施例以该方法应用于行车记录仪的录像模式来举例说明。Please refer to Fig. 1. In some embodiments, a method for switching camera modes is provided, which is applied to shooting scenes of camera equipment, wherein the camera equipment includes cameras, mobile phones, driving recorders, and other cameras with camera or camera functions. device of. For the convenience of description, this embodiment is described by taking the method applied to the video recording mode of the driving recorder as an example.

在一些实施例中,该摄像模式切换的方法包括如下步骤:In some embodiments, the method for switching camera modes includes the following steps:

步骤100:根据拍摄频率拍摄生成视频信号,从所述视频信号中按照采样频率采样得到采样图像。Step 100: Shoot and generate a video signal according to the shooting frequency, and obtain a sampling image from the video signal according to the sampling frequency.

请参阅图2,在一些实施例中,譬如在嵌入式系统中,所述根据拍摄频率拍摄生成视频信号包括如下步骤202~208:Please refer to FIG. 2. In some embodiments, such as in an embedded system, the generation of a video signal according to shooting frequency includes the following steps 202-208:

步骤202:打开视频设备文件,进行视频采集的参数初始化。Step 202: Open the video device file, and initialize the parameters of the video capture.

具体的,在嵌入式系统中,所有外设都被看成一种特殊的文件,成为设备文件,可以象访问普通文件一样对其进行读写。比如说,对于采用V4L2驱动的摄像头设备文件/dev/v4l/video0可以直接调用open函数来打开这个设备文件。Specifically, in an embedded system, all peripherals are regarded as a special file, which becomes a device file, which can be read and written like an ordinary file. For example, for the camera device file /dev/v4l/video0 driven by V4L2, you can directly call the open function to open the device file.

在一些实施例中,上述视频采集的参数初始化包括设置视频的采集窗口参数、设置视频点阵格式和点阵大小以及设置视频拍摄频率。In some embodiments, the parameter initialization of the video capture includes setting the capture window parameters of the video, setting the video dot matrix format and dot matrix size, and setting the video shooting frequency.

在一些实施例中,拍摄频率可以根据摄像设备的速度信息进行设置,具体的,所述根据拍摄频率拍摄生成视频信号之前,包括:In some embodiments, the shooting frequency can be set according to the speed information of the camera device. Specifically, before generating a video signal according to the shooting frequency, the steps include:

获取摄像设备的速度信息;Obtain the speed information of the camera equipment;

基于上述的速度信息的大小确定拍摄频率的大小。The magnitude of the shooting frequency is determined based on the magnitude of the speed information described above.

在一些实施例中,考虑到行车记录仪固定于车上,因此,上述摄像设备的速度也可以为车速。譬如说,当车速为10KM/H时,采样频率为30帧/S;当车速为30KM/H时,采样频率为60帧/S。In some embodiments, considering that the driving recorder is fixed on the vehicle, the speed of the above-mentioned camera equipment may also be the vehicle speed. For example, when the vehicle speed is 10KM/H, the sampling frequency is 30 frames/S; when the vehicle speed is 30KM/H, the sampling frequency is 60 frames/S.

步骤204:申请多个视频采集的帧缓冲区。Step 204: Apply for multiple frame buffers for video capture.

具体的,在嵌入式系统中,通过驱动程序在内存中申请几个帧缓冲区来存放视频数据。应用程序通过VIDIOC_REQBUFS申请若干个视频数据的帧缓冲区,申请帧缓冲区数量一般不低于3个,每个帧缓冲区存放一帧视频数据,这些帧缓冲区在内核空间。然后再通过VIDIOC_QUERYBUF查询到帧缓冲区在内核空间的长度和偏移量地址。最后通过MMAP()将申请到的内核空间帧缓冲区的地址映射到用户空间地址,这样就可以直接处理帧缓冲区的数据。其中,VIDIOC_REQBUFS是一标识符,用于内存的分配;VIDIOC_QUERYBUF也是一标识符,用于将把VIDIOC_REQBUFS中分配的数据缓存转换成物理地址;MMAP()是一种共享内存创建机制,其通过在磁盘上建立一个文件,每个进程存储器里面,单独开辟一个空间来进行映射。Specifically, in the embedded system, the driver applies for several frame buffers in the memory to store video data. The application program applies for several frame buffers of video data through VIDIOC_REQBUFS. The number of applied frame buffers is generally not less than 3. Each frame buffer stores a frame of video data, and these frame buffers are in the kernel space. Then query the length and offset address of the frame buffer in the kernel space through VIDIOC_QUERYBUF. Finally, the address of the applied kernel space frame buffer is mapped to the user space address through MMAP(), so that the data of the frame buffer can be directly processed. Among them, VIDIOC_REQBUFS is an identifier for memory allocation; VIDIOC_QUERYBUF is also an identifier for converting the data cache allocated in VIDIOC_REQBUFS into a physical address; MMAP() is a shared memory creation mechanism, which is passed on the disk Create a file on the above, and open up a space for mapping in each process memory.

在一些实施例中,上述申请多个视频采集的帧缓冲区为申请五个视频采集的帧缓冲区。In some embodiments, the above-mentioned frame buffer for applying for multiple video captures is a frame buffer for applying for five video captures.

步骤206:将申请到的帧缓冲区在视频采集输入队列排队,并启动视频采集。Step 206: queue the requested frame buffer in the video capture input queue, and start video capture.

具体的,在嵌入式系统中,驱动程序在处理视频的过程中首先定义两个队列:视频采集输入队列和视频采集输出队列,其中,视频采集输入队列是等待驱动存放视频数据的队列;视频采集输出队列是驱动程序已经放入了视频数据的队列。当应用程序将上述帧缓冲区在视频采集输入队列排队后,才启动视频采集。Specifically, in the embedded system, the driver first defines two queues in the process of video processing: the video capture input queue and the video capture output queue, wherein the video capture input queue is a queue waiting for the driver to store video data; The output queue is the queue into which the driver has put video data. The video capture is not started until the application program queues the above frame buffer in the video capture input queue.

步骤208:驱动开始视频数据的采集,应用程序从视频采集输出队列取出帧缓冲区,处理完后,将帧缓冲区重新放入视频采集输入队列,循环往复采集连续的视频数据。Step 208: The driver starts to collect video data, and the application program takes out the frame buffer from the video capture output queue, and puts the frame buffer back into the video capture input queue after processing, and collects continuous video data repeatedly.

具体的,启动视频采集后,驱动程序开始采集一帧数据,把采集的数据放入视频采集输入队列的第一个帧缓冲区,一帧数据采集完成,也就是第一个帧缓冲区存满一帧数据后,驱动程序将该帧缓冲区移至视频采集输出队列,等待应用程序从输出队列取出。驱动程序接下来采集下一帧数据,放入第二个帧缓冲区,同样帧缓冲区存满下一帧数据后,被放入视频采集输出队列。Specifically, after video capture is started, the driver starts to capture a frame of data, and puts the collected data into the first frame buffer of the video capture input queue. After one frame of data capture is completed, that is, the first frame buffer is full. After a frame of data, the driver moves the frame buffer to the video capture output queue, waiting for the application to take it out from the output queue. The driver next collects the next frame of data and puts it into the second frame buffer. After the same frame buffer is full of the next frame of data, it is put into the video capture output queue.

应用程序从视频采集输出队列中取出含有视频数据的帧缓冲区,处理帧缓冲区中的视频数据,如编码或压缩。最后,应用程序将处理完数据的帧缓冲区重新放入视频采集输入队列,这样可以循环采集。The application program takes out the frame buffer containing video data from the video capture output queue, and processes the video data in the frame buffer, such as encoding or compressing. Finally, the application program puts the frame buffer that has processed the data back into the video capture input queue, so that the capture can be performed cyclically.

在一些实施例中,上述帧缓冲区中的视频数据格式为YUV,其中,YUV被欧洲电视系统所采用的一种颜色编码方法。其中,Y表示明亮度,也就是灰阶值;U和V表示的则是色度。In some embodiments, the format of the video data in the frame buffer is YUV, wherein YUV is a color coding method adopted by the European television system. Among them, Y represents the brightness, that is, the grayscale value; U and V represent the chroma.

值得一提的是,在实际中经常提出的YUV又称为YCbCr,该YCbCr是在世界数字组织视频标准研制过程中作为ITU-R BT1601建议的一部分,其实质上是YUV经过缩放和偏移的翻版。其中,Y与YUV中的Y含义一致,Cb、Cr同样也都指色彩。It is worth mentioning that YUV, which is often proposed in practice, is also called YCbCr. This YCbCr is part of the ITU-R BT1601 proposal during the development of the video standard of the World Digital Organization. It is essentially YUV scaled and offset. Reprint. Among them, Y has the same meaning as Y in YUV, and Cb and Cr also refer to color.

上述处理帧缓冲区中的视频数据通过底层编码库实现H.264编码,譬如说NVIDIA公司的NVCUVENC库,该NVCUVENC库可以实现H.264的图形处理器编码,其接收原始YUV数据然后编码产生NAL单元。其中,H.264是由ITU-T视频编码专家组和ISO/IEC动态图像专家组联合组成的联合视频组提出的高度压缩数字视频编解码器标准。这个标准通常被称之为H.264/AVC或者AVC/H.264或者H.264/MPEG-4AVC或MPEG-4/H.264AVC;NAL单元是一个一定语法元素的可变长字节字符串,包括包含用来表示数据类型的一个字节的头信息以及若干整数字节的负荷数据,H.264的编码视频序列包括一系列的NAL单元。The video data in the above-mentioned processing frame buffer realizes H.264 encoding through the underlying encoding library, such as NVIDIA's NVCUVENC library, which can implement H.264 graphics processor encoding, which receives the original YUV data and then encodes it to generate NAL unit. Among them, H.264 is a highly compressed digital video codec standard proposed by the Joint Video Group jointly composed of the ITU-T Video Coding Expert Group and the ISO/IEC Dynamic Image Expert Group. This standard is usually called H.264/AVC or AVC/H.264 or H.264/MPEG-4AVC or MPEG-4/H.264AVC; NAL unit is a variable-length byte string of certain syntax elements , including one byte of header information used to indicate the data type and several integer bytes of payload data, the H.264 coded video sequence includes a series of NAL units.

在一些实施例中,上述从视频信号中按照采样频率采样得到采样图像则是从上述视频采集输出队列中含有视频数据的帧缓冲区中按照采样频率采样得到采样图像。In some embodiments, the sampled image obtained by sampling the video signal according to the sampling frequency is obtained by sampling the sampled image according to the sampling frequency from the frame buffer containing video data in the video capture output queue.

同样的,该采样频率可以根据摄像设备的速度信息进行设置,具体的,根据拍摄频率拍摄生成视频信号之前,包括:Similarly, the sampling frequency can be set according to the speed information of the camera device. Specifically, before the video signal is generated according to the shooting frequency, it includes:

获取摄像设备的速度信息;Obtain the speed information of the camera equipment;

基于上述的速度信息的大小确定采样频率的大小。The magnitude of the sampling frequency is determined based on the magnitude of the speed information described above.

在一些实施例中,考虑到行车记录仪固定于车上,因此,上述摄像设备的速度也可以为车速。譬如说,当车速为10KM/H时,采样频率为1帧/S;当车速为30KM/H时,采样频率为2帧/S。In some embodiments, considering that the driving recorder is fixed on the vehicle, the speed of the above-mentioned camera equipment may also be the vehicle speed. For example, when the vehicle speed is 10KM/H, the sampling frequency is 1 frame/S; when the vehicle speed is 30KM/H, the sampling frequency is 2 frames/S.

步骤102:将每帧采样图像等分成M行N列的网格阵,并获取各个预选的网格的亮度值,其中,M、N均为大于1的正整数。Step 102: Divide each frame of the sampled image into a grid array of M rows and N columns, and acquire brightness values of each pre-selected grid, where M and N are both positive integers greater than 1.

具体的,将每帧采样图像在二维方向上M×N网格,每个网格用一个亮度值表示该区域的亮度,这样每帧采样图像就离散化为M×N个亮度值表示。Specifically, each frame of sampled image is divided into M×N grids in the two-dimensional direction, and each grid uses a brightness value to represent the brightness of the area, so that each frame of sampled image is discretized into M×N brightness values.

在一些实施例中,在嵌入式系统中,通过OPENCV库剪切每帧采样图像以获取等分成M行N列的网格阵。其中,OPENCV是一个伯克利软件发行版许可的跨平台计算机视觉库,可以运行在Linux、Windows和Mac OS操作系统上。它由一系列C函数和少量C++类构成,同时提供了Python、Ruby、MATLAB等语言的接口,实现了图像处理和计算机视觉方面的很多通用算法。In some embodiments, in the embedded system, the OPENCV library is used to crop each frame of the sampled image to obtain a grid array equally divided into M rows and N columns. Among them, OPENCV is a cross-platform computer vision library licensed by Berkeley Software Distribution, which can run on Linux, Windows and Mac OS operating systems. It consists of a series of C functions and a small number of C++ classes. It also provides interfaces for languages such as Python, Ruby, and MATLAB, and implements many general-purpose algorithms in image processing and computer vision.

上述预选的网格是指去掉M行N列的网格阵中噪声后的网格,譬如说行车记录仪在拍摄时,其采样图像的底部最下面一般都是为汽车的前车盖,而这些部分往往会干扰到后续数据的处理,因此需要裁剪掉。The above-mentioned pre-selected grid refers to the grid after removing the noise in the grid array of M rows and N columns. These parts often interfere with subsequent data processing, so they need to be cropped.

在一些实施例中,预选的网格为位于网格阵上部的K行网格,其中K为正整数且M大于K。In some embodiments, the pre-selected grid is K rows of grids located on the upper part of the grid array, where K is a positive integer and M is greater than K.

请参阅图3,图3示出了当M=5,N=5,K=4的预选网格的示例示意图,在图3中,该采样图像在二维方向上划分成了5×5个网格,其中该采样图像的底部的1行被裁剪掉。所述获取各个预选的网格的亮度值就是获取K×N个网格的亮度值。Please refer to Fig. 3, Fig. 3 shows when M=5, N=5, the example schematic diagram of the pre-selected grid of K=4, in Fig. 3, this sampling image is divided into 5 * 5 in the two-dimensional direction Grid where the bottom 1 row of the sampled image is cropped. The acquisition of the luminance values of each pre-selected grid is to acquire the luminance values of K×N grids.

在一些实施例中,亮度值为环境光强度值,上述获取各个预选的网格的亮度值为获取各个预选的网格的环境光强度值。In some embodiments, the brightness value is an ambient light intensity value, and the brightness value of each pre-selected grid is obtained by obtaining the ambient light intensity value of each pre-selected grid.

在嵌入式系统中,考虑到帧缓冲区中的视频数据格式为YUV,因此,亮度值为YUV色彩空间的Y值,上述获取各个预选的网格的亮度值为获取各个预选的网格的Y值。In the embedded system, considering that the video data format in the frame buffer is YUV, therefore, the brightness value is the Y value of the YUV color space, and the above-mentioned acquisition of the brightness value of each pre-selected grid is the Y value of each pre-selected grid value.

在一些实施例中,为了方便图像数据的处理,通过视频处理芯片将多种信号模式的视频信号转换为统一的RGB数据模式。那么,上述获取预选的各个网格的环境光强度值包括以下步骤:In some embodiments, in order to facilitate the processing of image data, video signals in multiple signal modes are converted into a unified RGB data mode by a video processing chip. Then, the acquisition of the ambient light intensity value of each pre-selected grid includes the following steps:

将所述各个预选的网格分别转为灰度图;converting each of the preselected grids into grayscale images;

根据上述灰度图获取预选的各个预选的网格的环境光强度值。The ambient light intensity values of the preselected grids are acquired according to the above gray scale image.

其中,上述RGB数据模式是工业界的一种颜色标准,是通过对红、绿、蓝三个颜色通道的变化以及它们相互之间的叠加来得到各式各样的颜色的,RGB即是代表红、绿、蓝三个通道的颜色,这个标准几乎包括了人类视力所能感知的所有颜色,是目前运用最广的颜色系统之一。Among them, the above-mentioned RGB data mode is a color standard in the industry, and various colors are obtained by changing the three color channels of red, green, and blue and superimposing them with each other. RGB represents The color of the three channels of red, green, and blue, this standard includes almost all the colors that human vision can perceive, and is one of the most widely used color systems at present.

在一些实施例中,上述将各个预选的网格分别转为灰度图可以通过Gray=R×0.299+G×0.587+B×0.114这一著名心理学公式实现。In some embodiments, the aforementioned conversion of each preselected grid into a grayscale image can be realized by the famous psychological formula Gray=R×0.299+G×0.587+B×0.114.

步骤104:获取亮度值最高的前Q个网格以及亮度值最低的前Q个网格,并根据所述亮度值最高的前Q个网格的亮度值生成第一亮度值,以及根据所述亮度值最低的前Q个网格的亮度值生成第二亮度值,其中,Q为大于1的正整数。Step 104: Obtain the first Q grids with the highest brightness values and the first Q grids with the lowest brightness values, and generate a first brightness value according to the brightness values of the first Q grids with the highest brightness values, and according to the The brightness values of the first Q grids with the lowest brightness values generate a second brightness value, where Q is a positive integer greater than 1.

优选地,上述Q个为两个。Preferably, the aforementioned Q number is two.

在一些实施例中,获取亮度值最高的前Q个网格以及亮度值最低的前Q个网格包括以下步骤:In some embodiments, obtaining the first Q grids with the highest brightness values and the first Q grids with the lowest brightness values includes the following steps:

通过排序算法将K×N个网格的亮度值按从高到低排序;Sort the brightness values of the K×N grids from high to low through a sorting algorithm;

从上述排序中获取亮度值最高的前Q个网格以及亮度值最低的前Q个网格。From the above sorting, the first Q grids with the highest brightness values and the first Q grids with the lowest brightness values are obtained.

具体的,排序算法包括直接插入排序、希尔排序、简单选择排序、堆排序、冒泡排序、快速排序、归并排序以及基数排序中的一种或多种。其中,Specifically, the sorting algorithm includes one or more of direct insertion sorting, Hill sorting, simple selection sorting, heap sorting, bubble sorting, quick sorting, merge sorting, and radix sorting. in,

直接插入排序通过将一个待排序的记录按其关键字的大小插到前面已经排序的序列中的适当位置,直到全部记录插入完毕为止;Direct insertion sorting inserts a record to be sorted into an appropriate position in the previously sorted sequence according to the size of its key until all records are inserted;

希尔排序是先将整个待排序的记录序列分割成为若干子序列分别进行直接插入排序,待整个序列中的记录基本有序时,再对全体记录进行依次直接插入排序;Hill sorting is to first divide the entire record sequence to be sorted into several subsequences for direct insertion sorting, and when the records in the entire sequence are basically in order, then perform direct insertion sorting on all records in turn;

简单选择排序是在要排序的一组数中,选出最小(或者最大)的一个数与第一个位置的数交换;然后在剩下的数当中再找最小(或者最大)的与第二个位置的数交换,依次类推,直到第n-1个元素(倒数第二个数)和第n个元素(最后一个数)比较为止;Simple selection sorting is to select the smallest (or largest) number and exchange it with the number in the first position in a set of numbers to be sorted; then find the smallest (or largest) and second number among the remaining numbers The number of positions is exchanged, and so on, until the n-1th element (the penultimate number) is compared with the nth element (the last number);

堆排序是指利用堆积树这种数据结构所设计的一种排序算法,它是选择排序的一种,可以利用数组的特点快速定位指定索引的元素;堆分为大根堆和小根堆,是完全二叉树,其中大根堆的要求是每个节点的值都不大于其父节点的值;Heap sorting refers to a sorting algorithm designed using the data structure of the stacked tree. It is a kind of selection sorting, which can quickly locate the elements of the specified index by using the characteristics of the array; the heap is divided into a large root heap and a small root heap. Complete binary tree, where the requirement of the large root heap is that the value of each node is not greater than the value of its parent node;

冒泡排序是在要排序的一组数中,对当前还未排好序的范围内的全部数,自上而下对相邻的两个数依次进行比较和调整,让较大的数往下沉,较小的往上冒;Bubble sorting is to compare and adjust two adjacent numbers from top to bottom for all the numbers in the range that are not yet sorted in the set of numbers to be sorted, so that the larger number goes to the next row. Sink, smaller ones rise;

快速排序是通过一趟排序将要排序的数据分割成独立的两部分,其中一部分的所有数据都比另外一部分的所有数据都要小,然后再按此方法对这两部分数据分别进行快速排序,整个排序过程可以递归进行,以此达到整个数据变成有序序列;Quick sorting is to divide the data to be sorted into two independent parts by one-pass sorting, and all the data in one part is smaller than all the data in the other part, and then quickly sort the two parts of the data in this way, the whole The sorting process can be performed recursively so that the entire data becomes an ordered sequence;

归并排序是将两个(或两个以上)有序表合并成一个新的有序表,即把待排序序列分为若干个子序列,每个子序列是有序的,然后再把有序子序列合并为整体有序序列;Merge sort is to merge two (or more than two) ordered lists into a new ordered list, that is, divide the sequence to be sorted into several subsequences, each subsequence is ordered, and then divide the ordered subsequences Merge into an overall ordered sequence;

基数排序是将阵列分到有限数量的桶子里。每个桶子再个别排序。Radix sorting divides the array into a finite number of buckets. Each bucket is sorted individually.

在一些实施例中,通过排序算法将K×N个网格的亮度值按从高到低排序为通过冒泡排序将K×N个网格的亮度值按从高到低排序。In some embodiments, sorting the brightness values of the K×N grids from high to low by a sorting algorithm is sorting the brightness values of the K×N grids from high to low by bubble sorting.

在一些实施例中,第一亮度值为亮度值最高的前Q个网格的亮度值之和,上述根据亮度值最高的前Q个网格的亮度值生成第一亮度值包括:In some embodiments, the first brightness value is the sum of the brightness values of the first Q grids with the highest brightness values, and generating the first brightness value according to the brightness values of the first Q grids with the highest brightness values includes:

计算亮度值最高的前Q个网格的亮度值之和。Calculate the sum of the brightness values of the first Q grids with the highest brightness values.

在一些实施例中,第一亮度值为亮度值最高的前Q个网格的亮度值的平均值,上述根据亮度值最高的前Q个网格的亮度值生成第一亮度值包括:In some embodiments, the first brightness value is an average value of the brightness values of the first Q grids with the highest brightness values, and generating the first brightness value based on the brightness values of the first Q grids with the highest brightness values includes:

计算亮度值最高的前Q个网格的亮度值之和;Calculate the sum of the brightness values of the first Q grids with the highest brightness values;

根据上述亮度值之和计算出亮度值最高的前Q个网格的亮度值的平均值。The average value of the brightness values of the first Q grids with the highest brightness values is calculated according to the sum of the brightness values above.

在一些实施例中,第二亮度值为亮度值最低的前Q个网格的亮度值之和,上述根据亮度值最低的前Q个网格的亮度值生成第二亮度值包括:In some embodiments, the second brightness value is the sum of the brightness values of the first Q grids with the lowest brightness values, and generating the second brightness value according to the brightness values of the first Q grids with the lowest brightness values includes:

计算亮度值最低的前Q个网格的亮度值之和。Calculate the sum of the brightness values of the first Q grids with the lowest brightness values.

在一些实施例中,第二亮度值为亮度值最低的前Q个网格的亮度值的平均值,上述根据亮度值最低的前Q个网格的亮度值生成第二亮度值包括:In some embodiments, the second brightness value is an average value of the brightness values of the first Q grids with the lowest brightness values, and the generating of the second brightness value based on the brightness values of the first Q grids with the lowest brightness values includes:

计算亮度值最低的前Q个网格的亮度值之和;Calculate the sum of the brightness values of the first Q grids with the lowest brightness values;

根据上述亮度值之和计算出亮度值最低的前Q个网格的亮度值的平均值。The average value of the brightness values of the first Q grids with the lowest brightness values is calculated according to the sum of the brightness values above.

步骤106:计算出所述第一亮度值与所述第二亮度值的亮度比值,并将所述亮度比值与预设门限值比较,判断所述亮度比值是否大于所述预设门限值。Step 106: Calculate the brightness ratio between the first brightness value and the second brightness value, compare the brightness ratio with a preset threshold value, and determine whether the brightness ratio is greater than the preset threshold value .

具体的,预设门限值又称临界值,是指一个效应能够产生的最低值或最高值。Specifically, the preset threshold value is also called critical value, which refers to the lowest value or the highest value that an effect can produce.

在一些实施例中,在判断亮度比值是否大于预设门限值之后包括如下步骤:In some embodiments, after judging whether the brightness ratio is greater than a preset threshold value, the following steps are included:

若亮度比值大于预设门限值,则切换HDR模式计数器增加一个单元;If the brightness ratio is greater than the preset threshold value, switch the HDR mode counter to increase by one unit;

若亮度比值小于等于预设门限值,则结束HDR模式计数器增加一个单元。If the brightness ratio is less than or equal to the preset threshold value, the end HDR mode counter is incremented by one unit.

步骤108:若在连续X帧采样图像中有Y帧的亮度比值均大于所述预设门限值,则切换到HDR模式,其中,X、Y均为大于1的正整数,且X大于或等于Y。Step 108: If the luminance ratios of Y frames in consecutive X frames of sampled images are greater than the preset threshold value, then switch to the HDR mode, where X and Y are both positive integers greater than 1, and X is greater than or is equal to Y.

具体的,连续X帧采样图像为按照采样频率从视频信号中采样得到的连续X帧采样图像。Specifically, the continuous X frames of sampled images are consecutive X frames of sampled images obtained by sampling from a video signal according to the sampling frequency.

在一些实施例中,若在连续X帧采样图像中有Y帧的亮度比值均大于预设门限值,则切换到HDR模式包括如下步骤:In some embodiments, if the brightness ratios of Y frames in consecutive X frames of sampled images are all greater than the preset threshold value, then switching to the HDR mode includes the following steps:

计算出连续X帧采样图像每帧采样图像的第一亮度值与第二亮度值的亮度比值,并将亮度比值与预设门限值比较,判断亮度比值是否大于预设门限值;Calculate the luminance ratio of the first luminance value and the second luminance value of each frame of sampled images of continuous X frames of sampled images, and compare the luminance ratio with a preset threshold value to determine whether the luminance ratio is greater than the preset threshold value;

若上述采样图像的亮度比值大于预设门限值,则切换HDR模式计数器增加一个单元;若在连续X帧采样图像中有Y帧的亮度比值均大于预设门限值,则切换到HDR模式。If the brightness ratio of the above sampled image is greater than the preset threshold value, then switch to the HDR mode counter and increase one unit; if the brightness ratio of Y frames in the continuous X frame sampled image is greater than the preset threshold value, then switch to HDR mode .

在一些实施例中,上述若在连续X帧采样图像中有Y帧的亮度比值均大于预设门限值,则切换到HDR模式之后包括如下步骤:In some embodiments, if the above-mentioned brightness ratios of Y frames in the continuous X frames of sampled images are all greater than the preset threshold value, switching to the HDR mode includes the following steps:

计算出连续X帧采样图像每帧采样图像的第一亮度值与第二亮度值的亮度比值,并将亮度比值与预设门限值比较,判断亮度比值是否大于预设门限值;Calculate the luminance ratio of the first luminance value and the second luminance value of each frame of sampled images of continuous X frames of sampled images, and compare the luminance ratio with a preset threshold value to determine whether the luminance ratio is greater than the preset threshold value;

若上述采样图像的亮度比值小于预设门限值,则结束HDR模式计数器增加一个单元;若在连续X帧采样图像中有Z帧的亮度比值均小于上述预设门限值,则结束HDR模式;其中,Z为正整数且X大于或等于Z。If the brightness ratio of the above-mentioned sampled image is less than the preset threshold value, the end of the HDR mode counter increases by one unit; if the brightness ratio of Z frames in the continuous X frame sampled image is less than the above-mentioned preset threshold value, the HDR mode is ended ; Among them, Z is a positive integer and X is greater than or equal to Z.

请参阅图4,基于同一个发明构思,在一个实施例中,还提供一种摄像模式切换的装置,包括:采样模块4001、网格模块4003、筛选生成模块4005、比值模块4007以及第一判断模块4009,其中,Please refer to Fig. 4, based on the same inventive concept, in an embodiment, a camera mode switching device is also provided, including: a sampling module 4001, a grid module 4003, a screening generation module 4005, a ratio module 4007 and a first judgment Module 4009, where,

采样模块4001,用于根据拍摄频率拍摄生成视频信号,从所述视频信号中按照采样频率采样得到采样图像;The sampling module 4001 is configured to capture and generate a video signal according to the shooting frequency, and obtain a sampled image from the video signal according to the sampling frequency;

网格模块4003,用于将每帧采样图像等分成M行N列的网格阵,并获取各个预选的网格的亮度值,其中,所述M、N均为大于1的正整数;The grid module 4003 is used to equally divide each frame of the sampled image into a grid array of M rows and N columns, and obtain the brightness value of each pre-selected grid, wherein the M and N are both positive integers greater than 1;

筛选生成模块4005,用于获取亮度值最高的前Q个网格以及亮度值最低的前Q个网格,并根据所述亮度值最高的前Q个网格的亮度值生成第一亮度值,以及根据所述亮度值最低的前Q个网格的亮度值生成第二亮度值,其中,Q为大于1的正整数;A screening generation module 4005, configured to obtain the first Q grids with the highest brightness values and the first Q grids with the lowest brightness values, and generate a first brightness value according to the brightness values of the first Q grids with the highest brightness values, and generating a second brightness value according to the brightness values of the first Q grids with the lowest brightness values, where Q is a positive integer greater than 1;

比值模块4007,用于计算出所述第一亮度值与所述第二亮度值的亮度比值,并将所述亮度比值与预设门限值比较,判断所述亮度比值是否大于所述预设门限值;Ratio module 4007, configured to calculate a brightness ratio between the first brightness value and the second brightness value, compare the brightness ratio with a preset threshold value, and determine whether the brightness ratio is greater than the preset Threshold value;

第一判断模块4009,用于若在连续X帧采样图像中有Y帧的亮度比值均大于上述预设门限值,则切换到HDR模式,其中,X、Y均为大于1的正整数,且X大于或等于Y。The first judging module 4009 is used to switch to the HDR mode if the brightness ratios of Y frames in the continuous X frames of sampled images are greater than the preset threshold value, wherein X and Y are both positive integers greater than 1, And X is greater than or equal to Y.

上述装置还包括:The above-mentioned device also includes:

第二判断模块,用于在切换到HDR模式之后,若在连续X帧采样图像中有Z帧的亮度比值均小于上述预设门限值,则结束HDR模式,其中,Z为正整数且X大于或等于Z。The second judging module is used to end the HDR mode after switching to the HDR mode, if the brightness ratios of the Z frames in the continuous X frame sampling images are all less than the above-mentioned preset threshold value, wherein Z is a positive integer and X Greater than or equal to Z.

上述装置还包括:The above-mentioned device also includes:

第一速度模块,用于在根据拍摄频率拍摄生成视频信号之前获取摄像设备的速度信息;The first speed module is used to obtain the speed information of the camera device before shooting and generating video signals according to the shooting frequency;

第一设定模块,用于基于上述的速度信息的大小确定拍摄频率的大小。The first setting module is configured to determine the magnitude of the shooting frequency based on the magnitude of the above speed information.

上述装置还包括:The above-mentioned device also includes:

第二速度模块,用于在根据拍摄频率拍摄生成视频信号之前获取摄像设备的速度信息;The second speed module is used to obtain the speed information of the camera device before shooting and generating the video signal according to the shooting frequency;

第二设定模块,用于基于上述的速度信息的大小确定采样频率的大小。The second setting module is configured to determine the magnitude of the sampling frequency based on the magnitude of the above speed information.

在一些实施例中,预选的网格为:位于网格阵上部的K行网格,其中K为正整数且M大于K。In some embodiments, the pre-selected grid is: K rows of grids located on the upper part of the grid array, where K is a positive integer and M is greater than K.

在一些实施例中,亮度值为环境光强度值,获取各个预选的网格的亮度值为获取预选的各个网格的环境光强度值。In some embodiments, the brightness value is an ambient light intensity value, and the brightness value of each preselected grid is acquired to acquire the ambient light intensity value of each preselected grid.

在一些实施例中,网格模块4003包括:In some embodiments, grid module 4003 includes:

转换单元,用于将各个预选的网格分别转为灰度图;A conversion unit, which is used to convert each pre-selected grid into a grayscale image;

光强单元,用于根据上述灰度图获取各个预选的网格的环境光强度值。The light intensity unit is configured to obtain the ambient light intensity value of each pre-selected grid according to the above grayscale image.

在一些实施例中,亮度值为YUV色彩空间的Y值,上述获取各个预选的网格的亮度值为获取各个预选的网格的Y值。In some embodiments, the brightness value is a Y value of a YUV color space, and the brightness value of each preselected grid is acquired as a Y value of each preselected grid.

在一些实施例中,第一亮度值为亮度值最高的前Q个网格的亮度值之和,上述筛选生成模块4005包括:In some embodiments, the first brightness value is the sum of the brightness values of the first Q grids with the highest brightness values, and the screening generation module 4005 includes:

第一相加单元,用于计算亮度值最高的前Q个网格的亮度值之和。The first adding unit is used to calculate the sum of the brightness values of the first Q grids with the highest brightness values.

在一些实施例中,第一亮度值为亮度值最高的前Q个网格的亮度值的平均值,上述筛选生成模块4005包括:In some embodiments, the first brightness value is the average value of the brightness values of the first Q grids with the highest brightness values, and the screening generation module 4005 includes:

第二相加单元,用于计算亮度值最高的前Q个网格的亮度值之和;The second adding unit is used to calculate the sum of the brightness values of the first Q grids with the highest brightness value;

第一均值单元,用于根据上述亮度值之和计算出亮度值最高的前Q个网格的亮度值的平均值。The first mean value unit is configured to calculate the average value of the brightness values of the first Q grids with the highest brightness values according to the sum of the brightness values.

在一些实施例中,第二亮度值为亮度值最低的前Q个网格的亮度值之和,上述筛选生成模块4005包括:In some embodiments, the second brightness value is the sum of the brightness values of the first Q grids with the lowest brightness values, and the screening generation module 4005 includes:

第三相加单元,用于计算亮度值最低的前Q个网格的亮度值之和。The third adding unit is used to calculate the sum of the brightness values of the first Q grids with the lowest brightness values.

在一些实施例中,第二亮度值为亮度值最低的前Q个网格的亮度值的平均值,上述筛选生成模块4005包括:In some embodiments, the second brightness value is the average value of the brightness values of the first Q grids with the lowest brightness values, and the screening generation module 4005 includes:

第四相加单元,用于计算亮度值最低的前Q个网格的亮度值之和;The fourth adding unit is used to calculate the sum of the brightness values of the first Q grids with the lowest brightness values;

第二均值单元,用于根据亮度值之和计算出亮度值最低的前Q个网格的亮度值的平均值。The second mean unit is configured to calculate the average value of the brightness values of the first Q grids with the lowest brightness values according to the sum of the brightness values.

基于同一个发明构思,还提供一种行车记录仪,包括一个或多个处理器、存储器、摄像头、一个或多个应用程序,其中,Based on the same inventive concept, a driving recorder is also provided, including one or more processors, memory, cameras, and one or more application programs, wherein,

存储器可用于存储软件程序以及模块,处理器通过运行存储在存储器的软件程序以及模块,从而执行行车记录仪的各种功能应用以及数据处理。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据行车记录仪的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件;The memory can be used to store software programs and modules, and the processor executes various functional applications and data processing of the driving recorder by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); The data created by the use of the recorder (such as audio data, phone book, etc.) and the like. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices;

显示器可用于显示由用户输入的信息或提供给用户的信息以及行车记录仪的各种菜单。显示器可包括显示面板,可选的,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。进一步的,触控面板可覆盖显示面板,当触控面板检测到在其上或附近的触摸操作后,传送给处理器以确定触摸事件的类型,随后处理器根据触摸事件的类型在显示面板上提供相应的视觉输出。The display may be used to display information input by or provided to the user and various menus of the drive recorder. The display may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Further, the touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it will be sent to the processor to determine the type of the touch event, and then the processor will display the touch event on the display panel according to the type of the touch event. Provide corresponding visual output.

上述一个或多个应用程序被存储在上述存储器中并被配置为由上述一个或多个处理器执行,上述一个或多个程序配置用于:The one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs are configured to:

根据拍摄频率拍摄生成视频信号,从所述视频信号中按照采样频率采样得到采样图像;Shooting and generating a video signal according to the shooting frequency, sampling the video signal according to the sampling frequency to obtain a sampled image;

将每帧采样图像等分成M行N列的网格阵,并获取各个预选的网格的亮度值,其中,M、N均为大于1的正整数;Dividing each frame of the sampled image into a grid array of M rows and N columns, and obtaining the brightness value of each pre-selected grid, where M and N are both positive integers greater than 1;

获取亮度值最高的前Q个网格以及亮度值最低的前Q个网格,并根据所述亮度值最高的前Q个网格的亮度值生成第一亮度值,以及根据所述亮度值最低的前Q个网格的亮度值生成第二亮度值,其中,Q为大于1的正整数;Obtain the first Q grids with the highest brightness values and the first Q grids with the lowest brightness values, and generate a first brightness value according to the brightness values of the first Q grids with the highest brightness values, and generate the first brightness value according to the brightness values of the first Q grids with the lowest brightness values. The brightness values of the first Q grids generate a second brightness value, where Q is a positive integer greater than 1;

计算出所述第一亮度值与所述第二亮度值的亮度比值,并将所述亮度比值与预设门限值比较,判断所述亮度比值是否大于所述预设门限值;calculating a brightness ratio between the first brightness value and the second brightness value, and comparing the brightness ratio with a preset threshold value, and judging whether the brightness ratio is greater than the preset threshold value;

若在连续X帧采样图像中有Y帧的亮度比值均大于所述预设门限值,则切换到HDR模式,其中,X、Y均为大于1的正整数,且X大于或等于Y。If the brightness ratios of Y frames in consecutive X frames of sampled images are greater than the preset threshold value, then switch to the HDR mode, where X and Y are both positive integers greater than 1, and X is greater than or equal to Y.

在一些实施例中,切换到HDR模式之后,还包括步骤:In some embodiments, after switching to the HDR mode, the steps further include:

若在连续X帧采样图像中有Z帧的亮度比值均小于预设门限值,则结束HDR模式,其中,Z为正整数且X大于或等于Z。If the luminance ratios of Z frames in consecutive X frames of sampled images are all smaller than the preset threshold value, the HDR mode is terminated, wherein Z is a positive integer and X is greater than or equal to Z.

在一些实施例中,根据拍摄频率拍摄生成视频信号之前,还包括步骤:In some embodiments, before the video signal is generated according to the shooting frequency, the step further includes:

获取摄像设备的速度信息;Obtain the speed information of the camera equipment;

基于上述的速度信息的大小确定拍摄频率的大小。The magnitude of the shooting frequency is determined based on the magnitude of the speed information described above.

在一些实施例中,根据拍摄频率拍摄生成视频信号之前,还包括步骤:In some embodiments, before the video signal is generated according to the shooting frequency, the step further includes:

获取摄像设备的速度信息;Obtain the speed information of the camera equipment;

基于所述的速度信息的大小确定所述采样频率的大小。The magnitude of the sampling frequency is determined based on the magnitude of the velocity information.

在一些实施例中,所述预选的网格为:位于所述网格阵上部的K行网格,其中K为正整数且M大于K。In some embodiments, the pre-selected grid is: K rows of grids located on the upper part of the grid array, where K is a positive integer and M is greater than K.

在一些实施例中,亮度值为环境光强度值,上述获取各个预选的网格的亮度值为获取各个预选的网格的环境光强度值。In some embodiments, the brightness value is an ambient light intensity value, and the brightness value of each pre-selected grid is obtained by obtaining the ambient light intensity value of each pre-selected grid.

在一些实施例中,上述获取预选的各个网格的环境光强度值包括以下步骤:In some embodiments, the acquisition of the ambient light intensity values of the pre-selected grids includes the following steps:

将各个预选的网格分别转为灰度图;Convert each pre-selected grid to a grayscale image;

根据上述灰度图获取预选的各个预选的网格的环境光强度值。The ambient light intensity values of the preselected grids are acquired according to the above gray scale image.

在一些实施例中,亮度值为YUV色彩空间的Y值,上述获取各个预选的网格的亮度值为获取各个预选的网格的Y值。In some embodiments, the brightness value is a Y value of a YUV color space, and the brightness value of each preselected grid is acquired as a Y value of each preselected grid.

在一些实施例中,第一亮度值为亮度值最高的前Q个网格的亮度值之和,上述根据亮度值最高的前Q个网格的亮度值生成第一亮度值包括:In some embodiments, the first brightness value is the sum of the brightness values of the first Q grids with the highest brightness values, and generating the first brightness value according to the brightness values of the first Q grids with the highest brightness values includes:

计算亮度值最高的前Q个网格的亮度值之和。Calculate the sum of the brightness values of the first Q grids with the highest brightness values.

在一些实施例中,第一亮度值为亮度值最高的前Q个网格的亮度值的平均值,上述根据亮度值最高的前Q个网格的亮度值生成第一亮度值包括:In some embodiments, the first brightness value is an average value of the brightness values of the first Q grids with the highest brightness values, and generating the first brightness value based on the brightness values of the first Q grids with the highest brightness values includes:

计算亮度值最高的前Q个网格的亮度值之和;Calculate the sum of the brightness values of the first Q grids with the highest brightness values;

根据上述亮度值之和计算出亮度值最高的前Q个网格的亮度值的平均值。The average value of the brightness values of the first Q grids with the highest brightness values is calculated according to the sum of the brightness values above.

在一些实施例中,第二亮度值为亮度值最低的前Q个网格的亮度值之和,上述根据亮度值最低的前Q个网格的亮度值生成第二亮度值包括:In some embodiments, the second brightness value is the sum of the brightness values of the first Q grids with the lowest brightness values, and generating the second brightness value according to the brightness values of the first Q grids with the lowest brightness values includes:

计算亮度值最低的前Q个网格的亮度值之和。Calculate the sum of the brightness values of the first Q grids with the lowest brightness values.

在一些实施例中,第二亮度值为亮度值最低的前Q个网格的亮度值的平均值,上述根据亮度值最低的前Q个网格的亮度值生成第二亮度值包括:In some embodiments, the second brightness value is an average value of the brightness values of the first Q grids with the lowest brightness values, and the generating of the second brightness value based on the brightness values of the first Q grids with the lowest brightness values includes:

计算亮度值最低的前Q个网格的亮度值之和;Calculate the sum of the brightness values of the first Q grids with the lowest brightness values;

根据上述亮度值之和计算出亮度值最低的前Q个网格的亮度值的平均值。The average value of the brightness values of the first Q grids with the lowest brightness values is calculated according to the sum of the brightness values above.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Read Only Memory (ROM, Read Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

与现有技术相比,该发明一种摄像模式切换的方法、装置及行车记录仪具有如下有益效果:Compared with the prior art, the invention has the following beneficial effects of a camera mode switching method, device and driving recorder:

该摄像模式切换的方法、装置及行车记录仪通过按照采集频率采集连续帧数的采样图像中获取第一亮度值与第二亮度值的并将其与预设门限值进行比较进而实现对切换HDR模式的智能控制,避免了普通用户并不清楚哪些场景应该用HDR模式才能获得良好的拍摄效果的问题,同时还在一定程度上简化了高端摄像机多模式的选择,方便了用户的使用。The method and device for switching camera modes and the driving recorder acquire the first brightness value and the second brightness value from the sampled images of continuous frames according to the collection frequency and compare them with the preset threshold value to realize the switching The intelligent control of HDR mode avoids the problem that ordinary users do not know which scenes should use HDR mode to obtain a good shooting effect, and also simplifies the selection of multi-modes of high-end cameras to a certain extent, which is convenient for users.

该摄像模式切换的方法、装置及行车记录仪通过先对采样图像进行网格化的处理方式并以网格化后的网格作为处理对象获取其亮度值的方式,减小了对采样图像进行计算的数据量,降低了硬件电路的功耗,符合低功耗的市场趋势,更加节能和环保。同时也在一定程度上降低了需要进行实时且长时间的摄像设备的热隐患。The method and device for switching the camera mode, and the driving recorder reduce the processing time of the sampled image by gridding the sampled image and using the gridded grid as the processing object to obtain its brightness value. The amount of calculated data reduces the power consumption of hardware circuits, conforms to the market trend of low power consumption, and is more energy-saving and environmentally friendly. At the same time, it also reduces the thermal potential of real-time and long-term camera equipment to a certain extent.

以上对本发明所提供的一种信息发送的方法、装置及设备进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A method, device, and equipment for sending information provided by the present invention have been introduced in detail above. For those of ordinary skill in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application scope. In summary, the contents of this specification should not be construed as limiting the present invention.

Claims (10)

1.一种摄像模式切换的方法,其特征在于,包括:1. A method for camera mode switching, comprising: 根据拍摄频率拍摄生成视频信号,从所述视频信号中按照采样频率采样得到采样图像;Shooting and generating a video signal according to the shooting frequency, sampling the video signal according to the sampling frequency to obtain a sampled image; 将每帧采样图像等分成M行N列的网格阵,并获取各个预选的网格的亮度值,其中,M、N均为大于1的正整数;Dividing each frame of the sampled image into a grid array of M rows and N columns, and obtaining the brightness value of each pre-selected grid, where M and N are both positive integers greater than 1; 获取亮度值最高的前Q个网格以及亮度值最低的前Q个网格,并根据所述亮度值最高的前Q个网格的亮度值生成第一亮度值,以及根据所述亮度值最低的前Q个网格的亮度值生成第二亮度值,其中,Q为大于1的正整数;Obtain the first Q grids with the highest brightness values and the first Q grids with the lowest brightness values, and generate a first brightness value according to the brightness values of the first Q grids with the highest brightness values, and generate the first brightness value according to the brightness values of the first Q grids with the lowest brightness values. The brightness values of the first Q grids generate a second brightness value, where Q is a positive integer greater than 1; 计算出所述第一亮度值与所述第二亮度值的亮度比值,并将所述亮度比值与预设门限值比较,判断所述亮度比值是否大于所述预设门限值;calculating a brightness ratio between the first brightness value and the second brightness value, and comparing the brightness ratio with a preset threshold value, and judging whether the brightness ratio is greater than the preset threshold value; 若在连续X帧采样图像中有Y帧的亮度比值均大于所述预设门限值,则切换到HDR模式,其中,X、Y均为大于1的正整数,且X大于或等于Y。If the brightness ratios of Y frames in consecutive X frames of sampled images are greater than the preset threshold value, then switch to the HDR mode, where X and Y are both positive integers greater than 1, and X is greater than or equal to Y. 2.如权利要求1所述的摄像模式切换的方法,其特征在于,所述切换到HDR模式之后,还包括步骤:2. The method for switching camera mode according to claim 1, characterized in that, after said switching to HDR mode, further comprising the steps of: 若在连续X帧采样图像中有Z帧的亮度比值均小于所述预设门限值,则结束HDR模式,其中,Z为正整数且X大于或等于Z。If the luminance ratios of Z frames in consecutive X frames of sampled images are all smaller than the preset threshold value, the HDR mode is terminated, wherein Z is a positive integer and X is greater than or equal to Z. 3.根据权利要求1所述的摄像模式切换的方法,其特征在于,所述根据拍摄频率拍摄生成视频信号之前,还包括步骤:3. The method for switching between camera modes according to claim 1, wherein, before the video signal is generated according to the shooting frequency, the method further comprises the steps of: 获取摄像设备的速度信息;Obtain the speed information of the camera equipment; 基于所述的速度信息的大小确定所述拍摄频率的大小。The magnitude of the shooting frequency is determined based on the magnitude of the speed information. 4.根据权利要求1所述的摄像模式切换的方法,其特征在于,所述根据拍摄频率拍摄生成视频信号之前,还包括步骤:4. The method for switching between camera modes according to claim 1, wherein, before the video signal is generated according to the shooting frequency, the method further comprises the steps of: 获取摄像设备的速度信息;Obtain the speed information of the camera equipment; 基于所述的速度信息的大小确定所述采样频率的大小。The magnitude of the sampling frequency is determined based on the magnitude of the velocity information. 5.一种摄像模式切换的装置,其特征在于,包括:5. A camera mode switching device, characterized in that it comprises: 采样模块,用于根据拍摄频率拍摄生成视频信号,从所述视频信号中按照采样频率采样得到采样图像;A sampling module, configured to capture and generate a video signal according to the shooting frequency, and obtain a sampled image from the video signal according to the sampling frequency; 网格模块,用于将每帧采样图像等分成M行N列的网格阵,并获取各个预选的网格的亮度值,其中,M、N均为大于1的正整数;The grid module is used to equally divide each frame of sampling image into a grid array of M rows and N columns, and obtain the brightness value of each pre-selected grid, wherein M and N are both positive integers greater than 1; 筛选生成模块,用于获取亮度值最高的前Q个网格以及亮度值最低的前Q个网格,并根据所述亮度值最高的前Q个网格的亮度值生成第一亮度值,以及根据所述亮度值最低的前Q个网格的亮度值生成第二亮度值,其中,Q为大于1的正整数;A screening generation module, configured to obtain the first Q grids with the highest brightness values and the first Q grids with the lowest brightness values, and generate a first brightness value according to the brightness values of the first Q grids with the highest brightness values, and generating a second brightness value according to the brightness values of the first Q grids with the lowest brightness values, where Q is a positive integer greater than 1; 比值模块,用于计算出所述第一亮度值与所述第二亮度值的亮度比值,并将所述亮度比值与预设门限值比较,判断所述亮度比值是否大于所述预设门限值;A ratio module, configured to calculate a brightness ratio between the first brightness value and the second brightness value, compare the brightness ratio with a preset threshold value, and determine whether the brightness ratio is greater than the preset threshold limit value; 第一判断模块,用于若在连续X帧采样图像中有Y帧的亮度比值均大于所述预设门限值,则切换到HDR模式,其中,X、Y均为大于1的正整数,且X大于或等于Y。The first judging module is used to switch to the HDR mode if the brightness ratio of the Y frame in the continuous X frame sampling image is greater than the preset threshold value, wherein X and Y are both positive integers greater than 1, And X is greater than or equal to Y. 6.如权利要求5所述的摄像模式切换的装置,其特征在于,所述装置还包括:6. The device for switching camera modes according to claim 5, wherein the device further comprises: 第二判断模块,用于在切换到HDR模式之后,若在连续X帧采样图像中有Z帧的亮度比值均小于所述预设门限值,则结束HDR模式,其中,Z为正整数且X大于或等于Z。The second judging module is used to end the HDR mode if, after switching to the HDR mode, the brightness ratios of Z frames in the continuous X frame sampling images are all less than the preset threshold value, where Z is a positive integer and X is greater than or equal to Z. 7.根据权利要求5所述的摄像模式切换的装置,其特征在于,所述装置包括:7. The camera mode switching device according to claim 5, characterized in that the device comprises: 第一速度模块,用于在根据拍摄频率拍摄生成视频信号之前获取摄像设备的速度信息;The first speed module is used to obtain the speed information of the camera device before shooting and generating video signals according to the shooting frequency; 第一设定模块,用于基于所述的速度信息的大小确定所述拍摄频率的大小。The first setting module is used to determine the magnitude of the shooting frequency based on the magnitude of the speed information. 8.根据权利要求5所述的摄像模式切换的装置,其特征在于,所述装置包括:8. The camera mode switching device according to claim 5, characterized in that the device comprises: 第二速度模块,用于在根据拍摄频率拍摄生成视频信号之前获取摄像设备的速度信息;The second speed module is used to obtain the speed information of the camera device before shooting and generating the video signal according to the shooting frequency; 第二设定模块,用于基于所述的速度信息的大小确定所述采样频率的大小。The second setting module is used to determine the magnitude of the sampling frequency based on the magnitude of the speed information. 9.一种行车记录仪,其特征在于,包括:9. A driving recorder, characterized in that it comprises: 一个或多个处理器;one or more processors; 存储器;memory; 摄像头;camera; 一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于:one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more program programs are configured to: 根据拍摄频率拍摄生成视频信号,从所述视频信号中按照采样频率采样得到采样图像;Shooting and generating a video signal according to the shooting frequency, sampling the video signal according to the sampling frequency to obtain a sampled image; 将每帧采样图像等分成M行N列的网格阵,并获取各个预选的网格的亮度值,其中,M、N均为大于1的正整数;Dividing each frame of the sampled image into a grid array of M rows and N columns, and obtaining the brightness value of each pre-selected grid, where M and N are both positive integers greater than 1; 获取亮度值最高的前Q个网格以及亮度值最低的前Q个网格,并根据所述亮度值最高的前Q个网格的亮度值生成第一亮度值,以及根据所述亮度值最低的前Q个网格的亮度值生成第二亮度值,其中,Q为大于1的正整数;Obtain the first Q grids with the highest brightness values and the first Q grids with the lowest brightness values, and generate a first brightness value according to the brightness values of the first Q grids with the highest brightness values, and generate the first brightness value according to the brightness values of the first Q grids with the lowest brightness values. The brightness values of the first Q grids generate a second brightness value, where Q is a positive integer greater than 1; 计算出所述第一亮度值与所述第二亮度值的亮度比值,并将所述亮度比值与预设门限值比较,判断所述亮度比值是否大于所述预设门限值;calculating a brightness ratio between the first brightness value and the second brightness value, and comparing the brightness ratio with a preset threshold value, and judging whether the brightness ratio is greater than the preset threshold value; 若在连续X帧采样图像中有Y帧的亮度比值均大于所述预设门限值,则切换到HDR模式,其中,X、Y均为大于1的正整数,且X大于或等于Y。If the brightness ratios of Y frames in consecutive X frames of sampled images are greater than the preset threshold value, then switch to the HDR mode, where X and Y are both positive integers greater than 1, and X is greater than or equal to Y. 10.如权利要求9所述的行车记录仪,其特征在于,所述切换到HDR模式之后,还包括步骤:10. The driving recorder according to claim 9, characterized in that, after switching to the HDR mode, further comprising the steps of: 若在连续X帧采样图像中有Z帧的亮度比值均小于所述预设门限值,则结束HDR模式,其中,Z为正整数且X大于或等于Z。If the luminance ratios of Z frames in consecutive X frames of sampled images are all smaller than the preset threshold value, the HDR mode is terminated, wherein Z is a positive integer and X is greater than or equal to Z.
CN201610453933.5A 2016-06-21 2016-06-21 Image pickup mode switching method and device, and automobile data recorder Pending CN105959566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610453933.5A CN105959566A (en) 2016-06-21 2016-06-21 Image pickup mode switching method and device, and automobile data recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610453933.5A CN105959566A (en) 2016-06-21 2016-06-21 Image pickup mode switching method and device, and automobile data recorder

Publications (1)

Publication Number Publication Date
CN105959566A true CN105959566A (en) 2016-09-21

Family

ID=56907206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610453933.5A Pending CN105959566A (en) 2016-06-21 2016-06-21 Image pickup mode switching method and device, and automobile data recorder

Country Status (1)

Country Link
CN (1) CN105959566A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391044A (en) * 2017-02-03 2018-08-10 中兴通讯股份有限公司 A kind of video camera and its mode switch control method, device
CN109194946A (en) * 2018-09-30 2019-01-11 Oppo广东移动通信有限公司 Data processing method and device, electronic equipment and storage medium
CN110868533A (en) * 2019-10-15 2020-03-06 宇龙计算机通信科技(深圳)有限公司 HDR mode determination method, device, storage medium and terminal
CN111031254A (en) * 2020-01-15 2020-04-17 浙江大华技术股份有限公司 Camera mode switching method and device, computer device and readable storage medium
CN111815804A (en) * 2020-06-30 2020-10-23 中国第一汽车股份有限公司 Control method, device, equipment and storage medium
CN116193250A (en) * 2021-11-26 2023-05-30 昆山研达电脑科技有限公司 Automatic switching method of camera mode of driving recorder

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030001962A1 (en) * 2001-06-29 2003-01-02 Tetsuo Sakurai Image pickup device and video signal processing method
CN103702034A (en) * 2014-01-09 2014-04-02 厦门美图之家科技有限公司 Photographic method and device for improving brightness distribution of picture
CN103971358A (en) * 2013-02-05 2014-08-06 深圳市深图医学影像设备有限公司 Image interest area display optimizing method and device system
CN104883504A (en) * 2015-06-05 2015-09-02 广东欧珀移动通信有限公司 Method and device for opening HDR (high-dynamic range) function on intelligent terminal
CN105376490A (en) * 2015-11-19 2016-03-02 浙江宇视科技有限公司 Mode switching method, mode switching apparatus and terminal device using mode switching method
CN105407295A (en) * 2015-10-30 2016-03-16 努比亚技术有限公司 Mobile terminal photographing device and method
CN105554376A (en) * 2015-12-03 2016-05-04 北京奇虎科技有限公司 Vehicle intelligent camera device and shooting frame rate adjusting method thereof
CN105657289A (en) * 2016-03-28 2016-06-08 广东欧珀移动通信有限公司 Control method and device and electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030001962A1 (en) * 2001-06-29 2003-01-02 Tetsuo Sakurai Image pickup device and video signal processing method
CN103971358A (en) * 2013-02-05 2014-08-06 深圳市深图医学影像设备有限公司 Image interest area display optimizing method and device system
CN103702034A (en) * 2014-01-09 2014-04-02 厦门美图之家科技有限公司 Photographic method and device for improving brightness distribution of picture
CN104883504A (en) * 2015-06-05 2015-09-02 广东欧珀移动通信有限公司 Method and device for opening HDR (high-dynamic range) function on intelligent terminal
CN105407295A (en) * 2015-10-30 2016-03-16 努比亚技术有限公司 Mobile terminal photographing device and method
CN105376490A (en) * 2015-11-19 2016-03-02 浙江宇视科技有限公司 Mode switching method, mode switching apparatus and terminal device using mode switching method
CN105554376A (en) * 2015-12-03 2016-05-04 北京奇虎科技有限公司 Vehicle intelligent camera device and shooting frame rate adjusting method thereof
CN105657289A (en) * 2016-03-28 2016-06-08 广东欧珀移动通信有限公司 Control method and device and electronic device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
S.NAGUMO ET AL.: "Extraction of forward vehicles by front-mounted camera using brightness information", 《IEEE CANADIAN CONFERENCE ON ELECTRICAL AND COMPUTER ENGINEERING 2003》 *
钟正: "《三维CAI课件制作技术及应用》", 28 February 2014, 清华大学出版社 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391044A (en) * 2017-02-03 2018-08-10 中兴通讯股份有限公司 A kind of video camera and its mode switch control method, device
CN109194946A (en) * 2018-09-30 2019-01-11 Oppo广东移动通信有限公司 Data processing method and device, electronic equipment and storage medium
US11631217B2 (en) 2018-09-30 2023-04-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data processing method and electronic device
CN110868533A (en) * 2019-10-15 2020-03-06 宇龙计算机通信科技(深圳)有限公司 HDR mode determination method, device, storage medium and terminal
CN110868533B (en) * 2019-10-15 2021-06-18 宇龙计算机通信科技(深圳)有限公司 HDR mode determination method, device, storage medium and terminal
CN111031254A (en) * 2020-01-15 2020-04-17 浙江大华技术股份有限公司 Camera mode switching method and device, computer device and readable storage medium
CN111031254B (en) * 2020-01-15 2021-02-26 浙江大华技术股份有限公司 Camera mode switching method and device, computer device and readable storage medium
CN111815804A (en) * 2020-06-30 2020-10-23 中国第一汽车股份有限公司 Control method, device, equipment and storage medium
CN111815804B (en) * 2020-06-30 2022-02-18 中国第一汽车股份有限公司 Control method, device, equipment and storage medium
CN116193250A (en) * 2021-11-26 2023-05-30 昆山研达电脑科技有限公司 Automatic switching method of camera mode of driving recorder

Similar Documents

Publication Publication Date Title
CN105959566A (en) Image pickup mode switching method and device, and automobile data recorder
JP7266672B2 (en) Image processing method, image processing apparatus, and device
JP6905602B2 (en) Image lighting methods, devices, electronics and storage media
US11611715B2 (en) System and method for event camera data processing
CN104883504B (en) Open the method and device of high dynamic range HDR functions on intelligent terminal
CN112529775A (en) Image processing method and device
CN115242992B (en) Video processing method, device, electronic device and storage medium
CN108322722B (en) Image processing method and device based on augmented reality and electronic equipment
CN114640783B (en) Photographing method and related equipment
CN106027901A (en) Intelligent acquisition method and device for vehicular photographing equipment, and car digital video recorder
WO2022142177A1 (en) Method and apparatus for generating hdr image, and electronic device and readable storage medium
US20190286887A1 (en) Image Processing Method, Electronic Device and Storage Medium
WO2023015997A1 (en) Video editing method and video editing apparatus
CN108513069A (en) Image processing method, image processing device, storage medium and electronic equipment
CN113034412A (en) Video processing method and device
CN112489144A (en) Image processing method, image processing apparatus, terminal device, and storage medium
JP2024531746A (en) Tone mapping method and system and device
CN108206913B (en) Image acquisition method, image acquisition device, embedded system and storage medium
CN117274107B (en) End-to-end color and detail enhancement method, device and equipment under low-illumination scene
CN108495038A (en) Image processing method, image processing device, storage medium and electronic equipment
WO2020155072A1 (en) Mixed layer processing method and apparatus
CN116630354A (en) A video cutout method, electronic device, storage medium and program product
CN113762058B (en) Video synthesis method, device, computer equipment and storage medium
CN111526366B (en) Image processing method, image processing apparatus, image capturing device, and storage medium
CN114529468A (en) Night vision image enhancement method and related device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160921

RJ01 Rejection of invention patent application after publication