WO2022094945A1 - Method and apparatus for tone mapping, and computer usable medium storing software for implementing the method - Google Patents
Method and apparatus for tone mapping, and computer usable medium storing software for implementing the method Download PDFInfo
- Publication number
- WO2022094945A1 WO2022094945A1 PCT/CN2020/127210 CN2020127210W WO2022094945A1 WO 2022094945 A1 WO2022094945 A1 WO 2022094945A1 CN 2020127210 W CN2020127210 W CN 2020127210W WO 2022094945 A1 WO2022094945 A1 WO 2022094945A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- condition
- image
- backlight
- decided
- luminance
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000013507 mapping Methods 0.000 title claims abstract description 38
- 235000019557 luminance Nutrition 0.000 claims description 46
- 230000035945 sensitivity Effects 0.000 claims description 8
- 230000005484 gravity Effects 0.000 claims description 7
- 230000006870 function Effects 0.000 description 8
- 230000015654 memory Effects 0.000 description 8
- 230000000052 comparative effect Effects 0.000 description 4
- 239000000463 material Substances 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000001815 facial effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 230000001902 propagating effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
- G06T5/92—Dynamic range modification of images or parts thereof based on global image properties
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/172—Classification, e.g. identification
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20092—Interactive image processing based on input by user
- G06T2207/20104—Interactive definition of region of interest [ROI]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
- G06T2207/30201—Face
Definitions
- the present disclosure relates to the image processing technology field in general, and more specifically, to a method and an apparatus for tone mapping on an image, and a computer usable medium storing software for implementing the method.
- color imaging apparatuses have been developed and widely used in devices such as mobile phones, digital cameras, etc. Along with progresses in high-speed/large-capacity data communication, high-speed processors or high color quality is also required.
- a facial recognition system for face unlock of a smart phone uses images; performing tone mapping on an original image is effective in increasing its success rate.
- a histogram is used to calculate a luminance for selecting a tone curve used for tone mapping.
- this method is time consuming and not always effective.
- the present disclosure aims to solve at least one of the technical problems explained above. Accordingly, the present disclosure needs to provide a method and an apparatus for tone mapping, and a computer usable medium storing software for causing a computer to implement the method for tone mapping.
- a method for tone mapping may comprise:
- the shooting condition when the shooting condition is decided not to be a backlight condition, calculating a luminance using camera parameters, and selecting a tone curve according to the calculated luminance;
- the method may further comprise:
- the method may further comprise:
- the certain area may be set in a manner that a center position of the certain area is located on a line whose direction is that of gravity.
- the luminance is calculated using the following formula including camera parameters, namely F_value 2 , exposure time and ISO sensitivity:
- the image may be a still image or one of still images forming a moving image.
- an apparatus for tone mapping may comprise:
- a camera unit configured to acquire an image
- a processor configured to input the current image, to decide whether a shooting condition is a backlight condition, when the shooting condition is decided not to be a backlight condition, to calculate a luminance using camera parameters and selecting a tone curve according to the calculated luminance, when the shooting condition is decided to be a backlight condition, to select a tone curve suitable for a backlight condition, and to perform tone mapping on the image using the selected tone curve;
- a display unit configured to display the tone mapped image.
- the processor may be further configured to perform face unlock using the tone mapped image, decide whether the face unlock is successful, and display the decision on the face unlock.
- the processor when the processor decides whether the shooting condition is a backlight condition, the processor may be further configured to set a certain area on the image, to calculate a first average luminance of an inside of the certain area and a second average luminance of an outside of the certain area, to decide whether a difference between the first and second average luminances is greater than a threshold value, when the difference is decided to be greater than the threshold value, to decide that the condition is a backlight condition, and when the difference is decided not to be greater than the threshold value, to decide that the condition is not a backlight condition.
- the processor may set the area in a manner that a center position of the area is located on a line whose direction is that of gravity.
- the processor may calculate the luminance using the following formula including camera parameters, namely F_value 2 , exposure time and ISO sensitivity:
- the image may be a still image or one of still images forming a moving image.
- a computer usable medium stores software for causing a computer to implement the above method for tone mapping.
- FIG. 1 is a flowchart illustrating a method for tone mapping according to a comparative example
- FIG. 2A is a photo of an example of an original image in a backlight condition
- FIG. 2B is a photo of an example of an image obtained by the method for tone mapping according to the comparative example
- FIG. 3 is a block diagram schematically showing a circuit configuration of an apparatus for tone mapping according to a first embodiment of the present disclosure
- FIG. 4 is a flowchart illustrating a method for tone mapping according to a second embodiment of the present disclosure
- FIG. 5 is a flowchart illustrating a method for deciding whether a shooting condition is a backlight condition according to the second embodiment of the present disclosure
- FIG. 6 is a photo for illustrating a rectangular area for face unlock and a gravity direction
- FIG. 7A is a photo of an example of an original image in a backlight condition.
- FIG. 7B is a photo of an example of an image obtained by the method for tone mapping according to the first embodiment and the second embodiment of the present disclosure.
- the method for tone mapping according to the comparative example includes the following steps shown in FIG. 1.
- a luminance is calculated by camera parameters, such as F_value, ISO sensitivity and/or exposure time.
- a tone curve is selected according to the calculated luminance.
- tone mapping is performed using the selected tone curve.
- a center area is dark and a surrounding area is much brighter than the center area, as illustrated in FIG. 2A.
- the center area may be too dark to recognize the face; thus a proper image cannot be obtained according to the above method.
- An apparatus for tone mapping on an image according to a first example of the present disclosure is as follows.
- an apparatus 10 performing tone mapping for face unlock includes a camera unit 11, a processor 12, a display unit 13 and a memory 14.
- the camera unit 11 acquires an image under various shooting conditions, including a backlight condition.
- the image may be a still image or one of still images forming a moving image.
- the processor 12 inputs the image from the camera unit 11, decides whether the shooting condition is a backlight condition, selects a proper tone curve in accordance with the decision, performs tone mapping on the acquired original image using the selected tone curve, and performs face unlock using the tone mapped image.
- the processor 12 decides that the shooting condition is a backlight condition, the processor 12 selects a tone curve suitable for a backlight scene.
- the processor 12 calculates the luminance using camera parameters, such as F_value, ISO sensitivity and/or exposure time, and selects a tone curve according to the calculated luminance.
- the processor 12 calculates a first average luminance of an inside of a rectangular area where a face is supposed to exist, calculates a second average luminance of an outside of the rectangular area, decides that the shooting condition is a backlight condition when the difference between the first and second average luminances is greater than a threshold value, and decides that the shooting condition is not a backlight condition when the difference is not greater than a threshold value.
- the processor 12 further performs tone mapping on the original image using the selected tone curve, performs face unlock using the tone mapped image, and decides whether face unlock is successful.
- the display unit 13 receives the decision of face unlock from the processor 12 and displays it on its screen.
- a method for tone mapping according to a second embodiment of the present disclosure includes the following steps shown in FIG. 4.
- an image is acquired, under various conditions, including a backlight condition.
- the image may be a still image or one of still images forming a moving image
- step S22 it is decided whether the shooting condition is a backlight condition.
- a proper tone curve suitable for a backlight scene is selected. If NO, namely, if it is not a backlight condition, in the step S23, a luminance is calculated using camera parameters, such as F_value, ISO sensitivity and/or exposure time. In the step S24, a tone curve is selected according to the calculated luminance.
- tone mapping of the acquired (original) image is performed using the selected tone curve.
- step S27 face unlock is performed using the tone mapped image, and it is decided whether the face unlock is successful.
- step S28 the decision on the face unlock is displayed.
- a method for deciding whether the shooting condition is a backlight condition is explained in detail referring to FIG. 5 as follows.
- a rectangular area is set on the image acquired at the step S21 and displayed on the display unit 13.
- the rectangular area 21 is an area where a face is supposed to exist, as shown in FIG. 6.
- a center position of the rectangular area is not precisely a center of the whole image, and is supposed to be offset to an extent on a line whose direction is that of gravity.
- the gravity direction on the image can be determined by an acceleration sensor of a smartphone.
- the size of the rectangular area may be empirically set to about 1/4 width and 1/4 height of the whole image, for example.
- a first average luminance of an inside of the rectangular area and a second average luminance of an outside of the rectangular area are calculated.
- step S33 it is decided whether a difference between the first and second average luminances is greater than a threshold value.
- the threshold value is 50
- the first average luminance is 10
- the second average luminance is 100.
- the difference between the first and second average luminance is 90, thus the difference is greater than the threshold value.
- This condition is decided to be a backlight condition.
- the threshold value is 50
- the first average luminance is 75
- the second average luminance is 100.
- the difference between the first and second average luminances is 25, thus the difference is not greater than the threshold value.
- This condition is decided not to be a backlight condition.
- step S33 if a difference between the first and second average luminance is greater than the threshold value, the process moves on to the step S34 and the condition is decided to be a backlight condition. If not, the process moves on to the step S35 and the condition is decided not to be a backlight condition.
- the luminance may be calculated using, for example, the following formula including camera parameters, namely F_value 2 , exposure time and ISO sensitivity:
- a computer usable medium is a medium storing a software for causing a computer or an apparatus having a configuration of the above first example of the present disclosure to implement the method for tone mapping, and the method of the above second example of the present disclosure.
- the method for tone mapping according to the second embodiment and the medium for tone mapping according to the third embodiment of the present disclosure even if a shooting condition is a backlight condition, a proper image can be obtained by performing tone mapping using a tone curve suitable for the backlight condition, and success rate of face unlock can be increased.
- FIG. 7A illustrates a photo of an example of an original image in a backlight condition.
- An inside of the center area where a face exists is much darker than an outside of the area.
- FIG. 7B illustrates a photo obtained by the above first, second and third embodiments of the present disclosure.
- the inside of the center area where the face exists is brighter than that of FIG. 7A, thus it is possible to recognize the face. As a result, a proper image is obtained, and success rate of face unlock can be increased.
- first and second are used herein for purposes of description and are not intended to indicate or imply relative importance or significance or to imply the number of indicated technical features. Thus, a feature defined as “first” and “second” may comprise one or more of these features.
- a plurality of means “two or more than two” , unless otherwise specified.
- the terms “mounted” , “connected” , “coupled” and the like are used broadly, and may be, for example, fixed connections, detachable connections, or integral connections; may also be mechanical or electrical connections; may also be direct connections or indirect connections via intervening structures; may also be inner communications of two elements which can be understood by those skilled in the art according to specific situations.
- a structure in which a first feature is "on" or “below” a second feature may include an embodiment in which the first feature is in direct contact with the second feature, and may also include an embodiment in which the first feature and the second feature are not in direct contact with each other, but are in contact via an additional feature formed therebetween.
- a first feature "on” , “above” or “on top of” a second feature may include an embodiment in which the first feature is orthogonally or obliquely “on” , “above” or “on top of” the second feature, or just means that the first feature is at a height higher than that of the second feature; while a first feature “below” , “under” or “on bottom of” a second feature may include an embodiment in which the first feature is orthogonally or obliquely “below” , "under” or “on bottom of” the second feature, or just means that the first feature is at a height lower than that of the second feature.
- Any process or method described in a flow chart or described herein in other ways may be understood to include one or more modules, segments or portions of codes of executable instructions for achieving specific logical functions or steps in the process, and the scope of a preferred embodiment of the present disclosure includes other implementations, in which it should be understood by those skilled in the art that functions may be implemented in a sequence other than the sequences shown or discussed, including in a substantially identical sequence or in an opposite sequence.
- the logic and/or step described in other manners herein or shown in the flow chart may be specifically achieved in any computer readable medium to be used by the instructions execution system, device or equipment (such as a system based on computers, a system comprising processors or other systems capable of obtaining instructions from the instructions execution system, device and equipment executing the instructions) , or to be used in combination with the instructions execution system, device and equipment.
- the computer readable medium may be any device adaptive for including, storing, communicating, propagating or transferring programs to be used by or in combination with the instruction execution system, device or equipment.
- the computer readable medium comprise but are not limited to: an electronic connection (an electronic device) with one or more wires, a portable computer enclosure (a magnetic device) , a random access memory (RAM) , a read only memory (ROM) , an erasable programmable read-only memory (EPROM or a flash memory) , an optical fiber device and a portable compact disk read-only memory (CDROM) .
- the computer readable medium may even be a paper or other appropriate medium capable of printing programs thereon, this is because, for example, the paper or other appropriate medium may be optically scanned and then edited, decrypted or processed with other appropriate methods when necessary to obtain the programs in an electric manner, and then the programs may be stored in the computer memories.
- each part of the present disclosure may be realized by the hardware, software, firmware or their combination.
- a plurality of steps or methods may be realized by the software or firmware stored in the memory and executed by the appropriate instructions execution system.
- the steps or methods may be realized by one or a combination of the following techniques known in the art: a discrete logic circuit having a logic gate circuit for realizing a logic function of a data signal, an application-specific integrated circuit having an appropriate combination logic gate circuit, a programmable gate array (PGA) , a field programmable gate array (FPGA) , etc.
- each function cell of the embodiments of the present disclosure may be integrated in a processing module, or these cells may be separate physical existence, or two or more cells are integrated in a processing module.
- the integrated module may be realized in a form of hardware or in a form of software function modules. When the integrated module is realized in a form of software function module and is sold or used as a standalone product, the integrated module may be stored in a computer readable storage medium.
- the storage medium mentioned above may be read-only memories, magnetic disks, CD, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Oral & Maxillofacial Surgery (AREA)
- General Health & Medical Sciences (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Facsimile Image Signal Circuits (AREA)
- Image Processing (AREA)
Abstract
A method for tone mapping on an image according to the present disclosure includes, acquiring an image, deciding whether a shooting condition is a backlight condition, when the shooting condition is decided not to be a backlight condition, calculating a luminance using camera parameters and selecting a tone curve according to the calculated luminance, when the shooting condition is decided to be a backlight condition, selecting a tone curve suitable for a backlight condition, and performing tone mapping on the image using the selected tone curve.
Description
The present disclosure relates to the image processing technology field in general, and more specifically, to a method and an apparatus for tone mapping on an image, and a computer usable medium storing software for implementing the method.
In recent years, color imaging apparatuses have been developed and widely used in devices such as mobile phones, digital cameras, etc. Along with progresses in high-speed/large-capacity data communication, high-speed processors or high color quality is also required.
One of the technologies, a facial recognition system for face unlock of a smart phone, uses images; performing tone mapping on an original image is effective in increasing its success rate.
However, in certain conditions such as backlighting, a proper image may not be obtained.
According to conventional techniques, a histogram is used to calculate a luminance for selecting a tone curve used for tone mapping. However, this method is time consuming and not always effective.
As a result, it may be difficult to obtain a proper image in a limited time; thus it is not possible to increase the success rate of face unlock.
SUMMARY
The present disclosure aims to solve at least one of the technical problems explained above. Accordingly, the present disclosure needs to provide a method and an apparatus for tone mapping, and a computer usable medium storing software for causing a computer to implement the method for tone mapping.
According to one aspect of the disclosure, a method for tone mapping may comprise:
acquiring an image;
deciding whether a shooting condition is a backlight condition;
when the shooting condition is decided not to be a backlight condition, calculating a luminance using camera parameters, and selecting a tone curve according to the calculated luminance;
when the shooting condition is decided to be a backlight condition, selecting a tone curve suitable for a backlight condition; and
performing tone mapping on the image using the selected tone curve.
In some embodiments, the method may further comprise:
performing face unlock using the tone mapped image and deciding whether the face unlock is successful; and
displaying the decision on the face unlock.
In some embodiments, when deciding whether a shooting condition is a backlight condition, the method may further comprise:
setting a certain area on the image;
calculating a first average luminance of an inside of the certain area and a second average luminance of an outside of the certain area;
deciding whether a difference between the first and second average luminances is greater than a threshold value; and
when the difference is decided to be greater than the threshold value, deciding that the condition is a backlight condition, and when the difference is decided not to be greater than the threshold value, deciding that the condition is not a backlight condition.
In some embodiments, the certain area may be set in a manner that a center position of the certain area is located on a line whose direction is that of gravity.
In some embodiments, when the shooting condition may be decided not to be a backlight condition, the luminance is calculated using the following formula including camera parameters, namely F_value
2, exposure time and ISO sensitivity:
where C is a calibration contrast.
In some embodiments, the image may be a still image or one of still images forming a moving image.
According to one aspect of the disclosure, an apparatus for tone mapping, the apparatus may comprise:
a camera unit configured to acquire an image;
a processor configured to input the current image, to decide whether a shooting condition is a backlight condition, when the shooting condition is decided not to be a backlight condition, to calculate a luminance using camera parameters and selecting a tone curve according to the calculated luminance, when the shooting condition is decided to be a backlight condition, to select a tone curve suitable for a backlight condition, and to perform tone mapping on the image using the selected tone curve; and
a display unit configured to display the tone mapped image.
In some embodiments, the processor may be further configured to perform face unlock using the tone mapped image, decide whether the face unlock is successful, and display the decision on the face unlock.
In some embodiments, when the processor decides whether the shooting condition is a backlight condition, the processor may be further configured to set a certain area on the image, to calculate a first average luminance of an inside of the certain area and a second average luminance of an outside of the certain area, to decide whether a difference between the first and second average luminances is greater than a threshold value, when the difference is decided to be greater than the threshold value, to decide that the condition is a backlight condition, and when the difference is decided not to be greater than the threshold value, to decide that the condition is not a backlight condition.
In some embodiments, the processor may set the area in a manner that a center position of the area is located on a line whose direction is that of gravity.
In some embodiments, when the shooting condition is decided not to be a backlight condition, the processor may calculate the luminance using the following formula including camera parameters, namely F_value
2, exposure time and ISO sensitivity:
where C is a calibration contrast.
In some embodiments, the image may be a still image or one of still images forming a moving image.
According to one aspect of the disclosure, a computer usable medium stores software for causing a computer to implement the above method for tone mapping.
These and/or other aspects and advantages of embodiments of the present disclosure will become apparent and more readily appreciated from the following descriptions made with reference to the drawings, in which:
FIG. 1 is a flowchart illustrating a method for tone mapping according to a comparative example;
FIG. 2A is a photo of an example of an original image in a backlight condition;
FIG. 2B is a photo of an example of an image obtained by the method for tone mapping according to the comparative example;
FIG. 3 is a block diagram schematically showing a circuit configuration of an apparatus for tone mapping according to a first embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating a method for tone mapping according to a second embodiment of the present disclosure;
FIG. 5 is a flowchart illustrating a method for deciding whether a shooting condition is a backlight condition according to the second embodiment of the present disclosure;
FIG. 6 is a photo for illustrating a rectangular area for face unlock and a gravity direction;
FIG. 7A is a photo of an example of an original image in a backlight condition; and
FIG. 7B is a photo of an example of an image obtained by the method for tone mapping according to the first embodiment and the second embodiment of the present disclosure.
Embodiments of the present disclosure will be described in detail and examples of the embodiments will be illustrated in the accompanying drawings. The same or similar elements and the elements having same or similar functions are denoted by like reference numerals throughout the descriptions. The embodiments described herein with reference to the drawings are explanatory and aim to illustrate the present disclosure, but shall not be construed to limit the present disclosure.
Before explaining a method for tone mapping on an image according to an example of the present disclosure, a method according to a comparative example, which does not detect a backlight condition, is explained for the sake of comparison.
The method for tone mapping according to the comparative example includes the following steps shown in FIG. 1.
In the step S11, a luminance is calculated by camera parameters, such as F_value, ISO sensitivity and/or exposure time.
In the step S12, a tone curve is selected according to the calculated luminance.
In the step S13, tone mapping is performed using the selected tone curve.
In an example of a photo taken in a backlight condition, a center area is dark and a surrounding area is much brighter than the center area, as illustrated in FIG. 2A.
In such a typical backlight condition, the center area may be too dark to recognize the face; thus a proper image cannot be obtained according to the above method.
Even if a backlight condition is detected in a conventional facial recognition system, a histogram is used to calculate the luminance, which is time consuming, as explained above.
An apparatus for tone mapping on an image according to a first example of the present disclosure is as follows.
Referring to FIG. 3, an apparatus 10 performing tone mapping for face unlock according to the first embodiment of the present disclosure includes a camera unit 11, a processor 12, a display unit 13 and a memory 14.
The camera unit 11 acquires an image under various shooting conditions, including a backlight condition. The image may be a still image or one of still images forming a moving image.
The processor 12 inputs the image from the camera unit 11, decides whether the shooting condition is a backlight condition, selects a proper tone curve in accordance with the decision, performs tone mapping on the acquired original image using the selected tone curve, and performs face unlock using the tone mapped image.
When the processor 12 decides that the shooting condition is a backlight condition, the processor 12 selects a tone curve suitable for a backlight scene. When the processor 12 decides that it is not a backlight condition, the processor 12 calculates the luminance using camera parameters, such as F_value, ISO sensitivity and/or exposure time, and selects a tone curve according to the calculated luminance.
When deciding whether the shooting condition is a backlight condition, the processor 12 calculates a first average luminance of an inside of a rectangular area where a face is supposed to exist, calculates a second average luminance of an outside of the rectangular area, decides that the shooting condition is a backlight condition when the difference between the first and second average luminances is greater than a threshold value, and decides that the shooting condition is not a backlight condition when the difference is not greater than a threshold value.
The processor 12 further performs tone mapping on the original image using the selected tone curve, performs face unlock using the tone mapped image, and decides whether face unlock is successful.
The display unit 13 receives the decision of face unlock from the processor 12 and displays it on its screen.
A method for tone mapping according to a second embodiment of the present disclosure includes the following steps shown in FIG. 4.
In the step S21, an image is acquired, under various conditions, including a backlight condition. The image may be a still image or one of still images forming a moving image
In the step S22, it is decided whether the shooting condition is a backlight condition.
If YES, namely, if it is a backlight condition, in the step S25, a proper tone curve suitable for a backlight scene is selected. If NO, namely, if it is not a backlight condition, in the step S23, a luminance is calculated using camera parameters, such as F_value, ISO sensitivity and/or exposure time. In the step S24, a tone curve is selected according to the calculated luminance.
In the step S26, tone mapping of the acquired (original) image is performed using the selected tone curve.
In the step S27, face unlock is performed using the tone mapped image, and it is decided whether the face unlock is successful.
In the step S28, the decision on the face unlock is displayed.
A method for deciding whether the shooting condition is a backlight condition is explained in detail referring to FIG. 5 as follows.
In the step S31, a rectangular area is set on the image acquired at the step S21 and displayed on the display unit 13. The rectangular area 21 is an area where a face is supposed to exist, as shown in FIG. 6. A center position of the rectangular area is not precisely a center of the whole image, and is supposed to be offset to an extent on a line whose direction is that of gravity. The gravity direction on the image can be determined by an acceleration sensor of a smartphone. The size of the rectangular area may be empirically set to about 1/4 width and 1/4 height of the whole image, for example.
In the step S32, a first average luminance of an inside of the rectangular area and a second average luminance of an outside of the rectangular area are calculated.
In the step S33, it is decided whether a difference between the first and second average luminances is greater than a threshold value.
As a first example, the threshold value is 50, the first average luminance is 10, and the second average luminance is 100.
The difference between the first and second average luminance is 90, thus the difference is greater than the threshold value. This condition is decided to be a backlight condition.
As a second example, the threshold value is 50, the first average luminance is 75, and the second average luminance is 100.
The difference between the first and second average luminances is 25, thus the difference is not greater than the threshold value. This condition is decided not to be a backlight condition.
As explained above, in the step S33, if a difference between the first and second average luminance is greater than the threshold value, the process moves on to the step S34 and the condition is decided to be a backlight condition. If not, the process moves on to the step S35 and the condition is decided not to be a backlight condition.
Further, if the condition is decided not to be a backlight condition, the luminance may be calculated using, for example, the following formula including camera parameters, namely F_value
2, exposure time and ISO sensitivity:
where C is a calibration contrast.
A computer usable medium according to a third embodiment of the present disclosure is a medium storing a software for causing a computer or an apparatus having a configuration of the above first example of the present disclosure to implement the method for tone mapping, and the method of the above second example of the present disclosure.
According to the above apparatus for tone mapping according to the first embodiment, the method for tone mapping according to the second embodiment and the medium for tone mapping according to the third embodiment of the present disclosure, even if a shooting condition is a backlight condition, a proper image can be obtained by performing tone mapping using a tone curve suitable for the backlight condition, and success rate of face unlock can be increased.
FIG. 7A illustrates a photo of an example of an original image in a backlight condition. An inside of the center area where a face exists is much darker than an outside of the area.
FIG. 7B illustrates a photo obtained by the above first, second and third embodiments of the present disclosure. The inside of the center area where the face exists is brighter than that of FIG. 7A, thus it is possible to recognize the face. As a result, a proper image is obtained, and success rate of face unlock can be increased.
In the description of embodiments of the present disclosure, it is to be understood that terms such as "central" , "longitudinal" , "transverse" , "length" , "width" , "thickness" , "upper" , "lower" , "front" , "rear" , "back" , "left" , "right" , "vertical" , "horizontal" , "top" , "bottom" , "inner" , "outer" , "clockwise" and "counterclockwise" should be construed to refer to the orientation or the position as described or as shown in the drawings in discussion. These relative terms are only used to simplify the description of the present disclosure, and do not indicate or imply that the device or element referred to must have a particular orientation or must be constructed or operated in a particular orientation. Thus, these terms cannot be constructed to limit the present disclosure.
In addition, terms such as "first" and "second" are used herein for purposes of description and are not intended to indicate or imply relative importance or significance or to imply the number of indicated technical features. Thus, a feature defined as "first" and "second" may comprise one or more of these features. In the description of the present disclosure, "a plurality of" means “two or more than two” , unless otherwise specified.
In the description of embodiments of the present disclosure, unless specified or limited otherwise, the terms "mounted" , "connected" , "coupled" and the like are used broadly, and may be, for example, fixed connections, detachable connections, or integral connections; may also be mechanical or electrical connections; may also be direct connections or indirect connections via intervening structures; may also be inner communications of two elements which can be understood by those skilled in the art according to specific situations.
In the embodiments of the present disclosure, unless specified or limited otherwise, a structure in which a first feature is "on" or "below" a second feature may include an embodiment in which the first feature is in direct contact with the second feature, and may also include an embodiment in which the first feature and the second feature are not in direct contact with each other, but are in contact via an additional feature formed therebetween. Furthermore, a first feature "on" , "above" or "on top of" a second feature may include an embodiment in which the first feature is orthogonally or obliquely "on" , "above" or "on top of" the second feature, or just means that the first feature is at a height higher than that of the second feature; while a first feature "below" , "under" or "on bottom of" a second feature may include an embodiment in which the first feature is orthogonally or obliquely "below" , "under" or "on bottom of" the second feature, or just means that the first feature is at a height lower than that of the second feature.
Various embodiments and examples are provided in the above description to implement different structures of the present disclosure. In order to simplify the present disclosure, certain elements and settings are described in the above. However, these elements and settings are only by way of example and are not intended to limit the present disclosure. In addition, reference numbers and/or reference letters may be repeated in different examples in the present disclosure. This repetition is for the purpose of simplification and clarity and does not refer to relations between different embodiments and/or settings. Furthermore, examples of different processes and materials are provided in the present disclosure. However, it would be appreciated by those skilled in the art that other processes and/or materials may also be applied.
Reference throughout this specification to "an embodiment" , "some embodiments" , "an exemplary embodiment" , "an example" , "a specific example" or "some examples" means that a particular feature, structure, material, or characteristics described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. Thus, the appearances of the above phrases throughout this specification are not necessarily referring to the same embodiment or example of the present disclosure. Furthermore, the particular features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.
Any process or method described in a flow chart or described herein in other ways may be understood to include one or more modules, segments or portions of codes of executable instructions for achieving specific logical functions or steps in the process, and the scope of a preferred embodiment of the present disclosure includes other implementations, in which it should be understood by those skilled in the art that functions may be implemented in a sequence other than the sequences shown or discussed, including in a substantially identical sequence or in an opposite sequence.
The logic and/or step described in other manners herein or shown in the flow chart, for example, a particular sequence table of executable instructions for realizing the logical function, may be specifically achieved in any computer readable medium to be used by the instructions execution system, device or equipment (such as a system based on computers, a system comprising processors or other systems capable of obtaining instructions from the instructions execution system, device and equipment executing the instructions) , or to be used in combination with the instructions execution system, device and equipment. As to the specification, "the computer readable medium" may be any device adaptive for including, storing, communicating, propagating or transferring programs to be used by or in combination with the instruction execution system, device or equipment. More specific examples of the computer readable medium comprise but are not limited to: an electronic connection (an electronic device) with one or more wires, a portable computer enclosure (a magnetic device) , a random access memory (RAM) , a read only memory (ROM) , an erasable programmable read-only memory (EPROM or a flash memory) , an optical fiber device and a portable compact disk read-only memory (CDROM) . In addition, the computer readable medium may even be a paper or other appropriate medium capable of printing programs thereon, this is because, for example, the paper or other appropriate medium may be optically scanned and then edited, decrypted or processed with other appropriate methods when necessary to obtain the programs in an electric manner, and then the programs may be stored in the computer memories.
It should be understood that each part of the present disclosure may be realized by the hardware, software, firmware or their combination. In the above embodiments, a plurality of steps or methods may be realized by the software or firmware stored in the memory and executed by the appropriate instructions execution system. For example, if it is realized by the hardware, likewise in another embodiment, the steps or methods may be realized by one or a combination of the following techniques known in the art: a discrete logic circuit having a logic gate circuit for realizing a logic function of a data signal, an application-specific integrated circuit having an appropriate combination logic gate circuit, a programmable gate array (PGA) , a field programmable gate array (FPGA) , etc.
Those skilled in the art shall understand that all or parts of the steps in the above exemplifying method of the present disclosure may be achieved by commanding the related hardware with programs. The programs may be stored in a computer readable storage medium, and the programs comprise one or a combination of the steps in the method embodiments of the present disclosure when run on a computer.
In addition, each function cell of the embodiments of the present disclosure may be integrated in a processing module, or these cells may be separate physical existence, or two or more cells are integrated in a processing module. The integrated module may be realized in a form of hardware or in a form of software function modules. When the integrated module is realized in a form of software function module and is sold or used as a standalone product, the integrated module may be stored in a computer readable storage medium.
The storage medium mentioned above may be read-only memories, magnetic disks, CD, etc.
Although embodiments of the present disclosure have been shown and described, it would be appreciated by those skilled in the art that the embodiments are explanatory and cannot be construed to limit the present disclosure, and changes, modifications, alternatives and variations can be made in the embodiments without departing from the scope of the present disclosure.
Claims (13)
- A method for tone mapping on an image, the method comprising:acquiring an image;deciding whether a shooting condition is a backlight condition;when the shooting condition is decided not to be a backlight condition, calculating a luminance using camera parameters, and selecting a tone curve according to the calculated luminance;when the shooting condition is decided to be a backlight condition, selecting a tone curve suitable for a backlight condition; andperforming tone mapping on the image using the selected tone curve.
- The method according to claim 1, wherein the method further comprises:performing face unlock using the tone mapped image and deciding whether the face unlock is successful; anddisplaying the decision regarding the face unlock.
- The method according to claim 1 or 2, wherein when deciding whether a shooting condition is a backlight condition, the method further comprises:setting a certain area on the image;calculating a first average luminance of an inside of the certain area and a second average luminance of an outside of the certain area;deciding whether a difference between the first and second average luminances is greater than a threshold value; andwhen the difference is decided to be greater than the threshold value, deciding that the condition is a backlight condition, and when the difference is decided not to be greater than the threshold value, deciding that the condition is not a backlight condition.
- The method according to claim 3, wherein the certain area is set in a manner that a center position of the certain area is located on a line whose direction is that of gravity.
- The method according to any one of claims 1 to 4, wherein when the shooting condition is decided not to be a backlight condition, the luminance is calculated using the following formula including camera parameters, namely F_value 2, exposure time and ISO sensitivity:where C is a calibration contrast.
- The method according to any one of claims 1 to 5, wherein the image is a still image or one of still images forming a moving image.
- An apparatus for tone mapping on an image, the apparatus comprising:a camera unit configured to acquire an image;a processor configured to input the current image, to decide whether a shooting condition is a backlight condition, when the shooting condition is decided not to be a backlight condition, to calculate a luminance using camera parameters and selecting a tone curve according to the calculated luminance, and when the shooting condition is decided to be a backlight condition, to select a tone curve suitable for a backlight condition, and to perform tone mapping on the image using the selected tone curve; anda display unit configured to display the tone mapped image.
- The apparatus according to claim 7, wherein the processor is further configured to perform face unlock using the tone mapped image, to decide whether the face unlock is successful, and to display the decision on the face unlock.
- The apparatus according to claim 7 or 8, wherein when the processor decides whether the shooting condition is a backlight condition, the processor is further configured to set a certain area on the image, to calculate a first average luminance of an inside of the certain area and a second average luminance of an outside of the certain area, to decide whether a difference between the first and second average luminances is greater than a threshold value, when the difference is decided to be greater than the threshold value, to decide that the condition is a backlight condition, and when the difference is decided not to be greater than the threshold value, to decide that the condition is not a backlight condition.
- The apparatus according to any one of claims 7 to 9, wherein the processor sets the area in a manner that a center position of the area is located on a line whose direction is that of gravity.
- The apparatus according to any one of claims 7 to 10, wherein when the shooting condition is decided not to be a backlight condition, the processor calculates the luminance using the following formula including camera parameters, namely F_value 2, exposure time and ISO sensitivity:where C is a calibration contrast.
- The apparatus according to any one of claims 7 to 11, wherein the image is a still image or one of still images forming a moving image.
- A computer usable medium storing software for causing a computer to implement the method for tone mapping on an image according to any one of claims 1 to 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2020/127210 WO2022094945A1 (en) | 2020-11-06 | 2020-11-06 | Method and apparatus for tone mapping, and computer usable medium storing software for implementing the method |
CN202080106677.7A CN116508326A (en) | 2020-11-06 | 2020-11-06 | Tone mapping method and apparatus, computer usable medium storing software for implementing the method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2020/127210 WO2022094945A1 (en) | 2020-11-06 | 2020-11-06 | Method and apparatus for tone mapping, and computer usable medium storing software for implementing the method |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022094945A1 true WO2022094945A1 (en) | 2022-05-12 |
Family
ID=81458470
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/127210 WO2022094945A1 (en) | 2020-11-06 | 2020-11-06 | Method and apparatus for tone mapping, and computer usable medium storing software for implementing the method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116508326A (en) |
WO (1) | WO2022094945A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116683986A (en) * | 2023-08-04 | 2023-09-01 | 武汉孚晟科技有限公司 | Ghost image identification method, system and medium of optical time domain reflectometer |
WO2024157095A1 (en) * | 2023-01-26 | 2024-08-02 | Samsung Electronics Co., Ltd. | Tone mapping in high-resolution imaging systems |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101594448A (en) * | 2008-05-30 | 2009-12-02 | 精工爱普生株式会社 | Image processing apparatus, image processing method, image processing program and printing equipment |
CN103841337A (en) * | 2012-11-23 | 2014-06-04 | 北京百度网讯科技有限公司 | Backlight compensation method and device |
CN104038704A (en) * | 2014-06-12 | 2014-09-10 | 小米科技有限责任公司 | Backlight portrait scene photographing processing method and device |
CN111294575A (en) * | 2020-01-19 | 2020-06-16 | Oppo广东移动通信有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6873729B2 (en) * | 2000-07-14 | 2005-03-29 | Ricoh Company, Ltd. | Method, apparatus and computer program product for processing image data |
US6853806B2 (en) * | 2002-09-13 | 2005-02-08 | Olympus Optical Co., Ltd. | Camera with an exposure control function |
CN109715528B (en) * | 2017-04-06 | 2021-04-09 | 日铁系统集成株式会社 | Information processing apparatus, information processing method, and recording medium |
CN108288044B (en) * | 2018-01-31 | 2020-11-20 | Oppo广东移动通信有限公司 | Electronic device, face recognition method and related product |
CN109005361A (en) * | 2018-08-06 | 2018-12-14 | Oppo广东移动通信有限公司 | Control method, device, imaging device, electronic equipment and readable storage medium storing program for executing |
-
2020
- 2020-11-06 WO PCT/CN2020/127210 patent/WO2022094945A1/en active Application Filing
- 2020-11-06 CN CN202080106677.7A patent/CN116508326A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101594448A (en) * | 2008-05-30 | 2009-12-02 | 精工爱普生株式会社 | Image processing apparatus, image processing method, image processing program and printing equipment |
CN103841337A (en) * | 2012-11-23 | 2014-06-04 | 北京百度网讯科技有限公司 | Backlight compensation method and device |
CN104038704A (en) * | 2014-06-12 | 2014-09-10 | 小米科技有限责任公司 | Backlight portrait scene photographing processing method and device |
CN111294575A (en) * | 2020-01-19 | 2020-06-16 | Oppo广东移动通信有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024157095A1 (en) * | 2023-01-26 | 2024-08-02 | Samsung Electronics Co., Ltd. | Tone mapping in high-resolution imaging systems |
CN116683986A (en) * | 2023-08-04 | 2023-09-01 | 武汉孚晟科技有限公司 | Ghost image identification method, system and medium of optical time domain reflectometer |
CN116683986B (en) * | 2023-08-04 | 2023-10-27 | 武汉孚晟科技有限公司 | Ghost image identification method, system and medium of optical time domain reflectometer |
Also Published As
Publication number | Publication date |
---|---|
CN116508326A (en) | 2023-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11765466B2 (en) | Imaging control method and apparatus, electronic device, and computer readable storage medium | |
US11158033B2 (en) | Method for image processing, electronic device, and non-transitory storage medium for improving contrast of image | |
US11270663B2 (en) | Method for detecting compensation parameters of brightness, method for compensating brightness, detection device for detecting compensation parameters of brightness, brightness compensation device, display device, and non-volatile storage medium | |
CN111028189B (en) | Image processing method, device, storage medium and electronic equipment | |
EP3429188B1 (en) | Regulation method, terminal equipment and non-transitory computer-readable storage medium for automatic exposure control of region of interest | |
CN106605403B (en) | Shooting method and electronic equipment | |
CN110766621B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
WO2022094945A1 (en) | Method and apparatus for tone mapping, and computer usable medium storing software for implementing the method | |
US10356308B2 (en) | Focusing state prompting method and shooting device | |
CN111246092B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN105407295B (en) | Mobile terminal filming apparatus and method | |
CN105959543A (en) | Shooting device and method of removing reflection | |
CN105704369A (en) | Information-processing method and device, and electronic device | |
CN110708463B (en) | Focusing method, focusing device, storage medium and electronic equipment | |
CN105472246A (en) | Photographing device and method | |
CN110766729A (en) | Image processing method, image processing device, storage medium and electronic equipment | |
US10692199B2 (en) | Image processing method and device, and non-transitory computer-readable storage medium | |
WO2007039947A1 (en) | Image correction device and image correction method | |
CN111885371A (en) | Image occlusion detection method and device, electronic equipment and computer readable medium | |
US20190012968A1 (en) | Mobile terminal and adjusting method thereof, and computer readable storage medium | |
WO2022077353A1 (en) | Method and apparatus for tone mapping, and computer usable medium storing software for implementing the method | |
EP4446974A1 (en) | Image processing method, electronic apparatus and chip | |
US20230064826A1 (en) | Method and device for controlling exposure level | |
WO2022241728A1 (en) | Image processing method, electronic device and non–transitory computer–readable media | |
KR20220141663A (en) | Method of processing image and elecronic apparatus performing the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20960406 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 202080106677.7 Country of ref document: CN |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20960406 Country of ref document: EP Kind code of ref document: A1 |