Automatic light adjusting method and related camera
An automatic light adjusting method applied to a camera having at least one image capturing unit and a plurality of lighting units includes driving the plurality of lighting units to output maximal illumination, driving the at least one image capturing unit to acquire a first image by a first exposure duration, calculating a plurality of first light intensity of a plurality of regions on the first image, comparing the plurality of first light intensity with a predetermined range, and determining whether to set a first ratio about the plurality of first light intensity as a lighting limitation ratio of the plurality of lighting units according to a comparison result.
Latest VIVOTEK INC. Patents:
- IMAGE ANALYSIS MODEL ADJUSTMENT METHOD AND IMAGE ANALYSIS APPARATUS
- IMAGE ANALYSIS METHOD AND CAMERA APPARATUS
- IMAGE INFORMATION TRANSFORMATION METHOD, IMAGE INFORMATION OUTPUTTING METHOD, IMAGE ANALYSIS DEVICE
- IMAGE DEFECT IDENTIFICATION METHOD AND IMAGE ANALYSIS DEVICE
- Image calibration method and image calibration device
1. Field of the Invention
The present invention relates to a light adjusting method and a related camera, and more particularly, to an automatic light adjusting method and a related camera.
2. Description of the Prior Art
For all-weather environmental monitoring, the monitoring apparatus disposes a plurality of light sources around the camera to provide illumination light while surrounding brightness is insufficient, and the camera can capture the clear image accordingly. The plurality of light sources is respectively disposed on different orientation around the camera, and intervals between the light sources and the camera may be dissimilar from each other. The conventional monitoring apparatus synchronously increases or decreases light intensity of those light sources, and cannot adjust light intensity of each light source according to content of the monitoring image, which means the monitoring image may have inferior quality due to an over-bright scene and/or an over-dark scene probably formed on the monitoring image.
SUMMARY OF THE INVENTIONThe present invention provides an automatic light adjusting method and a related camera for solving above drawbacks.
According to the claimed invention, an automatic light adjusting method applied to a camera having a plurality of lighting units and at least one image capturing unit is disclosed. The automatic light adjusting method includes steps of driving the plurality of lighting units to output maximal light intensity, driving the at least one image capturing unit to capture a first image by a first exposure duration, computing a plurality of first light intensity of a plurality of regions on the first image, comparing the plurality of first light intensity with a predetermined range, and determining whether to set a first ratio about the plurality of first light intensity as a lighting limitation ratio of the plurality of lighting units according to a comparison result.
According to the claimed invention, a camera includes at least one image capturing unit, a plurality of lighting units and an operational processor. The at least one image capturing unit is adapted to capture an image. The plurality of lighting units is disposed around the at least one image capturing unit. The operational processor is electrically connected to the at least one image capturing unit and the plurality of lighting units. The operational processor is adapted to drive the plurality of lighting units to output maximal light intensity, to drive the at least one image capturing unit to capture a first image by a first exposure duration, to compute a plurality of first light intensity of a plurality of regions on the first image, to compare the plurality of first light intensity with a predetermined range, and to determine whether to set a first ratio about the plurality of first light intensity as a lighting limitation ratio of the plurality of lighting units according to a comparison result.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Please refer to
Please refer to
In this embodiment, the predetermined range can be ranged between a maximal light intensity value (such as the light intensity equal to 100 nits) and a minimal light intensity value (such as the light intensity equal to 0 nits) of the lighting unit 14. While the plurality of first light intensity is all within the predetermined range, step 310 is executed that the automatic light adjusting method sets the first ratio of those first light intensity as the lighting limitation ratio of the plurality of lighting units 14, and the first ratio is stored to be set as a plurality of adjusting parameters of the lighting units 14. It should be mentioned that the automatic light adjusting method utilizes normalize computation to transform the foresaid first ratio into the plurality of adjusting parameters of the lighting units 14, which means input current intensity of the lighting units 14 can be adjusted in accordance with the said ratio to control its light intensity. While at least one of the plurality of first light intensity is out of the predetermined range, as illustrated in the following table 1, a few of the lighting units 14 is over-exposure or over-darkness, and the automatic light adjusting method executes step 312 to not set the first ratio as the lighting limitation ratio of the plurality of lighting units 14.
Then, the automatic light adjusting method further executes steps 302˜308, the operational processor 16 acquires a second image by a second exposure duration, computes a plurality of second light intensity of the plurality of regions on the second image, and compares the plurality of second light intensity with the foresaid predetermined range. While the plurality of second light intensity is within the predetermined range, the automatic light adjusting method sets a second ratio about those second light intensity as the lighting limitation ratio of the plurality of lighting units 14; while at least one of the plurality of second light intensity is out of the predetermined range, the automatic light adjusting method executes steps 302˜308 to acquire a third image and a plurality of third light intensity by a third exposure duration. As illustrated in the above-mentioned table 1, the plurality of third light intensity is within the predetermined range, and the automatic light adjusting method can set a ratio about the said third light intensity as the lighting limitation ratio of the plurality of lighting units 14.
In this embodiment of the present invention, the automatic light adjusting method preferably decreases exposure duration while the images are successively captured, for example, the second exposure duration can be shorter than the first exposure duration, and the third exposure duration can be shorter than the second exposure duration, which depends on design demand. The (N+1)th exposure duration can be longer than the Nth exposure duration.
According to the above-mentioned flow chart, while step 312 is executed at a second time and the automatic light adjusting method does not set the second ratio as the lighting limitation ratio of the plurality of lighting units 14, the automatic light adjusting method not only can execute steps 302˜308 to acquire the third image and the plurality of third light intensity by the third exposure duration, but also can optionally compare the plurality of second light intensity with the plurality of first light intensity. While one of the plurality of first light intensity or the plurality of second light intensity corresponding to the plurality of regions Z1˜Z7 is out of the predetermined range, and another one of the plurality of first light intensity or the plurality of second light intensity is within the predetermined range, the automatic light adjusting method can respectively compute the first ratio and the second ratio, and then transform relation between the two ratios (such as arithmetic average of the first ratio and the second ratio) into the lighting limitation ratio by numerical computation.
As an example about the regions Z1˜Z3 during the second exposure duration and the third exposure duration illustrated in Table 1, ratio relation between the regions Z1˜Z3 of the image captured by the second exposure duration can be viewed as 1:0.2:1.1, and ratio relation between the regions Z1˜Z3 of the image captured by the third exposure duration can be viewed as 1:0.23:3.18. Light intensity of the regions Z1 and Z2 during the second exposure duration and the third exposure duration are within the predetermined range, light intensity of the region Z3 is out of the predetermined range during the second exposure duration and is within the predetermined range till the third exposure duration. Ratio of the region Z2 to the region Z1 is computed between 0.2˜0.23, ratio of the region Z3 to the region Z1 is computed as a value nearby ones acquired during the third exposure duration via numerical computation while light intensity of the second exposure duration exceeds the predetermined range; for example, the above-mentioned two ratio relation can be transformed as 1:0.2:3, which depends on actual demand.
Please refer to
Except the foresaid manner of directly eliminating the sub-region corresponding to the over-bright scene or the over-dark scene, the automatic light adjusting method of the present invention further can apply weighting parameter to the light intensity distribution outside the threshold range, as an example shown in
Please refer to
In conclusion, the camera of the present invention preferably can be the fisheye camera, and the automatic light adjusting method provides perfect full region illumination toward the fisheye camera. The automatic light adjusting method utilizes an exposure adjusting function of the camera to capture images by different exposure duration, and divides the image into several regions in accordance with distribution of the lighting units to compute the light intensity of each region. While the light intensity are within the predetermined range, such as information acquired by the third exposure duration illustrated in Table 1, ratio between the light intensity can be set as the lighting limitation ratio of the plurality of lighting units; while a few of the light intensity are out of the predetermined range, the automatic light adjusting method captures an image by distinct exposure duration and analyzes light intensity of each region on the newly-captured image, and the ratio corresponding to the light intensity can be set as the lighting limitation ratio of the plurality of lighting units until the light intensity of each region are all within the predetermined range.
The present invention can vary the exposure duration to capture the image with the regional light intensity conforming to the predetermined range; in addition, the present invention further can acquire the lighting limitation ratio by computing ratios that have a plurality of light intensity not completely conforming to the predetermined range during different exposure duration, and the ratio computation may be mean value calculation or any other way. The automatic light adjusting method of the present invention can eliminate and/or weight the specific sub-region to adjust the over-bright scene and the over-dark scene on the image, so as to accurately compute the desired light distribution of the regions on the monitoring image and to provide the preferred light distribution strategy for the camera and the related lighting units.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Claims
1. An automatic light adjusting method applied to a camera having a plurality of lighting units and at least one image capturing unit, the automatic light adjusting method comprising:
- driving the plurality of lighting units to output maximal light intensity;
- driving the at least one image capturing unit to capture a first image by a first exposure duration;
- computing a plurality of first light intensity of a plurality of regions on the first image;
- comparing the plurality of first light intensity with a predetermined range; and
- determining whether to set a first ratio about the plurality of first light intensity as a lighting limitation ratio of the plurality of lighting units according to a comparison result.
2. The automatic light adjusting method of claim 1, further comprising:
- dividing the first image into the plurality of regions according to an amount and distribution of the plurality of lighting units.
3. The automatic light adjusting method of claim 1, wherein the first ratio is set as the lighting limitation ratio of the plurality of lighting units while the plurality of first light intensity is within the predetermined range.
4. The automatic light adjusting method of claim 3, wherein while the first ratio is determined to be set as the lighting limitation ratio of the plurality of lighting units, the automatic light adjusting method further comprises:
- storing the first ratio to be set as a plurality of adjusting parameters of the plurality of lighting units.
5. The automatic light adjusting method of claim 4, wherein the first ratio is normalized to acquire the plurality of adjusting parameters.
6. The automatic light adjusting method of claim 1, wherein the first ratio is not set as the lighting limitation ratio of the plurality of lighting units while at least one of the plurality of first light intensity is out of the predetermined range.
7. The automatic light adjusting method of claim 6, wherein while the first ratio is determined not to be set as the lighting limitation ratio of the plurality of lighting units, the automatic light adjusting method further comprises:
- driving the at least one image capturing unit to capture a second image by a second exposure duration, wherein the second exposure duration is longer than or shorter than the first exposure duration;
- computing a plurality of second light intensity of the plurality of regions;
- comparing the plurality of second light intensity with the predetermined range; and
- determining whether to set a second ratio about the plurality of second light intensity as the lighting limitation ratio of the plurality of lighting units according to a comparison result.
8. The automatic light adjusting method of claim 7, wherein while the second ratio is determined not to be set as the lighting limitation ratio of the plurality of lighting units, the automatic light adjusting method further comprises:
- comparing the plurality of second light intensity with the plurality of first light intensity, wherein while one of the plurality of first light intensity or the plurality of second light intensity corresponding to the plurality of regions is out of the predetermined range and another one of the plurality of first light intensity or the plurality of second light intensity is within the predetermined range, the automatic light adjusting method utilizes the first ratio and the second ratio to acquire the lighting limitation ratio by numerical computation.
9. The automatic light adjusting method of claim 1, wherein while a step of computing the plurality of first light intensity of the plurality of regions on the first image is executed, the automatic light adjusting method further comprises:
- computing a plurality of light intensity distribution about the plurality of regions respectively; and
- utilizing the plurality of light intensity distribution within a threshold range to acquire a corresponding first light intensity by numerical computation.
10. The automatic light adjusting method of claim 1, wherein while a step of computing the plurality of first light intensity of the plurality of regions on the first image is executed, the automatic light adjusting method further comprises:
- computing a plurality of light intensity distribution about the plurality of regions respectively;
- weighting the plurality of light intensity distribution out of a threshold range; and
- utilizing the plurality of weighted light intensity distribution to acquire the plurality of first light intensity by numerical computation.
11. A camera comprising:
- at least one image capturing unit adapted to capture an image;
- a plurality of lighting units disposed around the at least one image capturing unit; and
- an operational processor electrically connected to the at least one image capturing unit and the plurality of lighting units, the operational processor being adapted to drive the plurality of lighting units to output maximal light intensity, to drive the at least one image capturing unit to capture a first image by a first exposure duration, to compute a plurality of first light intensity of a plurality of regions on the first image, to compare the plurality of first light intensity with a predetermined range, and to determine whether to set a first ratio about the plurality of first light intensity as a lighting limitation ratio of the plurality of lighting units according to a comparison result.
12. The camera of claim 11, wherein the operational processor is further adapted to divide the first image into the plurality of regions according to an amount and distribution of the plurality of lighting units.
13. The camera of claim 11, wherein the first ratio is set as the lighting limitation ratio of the plurality of lighting units while the plurality of first light intensity is within the predetermined range.
14. The camera of claim 13, wherein while the first ratio is determined to be set as the lighting limitation ratio of the plurality of lighting units, the operational processor is further adapted to store the first ratio to be set as a plurality of adjusting parameters of the plurality of lighting units.
15. The camera of claim 14, wherein the first ratio is normalized to acquire the plurality of adjusting parameters.
16. The camera of claim 11, wherein the first ratio is not set as the lighting limitation ratio of the plurality of lighting units while at least one of the plurality of first light intensity is out of the predetermined range.
17. The camera of claim 16, wherein while the first ratio is determined not to be set as the lighting limitation ratio of the plurality of lighting units, the operational processor is further adapted to drive the at least one image capturing unit to capture a second image by a second exposure duration, wherein the second exposure duration is longer than or shorter than the first exposure duration, to compute a plurality of second light intensity of the plurality of regions, to compare the plurality of second light intensity with the predetermined range, and to determine whether to set a second ratio about the plurality of second light intensity as the lighting limitation ratio of the plurality of lighting units according to a comparison result.
18. The camera of claim 17, wherein while the second ratio is determined not to be set as the lighting limitation ratio of the plurality of lighting units, the operational processor is further adapted to compare the plurality of second light intensity with the plurality of first light intensity, while one of the plurality of first light intensity or the plurality of second light intensity corresponding to the plurality of regions is out of the predetermined range and another one of the plurality of first light intensity or the plurality of second light intensity is within the predetermined range, the automatic light adjusting method utilizes the first ratio and the second ratio to acquire the lighting limitation ratio by numerical computation.
19. The camera of claim 11, wherein while a step of computing the plurality of first light intensity of the plurality of regions on the first image is executed, the operational processor is further adapted to compute light intensity distribution about each region from the plurality of regions, and to utilize the light intensity distribution within a threshold range to acquire a corresponding first light intensity by numerical computation.
20. The camera of claim 11, wherein while a step of computing the plurality of first light intensity of the plurality of regions on the first image is executed, the operational processor is further adapted to compute a plurality of light intensity distribution about the plurality of regions respectively, to weight the plurality of light intensity distribution out of a threshold range, and to utilize the plurality of weighted light intensity distribution to acquire the plurality of first light intensity by numerical computation.
8824881 | September 2, 2014 | Li |
20100277610 | November 4, 2010 | Kakkori |
20110280561 | November 17, 2011 | Geffert |
20130010161 | January 10, 2013 | Lu |
20130120636 | May 16, 2013 | Baer |
20140168459 | June 19, 2014 | Spielberg |
20160125611 | May 5, 2016 | Komatsu |
104092953 | October 2014 | CN |
200511897 | March 2005 | TW |
Type: Grant
Filed: Mar 1, 2017
Date of Patent: Dec 19, 2017
Patent Publication Number: 20170265275
Assignee: VIVOTEK INC. (New Taipei)
Inventor: Li-Shan Shih (New Taipei)
Primary Examiner: Tung X Le
Assistant Examiner: Raymond R Chai
Application Number: 15/445,992
International Classification: H05B 37/02 (20060101); H04N 5/235 (20060101);