The present invention relates to the field of photography and, more particularly, to the field of flash photography.
One of the most frustrating problems of users that want to take pictures badly-lit places is that the preview image is always darker than the image that will eventually be captured using the flash, because the flash “burns” information located in close regions and does not affect surfaces located in farther regions. The brightness level of objects in photo to be captured with flash is therefore very difficult to predict, as mentioned before, because the object's brightness is strongly dependent on the distance between the object and the flash device. Because of this inherent problem, a photographer finds it difficult to choose a good capturing position from which to take flash photography, and this problem prevents many users from taking good quality photos in low illumination places.
Some modern cameras use flashlight during preview to solve the problem. While such a system can be used for still cameras, it is power consuming, which is extremely problematic, especially for mobile phones for which power management is an important issue.
Other solutions provided in the art include one of the following (or combinations of the following):
However, private solutions all suffer from these advantages and limitations, such as:
Therefore, according to the known art, unless an extremely high power consumption is allowed, the user has no means to obtain a real preview showing the image that will be captured with the flash, which prevents him from composing the image correctly.
The invention relates to a method for generating a preview image of an item to be photographed using flashlights, wherein said preview image is generated without any added light, comprising the steps of:
According to an embodiment of the invention the item is a human being and the portion is a human face.
According to another embodiment of the invention the distance to the face location is calculated using a face detection algorithm.
In the figures:
The invention solves the aforementioned problem for portrait mode capturing. Although the invention is described in relation to the capturing of human portraits, for the sake of simplicity, it should be understood that it is by no means limited to specific objects to be captured by flash photography, and the invention is applicable, mutatis mutandis, to any other object, as would be further discussed below.
Referring now for the sake of illustration to the taking of photographs of a portrait image, the method of the invention is based, inter alia, on the following practical considerations:
According to an embodiment of the invention the distance between the camera and the face on the preview image is calculated and the preview image is automatically changed in real time, by simulating the use of the flash light during the photo capture. The user can see, when in camera preview mode, and image in the face area that is very similar to the photo captured with flash light, without using the actual flash light. The method of the invention does not consume additional power and may extend the battery lifetime as compared with all prior art methods.
An example of a problematic shot in badly-lit scenes is shown in
An example of the result attainable when operating according to the invention is shown in
As stated above, the invention will now be illustrated using the human face as an example. The method of the invention employs a face detection algorithm, and exploits the fact that human faces have similar sizes. These elements are used to compute the distance between the human face location and the camera device. The following steps illustrate the process according to one embodiment of the invention:
In the first step a face detection algorithm is used to calculate the distance to the face location. Any suitable face detection algorithm can be used. One example is the face detection method devised by Viola and Jones, which uses Haar-like features [Viola and Jones, “Rapid object detection using boosted cascade of simple features”, Computer Vision and Pattern Recognition, 2001].
In the second step the flash light dissemination is calculated on the face area, using the distance to the face, and the known flash power.
In the third step, calculated light dissemination parameters are used to simulate the face area illumination. In the case of saturated or dark face areas, the calculated information can be used for exposure and flash parameters correction. Also the photographer can choose a new position at a different distance, until a satisfactory preview face area simulated illumination is obtained.
The distance between the human face location and the Camera device can be calculated as
D=b*f*r*z/s
wherein:
The illumination of an object lighted by flash light can be described by the following formula:
As explained above, the power management problem is of great importance for all cameras, but it is even more critical for digital cameras incorporated in digital phones, for which the power management is an even more critical issue. Most digital camera modules currently used in camera phones have a 50- to 60-degree field of view and need a minimum of 3 to 5 lux to capture a good picture at a distance of 0.5-4 m.
On average, a photographer spends around 20-30 seconds generating a preview. The used led flash wastes so much power to illuminate in preview mode, that most mobile phone cameras flashes provide a maximal shooting distance of less than 3-4 m. It should be noted that the flash capture time is typically less than 0.5 seconds. Therefore, decreasing the flash time by 40 folds increases the maximum shooting distance to 20 m (the power expense is proportional to D2) with the same power safety and the same illumination.
On the other hand, a long time preview led flash creates a problem related to human eyes sensitivity. A human can suffer only a few seconds of strong led light, which is usually not enough to complete the preview. Therefore pictures taken using long-time flashes very often show closed eyes (as seen in the appended figures.)
The above method is illustrated in
As explained before, the invention is in no way limited to images of human beings. Because the critical information needed to pay out the invention is the knowledge of the size of a specific area of the image being taken, it is equally applicable to any other item to be photographed. In the case of a human face the basic size and shape parameters can be present in the camera and be provided by the factory. However, when it is desired to use the method of the invention for items that are not preset in the camera it is possible to feed the relevant parameters at the user's level.
As will be apparent to a skilled person from the above description, the invention provides considerable advantages. Particularly:
All the above description and examples have been given for the purpose of illustration only and are not intended to limit the invention in any way. As will be apparent to the skilled person, many modifications can be carried out to be above description, to capture different images using different apparatus, all without exceeding the scope of the invention.