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.

BACKGROUND OF THE INVENTION

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 INVENTION

The 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.

DETAILED DESCRIPTION

Please refer toFIG. 1andFIG. 2.FIG. 1is a diagram of a camera10according to an embodiment of the present invention.FIG. 2is a functional block diagram of the camera10according to the embodiment of the present invention. The camera10includes at least one image capturing unit12, a plurality of lighting units14and an operational processor16. The plurality of lighting units14is disposed around the image capturing unit12to provide illumination, and the image capturing unit12can capture a clear image about a monitoring region. The operational processor16is electrically connected to the image capturing unit12and the plurality of lighting units14. The operational processor16can execute an automatic light adjusting method of adjusting light intensity of the plurality of lighting units14respectively located at different position, so that these lighting units14can provide preferred light distribution efficacy to the image capturing unit12for preventing the image from over-brightness or over-darkness.

Please refer toFIG. 3andFIG. 4.FIG. 3is a flow chart of the automatic light adjusting method according to the embodiment of the present invention.FIG. 4is a diagram of the camera10and the related captured image according to the embodiment of the present invention. The automatic light adjusting method illustrated inFIG. 3is suitable for the camera10shown inFIG. 1andFIG. 2. First, step300and step302are executed that the operational processor16drives the plurality of lighting units14to output maximal light intensity, and drives the image capturing unit12to capture a corresponding image by a specific exposure duration (in an initial mode, the first image I1is captured by the first exposure duration). Then, step304is executed that the operational processor16computes a plurality of corresponding light intensity (such like the plurality of first light intensity) about a plurality of regions Z1˜Z7on the corresponding image (such like the first image I1). Dimensions and arrangement of the plurality of regions Z1˜Z7on the first image I1are designed according to an amount and distribution of the plurality of lighting units14surrounding the image capturing unit12, as shown inFIG. 4, and an actual application can be varied accordingly. Further, step306and step308are executed that the operational processor16compares the plurality of first light intensity with a predetermined range, and determines whether to set a first ratio about the plurality of first light intensity as a lighting limitation ratio of the plurality of lighting units14.

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 unit14. While the plurality of first light intensity is all within the predetermined range, step310is 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 units14, and the first ratio is stored to be set as a plurality of adjusting parameters of the lighting units14. 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 units14, which means input current intensity of the lighting units14can 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 units14is over-exposure or over-darkness, and the automatic light adjusting method executes step312to not set the first ratio as the lighting limitation ratio of the plurality of lighting units14.

Then, the automatic light adjusting method further executes steps302˜308, the operational processor16acquires 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 units14; while at least one of the plurality of second light intensity is out of the predetermined range, the automatic light adjusting method executes steps302˜308to 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 units14.

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 step312is 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 units14, the automatic light adjusting method not only can execute steps302˜308to 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˜Z7is 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˜Z3during the second exposure duration and the third exposure duration illustrated in Table 1, ratio relation between the regions Z1˜Z3of the image captured by the second exposure duration can be viewed as 1:0.2:1.1, and ratio relation between the regions Z1˜Z3of the image captured by the third exposure duration can be viewed as 1:0.23:3.18. Light intensity of the regions Z1and Z2during the second exposure duration and the third exposure duration are within the predetermined range, light intensity of the region Z3is 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 Z2to the region Z1is computed between 0.2˜0.23, ratio of the region Z3to the region Z1is 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 toFIG. 5.FIG. 5is a diagram of the regions divided on the image captured by the camera10according to the embodiment of the present invention. For preventing computation accuracy of the lighting limitation ratio from being affected by the bright scene or dark scene on the image captured by the image capturing unit12, the automatic light adjusting method of the present invention can compute light intensity distribution about each region from the plurality of regions Z1˜Z7before computing light intensity of the each region on the image; as an example of the region Z3shown inFIG. 5, the light intensity distribution of the region Z3can be divided into four sub-regions R1˜R4(an amount of the sub-region is not limited to the said application). Then, the automatic light adjusting method can eliminate image blocks corresponding to the over-bright scene or the over-dark scene from the light intensity histogram or the related sub-regions in accordance with the predetermined threshold range, and only the sub-region within the threshold range is processed by numerical computation. For example, as the sub-region R1corresponds to the over-bright scene (which can be an illumination device or a light source on the image) or the over-dark scene (which can be a shadow on the image), the automatic light adjusting method can utilize the sub-regions R2˜R4to compute the light intensity of the region Z3, so as to acquire the light intensity and the related ratio relation about the plurality of regions.

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 inFIG. 5, the automatic light adjusting method can apply the lower transformation weighting to the sub-region R1while the sub-region R1corresponds to the over-bright scene, and automatic light adjusting method further can apply the greater transformation weighting to the sub-region R1while the sub-region R1corresponds to the over-dark scene. That is to say, the automatic light adjusting method can transform the sub-region (the light intensity distribution) outside the threshold range by weighting, and then utilize a value of the weighted light intensity distribution (such as the sub-region R1) and values of the non-weighted light intensity distribution (such as the sub-regions R2˜R4) to compute the light intensity and the related ratio about of the plurality of regions.

Please refer toFIG. 6.FIG. 6is a diagram of a camera10′ according to another embodiment of the present invention. In the other possible embodiments, the camera10′ not only has the lighting units14and the operational processor16, but also can include a plurality of image capturing units12. The plurality of image capturing units12respectively faces toward different view ranges, and an amount and sizes of view angle of the image capturing unit12are varied according to user's actual demand. For instance, when the view angle of the image capturing unit12is equal to 90 degrees, the camera10′ may have four image capturing units12pointing toward different orientation to acquire the panorama image; when the view angle of the image capturing unit12is equal to 180 degrees, the camera10′ can have two image capturing units12pointing toward different orientation. While the images captured by the plurality of image capturing units12are stitched to generate the panorama image by the camera10′, the automatic light adjusting procedure is applied to the panorama image accordingly. In the present invention, the lighting units14around the plurality of image capturing units12correspond to the region Z1on the image, and the other lighting units14respectively correspond to the regions Z2˜Z7according to its location. The following automatic light adjusting procedure is similar to the embodiment mentioned as above, and a detailed description is omitted herein for simplicity.

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.