Summary of the invention
In view of above-mentioned problem, it is an object of the invention to propose a kind of video camera with light filling function and control light
The method of line transmitting, uses the demand for measuring situation or environment, provides the light filling scheme of adaptability, improper to solve light filling
The problem of.Avoid the quality that institute's pick-up image is reduced when night or environment taking light bad.
The present invention provides a kind of methods of control light transmitting, comprising: receives an image data to obtain color stage point
Butut;Determine that the color stage in the color range distribution map is biased to index;And index is biased to the color range and searches comparison list, with choosing
Emit to selecting property one first light beam or one second light beam;Wherein first light beam and second light beam have different transmitting light
Shape.
In an embodiment of the method, when the color range is biased to index less than a threshold value, emit first light beam,
When the color range, which is biased to index, is not less than the threshold value, emit second light beam.
In an embodiment of the method, which is biased to index to have a peak-peak institute in the color range distribution map
Corresponding one first brightness value.
In an embodiment of the method, it is one second brightness value which, which is biased to index, wherein the color range distribution map
In the predetermined luminance value and second brightness value between curve distribution integral be a specific integrated value.
In an embodiment of the method, product of the specific integrated value relative to all brightness values in the color range distribution map
Dividing has a special ratios.
The present invention provides a kind of video cameras with light filling function, comprising: image sensing module, color range analysis module,
Light emitting module and control unit.Image sensing module is to receive an image data;Color range analysis module is to by the shadow
As data to obtain color stage distribution map;Light emitting module is to emit one first light beam or one second light beam;Control unit coupling
To the image sensing module and the color range analysis module, to determine that the color stage in the color range distribution map is biased to index, and
Index is biased to the color range and searches comparison list, selectively emits one first light beam or one second light to control the light emitting module
Beam.Wherein first light beam and second light beam have different transmitting light shape.
In an embodiment of described device, which may include that one first luminescence unit and one second are luminous single
Member, and first luminescence unit and second luminescence unit have different angle of scattering.
In conclusion the present invention is by the first luminescence unit and the second luminescence unit with different angle of scattering, and
It analyzes the deviation index of color range corresponding to the color range distribution map of image data and the starting table of comparisons corresponds to color range and is biased to index institute
The light filling scheme of offer uses the first light beam or the second light beam that selectively transmitting has different transmitting light shape, to reach
At the light filling mechanism of automation, motorization and hommization.
Below in conjunction with the drawings and specific embodiments, the present invention will be described in detail, but not as a limitation of the invention.
Specific embodiment
Describe detailed features and advantage of the invention in detail in embodiments below, content is enough to make any to be familiar with
Relevant art understands technology contents of the invention and implements accordingly, and according to content disclosed by this specification, claim
Range and attached drawing, it is any to be familiar with relevant art and be readily understood upon the relevant purpose of the present invention and advantage.Embodiment below
It is the viewpoint that present invention be described in more detail, but non-anyways to limit scope of the invention.
Fig. 1 is the functional-block diagram of a video camera 100 with light filling function of an embodiment according to the present invention, Fig. 2
It is the appearance diagram of a video camera 100 with light filling function of an embodiment according to the present invention.Fig. 3 is according to the present invention
An embodiment comparison list T1.It is following referring to Fig. 1, Fig. 2 and Fig. 3.
As shown in Figure 1, Figure 2 and Figure 3, the video camera 100 with light filling function includes image sensing module 110, color range point
Analyse module 120, light emitting module 130 and control module 140.Control module 140 is coupled to image sensing module 110, color range point
Analyse module 120 and light emitting module 130.Light emitting module 130 may include that multiple first luminescence units 210 and multiple second shine
Unit 220 configures the different location around image sensing module 110.First luminescence unit 210 and the second luminescence unit
220 are also equally coupled to control module 140.First luminescence unit 210 and the second luminescence unit 220 can be respectively provided with different
The angle of divergence mashed up can use, and the wide angle of divergence is suitable for closely, and the narrow angle of divergence is suitable for remote.For example, it first shines
The angle of divergence of unit 210 can be 30 degree, and the angle of divergence of the second luminescence unit 220 can be 70 degree, therefore is separately turned on or closes
Multiple first luminescence units 210 and multiple second luminescence units 220 that close on different location adjust its electric current, that is, can provide
The scheme of a variety of different light filling ranges and far and near light quantity.In another embodiment of the invention, there can be more different hairs
The luminescence unit for dissipating angle, is not limited herein.Video camera 100 with light filling function of the invention can be with light filling function
Video monitor, camera, video recorder or the other various electronic devices for being provided with image acquisition function of energy.First hair
It is either various types of luminous that light unit 210 and the second luminescence unit 220 can be infrared light emission device (IR LED)
Device, it is without restriction herein.Image sensing module 110 can be CCD detector, CMOS sensor either other it is various can
It is without restriction herein to the device of pick-up image.Color range analysis module 120 and control module 140 can be various types of
Type microprocessor or chip, it is also without restriction herein.
Image sensing module 110 can be used to receive image data, e.g. picture or film.When receiving image data
Afterwards, color range analysis module 120 can be used to by image data to obtain color range distribution map, and color range distribution map can be RGB distribution
Scheme (RGB histogram).After obtaining color range distribution map, control module 140 then can be used to determine in color range distribution map
Color range is biased to index, and with color range be biased to index search the table of comparisons (in other embodiments also can not by lookup table mode, but
Index is biased to according to color range to calculate using specific formulation), selectively to emit different light beam, wherein different light beam has
Different transmitting light shape.Color range, which is biased to index, can reflect the overall brightness information in image data, therefore can be in the table of comparisons
It records different degrees of color range and is biased to index and the light filling scheme corresponding to it, to consider the range and distance of light filling simultaneously
Light quantity.For example, when color range be biased to index reflect corresponding image data it is generally partially dark when, control module 140 is just
Controllable first luminescence unit 210 and the second luminescence unit 220 are to start stronger light filling;Index is biased to when color range to reflect
When corresponding image data is generally partially bright, control module 140 can control the first luminescence unit 210 and the second luminescence unit
220 either close the first luminescence unit 210 and the second luminescence unit 220 to start weaker light filling.
Fig. 4 A~Fig. 4 D is the schematic diagram according to the light filling mechanism of one embodiment of the invention.Wherein Fig. 4 A~Fig. 4 D is respectively
Show color range distribution map corresponding to different images data.The horizontal axis of color range distribution map is brightness X in Fig. 4 A~Fig. 4 D, and the longitudinal axis is
Quantity.0≤X≤255.It is following referring to Fig. 3 and Fig. 4 A~Fig. 4 D.
As shown in Figure 4 A, after color range analysis module 120 obtains color range distribution map D1, control module 140 can be by color range point
Brightness value x1 corresponding to peak-peak is set as color range deviation index in Butut D1, and then, control module 140 searches the table of comparisons
Color range is biased to the corresponding light filling scheme of index x1 in T1, since color range is biased to index x1 less than the first threshold value 25, color range
Light filling scheme corresponding to distribution map D1 is to open multiple first luminescence units 210 and multiple second luminescence units 220 of unlatching,
To be collectively formed and launch the first light beam of the first smooth shape.
As shown in Figure 4 B, after color range analysis module 120 obtains color range distribution map D2, control module 140 can be by color range point
Brightness value x2 corresponding to peak-peak is set as color range deviation index in Butut D2, and then, control module 140 searches the table of comparisons
Color range is biased to the corresponding light filling scheme of index x2 in T1, is biased to index x2 due to color range and is greater than the first threshold value 25 and less than second
Threshold value 50, therefore light filling scheme corresponding to color range distribution map D2 is to open multiple first luminescence units 210 and close more
A second luminescence unit 220, to be collectively formed and launch the second light beam of the second smooth shape.
As shown in Figure 4 C, after color range analysis module 120 obtains color range distribution map D3, control module 140 can be by color range point
Brightness value x3 corresponding to peak-peak is set as color range deviation index in Butut D3, and then, control module 140 searches the table of comparisons
Color range is biased to the corresponding light filling scheme of index x3 in T1, is biased to index x3 due to color range and is greater than the second threshold value 50 and less than third
Threshold value 75, therefore light filling scheme corresponding to color range distribution map D3 is to close multiple first luminescence units 210 and open more
A second luminescence unit 220, to be collectively formed and launch the third light beam of third light shape.
As shown in Figure 4 D, after color range analysis module 120 obtains color range distribution map D4, control module 140 can be by color range point
Brightness value x4 corresponding to peak-peak is set as color range deviation index in Butut D4, and then, control module 140 searches the table of comparisons
Color range is biased to the corresponding light filling scheme of index x4 in T1, is biased to index x4 due to color range and is greater than third threshold value 75, color range
Light filling scheme corresponding to distribution map D2 is to close multiple first luminescence units 210 and multiple second luminescence units 220 of closing.
Among the above, the first smooth shape, the second smooth shape and third light shape are different light shape.In addition, the first threshold value, the second threshold value with
And third threshold value can be changed empirically, it is without restriction herein.
Fig. 5 is comparison list T2 according to another embodiment of the present invention.Fig. 6 A~Fig. 6 D is according to the present invention another
The schematic diagram of the light filling mechanism of embodiment.Wherein Fig. 6 A~Fig. 6 D respectively shows that color range corresponding to different images data is distributed
Figure.The horizontal axis of color range distribution map is brightness X in Fig. 6 A~Fig. 6 D, and the longitudinal axis is quantity.0≤X≤255.It is following referring to Fig. 5
And Fig. 6 A~Fig. 6 D.
As shown in Figure 6A, after color range analysis module 120 obtains color range distribution map D5, control module 140 can correspond to a spy
Constant volume score value (e.g. 3,000,000) looks for out the position of brightness value x5, to meet the slave minimum brightness in color range distribution map D5
This brightness value x5 and is set as color range and is biased to by value 0 to the integral specific integrated value thus of the curve distribution between brightness value x5
Index, then, control module 140 search color range in table of comparisons T2 and are biased to the corresponding light filling scheme of index x5, since color range is biased to
Index x5 is less than the 4th threshold value 40, therefore light filling scheme corresponding to color range distribution map D5 is to open multiple first luminescence units
210 and multiple second luminescence units 220 are opened, to be collectively formed and launch the 4th light beam of the 4th smooth shape.In the present invention
Another embodiment in, control module 140 also can be calculated and be found, with the slave minimum brightness value 0 in color range distribution map D5
The integral for the curve distribution between x5 for being twice to brightness value meets this specific integrated value, then this brightness value x5 is set as color
Rank is biased to index, takes better suited light filling scheme to the lower region of brightness whereby.However, can have to the enlargement ratio of x5
A variety of different variations, it is without restriction herein.
As shown in Figure 6B, after color range analysis module 120 obtains color range distribution map D6, control module 140 can correspond to specific
Integrated value looks for out the position of brightness value x6, with meet the slave minimum brightness value 0 in color range distribution map D6 to brightness value x6 it
Between curve distribution integral specific integrated value thus, and this brightness value x6 is set as color range and is biased to index, then, control mould
Block 140 searches color range in table of comparisons T2 and is biased to the corresponding light filling scheme of index x6, is biased to index x6 due to color range and is greater than the 4th
Threshold value 40 and less than the 5th threshold value 60, thus light filling scheme corresponding to color range distribution map D6 be open multiple first shine it is single
Member 210 and multiple second luminescence units 220 of closing, to be collectively formed and launch the 5th light beam of the 5th smooth shape.
As shown in Figure 6 C, after color range analysis module 120 obtains color range distribution map D7, control module 140 can correspond to specific
Integrated value looks for out the position of brightness value x7, with meet the slave minimum brightness value 0 in color range distribution map D7 to brightness value x7 it
Between curve distribution integral specific integrated value thus, and this brightness value x7 is set as color range and is biased to index, then, control mould
Block 140 searches color range in table of comparisons T2 and is biased to the corresponding light filling scheme of index x7, is biased to index x7 due to color range and is greater than the 5th
Threshold value 60 and less than the 6th threshold value 80, thus light filling scheme corresponding to color range distribution map D7 be close multiple first shine it is single
Member 210 and multiple second luminescence units 220 of unlatching, to be collectively formed and launch the 6th light beam of the 6th smooth shape.
As shown in Figure 6 D, after color range analysis module 120 obtains color range distribution map D8, control module 140 can correspond to specific
Integrated value looks for out the position of brightness value x8, with meet the slave minimum brightness value 0 in color range distribution map D8 to brightness value x8 it
Between curve distribution integral specific integrated value thus, and this brightness value x8 is set as color range and is biased to index, then, control mould
Block 140 searches color range in table of comparisons T2 and is biased to the corresponding light filling scheme of index x8, is biased to index x8 due to color range and is greater than the 6th
Threshold value 80, therefore light filling scheme corresponding to color range distribution map D8 is to close multiple first luminescence units 210 and close multiple
Second luminescence unit 220.Among the above, the 4th smooth shape, the 5th smooth shape and the 6th smooth shape are different light shape.In addition, the 4th
Threshold value, the 5th threshold value and the 6th threshold value can be changed empirically, without restriction herein.
In an embodiment of the present invention, this specific integrated value can have relative to the integral of all brightness values in color range distribution map
There are a special ratios.For example, when total pixel of image data is 8,000,000, then can give specific integrated value is 3,000,000,
Specific integrated value is set to correspond to total pixel with a special ratios 3/8.However specific integrated value and special ratios can be according to warps
It tests and changes, it is without restriction herein.
Fig. 7 is comparison list T3 according to another embodiment of the present invention.In light filling scheme in T3, it can correspond to this
The video camera with light filling function of another embodiment of invention, this video camera is in addition to the first luminescence unit 210 and the
Two luminescence units 220, with more the first luminescence unit 210 of combination and the second luminescence unit 220 in the luminous point in same position.
Whereby, the embodiment compared to Fig. 5 is biased in light filling scheme of the index less than the 4th threshold value 40 in color range, can be more combined with
Different light beams.Other technical details are as described above, details are not described herein.
In still another embodiment of the invention, when acquisition color range distribution map and find out bright corresponding to wherein peak-peak
After angle value, control module 140 can also calculate the curve distribution between brightness value corresponding to minimum brightness value 0 to peak-peak
Integral, and this integral result is set as color range and is biased to index, it is right in the table of comparisons to search to use corresponding this color range deviation index
The light filling scheme answered.In addition, when control module 140 find peak-peak corresponding to brightness value be lower than a determined threshold when, can be another
Row calculates the integral of the curve distribution between " twice of brightness value of minimum brightness value 0 to brightness value corresponding to peak-peak ",
It uses and better suited light filling scheme is taken to the lower region of brightness.
Fig. 8 is the flow chart of the method for the control light transmitting of an embodiment according to the present invention.As shown in figure 8, control
The step of method of light transmitting includes S701~S703.Following step can be compareed to FIG. 1 to FIG. 6 and Fig. 8.Portion of techniques
Details is in upper detailed description, and details are not described herein.
In step s 701, image sensing module 110 receives image data and is obtained with analyzing by color range analysis module 120
Obtain color range distribution map.
In step S702, control unit 140 determines that the color range in color range distribution map is biased to index.
In step S703, control unit 140 is biased to index with color range and searches table of comparisons T1 either T2, with selectively
Emit the first light beam or the second light beam.Wherein the first light beam and the second light beam have different transmitting light shape.In other embodiments
In also can not be biased to index according to color range and calculate using specific mathematical formula selectively emit the by lookup table mode
The standard of one light beam or the second light beam.
In conclusion the present invention analyzes the color range distribution map of image data first, and by will in color range distribution map it is maximum
First brightness value corresponding to peak value is set as color range and is biased to index, or the second brightness value is set as color range deviation and is referred to
Mark, so that the integral of slave minimum brightness value to the curve distribution between the second brightness value in color range distribution map is specific integral
Value corresponds to light filling scheme provided by color range deviation index to start the table of comparisons whereby, to be switched on or off individually distinct locations
On multiple the first luminescence units and the second luminescence unit with different angle of scattering, selectively to emit with different
Transmitting light shape the first light beam or the second light beam, to reach the light filling mechanism of automation, motorization and hommization.
Certainly, the present invention can also have other various embodiments, without deviating from the spirit and substance of the present invention, ripe
It knows those skilled in the art and makes various corresponding changes and modifications, but these corresponding changes and change in accordance with the present invention
Shape all should fall within the scope of protection of the appended claims of the present invention.