System and method of estimating ambient light
11503217 · 2022-11-15
Assignee
Inventors
Cpc classification
G06T7/80
PHYSICS
G06V10/60
PHYSICS
H04N23/74
ELECTRICITY
G06V10/25
PHYSICS
International classification
G06V10/25
PHYSICS
G06V10/60
PHYSICS
Abstract
A system of estimating ambient light includes an image sensor that captures an image; a region of interest (ROI) selector that determines at least one ROI on the image; an occupancy detector that determines existence status of an object disposed on the at least one ROI; and an ambient light estimator that estimates illumination of ambient light of the at least one ROI according to luminance of the at least one ROI on the image.
Claims
1. A system of estimating ambient light, comprising: an image sensor that captures an image; a region of interest (ROI) selector that determines at least one ROI on the image; an occupancy detector that determines existence status of an object disposed on the at least one ROI; and an ambient light estimator that estimates illumination of ambient light of the at least one ROI according to luminance of the at least one ROI on the image; wherein the occupancy detector comprises a status detector that determines the existence status of the ROI when motion of the object is detected.
2. The system of claim 1, wherein illumination of ambient light irradiating the object is a function of relative luminance of the image, exposure time and gain of the image sensor and reflectance of the ROI with or without the object, and is expressed as follows:
ambient light=Kx(relative luminance)/((exposure time)×(gain)×(reflectance)) where K is a proportionality constant.
3. The system of claim 2, wherein the occupancy detector comprises: a reflectance estimator that estimates the reflectance of the ROI with the object according to the following relationship provided that the ambient light, the exposure time and the gain of the image sensor are kept the same while capturing the image:
(relative luminance/reflectance) without object=(relative luminance/reflectance) with object.
4. The system of claim 2, further comprising: a light meter that measures the illumination of the ambient light; and a calibration device that receives the image without the object, according to which the proportionality constant K is determined according to the relative luminance of the image, the exposure time and the gain of the image sensor and the reflectance of the object, or (K/reflectance) is determined according to the relative luminance of the image, the exposure time and the gain of the image sensor.
5. The system of claim 1, wherein the occupancy detector comprises: a motion detector that detects motion of the object on the ROI.
6. The system of claim 5, wherein the motion detector detects motion of the object according to a difference between a current image and a preceding image captured by the image sensor.
7. The system of claim 5, wherein the status detector determines the existence status of the ROI when triggered by the motion detector that detects the motion of the object.
8. The system of claim 1, wherein the image sensor comprises a visible-light image sensor.
9. The system of claim 1, further comprising: a light source disposed above the ROI and adjusted according to the estimated illumination of ambient light.
10. The system of claim 1, wherein a specular reflection area having luminance value greater than a predetermined threshold is excluded by the ROI selector while estimating the ambient light.
11. A method of estimating ambient light, comprising: (a) capturing an image by an image sensor; (b) determining at least one region of interest (ROI) on the image; (c) determining existence status of an object disposed on the at least one ROI; and (d) estimating illumination of ambient light of the at least one ROI according to luminance of the at least one ROI on the image; wherein the step (c) comprises a step of determining the existence status of the ROI when motion of the object is detected.
12. The method of claim 11, wherein illumination of the ambient light irradiating the object is a function of relative luminance of the image, exposure time and gain of the image sensor and reflectance of the ROI with or without the object, and is expressed as follows:
ambient light=Kx(relative luminance)/((exposure time)×(gain)×(reflectance)) where K is a proportionality constant.
13. The method of claim 12, wherein the step (c) comprises: estimating the reflectance of the ROI with the object according to the following relationship provided that the ambient light, the exposure time and the gain of the image sensor are kept the same while capturing the image:
(relative luminance/reflectance) without object=(relative luminance/reflectance) with object.
14. The method of claim 12, further comprising: measuring the illumination of the ambient light; and receiving the image without the object, according to which the proportionality constant K is determined according to the relative luminance of the image, the exposure time and the gain of the image sensor and the reflectance of the object, or (K/reflectance) is determined according to the relative luminance of the image, the exposure time and the gain of the image sensor.
15. The method of claim 11, wherein the step (c) comprises: detecting motion of the object on the ROI.
16. The method of claim 15, wherein the motion of the object is detected according to a difference between a current image and a preceding image captured by the image sensor.
17. The method of claim 11, wherein the image sensor comprises a visible-light image sensor.
18. The method of claim 11, further comprising: providing a light source disposed above the ROI and adjusting the light source according to the estimated illumination of ambient light.
19. The method of claim 11, wherein a specular reflection area having luminance value greater than a predetermined threshold is excluded while estimating the ambient light.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
DETAILED DESCRIPTION OF THE INVENTION
(7)
(8) In the embodiment, the system 100 may include an image sensor 11 with a field of view (FOV) configured to capture an image of multiple (contiguous) parking spaces in a parking lot (or garage). In a preferred embodiment, the image sensor 11 may be a visible-light image sensor such as RGB (red, green, blue) image sensor or monochrome image sensor. The system 100 may include a region of interest (ROI) selector 12 configured to determine at least one ROI (i.e., parking space) on the image.
(9)
reflected light∝(relative luminance)/((exposure time)×(gain)) (1)
reflected light∝(incoming light)×(reflectance) (2)
where ∝ denotes “proportional to.”
(10) Accordingly, illumination of the incoming light 23 may be expressed by the following formula (3):
incoming light=K×(relative luminance)/((exposure time)×(gain)×(reflectance)) (3)
where K is a proportionality constant.
(11) The system 100 of the embodiment may include a calibration device 10 coupled to receive an image of a vacant parking space 22 captured by the image sensor 11, and configured to determine the proportionality constant K.
(12) The system 100 of the embodiment may include an occupancy detector 13 configured to determine existence status of an object disposed on the at least one ROI. In the embodiment, as shown in a detailed block diagram of the occupancy detector 13 in
(13) The occupancy detector 13 of the embodiment may include a status detector 132 triggered by the motion detector 131, and configured to determine existence status (i.e., vacancy or occupancy) of a parking space 22. The status detector 132 may execute detection by performing image processing on the image captured by the image sensor 11. In one embodiment, the status detector 132 may adopt feature-based object detection such as histogram of oriented gradient (HOG) or scale-invariant feature transformation (SIFT). In another embodiment, the status detector 132 may adopt neural network such as convolutional neural network (CNN). In an alternative embodiment, the status detector 132 may adopt non-visual-based detection such as ultrasonic distance measurement or earth induction.
(14) In the embodiment, the occupancy detector 13 may include a reflectance estimator 133 configured to estimate reflectance of an occupied parking space 22 as detected by the status detector 132. Specifically, as seen from formula (3), a ratio of the relative luminance to the reflectance for the vacant parking space should be equal to a ratio of the relative luminance to the reflectance for the occupied parking space as expressed by the following formula (4), provided that the incoming light of the light source 21 and exposure time and gain of the image sensor 11 are kept the same:
(relative luminance/reflectance).sub.vacant=(relative luminance/reflectance).sub.occupied (4)
(15) Accordingly, the reflectance of the occupied parking space may then be estimated according to the relative luminance of the vacant parking space, the relative luminance of the occupied parking space and the reflectance of the vacant parking space.
(16) In the embodiment, the system 100 may include an ambient light estimator 14 coupled to receive the image captured by the image sensor 11, and configured to estimate illumination of ambient light (or incoming light 23) of the at least one ROI (i.e., vacant or occupied parking space 22) according to luminance of the at least one ROI on the image. As seen from formula (3), the illumination of ambient light (or incoming light) may be estimated according to the relative luminance of the captured image, the exposure time and gain of the image sensor 11 and the reflectance of (vacant or occupied) parking space.
(17) According to the embodiment disclosed above, artificial lighting set up in the parking lot (or garage) may be adjusted according to the estimated ambient light. For example, if the estimated ambient light is large, the artificial lighting may be reduced to conserve energy; and if the estimated ambient light is small, the artificial lighting may be increased to enhance driving and personal safety. Moreover, small estimated ambient light may probably indicate aged or failed artificial lighting, which need be promptly fixed.
(18) Although specific embodiments have been illustrated and described, it will be appreciated by those skilled in the art that various modifications may be made without departing from the scope of the present invention, which is intended to be limited solely by the appended claims.