Pursuant to 35 U.S.C. § 119(a), this application claims the benefit of earlier filing date and right of priority to Korean Application No. 52360/2004, filed on Jul. 6, 2004, the contents of which is hereby incorporated by reference herein in its entirety:
1. Field of the Invention
The present invention relates to a camera, and particularly, to a method and apparatus in which an exposure is automatically adjusted for improving an image quality for a camera phone.
2. Description of the Related Art
Mobile communication systems using mobile communication terminals provide multimedia communication services capable of sending and receiving images as well as audio signals or text messages. According to recent trends in the mobile communication market, mobile communication terminals with built-in cameras have been developed that allow a mobile communication terminal to be used for the multimedia communication and are being used by many mobile communication service subscribers.
A mobile communication terminal with built-in camera (hereinafter, referred to as a camera phone) is a mobile communication terminal having a small digital camera either built-in or attachable thereto. A camera phone allows an object to be photographed, with the photographed image stored in a memory embedded in the mobile communication terminal and further allows the photographic image to be sent to another user with whom a call is established.
In order to photograph an object with good image quality using a camera phone, it is important that illumination of the object is adequate. When the illumination of the object is not adequate, the digital photographic image may contain a noise, which results in degradation of the brightness and color sense of the image. When photographing an object under low illumination, degradation of the image quality may be more pronounced. Therefore, the ability to adjust an exposure appropriate to the corresponding illumination condition is required.
In order to ensure the appropriate illumination of an object, conventional camera phones have a separate optical sensor for measuring the quantity of light from the object in order to determine the illumination of the object. Manual adjustment of the exposure as a dark mode, or a night shot mode, which is an exposure appropriate for photographing an object at low illumination, is provided.
Referring to
When photographing an object under low illumination, the user may manually adjust an exposure as a dark mode (S30). If the exposure is not manually adjusted, the user measures the quantity of light of the object using an optical sensor and checks the corresponding illumination level of the previewed image (S40).
If the previewed image is determined to have an illumination lower than a certain level (S50), the user manually adjusts the exposure as a dark mode, or a night shot mode, to increase the exposure time (S60). The manual adjustment is performed using an input/output unit of the camera phone.
The user previews the object in the exposure (S50) and photographs the object (S70) using the exposure (dark exposure mode) as adjusted in the step S60.
However, increasing the exposure time in step S60 causes the object to be photographed by the mobile terminal at a decreased number of frames per second. For example, if a previewed image corresponds to photographing at 30-frames per second and the 30 FPS setting is changed to 15 FPS (for photographing at 15 frames per second) because the illumination value checked by measuring the quantity of light is determined as low illumination, the exposure time is doubled (lengthened). As a result, an image with good quality can be photographed because the exposure time setting with respect to the illumination of the object has an adequate value.
The conventional method for improving an image quality of a camera phone is problematic in that the user must manually adjust the exposure and a separate sensor for measuring the quantity of light of the object is required. In addition, when the object moves, it is difficult to capture and photograph an instantaneous movement by manually adjusting the exposure.
Therefore, there is a need for a camera phone that facilitates automatic adjustment of the exposure used to photograph an object. The present invention addresses these and other needs.
Features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The invention is directed to a method and apparatus for automatically adjusting an exposure of a camera quickly and conveniently for photographing an object. To achieve this and other objects and advantages and in accordance with the purpose of the present invention, as embodied and broadly described herein, there is provided an apparatus and method for automatically adjusting an exposure of a camera by which an image of a object can be photographed by previewing an image of the object with a current exposure, extracting data from the frames of the previewed object, analyzing the extracted data, and adjusting an exposure according to the analyzed result.
In one aspect of the present invention, a method is provided for adjusting an exposure of a camera for photographing an image of an object. The method includes previewing an image of the object with a current exposure such that one or more frames are provided, extracting data related to illumination of the object from at least one of the frames of the previewed image, determining illumination of the object according to the data, and adjusting the exposure according to the determined illumination.
Preferably, the data comprises a brightness level distribution of the previewed image, an electronic shutter speed of a camera image sensor or a gain value of the camera image sensor. It is contemplated that the data may be extracted from each of the frames of the previewed image and the illumination of each frame determined or the data may be extracted from a subset of the frames of the previewed image and illumination of each of the subset of frames determined.
Preferably, the illumination of the object is determined according to one or more threshold values as either bright, dark or maintain current exposure. It is contemplated that the threshold values may be set according to a current exposure of the previewed image.
It is contemplated that multiple data types related to illumination of the object may be extracted from the frames of the previewed image and illumination of the object determined for at least one of the frames according to each of the data types. Preferably, the multiple data types are extracted from a plurality of frames and illumination of the object is determined for a plurality of the extracted frames according to each of the data types. It is contemplated that the illumination of the object according to the multiple data types may be determined for each of the frames from which the data is extracted or for a subset of the frames from which the data is extracted.
It is contemplated that the exposure be may be adjusted if the illumination determined according to each of the multiple data types coincide for at least one frame of the previewed image. It is further contemplated that the exposure is maintained if the illumination determined according to each of the multiple data types does not coincide for at least one frame of the previewed image.
Preferably, the number of times that the illumination determined according to each of the multiple data types coincides for a given frame is determined with the exposure adjusted if the determined number of times is greater than or equal to a predetermined number and a current exposure is maintained if the determined number of times is less than the predetermined number. It is contemplated that the exposure may be adjusted if the determined number of times that the illumination determined according to each of the multiple data types coincides for consecutive frames is greater than or equal to a predetermined number.
Preferably, the multiple data types include a brightness level distribution of the previewed image, an electronic shutter speed of a camera image sensor and a gain value of the camera image sensor. One determination of the illumination of the object as one of bright, dark and maintain current exposure is performed for at least one of the frames from which multiple data types are extracted according to the brightness level distribution using a first threshold value and a second determination of the illumination of the object as one of bright, dark and maintain current exposure is performed for at least one of the frames from which multiple data types are extracted according to the electronic shutter speed and gain value of the camera image sensor using a second threshold value. A count is incremented whenever the first determination matches the second determination for any frame. The exposure is adjusted if the count is greater than or equal to a predetermined number and the exposure is maintained if the count is less than the predetermined number.
In another aspect of the present invention, a method is provided for adjusting an exposure of a camera for photographing an image of an object. The method includes previewing an image of the object with a current exposure such that one or more frames are provided, extracting a first and second illumination indicator from at least one of the frames, determining a first illumination of the object according to the first illumination indicator, determining a second illumination of the object according to the second illumination indicator, maintaining a count of the number of times that the determined first illumination matches the determined second illumination for any frame, and adjusting the exposure according to the count.
Preferably, the first illumination indicator is a brightness level distribution and the first illumination indicator is analyzed according to a brightness level distribution of each pixel of at least one frame using a first preset threshold value. Preferably, the second illumination indicator is an electronic shutter speed and gain value of a camera image sensor and the second illumination indicator is analyzed according to an electronic shutter speed value and gain value of a camera image sensor corresponding to at least one frame using a second preset threshold value. It is contemplated that the first threshold value and the second threshold value may be set differently according to a current exposure of the previewed image.
Preferably, the first illumination and the second illumination are determined as either bright, dark or maintain current exposure. It is contemplated that the first illumination indicator and second illumination indicator may be extracted from each of the frames of the previewed image, with the first illumination and second illumination determined for each of the frames.
It is contemplated that the exposure may be adjusted if the count is greater than or equal to a predetermined number and a current exposure is maintained if the count is less than the predetermined number. Preferably, a count is maintained of the number of times that the determined first illumination matches the determined second illumination in consecutive frames and the exposure is adjusted if the count is greater than or equal to a predetermined number.
In yet another aspect of the present invention, a camera phone is provided. The camera phone includes a memory device for storing images of an object, an LCD for displaying information related to a photographed object, an input/output unit for allowing a user to input or receive information related to the photographed object, and a microprocessor unit adapted to perform a program that facilitates the methods of the present invention.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. It is to be understood that both the foregoing general description and the following detailed description of the present invention are exemplary and explanatory and are intended to provide further explanation of the invention as claimed.
These and other embodiments will also become readily apparent to those skilled in the art from the following detailed description of the embodiments having reference to the attached figures, the invention not being limited to any particular embodiments disclosed.
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention. Features, elements, and aspects of the invention that are referenced by the same numerals in different figures represent the same, equivalent, or similar features, elements, or aspects in accordance with one or more embodiments.
The present invention relates to a method for improving an image quality of a camera phone in which the illumination of an object to be photographed is automatically checked and an exposure is automatically adjusted. Although the present invention is illustrated with respect to a camera phone, it is contemplated that the present invention may be utilized with other communication devices and digital cameras in general for improving the image quality when an object is photographed under a condition where the illumination of the object is frequently changed by an influence of the peripheral environment.
In general, when photographing an object by using a camera phone, the user measures the quantity of light using a sensor in order to manually adjust an exposure. The present invention provides a method for improving the image quality of a photographed object by automatically adjusting the exposure in accordance with a predetermined algorithm that analyzes a brightness level distribution, electronic shutter speed values and brightness gain values of a camera sensor in order to adjust an exposure according to the illumination of the object.
A camera phone for implementing a method of the present invention includes a microprocessor unit (MPU) executing a program for performing and controlling operation of an algorithm to implement the method, a memory device for storing the algorithm and images, and basic hardware including such devices as an LCD and input/output unit of key buttons. Although the invention is described with regard to photographing an object, it will be understood by those knowledgeable in the field of the invention that a sequential series of still images may be photographed in succession to obtain a motion video comprised of any number of individual still frames.
Referring to
When the decides to not photograph the object with the current exposure in step S120, the MPU extracts frames from the previewed image for use in determining illumination of the previewed image (S220), determines the illumination of the extracted frames in multiple ways (S300), and adjusts an exposure of the camera phone if a predetermined criteria is met (S400). The brightness level distribution (S240) and electronic shutter speed values and gain values of the camera sensor (S260) for which illumination is determined may be extracted from each of the extracted frames or from a subset of the extracted frames.
As illustrated in
If it is determined that the illumination according to the distribution of brightness levels (S320) coincides with the illumination according to the electronic shutter speed and gain values (S330) for a given frame (S340), the MPU increments a count (S350). When the number of coinciding illumination determinations is greater than or equal to a preset number (S420), the exposure is automatically adjusted to a corresponding exposure (S440). Preferably, the criteria for automatically adjusting the exposure is that the determination according to the distribution of brightness levels (S320) coincides with the illumination according to the electronic shutter speed and gain values (S330) for a predetermined number of consecutive image frames.
In step S440, the exposure of the camera phone is adjusted to an appropriate exposure under the control of the program executed by the MPU. The object is again previewed by the camera phone using the adjusted exposure (S120) and the user presses a corresponding key button of the input/output keypad unit to photographs the object (S140).
The present invention will be explained in more detail with reference to Tables 2 to 7 and FIGS. 2 to 10 along with an automatic exposure adjustment algorithm shown in Table 1 that is proposed as a preferred embodiment.
First, as shown in Table 1, four proposed exposures are set for an automatic exposure adjustment algorithm. Each exposure is divided according to the number of photographed frames per second (FPS) such that the exposure is set as a normal exposure and a long exposure, each mode including two sub-modes. As shown, the normal exposure is set as 30 FPS or 15 FPS and the long exposure is set as 7.5 FPS or 3.75 FPS (an extra long exposure). As shown in the algorithm of Table 1, there are ten available cases for adjusting from one exposure to the other exposures.
In the automatic exposure adjustment algorithm shown in Table 1, the exposure may be automatically adjusted form the normal exposure to the long exposure according to the illumination of the object, specifically from 30 FPS to 7.5 FPS (1), from 30 FPS to 3.75 FPS (2), from 15 FPS to 7.5 FPS (3), and from 15 FPS to 3.75 FPS (4). Conversely, the exposure may be automatically adjusted from the long exposure to the normal exposure according to the illumination of the object, specifically from 7.5 FPS to 30 FPS (6), from 3.75 FPS to 30 FPS (7), from 7.5 FPS to 15 FPS (8), and from 3.75 FPS to 15 FPS (9). Additionally, the exposure may be automatically adjusted to or from the long exposure to the extra long exposure according to the illumination of the object, specifically from 7.5 FPS to 3.75 FPS (5) or from 3.75 FPS to 7.5 FPS (10).
The case in which a currently set exposure is adjusted from the 15 FPS normal exposure to the 7.5 FPS long exposure will be explained. The current illumination of the object is assumed as 20 Lux.
Referring to
The extracted data corresponds to a brightness level distribution of the previewed image (S240) and electronic shutter speed values and gain values of a camera sensor (S260). This data may be extracted from each captured frame (15 frames per second) or from a subset of captured frames of the previewed image. As illustrated in
Next, illumination is determined by analyzing the brightness level distribution (S240) and electronic shutter speed values and gain values (S260) stored in a register of the camera sensor for each of extracted frames 1, 4, 7, 10, and 13 (S300). Illumination is determined (S300) by analyzing the extracted data of each frame such that the illumination determination and analysis of the data is performed five times.
Table 2 (15 FPS), Table 3 (7.5 FPS) and Table 4 (3.75 FPS) are data for the illumination determination according to a distribution of brightness levels (S320) when the brightness level of a previewed object image is quantified into 0˜255. The previewed image from which the data is extracted up to 192*144 pixels and the distribution of the brightness levels is extracted from 27648 total pixels of data. The vertical axis of each table corresponds to the brightness levels and the horizontal axis corresponds to the illumination of the object.
It is determined whether more than 83% of the brightness levels of the frame in the brightness level distribution of 27648 total pixel data are on the left side based on a threshold value of 100 of the preset current exposure (15 FPS) (S323). The threshold value of 100, as illustrated in
Since the illumination (20 Lux) of the current object is darker than the corresponding illumination (43.5 Lux) of the threshold value 100, the brightness levels of the current (first) image frame are distributed on the left side as illustrated in
After completing the illumination determination according to a distribution of brightness levels (S320), the illumination (20 Lux) of the current object is determined by electronic shutter speed values and gain values of the camera sensor for the current (first) image frame (S330).
Table 5 shows hexadecimal electronic shutter speed values and gain values that change according to the illumination based on characteristics of the camera sensor in the current exposure (15 FPS).
The MPU program compares each threshold value 0x768 and 0x39 preset according to the illumination (43.5 Lux) for the current exposure (15 FPS) with the electronic shutter speed value 0x768 (S333) and the gain value 0x21 (S334, S335) corresponding to the current (first) image frame for the current illumination (20 Lux), and determines whether the current (first) image frame is bright (S336), dark (S338) or adequate and to be maintained (S337).
First, the electronic shutter speed value 0x768 is compared to the threshold value 0x768 (S333). If the electronic shutter speed value 0x768 is greater than the threshold value 0x768, the current (first) image frame is determined as either bright (S336) or maintained (S337). If the electronic shutter speed value 0x768 is equal to or less than the threshold value 0x768, the current (first) image frame is determined as either dark (S338) or maintained (S337). Once the electronic shutter speed value is compared to the threshold value (S333), the gain value 0x21 is compared to the threshold value 0x39 (S334, S335).
If the shutter speed value was determined as greater than or equal to the threshold value in step S333, the current (first) image frame is determined as dark (S338) if the gain value is less than or equal to the threshold value and is determined as maintained (S337) if the gain value is greater than the threshold value. If the shutter speed value was determined as less than the threshold value in step S333, the current (first) image frame is determined as bright (S336) if the gain value is greater than or equal to the threshold value and is determined as maintained (S337) if the gain value is less than the threshold value. In the present example, since the electronic shutter speed value 0x768 is determined to be the same as the threshold value 0x768 in step S333 and the gain value 0x21 is determined to be less than the threshold value 0x39 in step S334, it is determined that the current image frame is dark (S338).
The count is incremented (S350) only if the illumination for the current image frame determined according to a distribution of brightness levels (S320) coincides with the illumination for the current image frame determined according to the electronic shutter speed and gain values (S330). If the illumination determined according to the electronic shutter speed and gain values (S330) differs from the illumination determined according to a distribution of brightness levels (S320), the count will not be incremented.
In determining the illumination for the current (first) image frame, the determination according to the brightness level distribution (S320) and the determination according to the electronic shutter speed value and the gain value (S330) coincide in that both determinations yield that the current (first) image frame is dark (S340). Therefore a count of the number of times of coincidence of the determinations is incremented (S350).
The determination of the illumination according to the brightness level distribution (S320) and according to the electronic shutter speed value and the gain value (S330) is performed for each of the remaining frames (frames 4, 7, 10, and 13). After completing the determination of the illumination according to the brightness level distribution (S320) and according to the electronic shutter speed value and the gain value (S330) for each of the frames, it is determined if the count of coinciding determinations is equal to or greater than three (S420) and, if so, the exposure is automatically adjusted (S440).
In the present example, when it is determined that the image previewed in the current normal exposure (15 FPS) is under low illumination (20 Lux), the normal exposure (15 FPS) is automatically adjusted to a longer exposure, such as the long exposure (7.5 FPS) in step S400. After the exposure (7.5 FPS) is adjusted to be suitable for the current illumination (20 Lux) of the object under control of the MPU program (S400), the camera of the camera phone again previews the object using the adjusted exposure (7.5 FPS) (S100) and the user may photograph the previewed object (S140). If the determinations (S320, S330) performed with respect to the frames (1, 4, 7, 10, and 13) do not coincide more than three times, the current exposure is determined to be an appropriate exposure (S420) and the exposure is not adjusted but rather maintained as 15 FPS.
The previous example illustrates the case where the normal exposure (15 FPS) is adjusted to the long exposure (7.5 FPS). Next, the case where the normal exposure (15 FPS) is adjusted to the extra long exposure (3.75 FPS) when the object is at low illumination (10.31 Lux) will be explained.
Table 3 shows a brightness level distribution of an image according to the illumination when previewing the object under the current exposure (7.5 FPS).
First, as done in the previous example, the current exposure is adjusted from the normal exposure (15 FPS) to the long exposure (7.5 FPS). The camera of the camera phone previews the object again in the current adjusted exposure (7.5 FPS).
When the user determines not to take a photograph of the previewed image (S120), the MPU program extracts three frames (frames 1, 3, and 5) for determining the illumination from the previewed image (S220). Then, as in the previous example, the illumination of each frame (frames 1, 3, and 5) is determined according to the brightness level distribution (S320) and according to the electronic shutter speed value and the gain value (S330).
The illumination according to the brightness level distribution (S320) is determined by analyzing a brightness level distribution of using a threshold value of 120. Next, the illumination of each frame is determined according to the electronic shutter speed value and the gain value (S330) using threshold values of 0x4f0 and 0x4c. The threshold value, which is obtained experimentally, corresponds to an illumination of 155 Lux, which generally appears to be bright.
Preferably, as shown in Table 3 and
Therefore, each determination of the illumination (S320, S330) with respect to the current (first) image frame is determined as coinciding as a dark image (S340), and count of coinciding determinations is incremented (S350). When the determinations (S320, S330) are performed by analyzing the data extracted from the other extracted frames (frames 3 and 5) and the count of coinciding determinations is determined greater than or equal to three (S420), the illumination of the current object is determined as being in a low illumination state and the MPU program automatically adjusts the current exposure (7.5 FPS) to a longer exposure, such as the extra long exposure (3.75 FPS).
The camera of the camera phone again previews the object using the adjusted exposure (3.75 FPS). The user can then press a key button of the input/output unit of the camera phone to photograph the previewed object (S140). When adjusting the current normal exposure (15 FPS) to the extra long exposure (3.75 FPS), the current normal exposure (15 FPS) is adjusted to the long exposure (7.5 FPS), and then the long exposure (7.5 FPS) is adjusted to the extra long exposure (3.75 FPS) through the same procedure as in the previous example.
Table 4 shows a brightness level distribution of an image according to illumination when previewing the object in the current exposure (3.75 FPS), and
Referring to Tables 4 and 7, and
In determining the illumination according to the brightness level distribution for each frame (S320) and determining the illumination according to the electronic shutter speed values and gain values of the camera sensor for each frame (S330), the MPU program determines the illumination of the first, second and third frames based on respective threshold values of 119, 0x0278 and 0x4b corresponding to the illumination of 191 Lux. The illumination (191 Lux) is a standard for the threshold values obtained experimentally and such an illumination level is brighter than a normal illumination level. When comparing the threshold illumination level with the illumination of 155 Lux, the illumination of 191 Lux is difficult to distinguish with the naked eye.
An embodiment in which a current exposure (15 FPS) is adjusted to a longer exposure, such as the long exposure (7.5 FPS) or the extra long exposure (3.75 FPS), has been explained previously. However, the current exposure can be adjusted to each exposure proposed in the algorithm shown in Table 1 by the method explained with reference to
In other cases, the threshold value, which is a standard value for determining the illumination in the process of adjusting the exposure, is set differently for the current exposures (15 FPS, 7.5 FPS, and 3.75 FPS), respectively. This indicates that an appropriate margin is made between the threshold values as the standard value for determining the illumination. Provision of such a margin may prevent a malfunction in which a previewed image of a specific object at illumination corresponding to a specific threshold value frequently varies between two exposures.
For example, when determining whether the current normal exposure (15 FPS) is to be adjusted to the long exposure (7.5 FPS), as shown in
As described above, in the present invention, when photographing an object while the illumination level is changed at any time according to the peripheral environment, the exposure can automatically be adjusted into an optimal exposure. Since it is very advantageous to photograph an image with an increased image quality, specifically when photographing an object under a condition of low illumination, it is possible to photograph an image while maintaining an optimal image quality.
Furthermore, a sudden movement of an object may be focused and photographed quickly and simply without requiring a manual adjustment of an exposure. Moreover, because the present invention checks the current illumination by extracting a brightness level distribution obtained from a previewed image as well as by electronic shutter speed values and gain values in the camera sensor, a separate optical sensor is not required, thereby simplifying the design of a camera phone to implement the method according to the present invention and allowing the size of the device to be minimized so as to additionally achieve a reduction in production cost.
As the present invention may be embodied in several forms without departing from the spirit or essential characteristics thereof, it should also be understood that the above-described embodiments are not limited by any of the details of the foregoing description, unless otherwise specified, but rather should be construed broadly within its spirit and scope as defined in the appended claims, and therefore all changes and modifications that fall within the metes and bounds of the claims, or equivalence of such metes and bounds are therefore intended to be embraced by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
10-2004-52360 | Jul 2004 | KR | national |