1. Technical Field
The present disclosure relates to image processing techniques, and more particularly, apparatus and methods for eliminating glare.
2. Description of Related Art
Document cameras are real-time image capture devices for displaying an object to a large audience. Users usually reduce environment light to enhance the definition of images outputted by the document camera, and therefore the brightness of the outputted images is also reduced. When the environment light is too low, an auto exposure function of the document camera may overstep its limit of adjustment. In this way, the brightness of the images outputted by the document camera may be to low, thereby adversely affecting the definition and resolution of the outputted images.
The user may turn on one additional lamp to enhance the surrounding brightness for the images outputted by the document camera. When a document has a polished surface, and when the additional lamp is turned on, the images of the document outputted by the document camera usually has a glaring area (over-exposure area). The glaring area results from that light reflected by the polished surface enters the photosensor of the document camera.
The following presents a simplified summary of the disclosure in order to provide a basic understanding to the reader. This summary is not an extensive overview of the disclosure and it does not identify key/critical elements of the present invention or delineate the scope of the present invention. Its sole purpose is to present some concepts disclosed herein in a simplified form as a prelude to the more detailed description that is presented later.
In one or more various aspects, the present disclosure is directed to apparatus and methods for eliminating glare.
According to one embodiment of the present invention, an apparatus and methods for eliminating glare includes a first light source, a second light source, an image-capturing device, an image-processing unit and an image-merging unit. The second light source is separate from the first light source. The image-capturing device can capture a first image from an object when the first light source radiates light and a second light source is turned off, and can capture a second image from the object when the first light source is turned off and the second light source radiates light. The image-processing unit can remove a first glaring area from the first image to create a first modified image, and can remove a second glaring area from the second image to create a second modified image. The image-merging unit can merge the first and second modified images to create a merged image.
The apparatus may further include an image edge contrast unit. The image edge contrast unit can eliminate a seam that results from resulting from merging the first and second modified images from the merged image.
Moreover, the apparatus may further include an image projection device. The image projection device can project the merged image. Significantly, the image projection device can project the merged image in which the seam is eliminated.
The first and second images captured by the image-capturing device have a RGB format, and the image-processing unit may include an image-converting module, an identifying module and a deleting module. The image-converting module can convert the RGB format of the first and second images into a YCbCr format of the first and second images. The identifying module can determine the first glaring area in which any Y value is greater than a first predetermined luminance value and a chroma shift of Cb and Cr values falls within a first predetermined range, and can determine the second glaring area in which any Y value is greater than a second predetermined luminance value and a chroma shift of Cb and Cr values falls within a second predetermined range. The deleting module can erase first glaring area from the first image to create a first modified image, and can erase the second glaring area from the second image to create the second modified image.
In addition, the image-capturing device may have a photographic lens. The first and second light sources are disposed at two opposing side of the photographic lens symmetrically. The object may have a polished surface.
According to another embodiment of the present invention, a method for eliminating glare includes steps as follow. In step (a), a first image is captured from an object when a first light source radiates light and a second light source is turned off, and a second image is captured from the object when the first light source is turned off and the second light source radiates light, wherein the first and second light sources are separate from each other. In step (b), a first glaring area is removed from the first image to create a first modified image, and a second glaring area is removed from the second image to create a second modified image. In step (c), the first and second modified images are merged to create a merged image.
The method may further include step (d). In step (d), a seam that results from resulting from merging the first and second modified images is eliminated from the merged image.
Moreover, the method may further include step (e). In step (e), the merged image is projected. Significantly, the merged image in which the seam is eliminated is projected.
The first and second images captured by the step (a) have a RGB format, and the step (b) includes sub-steps (b1), (b2) and (b3). In sub-step (b1), the RGB format of the first and second images is converted into a YCbCr format of the first and second images. Then, the first glaring area in which any Y value is greater than a first predetermined luminance value and a chroma shift of Cb and Cr values falls within a first predetermined range is determined in sub-step (b2), and furthermore the second glaring area in which any Y value is greater than a second predetermined luminance value and a chroma shift of Cb and Cr values falls within a second predetermined range is determined in sub-step (b2). Then, the first glaring area is erased from the first image to create a first modified image in sub-step (b3), and furthermore the second glaring area is erased from the second image to create the second modified image.
Technical advantages are generally achieved, by embodiments of the present invention, as follows:
1. The merged image can be outputted without the glaring areas;
2. The glare problem is circumvented by embodiments of the present invention without using an antiglare optical film or a light-diffusing sheet; and
3. It is convenient for users friendly to use the apparatus that can automatically eliminate glare.
Many of the attendant features will be more readily appreciated, as the same becomes better understood by reference to the following detailed description considered in connection with the accompanying drawings.
The present description will be better understood from the following detailed description read in light of the accompanying drawing, wherein:
In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to attain a thorough understanding of the disclosed embodiments. It will be apparent, however, that one or more embodiments may be practiced without these specific details. In other instances, well-known structures and devices are schematically shown in order to simplify the drawing.
As used in the description herein and throughout the claims that follow, the meaning of “a”, “an”, and “the” includes reference to the plural unless the context clearly dictates otherwise. Also, as used in the description herein and throughout the claims that follow, the terms “comprise or comprising”, “include or including”, “have or having”, “contain or containing” and the like are to be understood to be open-ended, i.e., to mean including but not limited to. As used in the description herein and throughout the claims that follow, the meaning of “in” includes “in” and “on” unless the context clearly dictates otherwise.
It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the embodiments. As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items.
It will be understood that when an element is referred to as being “connected” or “coupled” to another element, it can be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to as being “directly connected” or “directly coupled” to another element, there are no intervening elements present.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which example embodiments belong. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In practice, three methods are disclosed to solve the glare problems as follows. First, a user adjusts an orientation of a light source, so that light reflected by the polished surface cannot enter a photographic lens for preventing over exposure. In this way, however, the brightness of a central region of the image is reduced, and a glaring area may still exist in the image. Second, a light-diffusing sheet is positioned on the light source, so as to diffuse light for reducing the glare. In this way, however, the production cost is increased. Third, an antiglare optical film is disposed on a polished surface of a document, so that light reflected by the polished surface is reduced in intensity for reducing the glare. In this way, however, the definition of the image of the document is reduced because the antiglare optical film is not a transparent body.
In view of the foregoing, the present disclosure is directed to an apparatus and a method for eliminating glare. The apparatus may be easily inserted into existing devices, such as a document camera, and may be applicable or readily adaptable to all technologies. It should be noted that the glare problem is circumvented by embodiments of the present invention without using any antiglare optical film or light-diffusing sheet. Herewith embodiments of the present invention are illustrated by reference to the following description considered in
The first and second light sources 110 and 112 are separate from each other. The image-capturing device 120 is coupled with the image-processing unit 130. The image-processing unit 130 is coupled with the image-merging unit 140.
In use, the image-capturing device 120 can capture a first image from an object 190 when the first light source 110 radiates light and a second light source 112 is turned off. Also, the image-capturing device 120 can capture a second image from the object 190 when the first light source 110 is turned off and the second light source 112 radiates light. The image-processing unit 130 can remove a first glaring area from the first image to create a first modified image. Also, the image-processing unit 130 can remove a second glaring area from the second image to create a second modified image. The image-merging unit 140 can merge the first and second modified images to create a merged image. Thus, the merged image has no glaring areas, thereby solving the glare problems.
Moreover, a seam may results from resulting from merging the first and second modified images. In practice, the brightness of the first modified image may be different from the brightness of the second modified image, and the seam is due to a brightness difference that exists in the border between the first and second modified images. Therefore, the apparatus 100 may further include an image edge contrast unit 150. The image edge contrast unit 150 is coupled with the image-merging unit 140. The image edge contrast unit 150 can eliminate the seam that results from resulting from merging the first and second modified images from the merged image by comparing an edge of the first modified image with a corresponding edge of the second modified image. Thus, the first and second modified images can be merged without the seam.
For outputting the merged image, the apparatus 100 may further include an image projection device 160. The image projection device 160 is coupled with the image edge contrast unit 150. In use, the image projection device 160 can project the merged image. Significantly, the image projection device 160 can project the merged image in which the seam is eliminated. For example, the merged image is projected on a screen for teaching, a briefing or the like.
In addition, the image-capturing device 120 may have a photographic lens 122. The first and second light sources 110 and 112 are disposed at two opposing side of the photographic lens 122 symmetrically for prevent that the first and second glaring areas overlap. If the first and second glaring areas overlapped, the merged image would be incomplete. For example, the first light source 110 is positioned at the left of the photographic lens 122, and the second light source 112 is positioned at the right of the photographic lens 122; alternatively, the first light source 110 is positioned at the upper side of the photographic lens 122, and the second light source 112 is positioned at the lower side of the photographic lens 122. In symmetrical design, the brightness of the first light source 110 is substantially equal to the brightness of the second light source 112 that is the same as the first light source 110.
In the apparatus 100, the first and second light sources 110 and 112 may be LED devices, cold cathode fluorescent lamps or the like. The image-capturing device 120 may be a video camera, an image sensor or the like. The image projection device 160 may be a projector.
The image-processing unit 130, the image-merging unit 140 and the image edge contrast unit 150 may be hardware, software and/or firmware. For example, if an implementer determines that speed and accuracy are paramount, the implementer may opt for a mainly hardware and/or firmware vehicle; alternatively, if flexibility is paramount, the implementer may opt for a mainly software implementation; or, yet again alternatively, the implementer may opt for some combination of hardware, software, and/or firmware.
One of ordinary skill in the art will appreciate that the above denomination is provided for illustrative purposes only to further explain applications of these units and are not intended to limit these units in any manner. In one or more embodiments, one unit may be divided into various units, or one unit may be integrated into another unit. Those with ordinary skill in the art may design one or more unites depending on the desired application.
The first and second images captured by the image-capturing device 120 have a RGB format. The image-converting module 132 can convert the RGB format of the first and second images into a YCbCr format of the first and second images.
The identifying module 134 can determine the first glaring area in which any Y value is greater than a first predetermined luminance value and a chroma shift of Cb and Cr values falls within a first predetermined range. Also, the identifying module 134 can determine the second glaring area in which any Y value is greater than a second predetermined luminance value and a chroma shift of Cb and Cr values falls within a second predetermined range. For example, the chroma shift x of Cb and Cr values satisfies the relationship of:
x=c(|Cb−a|+|Cr−b|),
is where a, b, c is parameters.
Those with ordinary skill in the art may choice suitable values for the first and second predetermined luminance values, and the first and second predetermined ranges depending on the desired application. For example, the first predetermined luminance value may be equal to the second predetermined luminance value, and the first predetermined range may be equal to the second predetermined range.
The deleting module 136 can erase first glaring area from the first image to create a first modified image. Also, the deleting module 136 can erase the second glaring area from the second image to create the second modified image.
In step 201, first and second light sources are enabled, and “3A” function of the image-capturing devices is inhibited (“3A” represents Auto Focus, Auto White Balance and Auto Exposure). In step 202, the first light source radiates light, and the second light source is turned off; meanwhile, a first image is captured from an object in step 203. In step 204, the first light source is turned off, and the second light source radiates light; meanwhile, a second image is captured from the object in step 205. Then, the first and second light sources radiate light in step 206. In steps 207-209, a first glaring area is removed from the first image to create a first modified image, and a second glaring area is removed from the second image to create a second modified image.
Specifically, the first and second images captured by steps 203 and 205 have a RGB format. In step 207, the RGB format of the first and second images is converted into a YCbCr format of the first and second images. Then, the first glaring area in which any Y value is greater than a first predetermined luminance value and a chroma shift of Cb and Cr values falls within a first predetermined range is determined in step 208, and furthermore the second glaring area in which any Y value is greater than a second predetermined luminance value and a chroma shift of Cb and Cr values falls within a second predetermined range is determined in step 208. Then, the first glaring area is erased from the first image to create a first modified image in step 209, and furthermore the second glaring area is erased from the second image to create the second modified image in step 209.
Then, the first and second modified images are merged to create a merged image in step 210. In step 211, a seam that results from resulting from merging the first and second modified images is eliminated from the merged image. In step 212, the merged image is projected; significantly, the merged image in which the seam is eliminated is projected on a screen for teaching, a briefing or the like.
In one embodiment, the method 200 can be performed to process a static image. In use, this method can eliminate glare and output the processed static image.
When the method 200 processes the static image, a function of motion detection is incorporated in this method. In use, the method 200 can eliminate glare and output the processed static images; meanwhile, the method 200 can detect a change of the static image. When a user replaces the original object by another, the change occurs. After this replacement, the method 200 can be performed anew to eliminate glare and output the processed static image when the static image is stationary.
In another embodiment, the method 200 can be performed to process dynamic images. When a frequency of image output of the image-capturing device matches a frequency of alternatively switching the two light sources, viewers cannot feel light sources flashing. In use, this method can output the images without glare.
The method 200 may take the form of a computer program product on a computer-readable storage medium having computer-readable instructions embodied in the medium. Any suitable storage medium may be used including non-volatile memory such as read only memory (ROM), programmable read only memory (PROM), erasable programmable read only memory (EPROM), and electrically erasable programmable read only memory (EEPROM) devices; volatile memory such as SRAM, DRAM, and DDR-RAM; optical storage devices such as CD-ROMs and DVD-ROMs; and magnetic storage devices such as hard disk drives and floppy disk drives.
The reader's attention is directed to all papers and documents which are filed concurrently with his specification and which are open to public inspection with this specification, and the contents of all such papers and documents are incorporated herein by reference.
All the features disclosed in this specification (including any accompanying claims, abstract, and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise. Thus, unless expressly stated otherwise, each feature disclosed is one example only of a generic series of equivalent or similar features.
Any element in a claim that does not explicitly state “means for” performing a specified function, or “step for” performing a specific function, is not to be interpreted as a “means” or “step” clause as specified in 35 U.S.C. §112, 6th paragraph. In particular, the use of “step of” in the claims herein is not intended to invoke the provisions of 35 U.S.C. §112, 6th paragraph.