CN109922274A - The strong Xanthophyll cycle method and device of video camera based on histogram - Google Patents
The strong Xanthophyll cycle method and device of video camera based on histogram Download PDFInfo
- Publication number
- CN109922274A CN109922274A CN201711332525.5A CN201711332525A CN109922274A CN 109922274 A CN109922274 A CN 109922274A CN 201711332525 A CN201711332525 A CN 201711332525A CN 109922274 A CN109922274 A CN 109922274A
- Authority
- CN
- China
- Prior art keywords
- bright
- threshold value
- block
- video camera
- bright spot
- 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.)
- Granted
Links
Landscapes
- Studio Devices (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
The present invention provides a kind of strong Xanthophyll cycle method and devices of video camera based on histogram, automatic identification and the inhibition to light strong in camera picture can be realized based on the statistical information of histogram, the scenes application such as strong light of car light in video camera shooting process can effectively be inhibited, make the other information outside strong light, such as license plate, clearly reveal.In addition, camera views can detect automatically and be restored to normal scene under strong light Disappearance Scenarios, the accuracy rate for meeting candid photograph and the identification of picture concern information in strong light situation by chance is substantially increased, while not influencing the normal use of video camera again.
Description
Technical field
The present invention relates to a kind of camera review optimization methods, refer in particular to a kind of strong light suppression of the video camera based on histogram
Method and device processed.
Background technique
In protection and monitor field, Car license recognition is a very important application, current bayonet camera all equipped with
License auto-recognition system module, what can be prepared is captured and is identified to the license plate of vehicle.But when night, opened in car light
In the case where opening, the license plate picture that video capture arrives, often because of the strong light action of car light, license plate is submerged under strong light, causes
License plate, which is difficult to be accurately positioned, to be arrived, and the discrimination of characters on license plate substantially reduces.
Summary of the invention
Identification is led the technical problems to be solved by the present invention are: providing one kind and strong light in camera views can be effectively suppressed
The strong Xanthophyll cycle method and device of the video camera based on histogram that body influences.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention are as follows: a kind of video camera based on histogram is strong
Xanthophyll cycle method, including step,
Shooting picture is pressed into grid dividing piecemeal;
It S2 is) original histogram statistical information by the statistics with histogram information preservation of current shooting picture;
S3 it) executes bright spot and differentiates that sub-process, bright block differentiate sub-process;
The bright spot differentiate sub-process comprising steps of
S311) judge whether pixel is bright spot in the statistics with histogram information of current shooting picture according to first threshold;
S312 bright spot quantity) is counted;
The bright block differentiate sub-process comprising steps of
S321) judge whether the block of current shooting picture is bright block according to second threshold;
S322 bright block quantity) is counted;
S4) compare bright spot quantity and third threshold value, bright block quantity and the 4th threshold value, if bright spot quantity is more than that third threshold value is same
When bright block quantity be more than that the 4th threshold value then continues step, if bright spot quantity be less than third threshold value simultaneously bright block quantity less than the 4th threshold
Value then goes to step S6, is equal to third threshold value if bright spot quantity and goes back to step S2 if bright block quantity is equal to the 4th threshold value simultaneously;
S5 the exposure value for) adjusting video camera, then goes back to step S3;
S6) the exposure value readjustment of video camera, then goes back to step S2.
Among the above, in the step S5, the exposure value of video camera is adjusted according to the first step-length, then goes back to step S3;Institute
The first step-length and the second step-length is stated to be become according to bright spot quantity and third threshold difference and bright block quantity and the 4th threshold difference dynamic
Change, if difference is bigger, the first step-length and the second step-length are bigger.
The invention further relates to a kind of strong Xanthophyll cycle method of video camera based on histogram, including step,
Shooting picture is pressed into grid dividing piecemeal;
It S2 is) original histogram statistical information by the statistics with histogram information preservation of current shooting picture;
S3 it) executes bright spot and differentiates that sub-process, bright block differentiate sub-process;
The bright spot differentiate sub-process comprising steps of
S311) judge whether pixel is bright spot in the statistics with histogram information of current shooting picture according to first threshold;
S312 bright spot quantity) is counted;
The bright block differentiate sub-process comprising steps of
S321) judge whether the block of current shooting picture is bright block according to second threshold;
S322 bright block quantity) is counted;
S4) compare bright spot quantity and third threshold value, bright block quantity and the 4th threshold value, if bright spot quantity is more than that third threshold value is same
When bright block quantity be more than that the 4th threshold value then continues step, if bright spot quantity be less than third threshold value simultaneously bright block quantity less than the 4th threshold
Value then goes to step S6, is equal to third threshold value if bright spot quantity and goes back to step S2 if bright block quantity is equal to the 4th threshold value simultaneously;
S5) switching video camera enters wide dynamic mode, then goes back to step S3;
S6) switching video camera enters general mode, then goes back to step S2.
Among the above, the third threshold value, the 4th threshold value include multiple selectable value;The strong Xanthophyll cycle of video camera based on histogram
Method further includes the steps that selecting third threshold value, the 4th threshold value from multiple selectable value.
Among the above, in the step S321, bright block judgement is carried out by one or more of mode:
1) judge in the statistics with histogram information of each block of current shooting picture whether is pixel according to first threshold
For bright spot, it is bright block that statistics bright spot number, which is more than the 5th threshold value,;
2) the statistics with histogram information of each block of current shooting picture is subjected to segmentation statistics according to BIN threshold value, obtained
To bright spot accounting, bright spot accounting is more than that the 6th threshold value is bright block;
3) count current shooting picture overall brightness mean value then calculate separately each block of current shooting picture with
The departure degree of overall brightness mean value, surpassing the 7th threshold value for departure degree is bright block.
Among the above, the bright block differentiates that sub-process specifically includes step:
S320) with shooting picture by the corresponding two-dimensional array of grid dividing piecemeal, initialization of two-dimensional array number is 0 for setting;
S321) judge whether the block of current shooting picture is bright block according to second threshold;
S322 bright block quantity) is counted;
Correspondence in two-dimensional array is judged as that bright block position is assigned a value of 1;
S323 the number that the adjacent bright block of each bright block is 1) is counted;
S324) if in two bit arrays 1 number be more than the 8th threshold value if reduce third threshold value, the 4th threshold value, otherwise increase
Third threshold value, the 4th threshold value.
Invention additionally provides a kind of strong Xanthophyll cycle devices of video camera based on histogram, including
Division module, for shooting picture to be pressed grid dividing piecemeal;
Current preserving module, for being original histogram statistics letter by the statistics with histogram information preservation of current shooting picture
Breath, then goes to discrimination module;
Discrimination module, including bright spot differentiate that submodule and bright block differentiate submodule, then go to comparison module;
The bright spot differentiates that submodule includes:
Bright spot judgement unit, pixel in the statistics with histogram information for judging current shooting picture according to first threshold
Whether it is bright spot, then goes to bright spot statistic unit;
Bright spot statistic unit, for counting bright spot quantity;
The bright block differentiates that submodule includes:
Bright block judgement unit judges whether the block of current shooting picture is bright block, then goes to bright block according to second threshold
Statistic unit;
Bright block statistic unit, for counting bright block quantity;
Comparison module, for comparing bright spot quantity and third threshold value, bright block quantity and the 4th threshold value, if bright spot quantity is more than
Bright block quantity is more than that the 4th threshold value then goes to adjustment module to third threshold value simultaneously, if bright spot quantity is less than third threshold value bright block simultaneously
Quantity then goes to callback module less than the 4th threshold value, if bright spot quantity is equal to third threshold value, bright block quantity is equal to the 4th threshold value simultaneously
Then go back to current preserving module;
It adjusts module and then goes back to discrimination module for adjusting the exposure value of video camera;
Callback module enters general mode for switching video camera, then goes back to current preserving module.
Among the above, in the step S5, the exposure value of video camera is adjusted according to the first step-length, then goes back to step S3;Institute
The first step-length and the second step-length is stated to be become according to bright spot quantity and third threshold difference and bright block quantity and the 4th threshold difference dynamic
Change, if difference is bigger, the first step-length and the second step-length are bigger.
The present invention provides a kind of strong Xanthophyll cycle device of the video camera based on histogram, including step again,
Division module, for shooting picture to be pressed grid dividing piecemeal;
Current preserving module, for being original histogram statistics letter by the statistics with histogram information preservation of current shooting picture
Breath, then goes to discrimination module;
Discrimination module, including bright spot differentiate that submodule and bright block differentiate submodule, then go to comparison module;
The bright spot differentiates that submodule includes:
Bright spot judgement unit, pixel in the statistics with histogram information for judging current shooting picture according to first threshold
Whether it is bright spot, then goes to bright spot statistic unit;
Bright spot statistic unit, for counting bright spot quantity;
The bright block differentiates that submodule includes:
Bright block judgement unit judges whether the block of current shooting picture is bright block, then goes to bright block according to second threshold
Statistic unit;
Bright block statistic unit, for counting bright block quantity;
Comparison module, for comparing bright spot quantity and third threshold value, bright block quantity and the 4th threshold value, if bright spot quantity is more than
Bright block quantity is more than that the 4th threshold value then goes to adjustment module to third threshold value simultaneously, if bright spot quantity is less than third threshold value bright block simultaneously
Quantity then goes to callback module less than the 4th threshold value, if bright spot quantity is equal to third threshold value, bright block quantity is equal to the 4th threshold value simultaneously
Then go back to current preserving module;
Module is adjusted, enters wide dynamic mode for switching video camera, then goes back to discrimination module;
Callback module enters general mode for switching video camera, then goes back to current preserving module.
Among the above, the bright block judgement unit specifically includes:
Array establishes unit, presses the corresponding two-dimensional array of grid dividing piecemeal, two-dimensional array with shooting picture for setting
Initializing number is 0, is then gone to;
Bright block judgement unit, for judging whether the block of current shooting picture is bright block, is then gone to according to second threshold
Bright block statistic unit;
Bright block statistic unit, for counting bright block quantity and correspondence in two-dimensional array being judged as that bright block position is assigned a value of
1, then go to array statistic unit;
Array statistic unit, the number for being 1 for counting the adjacent bright block of each bright block, then goes to threshold adjustment unit;
Threshold adjustment unit, for being more than that the 8th threshold value then reduces third threshold value, the 4th threshold when in two bit arrays 1 number
Otherwise value increases third threshold value, the 4th threshold value.
The beneficial effects of the present invention are: the statistical information based on histogram realizes the automatic knowledge to light strong in camera picture
Not and inhibit, can effectively inhibit the scenes application such as strong light of car light in video camera shooting process, makes other letters outside strong light
Breath, such as license plate clearly reveal.In addition, camera views can be detected automatically and are restored to normal under strong light Disappearance Scenarios
Scene substantially increases the accuracy rate for meeting candid photograph and the identification of picture concern information in strong light situation by chance, while not influencing again
The normal use of video camera.
Detailed description of the invention
Specific structure of the invention is described in detail with reference to the accompanying drawing
Fig. 1 is one flow chart of embodiment of the method for the present invention;
Fig. 2 is two flow chart of embodiment of the method for the present invention.
Specific embodiment
In order to describe the technical content, the structural feature, the achieved object and the effect of this invention in detail, below in conjunction with embodiment
And attached drawing is cooperated to be explained in detail.
The busier crossing in night crossing, especially traffic, when car light is opened, picture that cameras capture arrives
Face, license plate part exception overexposure, license plate is submerged in completely in the halation of car light, for video camera, can not be positioned completely
License plate.Mode 1 is mainly to inhibit vehicle lamp brightness and car light halation to reach by the exposure target value of control video camera
Purpose reveals license plate clearly, and the positioning candid photograph and the identification of characters on license plate of license plate are carried out convenient for video camera.Together
When vehicle be the state in a kind of movement, that is, car light ceaselessly can occur and disappear, so the case where car light disappears
Under, camera views will also automatically revert to the state before car light occurs.
Because of the diversity of practical application scene, statistics with histogram information of the design based on camera review is realized
The automatic suppression technology of the car light of two kinds of different modes.
Mode one: mainly utilizing the statistics with histogram information of camera review, by the exposure mesh for removing control video camera
Scale value, to achieve the purpose that inhibit car light.
Referring to Fig. 1, the present invention provides a kind of strong Xanthophyll cycle method of video camera based on histogram, including step,
Shooting picture is pressed into grid dividing piecemeal;
Preferably, entire picture can be divided into 255 fritters for the judgement of the subsequent bright block of quota.
It S2 is) original histogram statistical information by the statistics with histogram information preservation of current shooting picture;
S3 it) executes bright spot and differentiates that sub-process, bright block differentiate sub-process;
The bright spot differentiate sub-process comprising steps of
S311) judge whether pixel is bright spot in the statistics with histogram information of current shooting picture according to first threshold;
S312 bright spot quantity) is counted;
In a kind of mode, the judgement of bright spot can be based on 256 sections of statistics with histogram information, count in picture greater than a certain
The bright spot number of threshold value is judged as bright spot.
The bright block differentiate sub-process comprising steps of
S321) judge whether the block of current shooting picture is bright block according to second threshold;
S322 bright block quantity) is counted;
Light bright spot is to determine whether have the strong light of car light not accurate enough, because video camera will appear greatly when night
The noise of amount, noise can seriously affect the statistics of bright spot, so second can benefit other than using this feature of bright spot
Feature is exactly bright block, then by 255 blocks divided in example before scan round, count belong in this 255 blocks it is bright
The number of block.
S4) compare bright spot quantity and third threshold value, bright block quantity and the 4th threshold value, if bright spot quantity is more than that third threshold value is same
When bright block quantity be more than that the 4th threshold value then continues step, if bright spot quantity be less than third threshold value simultaneously bright block quantity less than the 4th threshold
Value then goes to step S6, is equal to third threshold value if bright spot quantity and goes back to step S2 if bright block quantity is equal to the 4th threshold value simultaneously;
Only when in picture bright block and bright spot all reached a certain threshold value when judge whether the block belongs to bright block, it is bright
Point, bright block reach threshold value and picture are just judged as strong laser field scape, to open subsequent strong Xanthophyll cycle.
S5 the exposure value for) adjusting video camera, then goes back to step S3;
After scene is judged as strong laser field scape, this step begins to carry out strong Xanthophyll cycle by adjusting camera exposure value.
S6) the exposure value readjustment of video camera, then goes back to step S2.
In conclusion the statistical information provided by the invention based on histogram to realize to light strong in camera picture oneself
It is dynamic to identify and inhibit, it can effectively inhibit the scenes application such as strong light of car light in video camera shooting process, make its outside strong light
His information, as license plate clearly reveals.In addition, the discovery that camera views can detect automatically is simultaneously under strong light Disappearance Scenarios
It is restored to normal scene, can be greatly improved the accurate of the candid photograph and identification for meeting the concern information of picture in strong light situation by chance
Rate, while not influencing the normal use of video camera again.
The technology of the present invention meets the inhibition of strong light situation by chance suitable for all kinds of video camera shooting process, especially suitable for camera shooting
Machine is shot under the strong light of vehicle car light, the identification to license plate.In addition, in order to more preferably carry out the candid photograph and identification of license plate, in car light
During strong Xanthophyll cycle, also by utilizing image enhancement technique, Lai Zengqiang license plate effect facilitates video camera to carry out characters on license plate
Identification, license plate image enhancing mainly using histogram equalization technology, can be very well to license plate portion using the technology
Divide and promoted, while being also able to suppress the car light halation of a part.
Mode one mainly realizes two kinds of functions, and first is exactly to be able to suppress car light when car light occurs, and keeps license plate aobvious
Expose, second is exactly when car light disappears, and picture can be returned to normal condition, and the inhibition strength of car light is also wanted
Can be according to how much automatic adjustments of car light, that is, when car light is fewer in picture, the inhibition of car light wants weak, and works as
When occurring multiple car lights in picture, the inhibition of car light is just eager to excel at this time, and car light inhibition strength can also basis
The difference of scene, the difference of client's personal preference, the autonomous inhibition strength for selecting car light.
When necessary, S1 can be increased before step S2) judge present filming scene for state on daytime or night state, Yu Baitian
State or night state are correspondingly arranged third threshold value, the 4th threshold value.
Increase this step purpose and inhibiting beginning initial stage, first has to distinguish the scene to daytime and night, because
On daytime, when sunlight is extremely strong, picture is captured from video camera, the identification of license plate is also not very high, so
Daytime and night will treat with a certain discrimination.The differentiation at daytime and night mainly utilizes the gain of video camera and the letter of dim spot and phaeodium
Current scene after gain, dim spot and phaeodium are more than certain certain range, is just determined as night shape to be judged by breath
State, day and night separate to be handled, and the processing method at daytime and night is roughly the same, only third threshold value, the 4th threshold value
Difference.
Embodiment 1
In the step S5, the exposure value of video camera is adjusted according to the first step-length, then goes back to step S3;The step S6
It is middle to be adjusted back according to the long exposure value for carrying out video camera of second step, then go back to step S2;First step-length and the second step-length root
According to bright spot quantity and third threshold difference and bright block quantity and the 4th threshold difference dynamic change, if difference is bigger, the first step
Length is bigger with the second step-length.
Current strong light path is learnt by bright spot quantity and third threshold difference and bright block quantity and the 4th threshold difference as a result,
Degree, and dynamic first step-length and the second step-length can then change the fast velocity modulation for reaching adaptation strong light environment according to strong light path degree dynamic
Whole purpose.
The present embodiment is set dynamically by the adjusting step to exposure target value, i.e., according to the strong light path degree of picture come
Different step-lengths is set, is also avoided that picture flashes in this way, by the deviation for calculating current bright spot and bright block value and threshold value
Degree, to set different adjusting steps, when departure degree is big, adjusting step is big, and car light inhibitory effect is fast, works as deviation
Degree is smaller, and both when picture relatively ideal scenario, adjusting step at this time is small, and design is in addition to comparing contract in this way
It closes except actual use, can also prevent picture from flashing concussion occur.
Embodiment 2
The third threshold value, the 4th threshold value include multiple selectable value;The strong Xanthophyll cycle method of video camera based on histogram is also
Include the steps that selecting third threshold value, the 4th threshold value from multiple selectable value.
The setting of threshold value is one of emphasis of the art of this patent, if threshold value setting is relatively simple, be can be used, but also can
There is the not strong feature of scene adaptability, i.e., it is possible that non-strong laser field scape is determined as strong laser field scape, and should be strong laser field scape, really
It is determined as non-strong laser field scape again.
In this embodiment scheme, in order to improve degree of flexibility, the present embodiment is different to set by introducing grade thought
Third threshold value, the 4th threshold value, that is to say, that the setting of third threshold value, the 4th threshold value all has dynamic, that is, allows according to difference
The different threshold value of scene settings, according to the different threshold value of different resolution settings.It can be coped with as a result, without camera application
Environment, such as the scene that has are possible to that street lamp is relatively more, and some scene street lamps are fewer, and third threshold value, the 4th threshold value include more
A selectable value constitutes multiple adjustment ranks, such as grade is divided into 16 grades in a kind of mode, and thus user can basis
The installation scenario of actual video camera voluntarily selects different grades, to set different third threshold values, the 4th threshold value.
Embodiment 3
In the step S321, bright block judgement is carried out by one or more of mode:
1) judge in the statistics with histogram information of each block of current shooting picture whether is pixel according to first threshold
For bright spot, it is bright block that statistics bright spot number, which is more than the 5th threshold value,;
2) the statistics with histogram information of each block of current shooting picture is subjected to segmentation statistics according to BIN threshold value, obtained
To bright spot accounting, bright spot accounting is more than that the 6th threshold value is bright block;
3) count current shooting picture overall brightness mean value then calculate separately each block of current shooting picture with
The departure degree of overall brightness mean value, surpassing the 7th threshold value for departure degree is bright block.
Embodiment 4
The bright block differentiates that sub-process specifically includes step:
S320) with shooting picture by the corresponding two-dimensional array of grid dividing piecemeal, initialization of two-dimensional array number is 0 for setting;
S321) judge whether the block of current shooting picture is bright block according to second threshold;
S322 bright block quantity) is counted;
Correspondence in two-dimensional array is judged as that bright block position is assigned a value of 1;
S323 the number that the adjacent bright block of each bright block is 1) is counted;
S324) if in two bit arrays 1 number be more than the 8th threshold value if reduce third threshold value, the 4th threshold value to increasing suppression
Otherwise processing procedure degree increases third threshold value, the 4th threshold value to reduce inhibition strength.
The technical solution of the present embodiment, precisely in order to supervisor's impression of matching people, designed a set of utilization connected domain is thought
Want that carrying out light inhibits adjustment.Its principle is adaptively to adjust bright block threshold value using the connected domain of bright block.From the master of people
Perception is by for, when the bright block dispersion and the difference of intensity of picture, the readability of license plate and the subjectivity of people
Feel all to be different, when bright block is more dispersed, the degree of strong Xanthophyll cycle is weaker, and works as the bright block of picture
When comparing concentration, the inhibition strength of car light is just eager to excel.So the judgment threshold of bright block should be with the dispersion of bright block
Different settings is carried out with intensity, when counting picture bright block, by setting a two dimension corresponding with 255 blocks
Array is 0 when array initializes, when judging the block for bright block, corresponding two-dimensional array position is assigned a value of
1, after 255 block scans are completed, by each piece of 8 neighborhoods of statistics, see that its 8 neighborhood intermediate value is 1 number, to go to sentence
The intensity of disconnected bright block, when intensity is relatively high, the inhibition level of car light at this time is accordingly strong, on the contrary
Want weaker.
In order to preferably adapt to different scenes, the present invention also provides strong light (the especially car lights of another mode
Qiang Guang) inhibit strategy, when video camera is mounted on cell doorway or underground parking when thering is car light to occur, by force
Light is mainly distributed on specific position in picture, similar to video camera scene outdoor in terms of interior, so the design passes through utilization
Wide dynamic function possessed by video camera itself is opened that is, when having car light to adapt to the scene of cell or underground parking
The wide dynamic function of video camera is opened, and when car light disappears, the wide dynamic of video camera is closed, because in normal scene such as
If fruit opens wide dynamic, entire picture has the phenomenon that getting confused, so to close wide dynamic function in normal scene.
Mode two: mainly dynamically being switched by control camera shooting machine width, to achieve the purpose that inhibit car light.
Referring to Fig. 2, the present invention also provides a kind of strong Xanthophyll cycle method of video camera based on histogram, including step,
Shooting picture is pressed into grid dividing piecemeal;
Preferably, entire picture can be divided into 255 fritters for the judgement of the subsequent bright block of quota.
It S2 is) original histogram statistical information by the statistics with histogram information preservation of current shooting picture;
S3 it) executes bright spot and differentiates that sub-process, bright block differentiate sub-process;
The bright spot differentiate sub-process comprising steps of
S311) judge whether pixel is bright spot in the statistics with histogram information of current shooting picture according to first threshold;
S312 bright spot quantity) is counted;
In a kind of mode, the judgement of bright spot can be based on 256 sections of statistics with histogram information, count in picture greater than a certain
The bright spot number of threshold value is judged as bright spot.
The bright block differentiate sub-process comprising steps of
S321) judge whether the block of current shooting picture is bright block according to second threshold;
S322 bright block quantity) is counted;
Light bright spot is to determine whether have the strong light of car light not accurate enough, because video camera will appear greatly when night
The noise of amount, noise can seriously affect the statistics of bright spot, so second can benefit other than using this feature of bright spot
Feature is exactly bright block, then by 255 blocks divided in example before scan round, count belong in this 255 blocks it is bright
The number of block.
S4) compare bright spot quantity and third threshold value, bright block quantity and the 4th threshold value, if bright spot quantity is more than that third threshold value is same
When bright block quantity be more than that the 4th threshold value then continues step, if bright spot quantity be less than third threshold value simultaneously bright block quantity less than the 4th threshold
Value then goes to step S6, is equal to third threshold value if bright spot quantity and goes back to step S2 if bright block quantity is equal to the 4th threshold value simultaneously;
Only when in picture bright block and bright spot all reached a certain threshold value when judge whether the block belongs to bright block, it is bright
Point, bright block reach threshold value and picture are just judged as strong laser field scape, to open subsequent strong Xanthophyll cycle.
S5) switching video camera enters wide dynamic mode, then goes back to step S3;
After scene is judged as strong laser field scape, this step begins to carry out strong Xanthophyll cycle by adjusting camera exposure value.
S6) switching video camera enters general mode, then goes back to step S2.
In conclusion the statistical information provided by the invention based on histogram to realize to light strong in camera picture oneself
It is dynamic to identify and inhibit, it can effectively inhibit the scenes application such as strong light of car light in video camera shooting process, make its outside strong light
His information, as license plate clearly reveals.In addition, the discovery that camera views can detect automatically is simultaneously under strong light Disappearance Scenarios
It is restored to normal scene, can be greatly improved the accurate of the candid photograph and identification for meeting the concern information of picture in strong light situation by chance
Rate, while not influencing the normal use of video camera again.
The technology of the present invention meets the inhibition of strong light situation by chance suitable for all kinds of video camera shooting process, especially suitable for camera shooting
Machine is shot under the strong light of vehicle car light, the identification to license plate.In addition, in order to more preferably carry out the candid photograph and identification of license plate, in car light
During strong Xanthophyll cycle, also by utilizing image enhancement technique, Lai Zengqiang license plate effect facilitates video camera to carry out characters on license plate
Identification, license plate image enhancing mainly using histogram equalization technology, can be very well to license plate portion using the technology
Divide and promoted, while being also able to suppress the car light halation of a part.
When necessary, S1 can be increased before step S2) judge present filming scene for state on daytime or night state, Yu Baitian
State or night state are correspondingly arranged third threshold value, the 4th threshold value.
Increase this step purpose and inhibiting beginning initial stage, first has to distinguish the scene to daytime and night, because
On daytime, when sunlight is extremely strong, picture is captured from video camera, the identification of license plate is also not very high, so
Daytime and night will treat with a certain discrimination.The differentiation at daytime and night mainly utilizes the gain of video camera and the letter of dim spot and phaeodium
Current scene after gain, dim spot and phaeodium are more than certain certain range, is just determined as night shape to be judged by breath
State, day and night separate to be handled, and the processing method at daytime and night is roughly the same, only third threshold value, the 4th threshold value
Difference.
Embodiment 5
The third threshold value, the 4th threshold value include multiple selectable value;The strong Xanthophyll cycle method of video camera based on histogram is also
Include the steps that selecting third threshold value, the 4th threshold value from multiple selectable value.
The setting of threshold value is one of emphasis of the art of this patent, if threshold value setting is relatively simple, be can be used, but also can
There is the not strong feature of scene adaptability, i.e., it is possible that non-strong laser field scape is determined as strong laser field scape, and should be strong laser field scape, really
It is determined as non-strong laser field scape again.
In this embodiment scheme, in order to improve degree of flexibility, the present embodiment is different to set by introducing grade thought
Third threshold value, the 4th threshold value, that is to say, that the setting of third threshold value, the 4th threshold value all has dynamic, that is, allows according to difference
The different threshold value of scene settings, according to the different threshold value of different resolution settings.It can be coped with as a result, without camera application
Environment, such as the scene that has are possible to that street lamp is relatively more, and some scene street lamps are fewer, and third threshold value, the 4th threshold value include more
A selectable value constitutes multiple adjustment ranks, such as grade is divided into 16 grades in a kind of mode, and thus user can basis
The installation scenario of actual video camera voluntarily selects different grades, to set different third threshold values, the 4th threshold value.
Embodiment 6
In the step S321, bright block judgement is carried out by one or more of mode:
1) judge in the statistics with histogram information of each block of current shooting picture whether is pixel according to first threshold
For bright spot, it is bright block that statistics bright spot number, which is more than the 5th threshold value,;
2) the statistics with histogram information of each block of current shooting picture is subjected to segmentation statistics according to BIN threshold value, obtained
To bright spot accounting, bright spot accounting is more than that the 6th threshold value is bright block;
3) count current shooting picture overall brightness mean value then calculate separately each block of current shooting picture with
The departure degree of overall brightness mean value, surpassing the 7th threshold value for departure degree is bright block.
Embodiment 7
The bright block differentiates that sub-process specifically includes step:
S320) with shooting picture by the corresponding two-dimensional array of grid dividing piecemeal, initialization of two-dimensional array number is 0 for setting;
S321) judge whether the block of current shooting picture is bright block according to second threshold;
S322 bright block quantity) is counted;
Correspondence in two-dimensional array is judged as that bright block position is assigned a value of 1;
S323 the number that the adjacent bright block of each bright block is 1) is counted;
S324) if in two bit arrays 1 number be more than the 8th threshold value if reduce third threshold value, the 4th threshold value to increasing suppression
Otherwise processing procedure degree increases third threshold value, the 4th threshold value to reduce inhibition strength.
The technical solution of the present embodiment, precisely in order to supervisor's impression of matching people, designed a set of utilization connected domain is thought
Want that carrying out light inhibits adjustment.Its principle is adaptively to adjust bright block threshold value using the connected domain of bright block.From the master of people
Perception is by for, when the bright block dispersion and the difference of intensity of picture, the readability of license plate and the subjectivity of people
Feel all to be different, when bright block is more dispersed, the degree of strong Xanthophyll cycle is weaker, and works as the bright block of picture
When comparing concentration, the inhibition strength of car light is just eager to excel.So the judgment threshold of bright block should be with the dispersion of bright block
Different settings is carried out with intensity, when counting picture bright block, by setting a two dimension corresponding with 255 blocks
Array is 0 when array initializes, when judging the block for bright block, corresponding two-dimensional array position is assigned a value of
1, after 255 block scans are completed, by each piece of 8 neighborhoods of statistics, see that its 8 neighborhood intermediate value is 1 number, to go to sentence
The intensity of disconnected bright block, when intensity is relatively high, the inhibition level of car light at this time is accordingly strong, on the contrary
Want weaker.
Mode one: mainly utilizing the statistics with histogram information of camera review, by the exposure mesh for removing control video camera
Scale value, to achieve the purpose that inhibit car light.
The present invention also provides a kind of strong Xanthophyll cycle devices of video camera based on histogram, including
Division module, for shooting picture to be pressed grid dividing piecemeal;
Preferably, entire picture can be divided into 255 fritters for the judgement of the subsequent bright block of quota.
Current preserving module, for being original histogram statistics letter by the statistics with histogram information preservation of current shooting picture
Breath, then goes to discrimination module;
Discrimination module, including bright spot differentiate that submodule and bright block differentiate submodule, then go to comparison module;
The bright spot differentiates that submodule includes:
Bright spot judgement unit, pixel in the statistics with histogram information for judging current shooting picture according to first threshold
Whether it is bright spot, then goes to bright spot statistic unit;
Bright spot statistic unit, for counting bright spot quantity;
In a kind of mode, the judgement of bright spot can be based on 256 sections of statistics with histogram information, count in picture greater than a certain
The bright spot number of threshold value is judged as bright spot.
The bright block differentiates that submodule includes:
Bright block judgement unit judges whether the block of current shooting picture is bright block, then goes to bright block according to second threshold
Statistic unit;
Bright block statistic unit, for counting bright block quantity;
Light bright spot is to determine whether have the strong light of car light not accurate enough, because video camera will appear greatly when night
The noise of amount, noise can seriously affect the statistics of bright spot, so second can benefit other than using this feature of bright spot
Feature is exactly bright block, then by 255 blocks divided in example before scan round, count belong in this 255 blocks it is bright
The number of block.
Comparison module, for comparing bright spot quantity and third threshold value, bright block quantity and the 4th threshold value, if bright spot quantity is more than
Bright block quantity is more than that the 4th threshold value then goes to adjustment module to third threshold value simultaneously, if bright spot quantity is less than third threshold value bright block simultaneously
Quantity then goes to callback module less than the 4th threshold value, if bright spot quantity is equal to third threshold value, bright block quantity is equal to the 4th threshold value simultaneously
Then go back to current preserving module;
Only when in picture bright block and bright spot all reached a certain threshold value when judge whether the block belongs to bright block, it is bright
Point, bright block reach threshold value and picture are just judged as strong laser field scape, to open subsequent strong Xanthophyll cycle.
It adjusts module and then goes back to discrimination module for adjusting the exposure value of video camera;
After scene is judged as strong laser field scape, this module begins to carry out strong Xanthophyll cycle by adjusting camera exposure value.
Callback module enters general mode for switching video camera, then goes back to current preserving module.
In conclusion the statistical information provided by the invention based on histogram to realize to light strong in camera picture oneself
It is dynamic to identify and inhibit, it can effectively inhibit the scenes application such as strong light of car light in video camera shooting process, make its outside strong light
His information, as license plate clearly reveals.In addition, the discovery that camera views can detect automatically is simultaneously under strong light Disappearance Scenarios
It is restored to normal scene, can be greatly improved the accurate of the candid photograph and identification for meeting the concern information of picture in strong light situation by chance
Rate, while not influencing the normal use of video camera again.
The technology of the present invention meets the inhibition of strong light situation by chance suitable for all kinds of video camera shooting process, especially suitable for camera shooting
Machine is shot under the strong light of vehicle car light, the identification to license plate.In addition, in order to more preferably carry out the candid photograph and identification of license plate, in car light
During strong Xanthophyll cycle, also by utilizing image enhancement technique, Lai Zengqiang license plate effect facilitates video camera to carry out characters on license plate
Identification, license plate image enhancing mainly using histogram equalization technology, can be very well to license plate portion using the technology
Divide and promoted, while being also able to suppress the car light halation of a part.
Mode one mainly realizes two kinds of functions, and first is exactly to be able to suppress car light when car light occurs, and keeps license plate aobvious
Expose, second is exactly when car light disappears, and picture can be returned to normal condition, and the inhibition strength of car light is also wanted
Can be according to how much automatic adjustments of car light, that is, when car light is fewer in picture, the inhibition of car light wants weak, and works as
When occurring multiple car lights in picture, the inhibition of car light is just eager to excel at this time, and car light inhibition strength can also basis
The difference of scene, the difference of client's personal preference, the autonomous inhibition strength for selecting car light.
When necessary, switching module day and night can be increased before current preserving module, for judging that present filming scene is
Daytime state or night state, Yu Baitian state or night state be correspondingly arranged third threshold value, the 4th threshold value.
Increase this step purpose and inhibiting beginning initial stage, first has to distinguish the scene to daytime and night, because
On daytime, when sunlight is extremely strong, picture is captured from video camera, the identification of license plate is also not very high, so
Daytime and night will treat with a certain discrimination.The differentiation at daytime and night mainly utilizes the gain of video camera and the letter of dim spot and phaeodium
Current scene after gain, dim spot and phaeodium are more than certain certain range, is just determined as night shape to be judged by breath
State, day and night separate to be handled, and the processing method at daytime and night is roughly the same, only third threshold value, the 4th threshold value
Difference.
Embodiment 8
In the adjustment module, the exposure value of video camera is adjusted according to the first step-length, then goes back to discrimination module;Described time
It is adjusted back in mode transfer block according to the long exposure value for carrying out video camera of second step, then goes back to current preserving module;First step-length
With the second step-length according to bright spot quantity and third threshold difference and bright block quantity and the 4th threshold difference dynamic change, if difference is got over
Greatly, then the first step-length and the second step-length are bigger.
Current strong light path is learnt by bright spot quantity and third threshold difference and bright block quantity and the 4th threshold difference as a result,
Degree, and dynamic first step-length and the second step-length can then change the fast velocity modulation for reaching adaptation strong light environment according to strong light path degree dynamic
Whole purpose.
The present embodiment is set dynamically by the adjusting step to exposure target value, i.e., according to the strong light path degree of picture come
Different step-lengths is set, is also avoided that picture flashes in this way, by the deviation for calculating current bright spot and bright block value and threshold value
Degree, to set different adjusting steps, when departure degree is big, adjusting step is big, and car light inhibitory effect is fast, works as deviation
Degree is smaller, and both when picture relatively ideal scenario, adjusting step at this time is small, and design is in addition to comparing contract in this way
It closes except actual use, can also prevent picture from flashing concussion occur.
Embodiment 9
The third threshold value, the 4th threshold value include multiple selectable value;The strong Xanthophyll cycle device of video camera based on histogram is also
Including threshold value selecting module, for selecting third threshold value, the 4th threshold value from multiple selectable value.
The setting of threshold value is one of emphasis of the art of this patent, if threshold value setting is relatively simple, be can be used, but also can
There is the not strong feature of scene adaptability, i.e., it is possible that non-strong laser field scape is determined as strong laser field scape, and should be strong laser field scape, really
It is determined as non-strong laser field scape again.
Embodiment 10
The bright block judgement unit, including following one or more subelements:
First bright block differentiates subelement, the histogram of each block for judging current shooting picture according to first threshold
Whether pixel is bright spot in statistical information, and it is bright block that statistics bright spot number, which is more than the 5th threshold value,;
Second bright block differentiate subelement, for by the statistics with histogram information of each block of current shooting picture according to
BIN threshold value carries out segmentation statistics, obtains bright spot accounting, and bright spot accounting is more than that the 6th threshold value is bright block;
Third bright block differentiates subelement, and the overall brightness mean value for counting current shooting picture then calculates separately currently
Each block of shooting picture and the departure degree of overall brightness mean value, surpassing the 7th threshold value for departure degree is bright block.
Embodiment 11
The bright block judgement unit specifically includes:
Array establishes unit, presses the corresponding two-dimensional array of grid dividing piecemeal, two-dimensional array with shooting picture for setting
Initializing number is 0, is then gone to;
Bright block judgement unit, for judging whether the block of current shooting picture is bright block, is then gone to according to second threshold
Bright block statistic unit;
Bright block statistic unit, for counting bright block quantity and correspondence in two-dimensional array being judged as that bright block position is assigned a value of
1, then go to array statistic unit;
Array statistic unit, the number for being 1 for counting the adjacent bright block of each bright block, then goes to threshold adjustment unit;
Threshold adjustment unit, for being more than that the 8th threshold value then reduces third threshold value, the 4th threshold when in two bit arrays 1 number
Otherwise value increases third threshold value, the 4th threshold value.
The technical solution of the present embodiment, precisely in order to supervisor's impression of matching people, designed a set of utilization connected domain is thought
Want that carrying out light inhibits adjustment.Its principle is adaptively to adjust bright block threshold value using the connected domain of bright block.From the master of people
Perception is by for, when the bright block dispersion and the difference of intensity of picture, the readability of license plate and the subjectivity of people
Feel all to be different, when bright block is more dispersed, the degree of strong Xanthophyll cycle is weaker, and works as the bright block of picture
When comparing concentration, the inhibition strength of car light is just eager to excel.So the judgment threshold of bright block should be with the dispersion of bright block
Different settings is carried out with intensity, when counting picture bright block, by setting a two dimension corresponding with 255 blocks
Array is 0 when array initializes, when judging the block for bright block, corresponding two-dimensional array position is assigned a value of
1, after 255 block scans are completed, by each piece of 8 neighborhoods of statistics, see that its 8 neighborhood intermediate value is 1 number, to go to sentence
The intensity of disconnected bright block, when intensity is relatively high, the inhibition level of car light at this time is accordingly strong, on the contrary
Want weaker.
In order to preferably adapt to different scenes, the present invention also provides strong light (the especially car lights of another mode
Qiang Guang) inhibit strategy, when video camera is mounted on cell doorway or underground parking when thering is car light to occur, by force
Light is mainly distributed on specific position in picture, similar to video camera scene outdoor in terms of interior, so the design passes through utilization
Wide dynamic function possessed by video camera itself is opened that is, when having car light to adapt to the scene of cell or underground parking
The wide dynamic function of video camera is opened, and when car light disappears, the wide dynamic of video camera is closed, because in normal scene such as
If fruit opens wide dynamic, entire picture has the phenomenon that getting confused, so to close wide dynamic function in normal scene.
Mode two: mainly dynamically being switched by control camera shooting machine width, to achieve the purpose that inhibit car light.
The present invention provides a kind of strong Xanthophyll cycle device of the video camera based on histogram, including step again,
Division module, for shooting picture to be pressed grid dividing piecemeal;
Preferably, entire picture can be divided into 255 fritters for the judgement of the subsequent bright block of quota.
Current preserving module, for being original histogram statistics letter by the statistics with histogram information preservation of current shooting picture
Breath, then goes to discrimination module;
Discrimination module, including bright spot differentiate that submodule and bright block differentiate submodule, then go to comparison module;
The bright spot differentiates that submodule includes:
Bright spot judgement unit, pixel in the statistics with histogram information for judging current shooting picture according to first threshold
Whether it is bright spot, then goes to bright spot statistic unit;
In a kind of mode, the judgement of bright spot can be based on 256 sections of statistics with histogram information, count in picture greater than a certain
The bright spot number of threshold value is judged as bright spot.
Bright spot statistic unit, for counting bright spot quantity;
The bright block differentiates that submodule includes:
Bright block judgement unit judges whether the block of current shooting picture is bright block, then goes to bright block according to second threshold
Statistic unit;
Bright block statistic unit, for counting bright block quantity;
Light bright spot is to determine whether have the strong light of car light not accurate enough, because video camera will appear greatly when night
The noise of amount, noise can seriously affect the statistics of bright spot, so second can benefit other than using this feature of bright spot
Feature is exactly bright block, then by 255 blocks divided in example before scan round, count belong in this 255 blocks it is bright
The number of block.
Comparison module, for comparing bright spot quantity and third threshold value, bright block quantity and the 4th threshold value, if bright spot quantity is more than
Bright block quantity is more than that the 4th threshold value then goes to adjustment module to third threshold value simultaneously, if bright spot quantity is less than third threshold value bright block simultaneously
Quantity then goes to callback module less than the 4th threshold value, if bright spot quantity is equal to third threshold value, bright block quantity is equal to the 4th threshold value simultaneously
Then go back to current preserving module;
Module is adjusted, enters wide dynamic mode for switching video camera, then goes back to discrimination module;
After scene is judged as strong laser field scape, this step begins to carry out strong Xanthophyll cycle by adjusting camera exposure value.
Callback module enters general mode for switching video camera, then goes back to current preserving module.
In conclusion the statistical information provided by the invention based on histogram to realize to light strong in camera picture oneself
It is dynamic to identify and inhibit, it can effectively inhibit the scenes application such as strong light of car light in video camera shooting process, make its outside strong light
His information, as license plate clearly reveals.In addition, the discovery that camera views can detect automatically is simultaneously under strong light Disappearance Scenarios
It is restored to normal scene, can be greatly improved the accurate of the candid photograph and identification for meeting the concern information of picture in strong light situation by chance
Rate, while not influencing the normal use of video camera again.
The technology of the present invention meets the inhibition of strong light situation by chance suitable for all kinds of video camera shooting process, especially suitable for camera shooting
Machine is shot under the strong light of vehicle car light, the identification to license plate.In addition, in order to more preferably carry out the candid photograph and identification of license plate, in car light
During strong Xanthophyll cycle, also by utilizing image enhancement technique, Lai Zengqiang license plate effect facilitates video camera to carry out characters on license plate
Identification, license plate image enhancing mainly using histogram equalization technology, can be very well to license plate portion using the technology
Divide and promoted, while being also able to suppress the car light halation of a part.
When necessary, switching module day and night can be increased before current preserving module, for judging that present filming scene is
Daytime state or night state, Yu Baitian state or night state be correspondingly arranged third threshold value, the 4th threshold value.
Increase this step purpose and inhibiting beginning initial stage, first has to distinguish the scene to daytime and night, because
On daytime, when sunlight is extremely strong, picture is captured from video camera, the identification of license plate is also not very high, so
Daytime and night will treat with a certain discrimination.The differentiation at daytime and night mainly utilizes the gain of video camera and the letter of dim spot and phaeodium
Current scene after gain, dim spot and phaeodium are more than certain certain range, is just determined as night shape to be judged by breath
State, day and night separate to be handled, and the processing method at daytime and night is roughly the same, only third threshold value, the 4th threshold value
Difference.
Embodiment 12
In the adjustment module, the exposure value of video camera is adjusted according to the first step-length, then goes back to discrimination module;Described time
It is adjusted back in mode transfer block according to the long exposure value for carrying out video camera of second step, then goes back to current preserving module;First step-length
With the second step-length according to bright spot quantity and third threshold difference and bright block quantity and the 4th threshold difference dynamic change, if difference is got over
Greatly, then the first step-length and the second step-length are bigger.
Current strong light path is learnt by bright spot quantity and third threshold difference and bright block quantity and the 4th threshold difference as a result,
Degree, and dynamic first step-length and the second step-length can then change the fast velocity modulation for reaching adaptation strong light environment according to strong light path degree dynamic
Whole purpose.
The present embodiment is set dynamically by the adjusting step to exposure target value, i.e., according to the strong light path degree of picture come
Different step-lengths is set, is also avoided that picture flashes in this way, by the deviation for calculating current bright spot and bright block value and threshold value
Degree, to set different adjusting steps, when departure degree is big, adjusting step is big, and car light inhibitory effect is fast, works as deviation
Degree is smaller, and both when picture relatively ideal scenario, adjusting step at this time is small, and design is in addition to comparing contract in this way
It closes except actual use, can also prevent picture from flashing concussion occur.
Embodiment 13
The third threshold value, the 4th threshold value include multiple selectable value;The strong Xanthophyll cycle device of video camera based on histogram is also
Including threshold value selecting module, for selecting third threshold value, the 4th threshold value from multiple selectable value.
The setting of threshold value is one of emphasis of the art of this patent, if threshold value setting is relatively simple, be can be used, but also can
There is the not strong feature of scene adaptability, i.e., it is possible that non-strong laser field scape is determined as strong laser field scape, and should be strong laser field scape, really
It is determined as non-strong laser field scape again.
Embodiment 14
The bright block judgement unit, including following one or more subelements:
First bright block differentiates subelement, the histogram of each block for judging current shooting picture according to first threshold
Whether pixel is bright spot in statistical information, and it is bright block that statistics bright spot number, which is more than the 5th threshold value,;
Second bright block differentiate subelement, for by the statistics with histogram information of each block of current shooting picture according to
BIN threshold value carries out segmentation statistics, obtains bright spot accounting, and bright spot accounting is more than that the 6th threshold value is bright block;
Third bright block differentiates subelement, and the overall brightness mean value for counting current shooting picture then calculates separately currently
Each block of shooting picture and the departure degree of overall brightness mean value, surpassing the 7th threshold value for departure degree is bright block.
Embodiment 15
The bright block judgement unit specifically includes:
Array establishes unit, presses the corresponding two-dimensional array of grid dividing piecemeal, two-dimensional array with shooting picture for setting
Initializing number is 0, is then gone to;
Bright block judgement unit, for judging whether the block of current shooting picture is bright block, is then gone to according to second threshold
Bright block statistic unit;
Bright block statistic unit, for counting bright block quantity and correspondence in two-dimensional array being judged as that bright block position is assigned a value of
1, then go to array statistic unit;
Array statistic unit, the number for being 1 for counting the adjacent bright block of each bright block, then goes to threshold adjustment unit;
Threshold adjustment unit, for being more than that the 8th threshold value then reduces third threshold value, the 4th threshold when in two bit arrays 1 number
Otherwise value increases third threshold value, the 4th threshold value.
The technical solution of the present embodiment, precisely in order to supervisor's impression of matching people, designed a set of utilization connected domain is thought
Want that carrying out light inhibits adjustment.Its principle is adaptively to adjust bright block threshold value using the connected domain of bright block.From the master of people
Perception is by for, when the bright block dispersion and the difference of intensity of picture, the readability of license plate and the subjectivity of people
Feel all to be different, when bright block is more dispersed, the degree of strong Xanthophyll cycle is weaker, and works as the bright block of picture
When comparing concentration, the inhibition strength of car light is just eager to excel.So the judgment threshold of bright block should be with the dispersion of bright block
Different settings is carried out with intensity, when counting picture bright block, by setting a two dimension corresponding with 255 blocks
Array is 0 when array initializes, when judging the block for bright block, corresponding two-dimensional array position is assigned a value of
1, after 255 block scans are completed, by each piece of 8 neighborhoods of statistics, see that its 8 neighborhood intermediate value is 1 number, to go to sentence
The intensity of disconnected bright block, when intensity is relatively high, the inhibition level of car light at this time is accordingly strong, on the contrary
Want weaker.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, such as in this patent
First, second ... only represents the differentiation of its title, does not represent their significance level and position and has what difference.Therefore, all
It is to be applied directly or indirectly in it using equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content
His relevant technical field, is included within the scope of the present invention.
Claims (10)
1. a kind of strong Xanthophyll cycle method of video camera based on histogram, it is characterised in that: including step,
Shooting picture is pressed into grid dividing piecemeal;
It S2 is) original histogram statistical information by the statistics with histogram information preservation of current shooting picture;
S3 it) executes bright spot and differentiates that sub-process, bright block differentiate sub-process;
The bright spot differentiate sub-process comprising steps of
S311) judge whether pixel is bright spot in the statistics with histogram information of current shooting picture according to first threshold;
S312 bright spot quantity) is counted;
The bright block differentiate sub-process comprising steps of
S321) judge whether the block of current shooting picture is bright block according to second threshold;
S322 bright block quantity) is counted;
S4) compare bright spot quantity and third threshold value, bright block quantity and the 4th threshold value, if bright spot quantity is more than that third threshold value is bright simultaneously
Number of blocks is more than that the 4th threshold value then continues step, if bright spot quantity is less than third threshold value while bright block quantity less than the 4th threshold value
Step S6 is gone to, is equal to third threshold value if bright spot quantity and goes back to step S2 if bright block quantity is equal to the 4th threshold value simultaneously;
S5 the exposure value for) adjusting video camera, then goes back to step S3;
S6) the exposure value readjustment of video camera, then goes back to step S2.
2. the strong Xanthophyll cycle method of video camera as described in claim 1 based on histogram, it is characterised in that: the step S5
In, the exposure value of video camera is adjusted according to the first step-length, then goes back to step S3;First step-length is with the second step-length according to bright
Point quantity and third threshold difference and bright block quantity and the 4th threshold difference dynamic change, if difference is bigger, the first step-length with
Second step-length is bigger.
3. a kind of strong Xanthophyll cycle method of video camera based on histogram, it is characterised in that: including step,
Shooting picture is pressed into grid dividing piecemeal;
It S2 is) original histogram statistical information by the statistics with histogram information preservation of current shooting picture;
S3 it) executes bright spot and differentiates that sub-process, bright block differentiate sub-process;
The bright spot differentiate sub-process comprising steps of
S311) judge whether pixel is bright spot in the statistics with histogram information of current shooting picture according to first threshold;
S312 bright spot quantity) is counted;
The bright block differentiate sub-process comprising steps of
S321) judge whether the block of current shooting picture is bright block according to second threshold;
S322 bright block quantity) is counted;
S4) compare bright spot quantity and third threshold value, bright block quantity and the 4th threshold value, if bright spot quantity is more than that third threshold value is bright simultaneously
Number of blocks is more than that the 4th threshold value then continues step, if bright spot quantity is less than third threshold value while bright block quantity less than the 4th threshold value
Step S6 is gone to, is equal to third threshold value if bright spot quantity and goes back to step S2 if bright block quantity is equal to the 4th threshold value simultaneously;
S5) switching video camera enters wide dynamic mode, then goes back to step S3;
S6) switching video camera enters general mode, then goes back to step S2.
4. the strong Xanthophyll cycle method of the video camera as claimed in any one of claims 1-3 based on histogram, it is characterised in that: institute
State third threshold value, the 4th threshold value includes multiple selectable value;The strong Xanthophyll cycle method of video camera based on histogram further includes from multiple
Selectable value selectes the step of third threshold value, four threshold values.
5. the strong Xanthophyll cycle method of the video camera as claimed in any one of claims 1-3 based on histogram, it is characterised in that: institute
It states in step S321, bright block judgement is carried out by one or more of mode:
1) judge whether pixel is bright in the statistics with histogram information of each block of current shooting picture according to first threshold
Point, it is bright block that statistics bright spot number, which is more than the 5th threshold value,;
2) the statistics with histogram information of each block of current shooting picture is subjected to segmentation statistics according to BIN threshold value, obtained bright
Point accounting, bright spot accounting is more than that the 6th threshold value is bright block;
3) the overall brightness mean value for counting current shooting picture then calculates separately each block and entirety of current shooting picture
The departure degree of luminance mean value, surpassing the 7th threshold value for departure degree is bright block.
6. the strong Xanthophyll cycle method of the video camera as claimed in any one of claims 1-3 based on histogram, it is characterised in that: institute
It states bright block and differentiates that sub-process specifically includes step:
S320) with shooting picture by the corresponding two-dimensional array of grid dividing piecemeal, initialization of two-dimensional array number is 0 for setting;
S321) judge whether the block of current shooting picture is bright block according to second threshold;
S322 bright block quantity) is counted;
Correspondence in two-dimensional array is judged as that bright block position is assigned a value of 1;
S323 the number that the adjacent bright block of each bright block is 1) is counted;
S324) if in two bit arrays 1 number be more than the 8th threshold value if reduce third threshold value, the 4th threshold value, otherwise increase third
Threshold value, the 4th threshold value.
7. a kind of strong Xanthophyll cycle device of video camera based on histogram, it is characterised in that: including
Division module, for shooting picture to be pressed grid dividing piecemeal;
Current preserving module, for being original histogram statistical information by the statistics with histogram information preservation of current shooting picture,
Then go to discrimination module;
Discrimination module, including bright spot differentiate that submodule and bright block differentiate submodule, then go to comparison module;
The bright spot differentiates that submodule includes:
Bright spot judgement unit, whether pixel in the statistics with histogram information for judging current shooting picture according to first threshold
For bright spot, bright spot statistic unit is then gone to;
Bright spot statistic unit, for counting bright spot quantity;
The bright block differentiates that submodule includes:
Bright block judgement unit judges whether the block of current shooting picture is bright block according to second threshold, then goes to bright block statistics
Unit;
Bright block statistic unit, for counting bright block quantity;
Comparison module, for comparing bright spot quantity and third threshold value, bright block quantity and the 4th threshold value, if bright spot quantity is more than third
Bright block quantity is more than that the 4th threshold value then goes to adjustment module to threshold value simultaneously, if bright spot quantity is less than third threshold value bright block quantity simultaneously
Callback module is then gone to less than the 4th threshold value, is equal to third threshold value if bright spot quantity and turns if bright block quantity is equal to the 4th threshold value simultaneously
Return current preserving module;
It adjusts module and then goes back to discrimination module for adjusting the exposure value of video camera;
Callback module enters general mode for switching video camera, then goes back to current preserving module.
8. the strong Xanthophyll cycle device of video camera as claimed in claim 7 based on histogram, it is characterised in that: the step S5
In, the exposure value of video camera is adjusted according to the first step-length, then goes back to step S3;First step-length is with the second step-length according to bright
Point quantity and third threshold difference and bright block quantity and the 4th threshold difference dynamic change, if difference is bigger, the first step-length with
Second step-length is bigger.
9. a kind of strong Xanthophyll cycle device of video camera based on histogram, it is characterised in that: including step,
Division module, for shooting picture to be pressed grid dividing piecemeal;
Current preserving module, for being original histogram statistical information by the statistics with histogram information preservation of current shooting picture,
Then go to discrimination module;
Discrimination module, including bright spot differentiate that submodule and bright block differentiate submodule, then go to comparison module;
The bright spot differentiates that submodule includes:
Bright spot judgement unit, whether pixel in the statistics with histogram information for judging current shooting picture according to first threshold
For bright spot, bright spot statistic unit is then gone to;
Bright spot statistic unit, for counting bright spot quantity;
The bright block differentiates that submodule includes:
Bright block judgement unit judges whether the block of current shooting picture is bright block according to second threshold, then goes to bright block statistics
Unit;
Bright block statistic unit, for counting bright block quantity;
Comparison module, for comparing bright spot quantity and third threshold value, bright block quantity and the 4th threshold value, if bright spot quantity is more than third
Bright block quantity is more than that the 4th threshold value then goes to adjustment module to threshold value simultaneously, if bright spot quantity is less than third threshold value bright block quantity simultaneously
Callback module is then gone to less than the 4th threshold value, is equal to third threshold value if bright spot quantity and turns if bright block quantity is equal to the 4th threshold value simultaneously
Return current preserving module;
Module is adjusted, enters wide dynamic mode for switching video camera, then goes back to discrimination module;
Callback module enters general mode for switching video camera, then goes back to current preserving module.
10. the strong Xanthophyll cycle device of the video camera based on histogram as described in claim 6-9 any one, it is characterised in that:
The bright block judgement unit specifically includes:
Array establishes unit, presses the corresponding two-dimensional array of grid dividing piecemeal with shooting picture for setting, two-dimensional array is initial
Changing number is 0, is then gone to;
Bright block judgement unit, for judging whether the block of current shooting picture is bright block, then goes to bright block according to second threshold
Statistic unit;
Bright block statistic unit, for counting bright block quantity and corresponding in two-dimensional array will be judged as that bright block position is assigned a value of 1, and
After go to array statistic unit;
Array statistic unit, the number for being 1 for counting the adjacent bright block of each bright block, then goes to threshold adjustment unit;
Threshold adjustment unit, for being more than that the 8th threshold value then reduces third threshold value, the 4th threshold value when in two bit arrays 1 number,
Otherwise increase third threshold value, the 4th threshold value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711332525.5A CN109922274B (en) | 2017-12-13 | 2017-12-13 | Camera highlight suppression method and device based on histogram |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711332525.5A CN109922274B (en) | 2017-12-13 | 2017-12-13 | Camera highlight suppression method and device based on histogram |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109922274A true CN109922274A (en) | 2019-06-21 |
CN109922274B CN109922274B (en) | 2021-05-14 |
Family
ID=66959305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711332525.5A Active CN109922274B (en) | 2017-12-13 | 2017-12-13 | Camera highlight suppression method and device based on histogram |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109922274B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113014912A (en) * | 2019-12-19 | 2021-06-22 | 合肥君正科技有限公司 | Method for detecting direct projection of strong light source of monitoring camera in vehicle |
CN117835053A (en) * | 2024-03-04 | 2024-04-05 | 杭州海康威视数字技术股份有限公司 | Switching method and device of wide dynamic mode |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11275454A (en) * | 1998-03-23 | 1999-10-08 | Ricoh Co Ltd | Digital video camera |
CN101127835A (en) * | 2007-09-27 | 2008-02-20 | 中兴通讯股份有限公司 | A pre-processing method and device for improving video image quality of digital video camera |
KR100839093B1 (en) * | 2007-01-31 | 2008-06-19 | 한국과학기술원 | Method and apparatus for measuring luminance and hue |
CN101340523A (en) * | 2008-08-14 | 2009-01-07 | 北京中星微电子有限公司 | Method and apparatus for exposure compensating digital image |
CN101783963A (en) * | 2010-02-10 | 2010-07-21 | 西安理工大学 | Nighttime image enhancing method with highlight inhibition |
CN102801918A (en) * | 2011-05-24 | 2012-11-28 | 佳能株式会社 | Image pickup apparatus and method of controlling the image pickup apparatus |
CN103458194A (en) * | 2013-08-28 | 2013-12-18 | 中国科学院深圳先进技术研究院 | Method and device for analyzing exposure degree of digital image and video and digital imaging system |
CN103780845A (en) * | 2014-02-28 | 2014-05-07 | 金三立视频科技(深圳)有限公司 | Method and device for strong light inhibition on basis of non-wide-dynamic function |
CN103826066A (en) * | 2014-02-26 | 2014-05-28 | 芯原微电子(上海)有限公司 | Automatic exposure adjusting method and system |
CN105554414A (en) * | 2015-12-15 | 2016-05-04 | 浙江宇视科技有限公司 | Strong light inhibition method and device |
-
2017
- 2017-12-13 CN CN201711332525.5A patent/CN109922274B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11275454A (en) * | 1998-03-23 | 1999-10-08 | Ricoh Co Ltd | Digital video camera |
KR100839093B1 (en) * | 2007-01-31 | 2008-06-19 | 한국과학기술원 | Method and apparatus for measuring luminance and hue |
CN101127835A (en) * | 2007-09-27 | 2008-02-20 | 中兴通讯股份有限公司 | A pre-processing method and device for improving video image quality of digital video camera |
CN101340523A (en) * | 2008-08-14 | 2009-01-07 | 北京中星微电子有限公司 | Method and apparatus for exposure compensating digital image |
CN101783963A (en) * | 2010-02-10 | 2010-07-21 | 西安理工大学 | Nighttime image enhancing method with highlight inhibition |
CN102801918A (en) * | 2011-05-24 | 2012-11-28 | 佳能株式会社 | Image pickup apparatus and method of controlling the image pickup apparatus |
CN103458194A (en) * | 2013-08-28 | 2013-12-18 | 中国科学院深圳先进技术研究院 | Method and device for analyzing exposure degree of digital image and video and digital imaging system |
CN103826066A (en) * | 2014-02-26 | 2014-05-28 | 芯原微电子(上海)有限公司 | Automatic exposure adjusting method and system |
CN103780845A (en) * | 2014-02-28 | 2014-05-07 | 金三立视频科技(深圳)有限公司 | Method and device for strong light inhibition on basis of non-wide-dynamic function |
CN105554414A (en) * | 2015-12-15 | 2016-05-04 | 浙江宇视科技有限公司 | Strong light inhibition method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113014912A (en) * | 2019-12-19 | 2021-06-22 | 合肥君正科技有限公司 | Method for detecting direct projection of strong light source of monitoring camera in vehicle |
CN117835053A (en) * | 2024-03-04 | 2024-04-05 | 杭州海康威视数字技术股份有限公司 | Switching method and device of wide dynamic mode |
CN117835053B (en) * | 2024-03-04 | 2024-06-04 | 杭州海康威视数字技术股份有限公司 | Switching method and device of wide dynamic mode |
Also Published As
Publication number | Publication date |
---|---|
CN109922274B (en) | 2021-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101247480B (en) | Automatic exposure method based on objective area in image | |
EP3701712B1 (en) | Adaptive infrared illumination for exposure correction | |
CN105827995B (en) | Automatic explosion method and system based on histogram | |
CN101834996B (en) | Luminous flux control method of high definition vehicle snapshot system | |
CN106791475A (en) | Exposure adjustment method and the vehicle mounted imaging apparatus being applicable | |
US7688359B2 (en) | Method for acquiring and controlling automatic exposure control parameters and imaging device | |
WO2021109620A1 (en) | Exposure parameter adjustment method and apparatus | |
CN109918993A (en) | A kind of control method based on human face region exposure | |
CN104869321B (en) | The method and apparatus for controlling camera exposure | |
CN105915811B (en) | The strong Xanthophyll cycle adaptive control method of image and device | |
CN104580925A (en) | Image brightness controlling method, device and camera | |
EP2709350B1 (en) | Configuration of image capturing settings | |
EP3852350B1 (en) | Automatic exposure method and apparatus for dual-light image, and dual-light image camera and machine storage medium | |
CN103927520A (en) | Method for detecting human face under backlighting environment | |
WO2021007690A1 (en) | Exposure control method, apparatus and movable platform | |
CN104253976A (en) | Surveillance camera filtering system and method | |
CN109922274A (en) | The strong Xanthophyll cycle method and device of video camera based on histogram | |
CN111131693A (en) | Face image enhancement method based on multi-exposure face detection | |
CN110113508B (en) | Intelligent gamma debugging method applied to video monitoring equipment | |
CN112911160A (en) | Image shooting method, device, equipment and storage medium | |
CN108391044A (en) | A kind of video camera and its mode switch control method, device | |
CN116017170A (en) | Imaging automatic exposure method and system for weak light scene with local strong light | |
US11568526B2 (en) | Dual sensor imaging system and imaging method thereof | |
CN114143420B (en) | Dual-sensor camera system and privacy protection camera method thereof | |
CN101430830A (en) | Imaging control method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |