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 PDFInfo
- 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 value
- grid
- brightness
- value
- frame
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/667—Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/10—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/741—Circuitry 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
The invention discloses an image pickup mode switching method, an image pickup mode switching device and an automobile data recorder. The method comprises the steps of equably dividing each frame of sampled image obtained by sampling from video signals according to a sampling frequency into an M-line N-row grid array, and acquiring the brightness value of each pre-selected grid; generating a first brightness value according to the brightness values of the former Q grids with the highest brightness values, and generating a second brightness value according to the brightness values of the former Q grids with the lowest brightness values; computing a brightness ratio between the first brightness value and the second brightness value, and comparing the brightness ratio with a preset threshold value ; and if the brightness ratios of the Y frames in the continuous X frames of sampled images are all more than the preset threshold value, switching into an HDR mode. According to the method, the brightness ratios are acquired from the continuous frames of sampled images collected according to the collecting frequency and compared with the preset threshold value, and thereby the intelligent control on the switching of the HDR mode is achieved, thus being convenient for the user to use.
Description
Technical field
The present invention relates to technical field of telecommunications, a kind of switch more particularly, to image pickup mode method,
Device and drive recorder.
Background technology
Along with the software and hardware development of digital optics, digital photographing technique is continuously updated, and new technique new ideas are not
Break and be suggested and be implemented.Daily as a example by using drive recorder shooting by people, people are in order to solve
The photo of LDR (Low-Dynamic Range is called for short LDR, low dynamic range echograms) pattern shooting goes out
Bright or that dark place is the darkest situation is crossed at existing bright place, begins with HDR (High-Dynamic Range, height
Dynamic range) pattern shooting, because the bright place under LDR pattern crosses bright or dark place and crosses is mostly secretly by working as
In front scene, the light and shade difference of light is too big and lost what the details of bright place or dark place caused.And HDR is
LDR image according to different time of exposure and the LDR figure of the corresponding optimal details of each time of exposure
As synthesizing final HDR image, the HDR image so obtained more preferable can must reflect true environment
In visual effect, solve the bright place under LDR pattern and cross bright or dark place and cross the biggest problem.City at present
Constantly occur on field also illustrate that this trend with the drive recorder of HDR pattern.
Meanwhile, the life people also has other analogues many, for example mobile phone photograph, virtual existing
In real technology, but it is found that these generally require user with the picture pick-up device of HDR pattern and go manually
Arranging image pickup mode, and most domestic consumer does not has photographic knowledge and the technical ability of specialty, these are general
General family does not also know which scene should could obtain good shooting effect by HDR pattern, adds
The pattern of high-end video camera is more, and therefore manual switching HDR pattern is the most intelligent, it has not been convenient to domestic consumer
Use.
Summary of the invention
In view of the above problems, the present invention proposes method, device and the driving recording of a kind of image pickup mode switching
Instrument.
For realizing this purpose, the present invention adopts the following technical scheme that
Scheme one:
The method providing the switching of a kind of image pickup mode, including:
Generate video signal according to filming frequency shooting, sample according to sample frequency from described video signal
To sampled images;
Every frame sampling image is divided into the grid battle array of M row N row, and obtains grid bright of each preliminary election
Angle value, wherein, M, N are the positive integer more than 1;
Obtain the highest front Q the grid of brightness value and minimum front Q the grid of brightness value, and according to institute
The brightness value stating the highest front Q the grid of brightness value generates the first brightness value, and according to described brightness value
The brightness value of minimum front Q grid generates the second brightness value, and wherein, Q is the positive integer more than 1;
Calculate the brightness ratio of described first brightness value and described second brightness value, and by described brightness ratio
Compare with predetermined threshold value, it is judged that whether described brightness ratio is more than described predetermined threshold value;
If having the brightness ratio of Y frame to be all higher than described predetermined threshold value, then in continuous X frame sampling image
Being switched to HDR pattern, wherein, X, Y are the positive integer more than 1, and X is more than or equal to Y.
In the present invention, described in be switched to HDR pattern after, further comprise the steps of:
If having the brightness ratio of Z frame to be respectively less than described predetermined threshold value, then in continuous X frame sampling image
Terminating HDR pattern, wherein, Z is that positive integer and X are more than or equal to Z.
In the present invention, described generate before video signal according to filming frequency shooting, further comprise the steps of:
Obtain the velocity information of picture pick-up device;
Size based on described velocity information determines the size of described filming frequency.
In the present invention, described generate before video signal according to filming frequency shooting, further comprise the steps of:
Obtain the velocity information of picture pick-up device;
Size based on described velocity information determines the size of described sample frequency.
In the present invention, the grid of described preliminary election is: be positioned at the K row grid on described grid battle array top, wherein K
It is more than K for positive integer and M.
In the present invention, described brightness value is environmental light intensity angle value, the brightness of the grid of described each preliminary election of acquisition
Value is for obtaining the environmental light intensity angle value of the grid of each preliminary election.
In the present invention, the environmental light intensity angle value of each grid of described acquisition preliminary election comprises the following steps:
Transfer the grid of each preliminary election described to gray-scale map respectively;
The environmental light intensity angle value of the grid of each preliminary election of preliminary election is obtained according to described gray-scale map.
In the present invention, described brightness value is the Y value of YUV color space, the net of described each preliminary election of acquisition
The brightness value of lattice is the Y value of the grid obtaining each preliminary election.
In the present invention, described first brightness value be front Q the grid that described brightness value is the highest brightness value it
With, the brightness value of described front Q the grid the highest according to brightness value generates the first brightness value and includes:
Calculate the brightness value sum of the highest front Q the grid of described brightness value.
In the present invention, described first brightness value is the brightness value of front Q the grid that described brightness value is the highest
Meansigma methods, the brightness value of described front Q the grid the highest according to brightness value generates the first brightness value and includes:
Calculate the brightness value sum of the highest front Q the grid of described brightness value;
Brightness value flat of the highest front Q the grid of described brightness value is calculated according to described brightness value sum
Average.
In the present invention, described second brightness value be front Q the grid that described brightness value is minimum brightness value it
With, the brightness value of described front Q the grid minimum according to brightness value generates the second brightness value and includes:
Calculate the brightness value sum of minimum front Q the grid of described brightness value.
In the present invention, described second brightness value is the brightness value of front Q the grid that described brightness value is minimum
Meansigma methods, the brightness value of described front Q the grid minimum according to brightness value generates the second brightness value and includes:
Calculate the brightness value sum of minimum front Q the grid of described brightness value;
Brightness value flat of minimum front Q the grid of described brightness value is calculated according to described brightness value sum
Average.
Scheme two:
Provide the device of a kind of image pickup mode switching, including:
Sampling module, for according to filming frequency shooting generate video signal, from described video signal according to
Sample frequency sampling obtains sampled images;
Mesh module, for every frame sampling image is divided into the grid battle array of M row N row, and obtains each
The brightness value of the grid of preliminary election, wherein, M, N are the positive integer more than 1;
Screening generation module, for obtaining the highest front Q the grid of brightness value and the minimum front Q of brightness value
Individual grid, and generate the first brightness value according to the brightness value of the highest front Q the grid of described brightness value, with
And generate the second brightness value according to the brightness value of minimum front Q the grid of described brightness value, wherein, Q is
Positive integer more than 1;
Ratio module, for calculating the brightness ratio of described first brightness value and described second brightness value, and
Described brightness ratio is compared with predetermined threshold value, it is judged that whether described brightness ratio is more than described pre-determined threshold
Value;
First judge module, if for having the brightness ratio of Y frame to be all higher than in continuous X frame sampling image
Described predetermined threshold value, then be switched to HDR pattern, and wherein, X, Y are the positive integer more than 1,
And X is more than or equal to Y.
In the present invention, described device also includes:
Second judge module, for after being switched to HDR pattern, if in continuous X frame sampling image
The brightness ratio having Z frame is respectively less than described predetermined threshold value, then terminate HDR pattern, and wherein, Z is just
Integer and X are more than or equal to Z.
In the present invention, described device includes:
First Speed module, for obtaining picture pick-up device before generating video signal according to filming frequency shooting
Velocity information;
First setting module, determines the big of described filming frequency for size based on described velocity information
Little.
In the present invention, described device includes:
Second speed module, for obtaining picture pick-up device before generating video signal according to filming frequency shooting
Velocity information;
Second setting module, determines the big of described sample frequency for size based on described velocity information
Little.
In the present invention, the grid of described preliminary election is: be positioned at the K row grid on described grid battle array top, wherein K
It is more than K for positive integer and M.
In the present invention, described brightness value is environmental light intensity angle value, the brightness of the grid of described each preliminary election of acquisition
Value is for obtaining the environmental light intensity angle value of each grid of preliminary election.
In the present invention, described mesh module includes:
Converting unit, for transferring the grid of each preliminary election described to gray-scale map respectively;
Light intensity unit, for obtaining the environmental light intensity angle value of the grid of each preliminary election according to described gray-scale map.
In the present invention, described brightness value is the Y value of YUV color space, the net of described each preliminary election of acquisition
The brightness value of lattice is the Y value of the grid obtaining each preliminary election.
In the present invention, described first brightness value be front Q the grid that described brightness value is the highest brightness value it
With, described screening generation module includes:
First addition unit, for calculating the brightness value sum of the highest front Q the grid of described brightness value.
In the present invention, described first brightness value is the brightness value of front Q the grid that described brightness value is the highest
Meansigma methods, described screening generation module includes:
Second addition unit, for calculating the brightness value sum of the highest front Q the grid of described brightness value;
First equal value cell, for calculating, according to described brightness value sum, the front Q that described brightness value is the highest
The meansigma methods of the brightness value of individual grid.
In the present invention, described second brightness value be front Q the grid that described brightness value is minimum brightness value it
With, described screening generation module includes:
Third phase adds unit, for calculating the brightness value sum of minimum front Q the grid of described brightness value.
In the present invention, described second brightness value is the brightness value of front Q the grid that described brightness value is minimum
Meansigma methods, described screening generation module includes:
4th addition unit, for calculating the brightness value sum of minimum front Q the grid of described brightness value;
Second equal value cell, for calculating, according to described brightness value sum, the front Q that described brightness value is minimum
The meansigma methods of the brightness value of individual grid.
Scheme three:
Provide a kind of drive recorder, including:
One or more processors;
Memorizer;
Photographic head;
One or more application programs, wherein said one or more application programs are stored in described memorizer
In and be configured to be performed by the one or more processor, the one or more program is configured to:
Generate video signal according to filming frequency shooting, sample according to sample frequency from described video signal
To sampled images;
Every frame sampling image is divided into the grid battle array of M row N row, and obtains grid bright of each preliminary election
Angle value, wherein, M, N are the positive integer more than 1;
Obtain the highest front Q the grid of brightness value and minimum front Q the grid of brightness value, and according to institute
The brightness value stating the highest front Q the grid of brightness value generates the first brightness value, and according to described brightness value
The brightness value of minimum front Q grid generates the second brightness value, and wherein, Q is the positive integer more than 1;
Calculate the brightness ratio of described first brightness value and described second brightness value, and by described brightness ratio
Compare with predetermined threshold value, it is judged that whether described brightness ratio is more than described predetermined threshold value;
If having the brightness ratio of Y frame to be all higher than described predetermined threshold value, then in continuous X frame sampling image
Being switched to HDR pattern, wherein, X, Y are the positive integer more than 1, and X is more than or equal to Y.
In the present invention, described in be switched to HDR pattern after, further comprise the steps of:
If having the brightness ratio of Z frame to be respectively less than described predetermined threshold value, then in continuous X frame sampling image
Terminating HDR pattern, wherein, Z is that positive integer and X are more than or equal to Z.
In the present invention, described generate before video signal according to filming frequency shooting, further comprise the steps of:
Obtain the velocity information of picture pick-up device;
Size based on described velocity information determines the size of described filming frequency.
In the present invention, described generate before video signal according to filming frequency shooting, further comprise the steps of:
Obtain the velocity information of picture pick-up device;
Size based on described velocity information determines the size of described sample frequency.
In the present invention, the grid of described preliminary election is: be positioned at the K row grid on described grid battle array top, wherein K
It is more than K for positive integer and M.
In the present invention, described brightness value is environmental light intensity angle value, the brightness of the grid of described each preliminary election of acquisition
Value is for obtaining the environmental light intensity angle value of the grid of each preliminary election.
In the present invention, the environmental light intensity angle value of each grid of described acquisition preliminary election comprises the following steps:
Transfer the grid of each preliminary election described to gray-scale map respectively;
The environmental light intensity angle value of the grid of each preliminary election of preliminary election is obtained according to described gray-scale map.
In the present invention, described brightness value is the Y value of YUV color space, the net of described each preliminary election of acquisition
The brightness value of lattice is the Y value of the grid obtaining each preliminary election.
In the present invention, described first brightness value be front Q the grid that described brightness value is the highest brightness value it
With, the brightness value of described front Q the grid the highest according to brightness value generates the first brightness value and includes:
Calculate the brightness value sum of the highest front Q the grid of described brightness value.
In the present invention, described first brightness value is the brightness value of front Q the grid that described brightness value is the highest
Meansigma methods, the brightness value of described front Q the grid the highest according to brightness value generates the first brightness value and includes:
Calculate the brightness value sum of the highest front Q the grid of described brightness value;
Brightness value flat of the highest front Q the grid of described brightness value is calculated according to described brightness value sum
Average.
In the present invention, described second brightness value be front Q the grid that described brightness value is minimum brightness value it
With, the brightness value of described front Q the grid minimum according to brightness value generates the second brightness value and includes:
Calculate the brightness value sum of minimum front Q the grid of described brightness value.
In the present invention, described second brightness value is the brightness value of front Q the grid that described brightness value is minimum
Meansigma methods, the brightness value of described front Q the grid minimum according to brightness value generates the second brightness value and includes:
Calculate the brightness value sum of minimum front Q the grid of described brightness value;
Brightness value flat of minimum front Q the grid of described brightness value is calculated according to described brightness value sum
Average.
Compared with prior art, method, device and the drive recorder of a kind of image pickup mode of this invention switching
Have the advantages that
Method, device and the drive recorder of this image pickup mode switching is by gathering successive frame according to frequency acquisition
The sampled images of number obtains the first brightness value and the second brightness value and it is compared with predetermined threshold value
Relatively and then realize the Based Intelligent Control to switching HDR pattern, it is to avoid which scene domestic consumer does not also know
The problem that should could obtain good shooting effect by HDR pattern, simplifies the most to a certain extent
High-end video camera multimodal selection, convenient for users to use.
Method, device and the drive recorder of the switching of this image pickup mode are by first carrying out gridding to sampled images
Processing mode and using the grid after gridding as processing in the way of its brightness value of object acquisition, it is right to reduce
Sampled images carries out the data volume calculated, and reduces the power consumption of hardware circuit, meets the market trend of low-power consumption,
More energy-conservation and environmental protection.Reduce needs the most to a certain extent to carry out real-time and long shooting and set simultaneously
Standby hot hidden danger.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described below
The accompanying drawing used is needed to be briefly described, it should be apparent that, the accompanying drawing in describing below is only the present invention
Some embodiments, for those skilled in the art, on the premise of not paying creative work, also
Other accompanying drawing can be obtained according to these accompanying drawings.
Fig. 1 shows the schematic flow sheet of the method for image pickup mode switching in one embodiment of the invention;
Fig. 2 shows in one embodiment of the invention and claps according to filming frequency in the method for image pickup mode switching
Health preserving becomes the schematic flow sheet of video signal;
Fig. 3 shows that in one embodiment of the invention, the preliminary election grid example of the method for image pickup mode switching is shown
It is intended to;
Fig. 4 shows the module diagram of the device of image pickup mode switching in one embodiment of the invention.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, implement below in conjunction with the present invention
Accompanying drawing in example, is clearly and completely described the technical scheme in the embodiment of the present invention.
In some flow processs of description in description and claims of this specification and above-mentioned accompanying drawing, comprise
The multiple operations occurred according to particular order, but it should be clearly understood that these operations can not according to it
The order occurred in this article performs or executed in parallel, the sequence number of operation such as 101,102 etc., is only to use
In distinguishing each different operation, sequence number itself does not represent any execution sequence.It addition, these flow processs
More or less of operation can be included, and these operations can perform or executed in parallel in order.Need
Illustrating, " first ", " second " herein etc. describes, be for distinguish different message, equipment,
Modules etc., do not represent sequencing, and not limiting " first " and " second " is different types.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than
Whole embodiments.Based on the embodiment in the present invention, those skilled in the art are not making creative labor
The every other embodiment obtained under dynamic premise, broadly falls into the scope of protection of the invention.
Refer to Fig. 1, in certain embodiments, it is provided that the method for a kind of image pickup mode switching, its application
In picture pick-up device shooting scene in, wherein, picture pick-up device include video camera, mobile phone, drive recorder and
Other are with taking pictures or the equipment of camera function.For convenience, the present embodiment is applied in this way
The RECORD mode of drive recorder illustrates.
In certain embodiments, the method for this image pickup mode switching comprises the steps:
Step 100: generate video signal, according to sampling from described video signal according to filming frequency shooting
Frequency sampling obtains sampled images.
Refer to Fig. 2, in certain embodiments, in embedded systems, the most described according to filming frequency
Shooting generates video signal and comprises the steps 202~208:
Step 202: open video equipment file, carries out the parameter initialization of video acquisition.
Concrete, in embedded systems, all peripheral hardwares are all seen as a kind of special file, become equipment
File, can be written and read it as accessing ordinary file.Such as, for using V4L2 to drive
Camera device file/dev/v4l/video0 can directly invoke open function to open this equipment literary composition
Part.
In certain embodiments, the parameter initialization of above-mentioned video acquisition includes the acquisition window ginseng arranging video
Count, video dot matrix format and dot matrix size are set and video capture frequency is set.
In certain embodiments, filming frequency can be configured according to the velocity information of picture pick-up device, specifically
, described generate before video signal according to filming frequency shooting, including:
Obtain the velocity information of picture pick-up device;
Size based on above-mentioned velocity information determines the size of filming frequency.
In some embodiments it is contemplated that drive recorder is fixed on car, therefore, above-mentioned picture pick-up device
Speed can also be speed.For example, when speed is 10KM/H, sample frequency is 30 frames/S;When
When speed is 30KM/H, sample frequency is 60 frames/S.
Step 204: apply for the frame buffer zone of multiple video acquisition.
Concrete, in embedded systems, in internal memory, apply for that several frame buffer zone is deposited by driver
Put video data.By VIDIOC_REQBUFS, application program applies for that the frame of several video datas buffers
District, application frame buffer zone quantity is typically not less than 3, and one-frame video data is deposited in each frame buffer zone, this
A little frame buffer zones are at kernel spacing.Inquire frame buffer zone by VIDIOC_QUERYBUF the most again to exist
The length of kernel spacing and offset address.Finally by MMAP () by application to kernel spacing frame delay
The address rushing district is mapped to user's space address, thus can directly process the data of frame buffer zone.Wherein,
VIDIOC_REQBUFS is an identifier, for the distribution of internal memory;VIDIOC_QUERYBUF is also
One identifier, for being converted into physical address the data buffer storage of distribution in VIDIOC_REQBUFS;
MMAP () is a kind of shared drive set-up mechanism, and it is by setting up a file, Mei Gejin on disk
Inside journey memorizer, individually open up a space and map.
In certain embodiments, the frame buffer zone of the multiple video acquisition of above-mentioned application is five video acquisitions of application
Frame buffer zone.
Step 206: queuing up in video acquisition input rank in frame buffer zone application arrived, and starts video and adopt
Collection.
Concrete, in embedded systems, first driver defines two teams during processing video
Row: video acquisition input rank and video acquisition output queue, wherein, video acquisition input rank is to wait for
Drive the queue depositing video data;Video acquisition output queue is that driver has had been placed in video data
Queue.When application program by above-mentioned frame buffer zone video acquisition input rank queue up after, just startup video
Gather.
Step 208: drive the collection starting video data, application program takes out from video acquisition output queue
Frame buffer zone, after having processed, is reentered into video acquisition input rank by frame buffer zone, and move in circles collection
Continuous print video data.
Concrete, after starting video acquisition, driver starts to gather frame data, and the data gathered are put
Entering first frame buffer zone of video acquisition input rank, a frame data collection completes, namely first frame
After relief area is filled with frame data, this frame buffer zone is moved to video acquisition output queue by driver, waits
Application program takes out from output queue.Next driver gathers next frame data, puts into second frame and delays
Rush district, after same frame buffer zone is filled with next frame data, be placed into video acquisition output queue.
Application program takes out the frame buffer zone containing video data from video acquisition output queue, processes frame and delays
Rush the video data in district, such as coding or compression.Finally, application program will process the frame buffer zone of data
It is reentered into video acquisition input rank, so can be with circle collection.
In certain embodiments, the video data format in above-mentioned frame buffer zone is YUV, wherein, YUV
A kind of colour coding method used by eurovision system.Wherein, Y represents lightness, namely ash
Rank are worth;What U and V represented is then colourity.
It is noted that the YUV often proposed in practice is also called YCbCr, this YCbCr is alive
As a part for ITU-R BT1601 suggestion in boundary's numeral tissue video standard development process, it is substantially
It is that YUV is through scaling and the reprint of skew.Wherein, the Y implication in Y with YUV is consistent, and Cb, Cr are same
The most all refer to color.
Video data in above-mentioned process frame buffer zone realizes H.264 encoding, for example by bottom code database
The NVCUVENC storehouse of NVIDIA company, this NVCUVENC storehouse can realize graphics process H.264
Device encodes, and it receives original yuv data and then encodes generation NAL unit.Wherein, H.264 it is by ITU-T
The height that the joint video team that Video Coding Experts group and ISO/IEC dynamic image expert group constitute jointly proposes
Compression digital video coding-coding device standard.This standard commonly referred to as the most H.264/AVC or
AVC/H.264 or H.264/MPEG-4AVC or MPEG-4/H.264AVC;NAL unit is one one
Determine the variable length byte character string of syntactic element, including the head comprised for the byte representing data type
Information and the load data of some integer bytes, encoded video sequence H.264 includes a series of NAL
Unit.
In certain embodiments, above-mentioned obtain sampled images according to sample frequency sampling be then from video signal
Sample according to sample frequency containing in the frame buffer zone of video data from above-mentioned video acquisition output queue
To sampled images.
Same, this sample frequency can be configured according to the velocity information of picture pick-up device, concrete, root
Before generating video signal according to filming frequency shooting, including:
Obtain the velocity information of picture pick-up device;
Size based on above-mentioned velocity information determines the size of sample frequency.
In some embodiments it is contemplated that drive recorder is fixed on car, therefore, above-mentioned picture pick-up device
Speed can also be speed.For example, when speed is 10KM/H, sample frequency is 1 frame/S;Work as car
When speed is 30KM/H, sample frequency is 2 frames/S.
Step 102: every frame sampling image is divided into the grid battle array of M row N row, and obtains each preliminary election
The brightness value of grid, wherein, M, N are the positive integer more than 1.
Concrete, by every frame sampling image M × N grid in the two-dimensional direction, each grid is with a brightness
Value represents the brightness in this region, and so every frame sampling image represents with regard to the discrete M of turning to × N number of brightness value.
In certain embodiments, in embedded systems, by OPENCV storehouse shear every frame sampling image with
Obtain the grid battle array being divided into M row N row.Wherein, OPENCV is a Berkeley Software release license
Cross-platform computer vision library, may operate in Linux, Windows and Mac OS operating system.
It is made up of a series of C function and a small amount of C++ class, provides Python, Ruby, MATLAB simultaneously
Interface Deng language, it is achieved that a lot of general-purpose algorithms in terms of image procossing and computer vision.
The grid of above-mentioned preliminary election refers to remove the grid in the grid battle array of M row N row after noise, for example drives a vehicle
Monitor is when shooting, and the bottom, bottom of its sampled images is typically all the front car bonnet of automobile, and these
Part often interferes with the process of follow-up data, it is therefore desirable to crop.
In certain embodiments, the grid of preliminary election is the K row grid being positioned at grid battle array top, and wherein K is just
Integer and M are more than K.
Refer to Fig. 3, Fig. 3 show and work as M=5, the example schematic diagram of the preliminary election grid of N=5, K=4,
In Fig. 3, this sampled images has been divided into 5 × 5 grids, the wherein end of this sampled images in the two-dimensional direction
1 row in portion cropped fall.The brightness value of the grid of described each preliminary election of acquisition obtains K × N number of grid
Brightness value.
In certain embodiments, brightness value is environmental light intensity angle value, the grid of above-mentioned each preliminary election of acquisition bright
Angle value is the environmental light intensity angle value of the grid obtaining each preliminary election.
In embedded systems, it is contemplated that the video data format in frame buffer zone is YUV, therefore, bright
Angle value is the Y value of YUV color space, and the brightness value of the grid of above-mentioned each preliminary election of acquisition is for obtaining each
The Y value of the grid of preliminary election.
In certain embodiments, the process of view data for convenience, by video frequency processing chip by multiple letter
The video signal of number pattern is converted to unified RGB data pattern.So, each of above-mentioned acquisition preliminary election
The environmental light intensity angle value of grid comprises the following steps:
Transfer the grid of each preliminary election described to gray-scale map respectively;
The environmental light intensity angle value of the grid of each preliminary election of preliminary election is obtained according to above-mentioned gray-scale map.
Wherein, above-mentioned RGB data pattern is a kind of color standard of industrial quarters, be by red, green,
Change and their superpositions each other of blue three Color Channels obtain color miscellaneous,
RGB is i.e. the color representing three passages of red, green, blue, and this standard almost includes human eyesight institute
The all colours of energy perception, is to use one of the widest color system at present.
In certain embodiments, above-mentioned transfer the grid of each preliminary election to gray-scale map respectively and can pass through Gray=
This famous psychology formula of R × 0.299+G × 0.587+B × 0.114 realizes.
Step 104: obtain the highest front Q the grid of brightness value and minimum front Q the grid of brightness value, and
Brightness value according to the highest front Q the grid of described brightness value generates the first brightness value, and according to described bright
The brightness value of front Q the grid that angle value is minimum generates the second brightness value, and wherein, Q is the positive integer more than 1.
Preferably, above-mentioned Q is two.
In certain embodiments, obtain the highest front Q the grid of brightness value and the minimum front Q of brightness value is individual
Grid comprises the following steps:
By sort algorithm by the brightness value of K × N number of grid by sorting from high to low;
The highest front Q the grid of brightness value and minimum front Q the net of brightness value is obtained from above-mentioned sequence
Lattice.
Concrete, sort algorithm include Straight Insertion Sort, Shell sorting, simple selected and sorted, heapsort,
One or more in bubble sort, quicksort, merger sequence and radix sorting.Wherein,
Straight Insertion Sort by by a record to be sorted by the size of its keyword be inserted into before
Appropriate location in the sequence of sequence, until all record inserts complete;
Shell sorting is first whole records series to be sorted to be partitioned into some subsequences to carry out respectively directly
Connect insertion sort, when the record in whole sequence is substantially orderly, then entirety record is the most directly inserted
Enter sequence;
Simple selected and sorted is in one group of number to be sorted, select a number of minimum (or maximum) with
The number exchange of first position;Then look for again in the middle of remaining number minimum (or maximum) with second
The number exchange of position, the like, until (n-1)th element (number second from the bottom) and nth elements (
Later number) compare till;
Heapsort refers to utilize a kind of sort algorithm piling up tree designed by this data structure, and it is the row of selection
The one of sequence, it is possible to use the feature of array quickly positions the element of assigned indexes;Heap is divided into big root heap and little
Root heap, is complete binary tree, and the requirement of the biggest heap is that the value of each node is not more than its father node
Value;
Bubble sort is in one group of number to be sorted, to the whole numbers in the most sorted current scope,
From top to bottom two adjacent numbers being compared successively and adjusted, allowing bigger number sink, less is past
On emit;
Quicksort is to be divided into independent two parts by the data that will sort of sequence, wherein one
The all data divided all will be little than all data of another part, the most according to said method to these two parts
Data carry out quicksort respectively, and whole sequencer procedure can be carried out with recurrence, reach whole data with this and become
Ordered sequence;
Merger sequence is that two (or two or more) ordered lists are merged into a new ordered list, i.e. treating
Collating sequence is divided into several subsequences, each subsequence to be ordered into, and more orderly subsequence is merged
For overall ordered sequence;
Radix sorting is in the bucket that array is assigned to limited quantity.Each bucket sorts the most individually.
In certain embodiments, by sort algorithm by the brightness value of K × N number of grid by sorting from high to low
For by bubble sort by the brightness value of K × N number of grid by sorting from high to low.
In certain embodiments, the first brightness value is the brightness value sum of front Q the grid that brightness value is the highest,
The brightness value of above-mentioned front Q the grid the highest according to brightness value generates the first brightness value and includes:
Calculate the brightness value sum of the highest front Q the grid of brightness value.
In certain embodiments, the first brightness value is brightness value average of front Q the grid that brightness value is the highest
Value, the brightness value of above-mentioned front Q the grid the highest according to brightness value generates the first brightness value and includes:
Calculate the brightness value sum of the highest front Q the grid of brightness value;
The meansigma methods of the brightness value of the highest front Q the grid of brightness value is calculated according to above-mentioned brightness value sum.
In certain embodiments, the second brightness value is the brightness value sum of front Q the grid that brightness value is minimum,
The brightness value of above-mentioned front Q the grid minimum according to brightness value generates the second brightness value and includes:
Calculate the brightness value sum of minimum front Q the grid of brightness value.
In certain embodiments, the second brightness value is brightness value average of front Q the grid that brightness value is minimum
Value, the brightness value of above-mentioned front Q the grid minimum according to brightness value generates the second brightness value and includes:
Calculate the brightness value sum of minimum front Q the grid of brightness value;
The meansigma methods of the brightness value of minimum front Q the grid of brightness value is calculated according to above-mentioned brightness value sum.
Step 106: calculate the brightness ratio of described first brightness value and described second brightness value, and by institute
State brightness ratio to compare with predetermined threshold value, it is judged that whether described brightness ratio is more than described predetermined threshold value.
Concrete, predetermined threshold value, also known as marginal value, refers to the minimum or the highest that an effect can produce
Value.
In certain embodiments, include walking as follows after whether brightness ratio is more than predetermined threshold value judging
Rapid:
If brightness ratio is more than predetermined threshold value, then switching HDR mode counter increases a unit;
If brightness ratio is less than or equal to predetermined threshold value, then terminates HDR mode counter and increase a unit.
Step 108: if having the brightness ratio of Y frame to be all higher than described pre-determined threshold in continuous X frame sampling image
Value, then be switched to HDR pattern, and wherein, X, Y are the positive integer more than 1, and X is more than or equal to Y.
Concrete, continuous X frame sampling image be sample from video signal according to sample frequency obtain continuous
X frame sampling image.
In certain embodiments, if having the brightness ratio of Y frame to be all higher than presetting in continuous X frame sampling image
Threshold value, then be switched to HDR pattern and comprise the steps:
Calculate the first brightness value of continuous X frame sampling image every frame sampling image and the bright of the second brightness value
Degree ratio, and brightness ratio is compared with predetermined threshold value, it is judged that whether brightness ratio is more than predetermined threshold value;
If the brightness ratio of above-mentioned sampled images is more than predetermined threshold value, then switching HDR mode counter increases
Add a unit;If having the brightness ratio of Y frame to be all higher than predetermined threshold value in continuous X frame sampling image,
Then it is switched to HDR pattern.
In certain embodiments, if above-mentioned have the brightness ratio of Y frame to be all higher than in continuous X frame sampling image
Predetermined threshold value, then comprise the steps: after being switched to HDR pattern
Calculate the first brightness value of continuous X frame sampling image every frame sampling image and the bright of the second brightness value
Degree ratio, and brightness ratio is compared with predetermined threshold value, it is judged that whether brightness ratio is more than predetermined threshold value;
If the brightness ratio of above-mentioned sampled images is less than predetermined threshold value, then terminates HDR mode counter and increase
Add a unit;If having the brightness ratio of Z frame to be respectively less than above-mentioned pre-determined threshold in continuous X frame sampling image
Value, then terminate HDR pattern;Wherein, Z is that positive integer and X are more than or equal to Z.
Refer to Fig. 4, based on same inventive concept, in one embodiment, also provide for a kind of shooting mould
The device of formula switching, including: sampling module 4001, mesh module 4003, screening generation module 4005, ratio
Value module 4007 and the first judge module 4009, wherein,
Sampling module 4001, for generating video signal, from described video signal according to filming frequency shooting
Sampled images is obtained according to sample frequency sampling;
Mesh module 4003, for every frame sampling image is divided into the grid battle array of M row N row, and obtains each
The brightness value of the grid of individual preliminary election, wherein, described M, N are the positive integer more than 1;
Screening generation module 4005, is used for obtaining the highest front Q the grid of brightness value and brightness value is minimum
Front Q grid, and generate the first brightness value according to the brightness value of the highest front Q the grid of described brightness value,
And generate the second brightness value according to the brightness value of minimum front Q the grid of described brightness value, wherein, Q is
Positive integer more than 1;
Ratio module 4007, for calculating the brightness ratio of described first brightness value and described second brightness value
Value, and described brightness ratio is compared with predetermined threshold value, it is judged that whether described brightness ratio is more than described pre-
If threshold value;
First judge module 4009, if the brightness ratio for there being Y frame in continuous X frame sampling image is the biggest
In above-mentioned predetermined threshold value, being then switched to HDR pattern, wherein, X, Y are the positive integer more than 1,
And X is more than or equal to Y.
Said apparatus also includes:
Second judge module, for after being switched to HDR pattern, if having in continuous X frame sampling image
The brightness ratio of Z frame is respectively less than above-mentioned predetermined threshold value, then terminate HDR pattern, and wherein, Z is positive integer
And X is more than or equal to Z.
Said apparatus also includes:
First Speed module, for obtaining picture pick-up device before generating video signal according to filming frequency shooting
Velocity information;
First setting module, determines the size of filming frequency for size based on above-mentioned velocity information.
Said apparatus also includes:
Second speed module, for obtaining picture pick-up device before generating video signal according to filming frequency shooting
Velocity information;
Second setting module, determines the size of sample frequency for size based on above-mentioned velocity information.
In certain embodiments, the grid of preliminary election is: being positioned at the K row grid on grid battle array top, wherein K is
Positive integer and M are more than K.
In certain embodiments, brightness value is environmental light intensity angle value, obtains the brightness value of the grid of each preliminary election
For obtaining the environmental light intensity angle value of each grid of preliminary election.
In certain embodiments, mesh module 4003 includes:
Converting unit, for transferring the grid of each preliminary election to gray-scale map respectively;
Light intensity unit, for obtaining the environmental light intensity angle value of the grid of each preliminary election according to above-mentioned gray-scale map.
In certain embodiments, brightness value is the Y value of YUV color space, the net of above-mentioned each preliminary election of acquisition
The brightness value of lattice is the Y value of the grid obtaining each preliminary election.
In certain embodiments, the first brightness value is the brightness value sum of front Q the grid that brightness value is the highest,
Above-mentioned screening generation module 4005 includes:
First addition unit, for calculating the brightness value sum of the highest front Q the grid of brightness value.
In certain embodiments, the first brightness value is brightness value average of front Q the grid that brightness value is the highest
Value, above-mentioned screening generation module 4005 includes:
Second addition unit, for calculating the brightness value sum of the highest front Q the grid of brightness value;
First equal value cell, for calculating, according to above-mentioned brightness value sum, front Q the grid that brightness value is the highest
The meansigma methods of brightness value.
In certain embodiments, the second brightness value is the brightness value sum of front Q the grid that brightness value is minimum,
Above-mentioned screening generation module 4005 includes:
Third phase adds unit, for calculating the brightness value sum of minimum front Q the grid of brightness value.
In certain embodiments, the second brightness value is brightness value average of front Q the grid that brightness value is minimum
Value, above-mentioned screening generation module 4005 includes:
4th addition unit, for calculating the brightness value sum of minimum front Q the grid of brightness value;
Second equal value cell, for calculating the bright of minimum front Q the grid of brightness value according to brightness value sum
The meansigma methods of angle value.
Based on same inventive concept, also provide for a kind of drive recorder, including one or more processors,
Memorizer, photographic head, one or more application program, wherein,
Memorizer can be used for storing software program and module, and processor is stored in the soft of memorizer by operation
Part program and module, thus perform the application of various functions and the data process of drive recorder.Memorizer
Can mainly include storing program area and storage data field, wherein, storage program area can store operating system, extremely
Application program (such as sound-playing function, image player function etc.) etc. needed for a few function;Storage
Data field can store the data (such as voice data, phone directory etc.) that the use according to drive recorder is created
Deng.Additionally, memorizer can include high-speed random access memory, it is also possible to include nonvolatile memory,
For example, at least one disk memory, flush memory device or other volatile solid-state parts;
Display can be used for showing the information inputted by user or the information being supplied to user and driving recording
The various menus of instrument.Display can include display floater, optionally, can use liquid crystal display (Liquid
Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED)
Display floater is configured etc. form.Further, contact panel can cover display floater, when contact panel is examined
Measure thereon or after neighbouring touch operation, send processor to determine the type of touch event, subsequently
Processor provides corresponding visual output on a display panel according to the type of touch event.
Said one or multiple application program are stored in above-mentioned memorizer and are configured to by said one
Or multiple processor performs, said one or multiple program are configured to:
Generate video signal according to filming frequency shooting, sample according to sample frequency from described video signal
To sampled images;
Every frame sampling image is divided into the grid battle array of M row N row, and obtains the brightness of the grid of each preliminary election
Value, wherein, M, N are the positive integer more than 1;
Obtain the highest front Q the grid of brightness value and minimum front Q the grid of brightness value, and according to described
The brightness value of front Q the grid that brightness value is the highest generates the first brightness value, and minimum according to described brightness value
The brightness value of front Q grid generate the second brightness value, wherein, Q is the positive integer more than 1;
Calculate the brightness ratio of described first brightness value and described second brightness value, and by described brightness ratio
Compare with predetermined threshold value, it is judged that whether described brightness ratio is more than described predetermined threshold value;
If having the brightness ratio of Y frame to be all higher than described predetermined threshold value in continuous X frame sampling image, then cut
Changing to HDR pattern, wherein, X, Y are the positive integer more than 1, and X is more than or equal to Y.
In certain embodiments, after being switched to HDR pattern, further comprise the steps of:
If having the brightness ratio of Z frame to be respectively less than predetermined threshold value in continuous X frame sampling image, then terminate
HDR pattern, wherein, Z is that positive integer and X are more than or equal to Z.
In certain embodiments, before generating video signal according to filming frequency shooting, further comprise the steps of:
Obtain the velocity information of picture pick-up device;
Size based on above-mentioned velocity information determines the size of filming frequency.
In certain embodiments, before generating video signal according to filming frequency shooting, further comprise the steps of:
Obtain the velocity information of picture pick-up device;
Size based on described velocity information determines the size of described sample frequency.
In certain embodiments, the grid of described preliminary election is: be positioned at the K row grid on described grid battle array top,
Wherein K is that positive integer and M are more than K.
In certain embodiments, brightness value is environmental light intensity angle value, the grid of above-mentioned each preliminary election of acquisition bright
Angle value is the environmental light intensity angle value of the grid obtaining each preliminary election.
In certain embodiments, the environmental light intensity angle value of each grid of above-mentioned acquisition preliminary election includes following step
Rapid:
Transfer the grid of each preliminary election to gray-scale map respectively;
The environmental light intensity angle value of the grid of each preliminary election of preliminary election is obtained according to above-mentioned gray-scale map.
In certain embodiments, brightness value is the Y value of YUV color space, the net of above-mentioned each preliminary election of acquisition
The brightness value of lattice is the Y value of the grid obtaining each preliminary election.
In certain embodiments, the first brightness value is the brightness value sum of front Q the grid that brightness value is the highest,
The brightness value of above-mentioned front Q the grid the highest according to brightness value generates the first brightness value and includes:
Calculate the brightness value sum of the highest front Q the grid of brightness value.
In certain embodiments, the first brightness value is brightness value average of front Q the grid that brightness value is the highest
Value, the brightness value of above-mentioned front Q the grid the highest according to brightness value generates the first brightness value and includes:
Calculate the brightness value sum of the highest front Q the grid of brightness value;
The meansigma methods of the brightness value of the highest front Q the grid of brightness value is calculated according to above-mentioned brightness value sum.
In certain embodiments, the second brightness value is the brightness value sum of front Q the grid that brightness value is minimum,
The brightness value of above-mentioned front Q the grid minimum according to brightness value generates the second brightness value and includes:
Calculate the brightness value sum of minimum front Q the grid of brightness value.
In certain embodiments, the second brightness value is brightness value average of front Q the grid that brightness value is minimum
Value, the brightness value of above-mentioned front Q the grid minimum according to brightness value generates the second brightness value and includes:
Calculate the brightness value sum of minimum front Q the grid of brightness value;
The meansigma methods of the brightness value of minimum front Q the grid of brightness value is calculated according to above-mentioned brightness value sum.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and foregoing description
System, the specific works process of device and unit, be referred to the corresponding process in preceding method embodiment,
Do not repeat them here.
In several embodiments provided herein, it should be understood that disclosed system, device and side
Method, can realize by another way.Such as, device embodiment described above is only schematically
, such as, the division of described unit, be only a kind of logic function and divide, actual can have when realizing another
Outer dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another system, or
Some features can be ignored, or does not performs.Another point, shown or discussed coupling each other or straight
Connect coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit or communication connection,
Can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, as
The parts that unit shows can be or may not be physical location, i.e. may be located at a place, or
Can also be distributed on multiple NE.Can select therein some or all of according to the actual needs
Unit realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit,
Can also be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit
In.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ SFU software functional unit
Form realizes.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment
Suddenly the program that can be by completes to instruct relevant hardware, and this program can be stored in a computer-readable
In storage medium, storage medium may include that read only memory (ROM, Read Only Memory),
Random access memory (RAM, Random Access Memory), disk or CD etc..
Compared with prior art, the method for a kind of image pickup mode of this invention switching, device and drive recorder tool
Have the advantages that:
Method, device and the drive recorder of this image pickup mode switching is by gathering successive frame according to frequency acquisition
The sampled images of number obtains the first brightness value and the second brightness value and it is compared with predetermined threshold value
Relatively and then realize the Based Intelligent Control to switching HDR pattern, it is to avoid which scene domestic consumer does not also know
The problem that should could obtain good shooting effect by HDR pattern, simplifies the most to a certain extent
High-end video camera multimodal selection, convenient for users to use.
Method, device and the drive recorder of the switching of this image pickup mode are by first carrying out gridding to sampled images
Processing mode and using the grid after gridding as processing in the way of its brightness value of object acquisition, it is right to reduce
Sampled images carries out the data volume calculated, and reduces the power consumption of hardware circuit, meets the market trend of low-power consumption,
More energy-conservation and environmental protection.Reduce needs the most to a certain extent to carry out real-time and long shooting and set simultaneously
Standby hot hidden danger.
The method, device and the equipment that send a kind of information provided by the present invention above have carried out detailed Jie
Continue, for one of ordinary skill in the art, according to the thought of the embodiment of the present invention, in detailed description of the invention
And all will change in range of application, in sum, this specification content should not be construed as the present invention
Restriction.
Claims (10)
1. the method for an image pickup mode switching, it is characterised in that including:
Generate video signal according to filming frequency shooting, sample according to sample frequency from described video signal
To sampled images;
Every frame sampling image is divided into the grid battle array of M row N row, and obtains grid bright of each preliminary election
Angle value, wherein, M, N are the positive integer more than 1;
Obtain the highest front Q the grid of brightness value and minimum front Q the grid of brightness value, and according to institute
The brightness value stating the highest front Q the grid of brightness value generates the first brightness value, and according to described brightness value
The brightness value of minimum front Q grid generates the second brightness value, and wherein, Q is the positive integer more than 1;
Calculate the brightness ratio of described first brightness value and described second brightness value, and by described brightness ratio
Compare with predetermined threshold value, it is judged that whether described brightness ratio is more than described predetermined threshold value;
If having the brightness ratio of Y frame to be all higher than described predetermined threshold value, then in continuous X frame sampling image
Being switched to HDR pattern, wherein, X, Y are the positive integer more than 1, and X is more than or equal to Y.
2. the method for image pickup mode switching as claimed in claim 1, it is characterised in that described in be switched to
After HDR pattern, further comprise the steps of:
If having the brightness ratio of Z frame to be respectively less than described predetermined threshold value, then in continuous X frame sampling image
Terminating HDR pattern, wherein, Z is that positive integer and X are more than or equal to Z.
The method of image pickup mode the most according to claim 1 switching, it is characterised in that described basis
Before filming frequency shooting generates video signal, further comprise the steps of:
Obtain the velocity information of picture pick-up device;
Size based on described velocity information determines the size of described filming frequency.
The method of image pickup mode the most according to claim 1 switching, it is characterised in that described basis
Before filming frequency shooting generates video signal, further comprise the steps of:
Obtain the velocity information of picture pick-up device;
Size based on described velocity information determines the size of described sample frequency.
5. the device of an image pickup mode switching, it is characterised in that including:
Sampling module, for according to filming frequency shooting generate video signal, from described video signal according to
Sample frequency sampling obtains sampled images;
Mesh module, for every frame sampling image is divided into the grid battle array of M row N row, and obtains each
The brightness value of the grid of preliminary election, wherein, M, N are the positive integer more than 1;
Screening generation module, for obtaining the highest front Q the grid of brightness value and the minimum front Q of brightness value
Individual grid, and generate the first brightness value according to the brightness value of the highest front Q the grid of described brightness value, with
And generate the second brightness value according to the brightness value of minimum front Q the grid of described brightness value, wherein, Q is
Positive integer more than 1;
Ratio module, for calculating the brightness ratio of described first brightness value and described second brightness value, and
Described brightness ratio is compared with predetermined threshold value, it is judged that whether described brightness ratio is more than described pre-determined threshold
Value;
First judge module, if for having the brightness ratio of Y frame to be all higher than in continuous X frame sampling image
Described predetermined threshold value, then be switched to HDR pattern, and wherein, X, Y are the positive integer more than 1,
And X is more than or equal to Y.
6. the device of image pickup mode switching as claimed in claim 5, it is characterised in that described device is also
Including:
Second judge module, for after being switched to HDR pattern, if in continuous X frame sampling image
The brightness ratio having Z frame is respectively less than described predetermined threshold value, then terminate HDR pattern, and wherein, Z is just
Integer and X are more than or equal to Z.
The device of image pickup mode the most according to claim 5 switching, it is characterised in that described device
Including:
First Speed module, for obtaining picture pick-up device before generating video signal according to filming frequency shooting
Velocity information;
First setting module, determines the big of described filming frequency for size based on described velocity information
Little.
The device of image pickup mode the most according to claim 5 switching, it is characterised in that described device
Including:
Second speed module, for obtaining picture pick-up device before generating video signal according to filming frequency shooting
Velocity information;
Second setting module, determines the big of described sample frequency for size based on described velocity information
Little.
9. a drive recorder, it is characterised in that including:
One or more processors;
Memorizer;
Photographic head;
One or more application programs, wherein said one or more application programs are stored in described memorizer
In and be configured to be performed by the one or more processor, the one or more program is configured to:
Generate video signal according to filming frequency shooting, sample according to sample frequency from described video signal
To sampled images;
Every frame sampling image is divided into the grid battle array of M row N row, and obtains grid bright of each preliminary election
Angle value, wherein, M, N are the positive integer more than 1;
Obtain the highest front Q the grid of brightness value and minimum front Q the grid of brightness value, and according to institute
The brightness value stating the highest front Q the grid of brightness value generates the first brightness value, and according to described brightness value
The brightness value of minimum front Q grid generates the second brightness value, and wherein, Q is the positive integer more than 1;
Calculate the brightness ratio of described first brightness value and described second brightness value, and by described brightness ratio
Compare with predetermined threshold value, it is judged that whether described brightness ratio is more than described predetermined threshold value;
If having the brightness ratio of Y frame to be all higher than described predetermined threshold value, then in continuous X frame sampling image
Being switched to HDR pattern, wherein, X, Y are the positive integer more than 1, and X is more than or equal to Y.
10. drive recorder as claimed in claim 9, it is characterised in that described in be switched to HDR mould
After formula, further comprise the steps of:
If having the brightness ratio of Z frame to be respectively less than described predetermined threshold value, then in continuous X frame sampling image
Terminating HDR pattern, wherein, Z is that positive integer and X are more than or equal to Z.
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 (5)
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 |
Citations (8)
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 |
-
2016
- 2016-06-21 CN CN201610453933.5A patent/CN105959566A/en active Pending
Patent Citations (8)
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)
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 (9)
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 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105959566A (en) | Image pickup mode switching method and device, and automobile data recorder | |
CN109614996A (en) | The recognition methods merged based on the weakly visible light for generating confrontation network with infrared image | |
CN104883504B (en) | Open the method and device of high dynamic range HDR functions on intelligent terminal | |
CN105118027B (en) | A kind of defogging method of image | |
CN112215795B (en) | Intelligent detection method for server component based on deep learning | |
CN106027901A (en) | Intelligent acquisition method and device for vehicular photographing equipment, and car digital video recorder | |
CN111861925A (en) | Image rain removing method based on attention mechanism and gate control circulation unit | |
CN104639845B (en) | High dynamic range images production method and the device using this method | |
CN105844213B (en) | Green fruit recognition method | |
JP6174894B2 (en) | Image processing apparatus and image processing method | |
CN112163508A (en) | Character recognition method and system based on real scene and OCR terminal | |
CN115205667A (en) | Dense target detection method based on YOLOv5s | |
CN111860483B (en) | Target detection method based on Haisi platform | |
CN117274107B (en) | End-to-end color and detail enhancement method, device and equipment under low-illumination scene | |
US20080094481A1 (en) | Intelligent Multiple Exposure | |
CN113052923B (en) | Tone mapping method, tone mapping apparatus, electronic device, and storage medium | |
CN113361466B (en) | Multispectral target detection method based on multi-mode cross guidance learning | |
CN114067225A (en) | Unmanned aerial vehicle small target detection method and system and storable medium | |
CN113536977A (en) | Saliency target detection method facing 360-degree panoramic image | |
CN116342877A (en) | Semantic segmentation method based on improved ASPP and fusion module in complex scene | |
CN115984133A (en) | Image enhancement method, vehicle snapshot method, device and medium | |
CN111489361B (en) | Real-time visual target tracking method based on deep feature aggregation of twin network | |
CN111402223B (en) | Transformer substation defect problem detection method using transformer substation video image | |
Li et al. | Carnet: a lightweight and efficient encoder-decoder architecture for high-quality road crack detection | |
CN106339988A (en) | Image defogging method and 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160921 |