WO2022211414A1 - Electronic device for acquiring images including components of light output from light emitting module of electronic device and components of ambient light by using plurality of images, and control method therefor - Google Patents

Electronic device for acquiring images including components of light output from light emitting module of electronic device and components of ambient light by using plurality of images, and control method therefor Download PDF

Info

Publication number
WO2022211414A1
WO2022211414A1 PCT/KR2022/004323 KR2022004323W WO2022211414A1 WO 2022211414 A1 WO2022211414 A1 WO 2022211414A1 KR 2022004323 W KR2022004323 W KR 2022004323W WO 2022211414 A1 WO2022211414 A1 WO 2022211414A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
images
image
emitting module
light emitting
Prior art date
Application number
PCT/KR2022/004323
Other languages
French (fr)
Korean (ko)
Inventor
전태한
정지운
민진홍
김준호
오영재
최형선
Original Assignee
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Publication of WO2022211414A1 publication Critical patent/WO2022211414A1/en

Links

Images

Classifications

    • G06T5/92
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/141Control of illumination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/56Cameras or camera modules comprising electronic image sensors; Control thereof provided with illuminating means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/68Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits
    • H04N9/69Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits for modifying the colour signals by gamma correction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face

Definitions

  • This document relates to an electronic device for obtaining an image each including a component of light output from a light emitting module of the electronic device and a component of ambient light by using a plurality of images, and a method for controlling the same.
  • an electronic device such as a smart phone
  • the user may perform skin diagnosis through an electronic device such as a smart phone.
  • the continuous increase in demand for using skin diagnosis and beauty devices conveniently at home without visiting a specialized clinic has resulted in a demand for skin analysis technology development.
  • the light emitting module of the skin analysis device is set to output the most suitable light intensity to analyze the user's skin. Accordingly, a user for skin analysis may measure a skin condition by using a skin analysis device in an environment such as a dark room, for example, in order to block the influence of ambient light.
  • a measurement method may be a constraint on use when a user uses the skin analysis device. Therefore, there is a need to develop a technology for acquiring an image capable of excluding the influence of ambient light for accurate skin analysis.
  • an image from which an ambient light component is removed may be acquired using a plurality of acquired images, and the accuracy of skin analysis may be improved by performing skin analysis using the acquired image.
  • An electronic device capable of this may be provided.
  • an electronic device capable of acquiring an image including only an ambient light component by using a plurality of acquired images, and estimating a photographing surrounding environment state using the acquired image may be provided.
  • an image from which an ambient light component is removed may be acquired using a plurality of acquired images, and the accuracy of skin analysis may be improved by performing skin analysis using the acquired image.
  • a method of controlling an electronic device capable of being used may be provided.
  • an electronic device capable of acquiring an image including only an ambient light component by using a plurality of acquired images, and estimating a photographing surrounding environment state using the acquired image A control method may be provided.
  • An electronic device includes at least one camera, at least one light emitting module, and at least one processor, wherein the at least one processor includes the at least one camera and the at least one light emitting module.
  • Acquire a plurality of images of a body part of a user by using a module, recognize a face region from the plurality of acquired images, perform inverse gamma correction on the recognized face region, and perform the inverse gamma correction Estimate an intensity of ambient light based on at least two or more images from among a plurality of performed images, and based on the estimated intensity of ambient light, a first image including only a component of the ambient light and the at least one of the electronic device
  • Each of the second images including only the light component output by the light emitting module may be set.
  • a method of controlling an electronic device includes: acquiring a plurality of images of a body part of a user by using at least one camera of the electronic device and at least one light emitting module of the electronic device; An operation of recognizing a face region from a plurality of acquired images, an operation of performing inverse gamma correction on the recognized face region, and an operation of performing inverse gamma correction on ambient light based on at least two or more images among a plurality of images on which inverse gamma correction has been performed Based on the operation of estimating the intensity and the estimated intensity of ambient light, a first image including only a component of the ambient light and a second image including only a light component output by the at least one light emitting module of the electronic device It may include an operation of acquiring each.
  • an image from which an ambient light component is removed may be acquired using a plurality of acquired images, and the accuracy of skin analysis may be improved by performing skin analysis using the acquired image.
  • An electronic device capable of this may be provided.
  • an electronic device capable of acquiring an image including only an ambient light component by using a plurality of acquired images, and estimating a photographing surrounding environment state using the acquired image may be provided.
  • FIG. 1A and 1B are exemplary views for explaining an electronic device according to an embodiment of the present document.
  • FIG. 2 illustrates a first image including only an ambient light component based on an intensity of ambient light estimated by the electronic device according to an embodiment of the present document and a second image including only a light component output from a light emitting module of the electronic device It is an exemplary diagram for explaining each acquired function or operation.
  • 3A, 3B, 3C, and 3D are exemplary views for explaining a function or operation of acquiring a plurality of images including a light component output from a light emitting module of an electronic device and an ambient light component.
  • FIG. 4 is an exemplary diagram for explaining a function or operation of estimating an ambient light component according to an embodiment of the present document.
  • FIG. 5 is an exemplary view for explaining a function or operation of performing skin analysis using a second image and providing a result of the skin analysis according to an embodiment of the present document.
  • FIG. 6 is an exemplary diagram for explaining a function or operation of estimating a photographing environment state (eg, a color temperature and/or a position of lighting) using a first image according to an embodiment of the present document.
  • a photographing environment state eg, a color temperature and/or a position of lighting
  • 7A and 7B are exemplary views for explaining a function or operation of estimating a lighting position using a first image.
  • FIG. 8 is an exemplary diagram for explaining that various embodiments of the present document may be applied when a mobile device (eg, a smart phone) according to an embodiment of the present document is used.
  • a mobile device eg, a smart phone
  • FIG. 1A and 1B are exemplary views for explaining an electronic device according to an embodiment of the present document.
  • the electronic device 101 includes a processor 110 , a camera 120 , a light emitting module 130 , a memory 140 , and a display 150 .
  • a processor 110 may include a processor 110 , a camera 120 , a light emitting module 130 , a memory 140 , and a display 150 .
  • some of these components may be implemented as one integrated circuit.
  • the camera 120 and the light emitting module 130 may be implemented while being embedded in the display 130 .
  • at least some of the components of FIG. 1 may be implemented so that the electronic device 101 is not included.
  • the processor 110 executes, for example, software (eg, a program) and at least one other component (eg, hardware or software components) and may perform various data processing or operations.
  • the processor 110 loads instructions or data obtained from another component (eg, the sensor module 176) into the memory 120, A command or data stored in the memory 120 may be processed, and result data may be stored in the memory 120 .
  • the processor 110 is a main processor (eg, a central processing unit or an application processor), and an auxiliary processor (eg, a graphic processing unit, an image signal processor, a sensor hub) that can be operated independently or together processor, or communication processor).
  • the auxiliary processor may be configured to use less power than the main processor or to specialize in a designated function.
  • the auxiliary processor according to an embodiment of the present document may be implemented separately from or as a part of the main processor.
  • the co-processor may be, for example, on behalf of the main processor while the main processor is in an inactive (eg, sleep) state, or in conjunction with the main processor while the main processor is in an active (eg, running application) state, in an electronic device. It is possible to control at least some of functions or states related to at least one of the components 101 (eg, the display 150 or the camera 120 ).
  • the auxiliary processor eg, an image signal processor
  • the auxiliary processor may be implemented as a part of another functionally related component (eg, the camera 120 ).
  • At least one camera 120 may capture a still image or a moving image.
  • At least one camera 120 according to an embodiment of the present document includes one or more lenses, image sensors (eg, charge coupled device (CCD), CMOS device (CMOS)), image signal processors, or flashes. can do.
  • At least one camera 120 according to an embodiment of this document may receive a camera control signal from the processor 110 .
  • the camera control signal according to the exemplary embodiment of this document may include an electrical signal for photographing at least a part of the user's body currently displayed on the display 150 .
  • the light emitting module 130 may include at least one light emitting diode.
  • the light emitting module 130 according to the exemplary embodiment of this document may mean one light emitting diode or a single circuit in which a plurality of light emitting diodes are disposed.
  • the light emitting module 130 according to an embodiment of this document may include a light emitting diode that outputs UV (ultra violet) or various modules.
  • the light emitting module 130 according to an embodiment of this document may control the output of at least some light emitting modules according to the light emitting module control signal received from the processor 110 .
  • the light emitting module 130 according to an embodiment of this document may be disposed on the front side of the electronic device 101 .
  • the light emitting module 130 according to an embodiment of the present document may be provided separately from (eg, separated from) the display 150 as shown in FIG. 1B .
  • the light emitting module 130 according to an embodiment of this document may be implemented while being embedded in a display.
  • the light emitting module 130 according to an embodiment of this document may be provided in such a way that at least a portion of the light emitting module 130 is exposed through a hole provided in the display 150 .
  • the number of light emitting modules 130 according to an embodiment of this document may be variously changed and implemented.
  • the light emitting module 130 according to an embodiment of this document may be controlled by receiving a light emitting module control signal from the processor 110 .
  • the light emitting module 130 may be switched from an OFF state to an ON state or from an ON state to an OFF state according to a light emitting module control signal transmitted from the processor 110, , the intensity of the output light amount can be adjusted.
  • the memory 140 may store various data used by at least one component (eg, the processor 110 or the camera 120 ) of the electronic device 101 .
  • the data may include, for example, input data or output data for software (eg, a program) and instructions related thereto.
  • the memory 140 may include a volatile memory or a non-volatile memory.
  • a program may be stored as software in a memory, and may include, for example, an operating system, middleware, or an application.
  • the memory 140 may at least temporarily store an image acquired by the camera 120 .
  • the display 150 may visually provide information to the outside (eg, a user) of the electronic device 101 .
  • the display 150 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the corresponding device.
  • the display 150 includes a touch circuitry configured to sense a touch, or a sensor circuitry configured to measure the intensity of a force generated by the touch (eg, a pressure sensor). can do.
  • FIG. 2 illustrates only a first image including only an ambient light component based on an intensity Ia of ambient light estimated by the electronic device 101 according to an embodiment of the present document and a light component output from a light emitting module of the electronic device
  • 3A to 3D are exemplary views for explaining a function or operation of acquiring a plurality of images including a light component output from a light emitting module of an electronic device and an ambient light component.
  • 4 is an exemplary diagram for explaining a function or operation of estimating an ambient light component according to an embodiment of the present document.
  • 5 is an exemplary view for explaining a function or operation of performing skin analysis using a second image and providing a result of the skin analysis according to an embodiment of the present document.
  • the electronic device 101 may acquire a plurality of images using different amounts of light.
  • the electronic device 101 according to an embodiment of the present document may adjust the intensity of light output from the light emitting module 130 to obtain a plurality of images using different amounts of light.
  • the electronic device 101 according to an embodiment of the present document may photograph a plurality of images according to a user's photographing input signal.
  • a photographing signal according to an exemplary embodiment of this document may be input according to a user's touch input to a user interface displayed on the display 150 .
  • the plurality of images according to the exemplary embodiment of this document may include an ambient light component Ia and a light component Id1 , Id2 and/or Id3 output by the light emitting module 130 .
  • the image of the user 300 is to be acquired (eg, photographed) while external lighting is in an ON state and light of a first intensity is output from the light emitting module 130 .
  • the total light intensity received by one pixel is the ambient light component Ia and the light component Id1 output by the light emitting module 130 as shown in FIG. 3B .
  • a combined amount may be received.
  • FIG. 3A the image of the user 300 is to be acquired (eg, photographed) while external lighting is in an ON state and light of a first intensity is output from the light emitting module 130 .
  • the total light intensity received by one pixel is the ambient light component Ia and the light component Id1 output by the light emitting module 130 as shown in FIG. 3B .
  • a combined amount may be received.
  • FIG. 3A the image of
  • the image of the user 300 may be acquired (eg, photographed) while external lighting is in an ON state and light of a second intensity is output from the light emitting module 130 . .
  • the total light intensity received by one pixel is the ambient light component Ia and the light component Id2 output by the light emitting module 130 as shown in FIG. 3D .
  • a combined amount may be received.
  • an overhead light is shown as a representative example of ambient light, but this is exemplary.
  • ambient light affects the brightness of an image acquired through the camera 120, such as indoor lighting that cannot be controlled by the electronic device 101 or sunlight incident into a house through a window.
  • the state can include all factors.
  • the electronic device 101 may identify a face region from each of a plurality of acquired images.
  • the electronic device 101 according to an embodiment of the present document may detect a face region from an acquired image through various algorithms for detecting a face.
  • the electronic device 101 according to an embodiment of the present document may include principal component analysis (PCA), linear discriminate analysis (LDA), and elastic bundle graph matching using eigenface. ), the Hidden Markov model, multilinear subspace learning using tensor expressions, or neuronal motivated dynamic link matching. can be detected.
  • the electronic device 101 may perform inverse gamma correction on the identified face region.
  • Gamma correction may be performed on a plurality of images acquired by the electronic device 101 according to an embodiment of the present document.
  • the electronic device 101 according to an embodiment of the present document performs inverse gamma correction on gamma-corrected data (eg, values of pixels constituting a plurality of images) by using a look-up table for inverse gamma correction. can do.
  • Inverse gamma-corrected data may have a linear characteristic.
  • Inverse gamma values enabling inverse gamma-corrected data to have a linear characteristic may be stored in a lookup table according to an embodiment of the present document.
  • a first inverse gamma table for inverse gamma-correcting red (R) data and a second inverse gamma table for inverse gamma-correcting green (G) data and a third inverse gamma table for performing inverse gamma correction of blue (B) data may be previously stored in the memory 140 of the electronic device 101 .
  • the electronic device 101 estimates values of RGB components of ambient light based on the face region on which inverse gamma correction has been performed, and includes only the values of RGB components of ambient light. 1
  • An image eg, an image reflected by ambient light
  • the electronic device 101 according to an embodiment of the present document may estimate values of RGB components of ambient light using linearity of inverse gamma-corrected data.
  • an electronic device 101 according to an exemplary embodiment of the present document may display a specific part of the acquired image of the user 300 (eg, a plurality of images acquired in operation 210 ). A graph as shown in FIG.
  • the electronic device 101 may be generated for each of the components (eg, R(Red) component) constituting one pixel 300a.
  • the electronic device 101 according to an embodiment of the present document generates a graph that is substantially straight line based on values of components constituting one pixel 300a (eg, intensity with respect to the R component). can do.
  • the electronic device 101 according to an exemplary embodiment of the present document provides a section between a third image having specific RGB component values and a y-intercept based on linearity (eg, a portion shown by a thick line in FIG. 4 ). estimation may be possible.
  • the electronic device 101 according to an embodiment of the present document may estimate a y-intercept value of the generated graph as a value of a specific component of any one pixel constituting the ambient light.
  • the electronic device 101 may estimate the y-intercept value of the generated graph as values of RGB components of ambient light.
  • the electronic device 101 according to an embodiment of the present document may repeatedly perform operation 240 with respect to other components (eg, a G (green) component and a B (blue) component) constituting a specific pixel.
  • the electronic device 101 according to an embodiment of the present document may repeatedly perform operation 240 with respect to a plurality of pixels constituting a plurality of acquired images.
  • the electronic device 101 according to an embodiment of the present document repeatedly performs operation 240 on each component (eg, RGB components) of a plurality of pixels constituting the plurality of acquired images, thereby composing an ambient light component.
  • An image eg, the first image
  • Ia may be obtained.
  • the electronic device 101 performs a second image including only the light component output from the light emitting module of the electronic device 101 based on the estimated RGB component values of the ambient light. can be obtained.
  • the electronic device 101 according to an embodiment of the present document provides a specific component (eg, R component) value of a pixel constituting the obtained third image and a component (eg, R component) of a pixel constituting the obtained first image.
  • An image eg, a second image including only a light component (eg, Id1 ) output from the light emitting module 130 of the electronic device 101 for a specific pixel component by repeatedly calculating the difference in component) value for each component ) can be obtained.
  • a specific component (eg, R component) value of a pixel constituting the obtained fourth image and a specific component (eg, R component) of a pixel constituting the obtained first image For example, by repeatedly calculating the difference in the R component) value for each component, an image including only the light component (eg, Id2) output from the light emitting module 130 of the electronic device 101 can be obtained for a specific pixel component.
  • an image including only a light component (eg, Id3) output from the light emitting module 130 of the electronic device 101 may be obtained.
  • the electronic device 101 may estimate a photographing environment state by using the acquired first image. Operation 260 according to an embodiment of this document will be described in more detail with reference to FIGS. 6, 7A, and 7B.
  • the electronic device 101 performs skin analysis using the acquired second image (eg, an image from which the ambient light component Ia is removed from the fourth image) in operation 270 , , the execution result may be provided through the electronic device 101 .
  • the electronic device 101 according to an embodiment of the present document may display a plurality of images obtained in operation 250 (eg, an image from which an ambient light component is removed from a third image and an image from which an ambient light component is removed from a fourth image).
  • the skin analysis may be performed using any one image (eg, an image from which the ambient light component is removed from the fourth image) among the image and the fifth image from which the ambient light component is removed.
  • the electronic device 101 may select any one image according to the purpose of skin analysis (eg, acne distribution analysis, redness distribution analysis, skin tone analysis, etc.).
  • the purpose of skin analysis according to an embodiment of the present document may be selected by a user.
  • the electronic device 101 according to an embodiment of the present document may display a plurality of images obtained in operation 250 (eg, an image from which an ambient light component is removed from the third image, and an ambient light component from the fourth image Any one of the removed image and the image from which the ambient light component is removed from the fifth image (eg, the image from which the ambient light component is removed from the fourth image) may be selected as an image for skin analysis. As shown in FIG.
  • the electronic device 101 may provide a skin analysis result through the display 150 of the electronic device 101 .
  • the electronic device 101 may display a guide message 510 stating, “a portion having severe acne” or “a portion having severe redness” on the display 150 .
  • the electronic device 101 according to an embodiment of the present document provides a guide message 510 including skin tone information (eg, “skin tone measurement result. L: 65, a: 14, b: 18).
  • the electronic device 101 according to an embodiment of the present document may output a specific image (eg, a fourth image) using a lookup table in which a correspondence relationship between RGB component values and Lab values is defined. ) may be converted into a Lab value, and the converted Lab value may be provided through the electronic device 101 .
  • the electronic device 101 may detect a plurality of feature points in the face region of the user 300 in order to analyze the skin condition.
  • the electronic device 101 according to an embodiment of the present document uses a plurality of detected feature points to determine the position and size of eyes, ears, nose, and mouth, the position and size of eyebrows, the density of eyebrows, and wrinkles At least one of the position, the width of the forehead, the position and size of the chin, the position and size of the cheekbones, the position and size of the forehead, the contour of the face, the size of the face, the position of the hair, or the position and size of the scar may be identified.
  • FIG. 6 is an exemplary diagram 600 for explaining a function or operation of estimating a photographing environment state (eg, a color temperature and/or a position of lighting) using a first image according to an embodiment of the present document.
  • 7A and 7B are exemplary views for explaining a function or operation of estimating a lighting position using a first image.
  • the electronic device 101 may acquire a plurality of images using different amounts of light.
  • the electronic device 101 according to an embodiment of the present document may adjust the intensity of light output from the light emitting module 130 to obtain a plurality of images using different amounts of light.
  • the electronic device 101 according to an embodiment of the present document may photograph a plurality of images according to a user's photographing input signal.
  • a photographing signal according to an exemplary embodiment of this document may be input according to a user's touch input to a user interface displayed on the display 150 .
  • the plurality of images according to the exemplary embodiment of this document may include an ambient light component Ia and a light component Id1 , Id2 and/or Id3 output by the light emitting module 130 .
  • the image of the user 300 is to be acquired (eg, photographed) while external lighting is in an ON state and light of a first intensity is output from the light emitting module 130 .
  • the total light intensity received by one pixel is the ambient light component Ia and the light component Id1 output by the light emitting module 130 as shown in FIG. 3B .
  • a combined amount may be received.
  • the electronic device 101 may identify a face region from each of the plurality of acquired images in operation 620 .
  • the electronic device 101 according to an embodiment of the present document may detect a face region from an acquired image through various algorithms for detecting a face.
  • the electronic device 101 according to an embodiment of the present document may include principal component analysis (PCA), linear discriminate analysis (LDA), and elastic bundle graph matching using eigenface. ), the Hidden Markov model, multilinear subspace learning using tensor expressions, or neuronal motivated dynamic link matching. can be detected.
  • the electronic device 101 may perform inverse gamma correction on the identified face region in operation 630 .
  • Gamma correction may be performed on a plurality of images acquired by the electronic device 101 according to an embodiment of the present document.
  • the electronic device 101 according to an embodiment of the present document performs inverse gamma correction on gamma-corrected data (eg, values of pixels constituting a plurality of images) by using a look-up table for inverse gamma correction. can do.
  • Inverse gamma-corrected data may have a linear characteristic.
  • Inverse gamma values enabling inverse gamma-corrected data to have a linear characteristic may be stored in a lookup table according to an embodiment of the present document.
  • a first inverse gamma table for inverse gamma-correcting red (R) data and a second inverse gamma table for inverse gamma-correcting green (G) data and a third inverse gamma table for performing inverse gamma correction of blue (B) data may be previously stored in the memory 140 of the electronic device 101 .
  • the electronic device 101 estimates values of RGB components of ambient light based on the face region on which inverse gamma correction has been performed, and a second method including only the values of RGB components of ambient light. 1 image can be acquired.
  • the electronic device 101 according to an embodiment of the present document may estimate values of RGB components using linearity of inverse gamma-corrected data.
  • an electronic device 101 according to an exemplary embodiment of the present document may display a specific part of the acquired image of the user 300 (eg, a plurality of images acquired in operation 210 ). A graph as shown in FIG. 4 may be generated for each of the components (eg, R(Red) component) constituting one pixel 300a.
  • the electronic device 101 generates a graph that is substantially straight line based on values of components constituting one pixel 300a (eg, intensity with respect to the R component). can do.
  • the electronic device 101 according to an embodiment of the present document provides a section between the third image having a specific RGB component value and the y-intercept based on linearity (eg, a portion shown by a thick line in FIG. 4 ). ) can be estimated.
  • the electronic device 101 according to an embodiment of the present document may estimate a y-intercept value of the generated graph as a value of a specific component of any one pixel constituting the ambient light.
  • the electronic device 101 may estimate the y-intercept value of the generated graph as values of RGB components of ambient light.
  • the electronic device 101 according to an embodiment of the present document may repeatedly perform operation 640 with respect to other components (eg, a G (green) component and a B (blue) component) constituting a specific pixel.
  • the electronic device 101 according to an embodiment of the present document may repeatedly perform operation 640 on a plurality of pixels constituting a plurality of acquired images.
  • the electronic device 101 according to an embodiment of the present document repeatedly performs operation 640 for each component (eg, RGB components) of a plurality of pixels constituting a plurality of acquired images, thereby composing an ambient light component.
  • An image eg, the first image
  • Ia may be obtained.
  • the electronic device 101 may estimate a photographing environment state by using the acquired first image.
  • the photographing environment state according to an embodiment of the present document may include, for example, a position of an ambient light and/or a color temperature of the ambient light.
  • the obtained first image has a red (R) pixel value, a green (G) pixel value, and a blue (B) pixel value (or pixel intensity) (eg, an average value or sum of pixel values).
  • the electronic device 101 can be an image with the largest pixel value near the upper left (eg, the first region 710) and the smallest pixel value (eg, the average value or sum of the pixel values) in the lower right region (eg, the second region 720). have.
  • the electronic device 101 according to an embodiment of the present document illuminates near a region (eg, the first region 710 ) having a large value (or intensity) of a pixel value (or pixel intensity). It can be assumed that this is located Similarly, referring to FIG.
  • the obtained first image has a red (R) pixel value, a green (G) pixel value, and a blue (B) pixel value (or pixel intensity) near the lower right corner (eg, the second region) (720)) (eg, average value or sum of pixel values) is the largest, and the upper left (eg, first region 710 ) has the smallest pixel value (eg, average value or sum of pixel values).
  • the electronic device 101 according to an embodiment of the present document illuminates near a region (eg, the second region 720 ) having a large pixel value (or pixel intensity) value (or intensity).
  • the electronic device 101 calculates a ratio of a red (R) pixel, a green (G) pixel, and a blue (B) pixel constituting a first image, and based on the calculated ratio, The color temperature of ambient light can be estimated.
  • the electronic device 101 according to an embodiment of the present document may estimate the color temperature of ambient light by using a lookup table in which a relationship between a ratio of pixels constituting an image and a color temperature is defined.
  • pixels eg, a red (R) pixel, a green (G) pixel, and a blue (B) constituting an image (eg, a first image)
  • R red
  • G green
  • B blue
  • the ratio of pixels is equal to each other as 0.333, it can be estimated that the color temperature is 5471K by referring to the look-up table.
  • the mobile device 810 may acquire a plurality of images using different amounts of light.
  • the mobile device 810 when taking a selfie, uses a flash on the front surface of the mobile device 810 (eg, a portion where the display of the mobile device 810 is exposed). An image when is operated and an image when the front flash is not operated can be acquired.
  • the mobile device 810 according to an embodiment of the present document may perform operations 220 to 270 using a plurality of images obtained using different amounts of light as described above.
  • a new image eg high dynamic range (HDR) image
  • the electronic device 101 may perform skin analysis using the generated new image.
  • the electronic device may have various types of devices.
  • the electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, a skin analysis device, or a home appliance device.
  • a portable communication device eg, a smart phone
  • a computer device e.g., a smart phone
  • a portable multimedia device e.g., a portable medical device
  • a camera e.g., a camera
  • a wearable device e.g., a wearable device
  • a skin analysis device e.g., a smart bracelet
  • first, second, or first or second may simply be used to distinguish an element from other elements in question, and may refer elements to other aspects (e.g., importance or order) is not limited. that one (eg first) component is “coupled” or “connected” to another (eg, second) component with or without the terms “functionally” or “communicatively” When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.
  • module used in the present disclosure may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as, for example, logic, logic block, component, or circuit.
  • a module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions.
  • the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • Various embodiments of the present document may be implemented as software including one or more instructions stored in a storage medium readable by a machine (eg, the electronic device 101).
  • the processor eg, the processor 110
  • the device eg, the electronic device 101
  • the one or more instructions may include code generated by a compiler or code executable by an interpreter.
  • the device-readable storage medium may be provided in the form of a non-transitory storage medium.
  • non-transitory only means that the storage medium is a tangible device and does not include a signal (eg, electromagnetic wave), and this term refers to the case where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.
  • a signal eg, electromagnetic wave
  • the methods according to various embodiments disclosed in this document may be provided by being included in a computer program product.
  • Computer program products may be traded between sellers and buyers as commodities.
  • the computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or via an application store (eg Play Store TM ) or on two user devices ( It can be distributed (eg downloaded or uploaded) directly or online between smartphones (eg: smartphones).
  • a portion of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a memory of a relay server.
  • each component eg, a module or a program of the above-described components may include a singular or a plurality of entities.
  • one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added.
  • a plurality of components eg, a module or a program
  • the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. .
  • operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, or omitted. , or one or more other operations may be added.

Abstract

Disclosed are an electronic device for acquiring images including components of light output from a light emitting module of the electronic device and components of ambient light by using a plurality of images, and a control method therefor. The electronic device according to an embodiment disclosed herein comprises at least one camera, at least one light emitting module, and at least one processor. The at least one processor can be set to: acquire a plurality of images of a portion of a user's body by using the at least one camera and the at least one light emitting module; recognize face regions in the plurality of acquired images; perform inverse gamma correction on the recognized face regions; and acquire first images and second images on the basis of at least two images among the plurality of images on which the inverse gamma correction has been performed, wherein the first images only include values of RGB components of ambient light, and the second images only include components of light output from the at least one light emitting module of the electronic device.

Description

복수의 이미지들을 이용하여, 전자 장치의 발광 모듈에서 출력된 광의 성분과 주변 광의 성분을 포함하는 이미지를 각각 획득하는 전자 장치 및 그 제어 방법An electronic device for obtaining images each including a component of light output from a light emitting module of the electronic device and a component of ambient light by using a plurality of images, and a control method therefor
본 문서는, 복수의 이미지들을 이용하여, 전자 장치의 발광 모듈에서 출력된 광의 성분과 주변 광의 성분을 각각 포함하는 이미지를 획득하는 전자 장치 및 그 제어 방법에 관한 것이다.This document relates to an electronic device for obtaining an image each including a component of light output from a light emitting module of the electronic device and a component of ambient light by using a plurality of images, and a method for controlling the same.
전자 장치, 예를 들어, 스마트 폰과 같은 전자 장치를 통해 제공되는 다양한 서비스 및 부가 기능들이 점차 증가하고 있다. 예를 들어, 사용자는 스마트 폰과 같은 전자 장치를 통하여 피부 진단을 수행할 수 있다. 이와 같이, 전문 클리닉을 방문하지 않고 댁 내에서 편리하게 피부 진단과 미용 기기를 이용하고자 하는 수요의 지속적인 증가로 피부 분석에 대한 기술 개발이 요청되고 있는 실정이다.Various services and additional functions provided through an electronic device, for example, an electronic device such as a smart phone, are gradually increasing. For example, the user may perform skin diagnosis through an electronic device such as a smart phone. As described above, the continuous increase in demand for using skin diagnosis and beauty devices conveniently at home without visiting a specialized clinic has resulted in a demand for skin analysis technology development.
피부 분석 장치의 발광 모듈은, 사용자의 피부를 분석하기 위해 가장 적합한 광 세기를 출력하도록 설정되어 있다. 이에 따라, 피부 분석을 위한 사용자는 주변 광의 영향을 차단하기 위하여 예를 들어 암실과 같은 환경 하에서 피부 분석 장치를 이용하여 피부 상태를 측정하는 경우가 있다. 그러나, 이와 같은 측정 방식은 사용자가 피부 분석 장치를 사용하는 경우에 있어서 사용상의 제약 요소가 될 수 있다. 따라서, 정확한 피부 분석을 위하여 주변 광의 영향을 배제할 수 있는 이미지를 획득하기 위한 기술 개발이 필요한 실정이다. The light emitting module of the skin analysis device is set to output the most suitable light intensity to analyze the user's skin. Accordingly, a user for skin analysis may measure a skin condition by using a skin analysis device in an environment such as a dark room, for example, in order to block the influence of ambient light. However, such a measurement method may be a constraint on use when a user uses the skin analysis device. Therefore, there is a need to develop a technology for acquiring an image capable of excluding the influence of ambient light for accurate skin analysis.
본 문서의 일 실시예에 따르면, 획득된 복수의 이미지들을 이용하여 주변 광 성분이 제거된 이미지를 획득할 수 있고, 이와 같이 획득된 이미지를 이용하여 피부 분석을 수행함으로써 피부 분석의 정확도를 향상시킬 수 있는 전자 장치가 제공될 수 있다. According to an embodiment of the present document, an image from which an ambient light component is removed may be acquired using a plurality of acquired images, and the accuracy of skin analysis may be improved by performing skin analysis using the acquired image. An electronic device capable of this may be provided.
본 문서의 일 실시예에 따르면, 획득된 복수의 이미지들을 이용하여 주변 광 성분만이 포함된 이미지를 획득할 수 있고, 이와 같이 획득된 이미지를 이용하여 촬영 주변 환경 상태를 추정할 수 있는 전자 장치가 제공될 수 있다. According to an embodiment of the present document, an electronic device capable of acquiring an image including only an ambient light component by using a plurality of acquired images, and estimating a photographing surrounding environment state using the acquired image may be provided.
본 문서의 일 실시예에 따르면, 획득된 복수의 이미지들을 이용하여 주변 광 성분이 제거된 이미지를 획득할 수 있고, 이와 같이 획득된 이미지를 이용하여 피부 분석을 수행함으로써 피부 분석의 정확도를 향상시킬 수 있는 전자 장치의 제어 방법이 제공될 수 있다. According to an embodiment of the present document, an image from which an ambient light component is removed may be acquired using a plurality of acquired images, and the accuracy of skin analysis may be improved by performing skin analysis using the acquired image. A method of controlling an electronic device capable of being used may be provided.
본 문서의 일 실시예에 따르면, 획득된 복수의 이미지들을 이용하여 주변 광 성분만이 포함된 이미지를 획득할 수 있고, 이와 같이 획득된 이미지를 이용하여 촬영 주변 환경 상태를 추정할 수 있는 전자 장치의 제어 방법이 제공될 수 있다.According to an embodiment of the present document, an electronic device capable of acquiring an image including only an ambient light component by using a plurality of acquired images, and estimating a photographing surrounding environment state using the acquired image A control method may be provided.
본 문서의 일 실시예에 따른 전자 장치는, 적어도 하나의 카메라, 적어도 하나의 발광 모듈, 및 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는, 상기 적어도 하나의 카메라 및 상기 적어도 하나의 발광 모듈을 이용하여 사용자의 신체 일부에 대한 복수의 이미지들을 획득하고, 상기 획득된 복수의 이미지들에서 얼굴 영역을 인식하고, 상기 인식된 얼굴 영역에 대해서 역 감마 보정을 수행하고, 상기 역 감마 보정이 수행된 복수의 이미지들 중 적어도 2 이상의 이미지들을 기반으로 주변 광의 세기를 추정하고, 상기 추정된 주변 광의 세기를 기반으로, 상기 주변 광의 성분만을 포함하는 제1 이미지와 상기 전자 장치의 상기 적어도 하나의 발광 모듈에 의해 출력된 광 성분만을 포함하는 제2 이미지를 각각 획득하도록 설정될 수 있다. An electronic device according to an embodiment of the present document includes at least one camera, at least one light emitting module, and at least one processor, wherein the at least one processor includes the at least one camera and the at least one light emitting module. Acquire a plurality of images of a body part of a user by using a module, recognize a face region from the plurality of acquired images, perform inverse gamma correction on the recognized face region, and perform the inverse gamma correction Estimate an intensity of ambient light based on at least two or more images from among a plurality of performed images, and based on the estimated intensity of ambient light, a first image including only a component of the ambient light and the at least one of the electronic device Each of the second images including only the light component output by the light emitting module may be set.
본 문서의 일 실시예에 따른 전자 장치를 제어하는 방법은, 전자 장치의 적어도 하나의 카메라 및 전자 장치의 적어도 하나의 발광 모듈을 이용하여 사용자의 신체 일부에 대한 복수의 이미지들을 획득하는 동작과, 획득된 복수의 이미지들에서 얼굴 영역을 인식하는 동작과, 인식된 얼굴 영역에 대해서 역 감마 보정을 수행하는 동작과, 역 감마 보정이 수행된 복수의 이미지들 중 적어도 2 이상의 이미지들을 기반으로 주변 광의 세기를 추정하는 동작과, 추정된 주변 광의 세기를 기반으로, 상기 주변 광의 성분만을 포함하는 제1 이미지와 상기 전자 장치의 상기 적어도 하나의 발광 모듈에 의해 출력된 광 성분만을 포함하는 제2 이미지를 각각 획득하는 동작을 포함할 수 있다.A method of controlling an electronic device according to an embodiment of the present document includes: acquiring a plurality of images of a body part of a user by using at least one camera of the electronic device and at least one light emitting module of the electronic device; An operation of recognizing a face region from a plurality of acquired images, an operation of performing inverse gamma correction on the recognized face region, and an operation of performing inverse gamma correction on ambient light based on at least two or more images among a plurality of images on which inverse gamma correction has been performed Based on the operation of estimating the intensity and the estimated intensity of ambient light, a first image including only a component of the ambient light and a second image including only a light component output by the at least one light emitting module of the electronic device It may include an operation of acquiring each.
본 문서의 일 실시예에 따르면, 획득된 복수의 이미지들을 이용하여 주변 광 성분이 제거된 이미지를 획득할 수 있고, 이와 같이 획득된 이미지를 이용하여 피부 분석을 수행함으로써 피부 분석의 정확도를 향상시킬 수 있는 전자 장치가 제공될 수 있다. According to an embodiment of the present document, an image from which an ambient light component is removed may be acquired using a plurality of acquired images, and the accuracy of skin analysis may be improved by performing skin analysis using the acquired image. An electronic device capable of this may be provided.
본 문서의 일 실시예에 따르면, 획득된 복수의 이미지들을 이용하여 주변 광 성분만이 포함된 이미지를 획득할 수 있고, 이와 같이 획득된 이미지를 이용하여 촬영 주변 환경 상태를 추정할 수 있는 전자 장치가 제공될 수 있다.According to an embodiment of the present document, an electronic device capable of acquiring an image including only an ambient light component by using a plurality of acquired images, and estimating a photographing surrounding environment state using the acquired image may be provided.
다양한 실시예들에 따른 효과는 상기 기술된 효과로 제한되지 아니하며, 다양한 효과가 본 개시 상에 내재되어 있음은 통상의 기술자에게 명백하다.Effects according to various embodiments are not limited to the effects described above, and it is apparent to those skilled in the art that various effects are inherent in the present disclosure.
도 1a 및 도 1b는, 본 문서의 일 실시예에 따른 전자 장치를 설명하기 위한 예시 도면들이다.1A and 1B are exemplary views for explaining an electronic device according to an embodiment of the present document.
도 2는, 본 문서의 일 실시예에 따른 전자 장치가 추정된 주변 광의 세기를 기반으로 주변 광 성분만을 포함하는 제1 이미지 및 전자 장치의 발광 모듈로부터 출력된 광 성분만을 포함하는 제2 이미지를 각각 획득하는 기능 또는 동작을 설명하기 위한 예시 도면이다.2 illustrates a first image including only an ambient light component based on an intensity of ambient light estimated by the electronic device according to an embodiment of the present document and a second image including only a light component output from a light emitting module of the electronic device It is an exemplary diagram for explaining each acquired function or operation.
도 3a, 도 3b, 도 3c 및 도 3d는, 전자 장치의 발광 모듈로부터 출력된 광 성분 및 주변 광 성분이 포함된 복수의 이미지들을 획득하는 기능 또는 동작을 설명하기 위한 예시 도면들이다.3A, 3B, 3C, and 3D are exemplary views for explaining a function or operation of acquiring a plurality of images including a light component output from a light emitting module of an electronic device and an ambient light component.
도 4는, 본 문서의 일 실시예에 따른 주변 광 성분을 추정하는 기능 또는 동작을 설명하기 위한 예시 도면이다.4 is an exemplary diagram for explaining a function or operation of estimating an ambient light component according to an embodiment of the present document.
도 5는, 본 문서의 일 실시예에 따른 제2 이미지를 이용하여 피부 분석을 수행하고 수행된 결과를 제공하는 기능 또는 동작을 설명하기 위한 예시 도면이다.5 is an exemplary view for explaining a function or operation of performing skin analysis using a second image and providing a result of the skin analysis according to an embodiment of the present document.
도 6은, 본 문서의 일 실시예에 따른 제1 이미지를 이용하여 촬영 환경 상태(예: 색 온도 및/또는 조명의 위치)를 추정하는 기능 또는 동작을 설명하기 위한 예시 도면이다.6 is an exemplary diagram for explaining a function or operation of estimating a photographing environment state (eg, a color temperature and/or a position of lighting) using a first image according to an embodiment of the present document.
도 7a 및 도 7b는, 제1 이미지를 이용하여 조명 위치를 추정하는 기능 또는 동작을 설명하기 위한 예시 도면들이다.7A and 7B are exemplary views for explaining a function or operation of estimating a lighting position using a first image.
도 8은, 본 문서의 일 실시예에 따른 모바일 디바이스(예: 스마트 폰)를 이용하는 경우에 본 문서의 다양한 실시예가 적용될 수 있음을 설명하기 위한 예시 도면이다.8 is an exemplary diagram for explaining that various embodiments of the present document may be applied when a mobile device (eg, a smart phone) according to an embodiment of the present document is used.
도 1a 및 도 1b는, 본 문서의 일 실시예에 따른 전자 장치를 설명하기 위한 예시 도면들이다.1A and 1B are exemplary views for explaining an electronic device according to an embodiment of the present document.
도 1a 및 도 1b를 참조하면, 본 문서의 일 실시예에 따른 전자 장치(101)는, 프로세서(110), 카메라(120), 발광 모듈(130), 메모리(140) 및 디스플레이(150)를 포함할 수 있다. 본 문서의 일 실시예에 따르면, 이 구성요소들 중 일부들은 하나의 통합된 회로로 구현될 수 있다. 예를 들면, 카메라(120) 및 발광 모듈(130)은 디스플레이(130)에 임베디드 된 채 구현될 수 있다. 본 문서의 일 실시예에 따르면, 도 1의 구성요소들 중 적어도 일부가 전자 장치(101)에 포함되지 않도록 구현될 수도 있다.1A and 1B , the electronic device 101 according to an embodiment of the present document includes a processor 110 , a camera 120 , a light emitting module 130 , a memory 140 , and a display 150 . may include According to an embodiment of this document, some of these components may be implemented as one integrated circuit. For example, the camera 120 and the light emitting module 130 may be implemented while being embedded in the display 130 . According to an embodiment of this document, at least some of the components of FIG. 1 may be implemented so that the electronic device 101 is not included.
본 문서의 일 실시예에 따른 프로세서(110)는, 예를 들어, 소프트웨어(예: 프로그램)를 실행하여 프로세서(110)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 본 문서의 일 실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(110)는 다른 구성요소(예: 센서 모듈(176))로부터 획득된 명령 또는 데이터를 메모리(120)에 로드하고, 메모리(120)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 메모리(120)에 저장할 수 있다. 본 문서의 일 실시예에 따르면, 프로세서(110)는 메인 프로세서(예: 중앙 처리 장치 또는 어플리케이션 프로세서), 및 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(예: 그래픽 처리장치, 이미지 시그널 프로세서, 센서허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 추가적으로 또는 대체적으로, 보조 프로세서는 메인 프로세서보다 저전력을 사용하거나, 또는 지정된 기능에 특화되도록 설정될 수 있다. 본 문서의 일 실시예에 따른 보조 프로세서는 메인 프로세서와 별개로, 또는 그 일부로서 구현될 수 있다. 보조 프로세서는, 예를 들어, 메인 프로세서가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서를 대신하여, 또는 메인 프로세서가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이(150) 또는 카메라(120))와 관련된 기능 또는 상태들의 적어도 일부를 제어 할 수 있다. 본 문서의 일 실시예에 따르면, 보조 프로세서(예: 이미지 시그널 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라(120))의 일부로서 구현 될 수 있다.The processor 110 according to an embodiment of the present document executes, for example, software (eg, a program) and at least one other component (eg, hardware or software components) and may perform various data processing or operations. According to an embodiment of the present document, as at least part of data processing or operation, the processor 110 loads instructions or data obtained from another component (eg, the sensor module 176) into the memory 120, A command or data stored in the memory 120 may be processed, and result data may be stored in the memory 120 . According to an embodiment of the present document, the processor 110 is a main processor (eg, a central processing unit or an application processor), and an auxiliary processor (eg, a graphic processing unit, an image signal processor, a sensor hub) that can be operated independently or together processor, or communication processor). Additionally or alternatively, the auxiliary processor may be configured to use less power than the main processor or to specialize in a designated function. The auxiliary processor according to an embodiment of the present document may be implemented separately from or as a part of the main processor. The co-processor may be, for example, on behalf of the main processor while the main processor is in an inactive (eg, sleep) state, or in conjunction with the main processor while the main processor is in an active (eg, running application) state, in an electronic device. It is possible to control at least some of functions or states related to at least one of the components 101 (eg, the display 150 or the camera 120 ). According to an embodiment of the present document, the auxiliary processor (eg, an image signal processor) may be implemented as a part of another functionally related component (eg, the camera 120 ).
본 문서의 일 실시예에 따른 적어도 하나의 카메라(120)는 정지 영상 또는 동영상을 촬영할 수 있다. 본 문서의 일 실시예에 따른 적어도 하나의 카메라(120)는 하나 이상의 렌즈들, 이미지 센서(예: 전하 결합소자(CCD), 시모스 소자 (CMOS))들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다. 본 문서의 일 실시예에 따른 적어도 하나의 카메라(120)는, 프로세서(110)로부터 카메라 제어 신호를 수신할 수 있다. 본 문서의 일 실시예에 따른 카메라 제어 신호는, 현재 디스플레이(150)에 표시된 사용자의 신체의 적어도 일부를 촬영하기 위한 전기적인 신호를 포함할 수 있다. At least one camera 120 according to an embodiment of the present document may capture a still image or a moving image. At least one camera 120 according to an embodiment of the present document includes one or more lenses, image sensors (eg, charge coupled device (CCD), CMOS device (CMOS)), image signal processors, or flashes. can do. At least one camera 120 according to an embodiment of this document may receive a camera control signal from the processor 110 . The camera control signal according to the exemplary embodiment of this document may include an electrical signal for photographing at least a part of the user's body currently displayed on the display 150 .
본 문서의 일 실시예에 따른 발광 모듈(130)은, 적어도 하나의 발광 다이오드를 포함할 수 있다. 본 문서의 일 실시예에 따른 발광 모듈(130)은 하나의 발광 다이오드를 의미할 수도 있고, 복수 개의 발광 다이오드들이 배치된 하나의 회로를 의미할 수도 있다. 본 문서의 일 실시예에 따른 발광 모듈(130)은 UV(ultra violet)를 출력하는 발광 다이오드 또는 다양한 모듈들을 포함할 수 있다. 본 문서의 일 실시예에 따른 발광 모듈(130)은, 프로세서(110)로부터 수신한 발광 모듈 제어 신호에 따라, 적어도 일부의 발광 모듈의 출력을 제어할 수 있다. 본 문서의 일 실시예에 따른 발광 모듈(130)은, 전자 장치(101)의 전면에 배치될 수 있다. 본 문서의 일 실시예에 따른 발광 모듈(130)은 도 1b에 도시된 바와 같이 디스플레이(150)와 분리되어(예: 구분되어) 구비될 수 있다. 본 문서의 일 실시예에 따른 발광 모듈(130)은 디스플레이에 임베디드 된 채 구현될 수도 있다. 또는, 본 문서의 일 실시예에 따른 발광 모듈(130)은 디스플레이(150)에 구비된 홀(hole)을 통해 발광 모듈(130)의 적어도 일부가 노출되는 방식으로 구비될 수도 있다. 본 문서의 일 실시예에 따른 발광 모듈(130)의 개수는 다양하게 변경되어 구현될 수 있다. 본 문서의 일 실시예에 따른 발광 모듈(130)은, 발광 모듈 제어 신호를 프로세서(110)로부터 수신함으로써 제어될 수 있다. 본 문서의 일 실시예에 따른 발광 모듈(130)은, 프로세서(110)로부터 전송된 발광 모듈 제어 신호에 따라 오프(OFF) 상태에서 온(ON) 상태 또는 온 상태에서 오프 상태로 전환될 수 있고, 출력되는 광량의 세기가 조절될 수 있다. The light emitting module 130 according to an embodiment of this document may include at least one light emitting diode. The light emitting module 130 according to the exemplary embodiment of this document may mean one light emitting diode or a single circuit in which a plurality of light emitting diodes are disposed. The light emitting module 130 according to an embodiment of this document may include a light emitting diode that outputs UV (ultra violet) or various modules. The light emitting module 130 according to an embodiment of this document may control the output of at least some light emitting modules according to the light emitting module control signal received from the processor 110 . The light emitting module 130 according to an embodiment of this document may be disposed on the front side of the electronic device 101 . The light emitting module 130 according to an embodiment of the present document may be provided separately from (eg, separated from) the display 150 as shown in FIG. 1B . The light emitting module 130 according to an embodiment of this document may be implemented while being embedded in a display. Alternatively, the light emitting module 130 according to an embodiment of this document may be provided in such a way that at least a portion of the light emitting module 130 is exposed through a hole provided in the display 150 . The number of light emitting modules 130 according to an embodiment of this document may be variously changed and implemented. The light emitting module 130 according to an embodiment of this document may be controlled by receiving a light emitting module control signal from the processor 110 . The light emitting module 130 according to an embodiment of the present document may be switched from an OFF state to an ON state or from an ON state to an OFF state according to a light emitting module control signal transmitted from the processor 110, , the intensity of the output light amount can be adjusted.
본 문서의 일 실시예에 따른 메모리(140)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(110) 또는 카메라(120))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 본 문서의 일 실시예에 따른 메모리(140)는, 휘발성 메모리 또는 비휘발성 메모리를 포함 할 수 있다. 프로그램은 메모리에 소프트웨어로서 저장될 수 있으며, 예를 들어, 운영 체제, 미들 웨어 또는 어플리케이션을 포함할 수 있다. 본 문서의 일 실시예에 따른 메모리(140)는, 카메라(120)에 의하여 획득된 이미지를 적어도 일시적으로 저장할 수 있다.The memory 140 according to an embodiment of the present document may store various data used by at least one component (eg, the processor 110 or the camera 120 ) of the electronic device 101 . The data may include, for example, input data or output data for software (eg, a program) and instructions related thereto. The memory 140 according to the exemplary embodiment of this document may include a volatile memory or a non-volatile memory. A program may be stored as software in a memory, and may include, for example, an operating system, middleware, or an application. The memory 140 according to an embodiment of the present document may at least temporarily store an image acquired by the camera 120 .
본 문서의 일 실시예에 따른 디스플레이(150)는 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공 할 수 있다. 본 문서의 일 실시예에 따른 디스플레이(150)는, 예를 들어, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 본 문서의 일 실시예에 따르면, 디스플레이(150)는 터치를 감지하도록 설정된 터치 회로(touch circuitry), 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 센서 회로(예: 압력 센서)를 포함할 수 있다. The display 150 according to an embodiment of this document may visually provide information to the outside (eg, a user) of the electronic device 101 . The display 150 according to an embodiment of this document may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the corresponding device. According to an embodiment of the present document, the display 150 includes a touch circuitry configured to sense a touch, or a sensor circuitry configured to measure the intensity of a force generated by the touch (eg, a pressure sensor). can do.
도 2는, 본 문서의 일 실시예에 따른 전자 장치(101)가 추정된 주변 광의 세기(Ia)를 기반으로 주변 광 성분만을 포함하는 제1 이미지 및 전자 장치의 발광 모듈로부터 출력된 광 성분만을 포함하는 제2 이미지를 각각 획득하는 기능 또는 동작을 설명하기 위한 예시 도면(200)이다. 도 3a 내지 도 3d는, 전자 장치의 발광 모듈로부터 출력된 광 성분 및 주변 광 성분이 포함된 복수의 이미지들을 획득하는 기능 또는 동작을 설명하기 위한 예시 도면들이다. 도 4는, 본 문서의 일 실시예에 따른 주변 광 성분을 추정하는 기능 또는 동작을 설명하기 위한 예시 도면이다. 도 5는, 본 문서의 일 실시예에 따른 제2 이미지를 이용하여 피부 분석을 수행하고 수행된 결과를 제공하는 기능 또는 동작을 설명하기 위한 예시 도면이다.FIG. 2 illustrates only a first image including only an ambient light component based on an intensity Ia of ambient light estimated by the electronic device 101 according to an embodiment of the present document and a light component output from a light emitting module of the electronic device It is an exemplary diagram 200 for explaining a function or operation of acquiring each of the included second images. 3A to 3D are exemplary views for explaining a function or operation of acquiring a plurality of images including a light component output from a light emitting module of an electronic device and an ambient light component. 4 is an exemplary diagram for explaining a function or operation of estimating an ambient light component according to an embodiment of the present document. 5 is an exemplary view for explaining a function or operation of performing skin analysis using a second image and providing a result of the skin analysis according to an embodiment of the present document.
도 2를 참조하면, 본 문서의 일 실시예에 따른 전자 장치(101)는, 동작 210에서, 서로 상이한 광량을 이용하여 복수의 이미지들을 획득할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 서로 상이한 광량을 이용하여 복수의 이미지들을 획득하기 위하여 발광 모듈(130)로부터 출력되는 광의 세기를 조절할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 사용자의 촬영 입력 신호에 따라 복수의 이미지들을 촬영할 수 있다. 본 문서의 일 실시예에 따른 촬영 신호는 디스플레이(150)에 표시되는 사용자 인터페이스에 대한 사용자의 터치 입력에 따라 입력될 수 있다. 본 문서의 일 실시예에 따른 복수의 이미지들에는 주변 광 성분(Ia) 및 발광 모듈(130)에 의하여 출력되는 광 성분(Id1, Id2 및/또는 Id3)이 포함될 수 있다. 예를 들어, 도 3a를 참조하면, 사용자(300)의 이미지는 외부 조명이 온(ON) 상태에 있고, 발광 모듈(130)로부터 제1 세기의 광이 출력되는 동안에 획득(예: 촬영)될 수 있다. 이 경우, 하나의 픽셀에 의하여 수신되는 광의 총 량(total light intensity)은, 도 3b에 도시된 바와 같이, 주변 광 성분(Ia) 및 발광 모듈(130)에 의하여 출력되는 광 성분(Id1)을 합한 양이 수신될 수 있다. 또한, 도 3b를 참조하면, 사용자(300)의 이미지는 외부 조명이 온(ON) 상태에 있고, 발광 모듈(130)로부터 제2 세기의 광이 출력되는 동안에 획득(예: 촬영)될 수 있다. 이 경우, 하나의 픽셀에 의하여 수신되는 광의 총 량(total light intensity)은, 도 3d에 도시된 바와 같이, 주변 광 성분(Ia) 및 발광 모듈(130)에 의하여 출력되는 광 성분(Id2)을 합한 양이 수신될 수 있다. 도 3a에서는, 주변 광의 대표 예시로서 천장 등(overhead light)이 도시되었으나, 이는 예시적인 것이다. 본 문서의 일 실시예에 따르면, 주변 광은 전자 장치(101)에 의하여 제어가 불가능한 실내 조명, 창을 통하여 집 안으로 입사되는 햇빛과 같이, 카메라(120)를 통해 획득되는 이미지의 밝기에 영향을 주는 모든 요인들을 포함할 수 있다.Referring to FIG. 2 , in operation 210 , the electronic device 101 according to an embodiment of the present document may acquire a plurality of images using different amounts of light. The electronic device 101 according to an embodiment of the present document may adjust the intensity of light output from the light emitting module 130 to obtain a plurality of images using different amounts of light. The electronic device 101 according to an embodiment of the present document may photograph a plurality of images according to a user's photographing input signal. A photographing signal according to an exemplary embodiment of this document may be input according to a user's touch input to a user interface displayed on the display 150 . The plurality of images according to the exemplary embodiment of this document may include an ambient light component Ia and a light component Id1 , Id2 and/or Id3 output by the light emitting module 130 . For example, referring to FIG. 3A , the image of the user 300 is to be acquired (eg, photographed) while external lighting is in an ON state and light of a first intensity is output from the light emitting module 130 . can In this case, the total light intensity received by one pixel is the ambient light component Ia and the light component Id1 output by the light emitting module 130 as shown in FIG. 3B . A combined amount may be received. In addition, referring to FIG. 3B , the image of the user 300 may be acquired (eg, photographed) while external lighting is in an ON state and light of a second intensity is output from the light emitting module 130 . . In this case, the total light intensity received by one pixel is the ambient light component Ia and the light component Id2 output by the light emitting module 130 as shown in FIG. 3D . A combined amount may be received. In FIG. 3A , an overhead light is shown as a representative example of ambient light, but this is exemplary. According to an embodiment of the present document, ambient light affects the brightness of an image acquired through the camera 120, such as indoor lighting that cannot be controlled by the electronic device 101 or sunlight incident into a house through a window. The state can include all factors.
본 문서의 일 실시예에 따른 전자 장치(101)는, 동작 220에서, 획득된 복수의 이미지들 각각에서 얼굴 영역을 식별할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 얼굴을 검출하기 위한 다양한 알고리즘들을 통하여, 획득된 이미지에서 얼굴 영역을 검출할 수 있다. 예를 들어, 본 문서의 일 실시예에 따른 전자 장치(101)는, 아이젠페이스(eigenface)를 이용하는 PCA(principal component analysis), LDA(Linear Discriminate Analysis), 탄성 번치 그래프 매칭법(Elastic Bunch Graph Matching), 히든 마르코프 모델법(Hidden Markov model), 텐서 표현을 이용하는 멀티리니어 서브스페이스 러닝법(Multilinear Subspace Learning) 또는 뉴로널 모티베이티드 다이내믹 링크 매칭법(neuronal motivated dynamic link matching)을 이용하여 얼굴 영역을 검출할 수 있다.In operation 220 , the electronic device 101 according to an embodiment of the present document may identify a face region from each of a plurality of acquired images. The electronic device 101 according to an embodiment of the present document may detect a face region from an acquired image through various algorithms for detecting a face. For example, the electronic device 101 according to an embodiment of the present document may include principal component analysis (PCA), linear discriminate analysis (LDA), and elastic bundle graph matching using eigenface. ), the Hidden Markov model, multilinear subspace learning using tensor expressions, or neuronal motivated dynamic link matching. can be detected.
본 문서의 일 실시예에 따른 전자 장치(101)는, 동작 230에서, 식별된 얼굴 영역에 대해서 역 감마 보정을 수행할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)에 의하여 획득된 복수의 이미지들에 대해서는 감마 보정이 수행된 상태일 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 감마 보정된 데이터(예: 복수의 이미지들을 구성하는 픽셀들의 값)에 대해서 역 감마 보정을 위한 룩 업 테이블을 이용하여 역 감마 보정을 수행할 수 있다. 본 문서의 일 실시예에 따른 역 감마 보정된 데이터는 선형적인 특성을 가질 수 있다. 본 문서의 일 실시예에 따른 룩 업 테이블에는 역 감마 보정된 데이터들이 선형적인 특징을 가질 수 있도록 하는 역 감마 값들이 저장될 수 있다. 예를 들면, 본 문서의 일 실시예에 따른 룩 업 테이블에는, 적색(R) 데이터를 역 감마 보정하기 위한 제1 역 감마 테이블, 녹색(G) 데이터를 역 감마 보정하기 위한 제2 역 감마 테이블 및 청색(B) 데이터를 역 감마 보정하기 위한 제3 역 감마 테이블이 저장될 수 있다. 본 문서의 일 실시예에 따른 룩 업 테이블은 전자 장치(101)의 메모리(140)에 미리 저장되어 있을 수 있다. In operation 230 , the electronic device 101 according to an embodiment of the present document may perform inverse gamma correction on the identified face region. Gamma correction may be performed on a plurality of images acquired by the electronic device 101 according to an embodiment of the present document. The electronic device 101 according to an embodiment of the present document performs inverse gamma correction on gamma-corrected data (eg, values of pixels constituting a plurality of images) by using a look-up table for inverse gamma correction. can do. Inverse gamma-corrected data according to an embodiment of the present document may have a linear characteristic. Inverse gamma values enabling inverse gamma-corrected data to have a linear characteristic may be stored in a lookup table according to an embodiment of the present document. For example, in the lookup table according to an embodiment of the present document, a first inverse gamma table for inverse gamma-correcting red (R) data and a second inverse gamma table for inverse gamma-correcting green (G) data and a third inverse gamma table for performing inverse gamma correction of blue (B) data. The lookup table according to the exemplary embodiment of this document may be previously stored in the memory 140 of the electronic device 101 .
본 문서의 일 실시예에 따른 전자 장치(101)는, 동작 240에서, 역 감마 보정이 수행된 얼굴 영역을 기반으로 주변 광의 RGB 성분들의 값을 추정하고, 주변 광의 RGB 성분들의 값만을 포함하는 제1 이미지(예: 주변 광에 의하여 반사된 이미지)를 획득할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 역 감마 보정된 데이터의 선형성을 이용하여 주변 광의 RGB 성분들의 값을 추정할 수 있다. 도 4를 참조하면, 본 문서의 일 실시예에 따른 전자 장치(101)는, 획득된 사용자(300)의 이미지(예: 동작 210에 따라 획득된 복수의 이미지들) 중 특정한 부분에 대응하는 어느 하나의 픽셀(300a)을 구성하는 성분들(예: R(Red) 성분) 각각에 대해서 도 4에 도시된 바와 같은 그래프를 생성할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 어느 하나의 픽셀(300a)을 구성하는 성분들의 값(예: R 성분에 대한 강도(intensity))을 기반으로 실질적으로 직선인 그래프를 생성할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 선형성을 기반으로, 특정한 RGB 성분들의 값을 가지는 제3 이미지와 y 절편 사이의 구간(예: 도 4에서 굵은 선으로 도시된 부분)의 추정이 가능할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 생성된 그래프의 y 절편(y-intercept) 값을 주변 광을 구성하는 어느 하나의 픽셀의 특정한 성분의 값으로 추정할 수 있다. 다른 말로, 본 문서의 일 실시예에 따른 전자 장치(101)는, 생성된 그래프의 y 절편 값을 주변 광의 RGB 성분들의 값으로 추정할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 특정한 픽셀을 구성하는 다른 성분들(예: G(green) 성분 및 B(blue) 성분)에 대해서 동작 240을 반복적으로 수행할 수 있다. 또한, 본 문서의 일 실시예에 따른 전자 장치(101)는, 획득된 복수의 이미지들을 구성하는 복수의 픽셀들에 대해서 동작 240을 반복적으로 수행할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 획득된 복수의 이미지들을 구성하는 복수의 픽셀들 각각의 성분들(예: RGB 성분들)에 대해서 동작 240을 반복적으로 수행함으로써 주변 광 성분(Ia)만을 포함하는 이미지(예: 제1 이미지)를 획득할 수 있다.In operation 240 , the electronic device 101 according to an exemplary embodiment of the present document estimates values of RGB components of ambient light based on the face region on which inverse gamma correction has been performed, and includes only the values of RGB components of ambient light. 1 An image (eg, an image reflected by ambient light) can be acquired. The electronic device 101 according to an embodiment of the present document may estimate values of RGB components of ambient light using linearity of inverse gamma-corrected data. Referring to FIG. 4 , an electronic device 101 according to an exemplary embodiment of the present document may display a specific part of the acquired image of the user 300 (eg, a plurality of images acquired in operation 210 ). A graph as shown in FIG. 4 may be generated for each of the components (eg, R(Red) component) constituting one pixel 300a. The electronic device 101 according to an embodiment of the present document generates a graph that is substantially straight line based on values of components constituting one pixel 300a (eg, intensity with respect to the R component). can do. The electronic device 101 according to an exemplary embodiment of the present document provides a section between a third image having specific RGB component values and a y-intercept based on linearity (eg, a portion shown by a thick line in FIG. 4 ). estimation may be possible. The electronic device 101 according to an embodiment of the present document may estimate a y-intercept value of the generated graph as a value of a specific component of any one pixel constituting the ambient light. In other words, the electronic device 101 according to an embodiment of the present document may estimate the y-intercept value of the generated graph as values of RGB components of ambient light. The electronic device 101 according to an embodiment of the present document may repeatedly perform operation 240 with respect to other components (eg, a G (green) component and a B (blue) component) constituting a specific pixel. Also, the electronic device 101 according to an embodiment of the present document may repeatedly perform operation 240 with respect to a plurality of pixels constituting a plurality of acquired images. The electronic device 101 according to an embodiment of the present document repeatedly performs operation 240 on each component (eg, RGB components) of a plurality of pixels constituting the plurality of acquired images, thereby composing an ambient light component. An image (eg, the first image) including only (Ia) may be obtained.
본 문서의 일 실시예에 따른 전자 장치(101)는, 동작 250에서, 추정된 주변 광의 RGB 성분들의 값을 기반으로, 전자 장치(101)의 발광 모듈로부터 출력된 광 성분만을 포함하는 제2 이미지를 획득할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 획득된 제3 이미지를 구성하는 픽셀의 특정한 성분(예: R 성분) 값과 획득된 제1 이미지를 구성하는 픽셀 의 성분(예: R 성분) 값의 차이를 성분 별로 반복적으로 연산함으로써, 특정한 픽셀 성분에 대해서, 전자 장치(101)의 발광 모듈(130)로부터 출력된 광 성분(예: Id1)만을 포함하는 이미지(예: 제2 이미지)를 획득할 수 있다. 마찬가지로, 본 문서의 일 실시예에 따른 전자 장치(101)는, 획득된 제4 이미지를 구성하는 픽셀의 특정한 성분(예: R 성분) 값과 획득된 제1 이미지를 구성하는 픽셀의 특정한 성분(예: R 성분) 값의 차이를 성분 별로 반복적으로 연산함으로써, 특정한 픽셀 성분에 대해서, 전자 장치(101)의 발광 모듈(130)로부터 출력된 광 성분(예: Id2)만을 포함하는 이미지를 획득할 수 있고, 획득된 제5 이미지를 구성하는 픽셀의 특정한 성분(예: R 성분) 값과 획득된 제1 이미지를 구성하는 픽셀의 특정한 성분(예: R 성분) 값의 차이를 성분 별로 반복적으로 연산함으로써, 특정한 픽셀 성분에 대해서, 전자 장치(101)의 발광 모듈(130)로부터 출력된 광 성분(예: Id3)만을 포함하는 이미지를 획득할 수 있다.In operation 250 , the electronic device 101 according to an exemplary embodiment of the present document performs a second image including only the light component output from the light emitting module of the electronic device 101 based on the estimated RGB component values of the ambient light. can be obtained. The electronic device 101 according to an embodiment of the present document provides a specific component (eg, R component) value of a pixel constituting the obtained third image and a component (eg, R component) of a pixel constituting the obtained first image. An image (eg, a second image) including only a light component (eg, Id1 ) output from the light emitting module 130 of the electronic device 101 for a specific pixel component by repeatedly calculating the difference in component) value for each component ) can be obtained. Similarly, in the electronic device 101 according to an embodiment of the present document, a specific component (eg, R component) value of a pixel constituting the obtained fourth image and a specific component (eg, R component) of a pixel constituting the obtained first image ( For example, by repeatedly calculating the difference in the R component) value for each component, an image including only the light component (eg, Id2) output from the light emitting module 130 of the electronic device 101 can be obtained for a specific pixel component. and iteratively calculates the difference between a value of a specific component (eg, R component) of a pixel constituting the obtained fifth image and a value of a specific component (eg, R component) of a pixel constituting the obtained first image for each component Accordingly, with respect to a specific pixel component, an image including only a light component (eg, Id3) output from the light emitting module 130 of the electronic device 101 may be obtained.
본 문서의 일 실시예에 따른 전자 장치(101)는, 동작 260에서, 획득된 제1 이미지를 이용하여 촬영 환경 상태를 추정할 수 있다. 본 문서의 일 실시예에 따른 동작 260에 대해서는, 도 6, 도 7a 및 도 7b와 관련하여 보다 상세하게 설명하도록 한다.In operation 260 , the electronic device 101 according to an embodiment of the present document may estimate a photographing environment state by using the acquired first image. Operation 260 according to an embodiment of this document will be described in more detail with reference to FIGS. 6, 7A, and 7B.
본 문서의 일 실시예에 따른 전자 장치(101)는, 동작 270에서, 획득된 제2 이미지(예: 제4 이미지에서 주변 광 성분(Ia)이 제거된 이미지)를 이용하여 피부 분석을 수행하고, 수행 결과를 전자 장치(101)를 통해 제공할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 동작 250에 따라 획득된 복수의 이미지들(예: 제3 이미지에서 주변 광 성분이 제거된 이미지, 제4 이미지에서 주변 광 성분이 제거된 이미지 및 제5 이미지에서 주변 광 성분이 제거된 이미지) 중 어느 하나의 이미지(예: 제4 이미지에서 주변 광 성분이 제거된 이미지)를 이용하여 피부 분석을 수행할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 피부 분석의 목적(예: 여드름의 분포 분석, 홍조 분포 분석, 피부 톤 분석 등)에 따라 어느 하나의 이미지를 선택할 수 있다. 본 문서의 일 실시예에 따른 피부 분석의 목적은 사용자에 의하여 선택될 수 있다. 또는, 본 문서의 일 실시예에 따른 전자 장치(101)는, 동작 250에 따라 획득된 복수의 이미지들(예: 제3 이미지에서 주변 광 성분이 제거된 이미지, 제4 이미지에서 주변 광 성분이 제거된 이미지 및 제5 이미지에서 주변 광 성분이 제거된 이미지) 중 임의의 하나의 이미지(예: 제4 이미지에서 주변 광 성분이 제거된 이미지)를 피부 분석을 위한 이미지로서 선택할 수도 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 도 5에 도시된 바와 같이, 피부 분석의 결과를 전자 장치(101)의 디스플레이(150)를 통해 제공할 수 있다. 예를 들어, 본 문서의 일 실시예에 따른 전자 장치(101)는, "여드름이 심한 부분입니다" 또는 "홍조가 심한 부분입니다"라는 안내 메시지(510)을 디스플레이(150)에 표시할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 피부 톤에 대한 정보(예: "피부 톤 측정 결과입니다. L: 65, a: 14, b: 18)를 포함하는 안내 메시지(510)를 출력할 수도 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, RGB 성분들의 값과 Lab 값과의 대응관계가 정의되어 있는 룩 업 테이블을 이용하여 특정한 이미지(예: 제4 이미지)의 특정한 부분에 대한 RGB 값을 Lab 값으로 변환하고, 변환된 Lab 값을 전자 장치(101)를 통해 제공할 수 있다.The electronic device 101 according to an embodiment of the present document performs skin analysis using the acquired second image (eg, an image from which the ambient light component Ia is removed from the fourth image) in operation 270 , , the execution result may be provided through the electronic device 101 . The electronic device 101 according to an embodiment of the present document may display a plurality of images obtained in operation 250 (eg, an image from which an ambient light component is removed from a third image and an image from which an ambient light component is removed from a fourth image). The skin analysis may be performed using any one image (eg, an image from which the ambient light component is removed from the fourth image) among the image and the fifth image from which the ambient light component is removed. The electronic device 101 according to an embodiment of the present document may select any one image according to the purpose of skin analysis (eg, acne distribution analysis, redness distribution analysis, skin tone analysis, etc.). The purpose of skin analysis according to an embodiment of the present document may be selected by a user. Alternatively, the electronic device 101 according to an embodiment of the present document may display a plurality of images obtained in operation 250 (eg, an image from which an ambient light component is removed from the third image, and an ambient light component from the fourth image Any one of the removed image and the image from which the ambient light component is removed from the fifth image (eg, the image from which the ambient light component is removed from the fourth image) may be selected as an image for skin analysis. As shown in FIG. 5 , the electronic device 101 according to an embodiment of the present document may provide a skin analysis result through the display 150 of the electronic device 101 . For example, the electronic device 101 according to an exemplary embodiment of the present document may display a guide message 510 stating, “a portion having severe acne” or “a portion having severe redness” on the display 150 . . The electronic device 101 according to an embodiment of the present document provides a guide message 510 including skin tone information (eg, “skin tone measurement result. L: 65, a: 14, b: 18). The electronic device 101 according to an embodiment of the present document may output a specific image (eg, a fourth image) using a lookup table in which a correspondence relationship between RGB component values and Lab values is defined. ) may be converted into a Lab value, and the converted Lab value may be provided through the electronic device 101 .
본 문서의 일 실시예에 따른 전자 장치(101)는, 피부 상태를 분석하기 위하여 사용자(300)의 얼굴 영역에서 복수의 특징점들을 검출할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 검출된 복수의 특징점들을 이용하여, 눈, 귀, 코, 및 입의 위치와 크기, 눈썹의 위치와 크기, 눈썹의 짙은 정도, 주름의 위치, 미간 넓이, 턱의 위치와 크기, 광대의 위치와 크기, 이마의 위치와 크기, 얼굴 윤곽, 얼굴 크기, 머리카락의 위치 또는 흉터의 위치와 크기 중 적어도 하나를 식별할 수 있다.The electronic device 101 according to an embodiment of the present document may detect a plurality of feature points in the face region of the user 300 in order to analyze the skin condition. The electronic device 101 according to an embodiment of the present document uses a plurality of detected feature points to determine the position and size of eyes, ears, nose, and mouth, the position and size of eyebrows, the density of eyebrows, and wrinkles At least one of the position, the width of the forehead, the position and size of the chin, the position and size of the cheekbones, the position and size of the forehead, the contour of the face, the size of the face, the position of the hair, or the position and size of the scar may be identified.
도 6은, 본 문서의 일 실시예에 따른 제1 이미지를 이용하여 촬영 환경 상태(예: 색 온도 및/또는 조명의 위치)를 추정하는 기능 또는 동작을 설명하기 위한 예시 도면(600)이다. 도 7a 및 도 7b는, 제1 이미지를 이용하여 조명 위치를 추정하는 기능 또는 동작을 설명하기 위한 예시 도면들이다. 6 is an exemplary diagram 600 for explaining a function or operation of estimating a photographing environment state (eg, a color temperature and/or a position of lighting) using a first image according to an embodiment of the present document. 7A and 7B are exemplary views for explaining a function or operation of estimating a lighting position using a first image.
도 6을 참조하면, 본 문서의 일 실시예에 따른 전자 장치(101)는, 동작 610에서, 서로 상이한 광량을 이용하여 복수의 이미지들을 획득할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 서로 상이한 광량을 이용하여 복수의 이미지들을 획득하기 위하여 발광 모듈(130)로부터 출력되는 광의 세기를 조절할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 사용자의 촬영 입력 신호에 따라 복수의 이미지들을 촬영할 수 있다. 본 문서의 일 실시예에 따른 촬영 신호는 디스플레이(150)에 표시되는 사용자 인터페이스에 대한 사용자의 터치 입력에 따라 입력될 수 있다. 본 문서의 일 실시예에 따른 복수의 이미지들에는 주변 광 성분(Ia) 및 발광 모듈(130)에 의하여 출력되는 광 성분(Id1, Id2 및/또는 Id3)이 포함될 수 있다. 예를 들어, 도 3a를 참조하면, 사용자(300)의 이미지는 외부 조명이 온(ON) 상태에 있고, 발광 모듈(130)로부터 제1 세기의 광이 출력되는 동안에 획득(예: 촬영)될 수 있다. 이 경우, 하나의 픽셀에 의하여 수신되는 광의 총 량(total light intensity)은, 도 3b에 도시된 바와 같이, 주변 광 성분(Ia) 및 발광 모듈(130)에 의하여 출력되는 광 성분(Id1)을 합한 양이 수신될 수 있다. Referring to FIG. 6 , in operation 610 , the electronic device 101 according to an embodiment of the present document may acquire a plurality of images using different amounts of light. The electronic device 101 according to an embodiment of the present document may adjust the intensity of light output from the light emitting module 130 to obtain a plurality of images using different amounts of light. The electronic device 101 according to an embodiment of the present document may photograph a plurality of images according to a user's photographing input signal. A photographing signal according to an exemplary embodiment of this document may be input according to a user's touch input to a user interface displayed on the display 150 . The plurality of images according to the exemplary embodiment of this document may include an ambient light component Ia and a light component Id1 , Id2 and/or Id3 output by the light emitting module 130 . For example, referring to FIG. 3A , the image of the user 300 is to be acquired (eg, photographed) while external lighting is in an ON state and light of a first intensity is output from the light emitting module 130 . can In this case, the total light intensity received by one pixel is the ambient light component Ia and the light component Id1 output by the light emitting module 130 as shown in FIG. 3B . A combined amount may be received.
본 문서의 일 실시예에 따른 전자 장치(101)는, 동작 620에서, 획득된 복수의 이미지들 각각에서 얼굴 영역을 식별할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 얼굴을 검출하기 위한 다양한 알고리즘들을 통하여, 획득된 이미지에서 얼굴 영역을 검출할 수 있다. 예를 들어, 본 문서의 일 실시예에 따른 전자 장치(101)는, 아이젠페이스(eigenface)를 이용하는 PCA(principal component analysis), LDA(Linear Discriminate Analysis), 탄성 번치 그래프 매칭법(Elastic Bunch Graph Matching), 히든 마르코프 모델법(Hidden Markov model), 텐서 표현을 이용하는 멀티리니어 서브스페이스 러닝법(Multilinear Subspace Learning) 또는 뉴로널 모티베이티드 다이내믹 링크 매칭법(neuronal motivated dynamic link matching)을 이용하여 얼굴 영역을 검출할 수 있다.The electronic device 101 according to an embodiment of the present document may identify a face region from each of the plurality of acquired images in operation 620 . The electronic device 101 according to an embodiment of the present document may detect a face region from an acquired image through various algorithms for detecting a face. For example, the electronic device 101 according to an embodiment of the present document may include principal component analysis (PCA), linear discriminate analysis (LDA), and elastic bundle graph matching using eigenface. ), the Hidden Markov model, multilinear subspace learning using tensor expressions, or neuronal motivated dynamic link matching. can be detected.
본 문서의 일 실시예에 따른 전자 장치(101)는, 동작 630에서, 식별된 얼굴 영역에 대해서 역 감마 보정을 수행할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)에 의하여 획득된 복수의 이미지들에 대해서는 감마 보정이 수행된 상태일 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 감마 보정된 데이터(예: 복수의 이미지들을 구성하는 픽셀들의 값)에 대해서 역 감마 보정을 위한 룩 업 테이블을 이용하여 역 감마 보정을 수행할 수 있다. 본 문서의 일 실시예에 따른 역 감마 보정된 데이터는 선형적인 특성을 가질 수 있다. 본 문서의 일 실시예에 따른 룩 업 테이블에는 역 감마 보정된 데이터들이 선형적인 특징을 가질 수 있도록 하는 역 감마 값들이 저장될 수 있다. 예를 들면, 본 문서의 일 실시예에 따른 룩 업 테이블에는, 적색(R) 데이터를 역 감마 보정하기 위한 제1 역 감마 테이블, 녹색(G) 데이터를 역 감마 보정하기 위한 제2 역 감마 테이블 및 청색(B) 데이터를 역 감마 보정하기 위한 제3 역 감마 테이블이 저장될 수 있다. 본 문서의 일 실시예에 따른 룩 업 테이블은 전자 장치(101)의 메모리(140)에 미리 저장되어 있을 수 있다. The electronic device 101 according to an embodiment of the present document may perform inverse gamma correction on the identified face region in operation 630 . Gamma correction may be performed on a plurality of images acquired by the electronic device 101 according to an embodiment of the present document. The electronic device 101 according to an embodiment of the present document performs inverse gamma correction on gamma-corrected data (eg, values of pixels constituting a plurality of images) by using a look-up table for inverse gamma correction. can do. Inverse gamma-corrected data according to an embodiment of the present document may have a linear characteristic. Inverse gamma values enabling inverse gamma-corrected data to have a linear characteristic may be stored in a lookup table according to an embodiment of the present document. For example, in the lookup table according to an embodiment of the present document, a first inverse gamma table for inverse gamma-correcting red (R) data and a second inverse gamma table for inverse gamma-correcting green (G) data and a third inverse gamma table for performing inverse gamma correction of blue (B) data. The lookup table according to the exemplary embodiment of this document may be previously stored in the memory 140 of the electronic device 101 .
본 문서의 일 실시예에 따른 전자 장치(101)는, 동작 640에서, 역 감마 보정이 수행된 얼굴 영역을 기반으로 주변 광의 RGB 성분들의 값을 추정하고, 주변 광의 RGB 성분들의 값만을 포함하는 제1 이미지를 획득할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 역 감마 보정된 데이터의 선형성을 이용하여 RGB 성분들의 값을 추정할 수 있다. 도 4를 참조하면, 본 문서의 일 실시예에 따른 전자 장치(101)는, 획득된 사용자(300)의 이미지(예: 동작 210에 따라 획득된 복수의 이미지들) 중 특정한 부분에 대응하는 어느 하나의 픽셀(300a)을 구성하는 성분들(예: R(Red) 성분) 각각에 대해서 도 4에 도시된 바와 같은 그래프를 생성할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 어느 하나의 픽셀(300a)을 구성하는 성분들의 값(예: R 성분에 대한 강도(intensity))을 기반으로 실질적으로 직선인 그래프를 생성할 수 있다. 다른 말로, 본 문서의 일 실시예에 따른 전자 장치(101)는, 선형성을 기반으로, 특정한 RGB 성분 값을 가지는 제3 이미지와 y 절편 사이의 구간(예: 도 4에서 굵은 선으로 도시된 부분)의 추정이 가능할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 생성된 그래프의 y 절편(y-intercept) 값을 주변 광을 구성하는 어느 하나의 픽셀의 특정한 성분의 값으로 추정할 수 있다. 다른 말로, 본 문서의 일 실시예에 따른 전자 장치(101)는, 생성된 그래프의 y 절편 값을 주변 광의 RGB 성분들의 값으로 추정할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 특정한 픽셀을 구성하는 다른 성분들(예: G(green)성분 및 B(blue)성분)에 대해서 동작 640을 반복적으로 수행할 수 있다. 또한, 본 문서의 일 실시예에 따른 전자 장치(101)는, 획득된 복수의 이미지들을 구성하는 복수의 픽셀들에 대해서 동작 640을 반복적으로 수행할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 획득된 복수의 이미지들을 구성하는 복수의 픽셀들 각각의 성분들(예: RGB 성분들)에 대해서 동작 640을 반복적으로 수행함으로써 주변 광 성분(Ia)만을 포함하는 이미지(예: 제1 이미지)를 획득할 수 있다.In operation 640 , the electronic device 101 according to an embodiment of the present document estimates values of RGB components of ambient light based on the face region on which inverse gamma correction has been performed, and a second method including only the values of RGB components of ambient light. 1 image can be acquired. The electronic device 101 according to an embodiment of the present document may estimate values of RGB components using linearity of inverse gamma-corrected data. Referring to FIG. 4 , an electronic device 101 according to an exemplary embodiment of the present document may display a specific part of the acquired image of the user 300 (eg, a plurality of images acquired in operation 210 ). A graph as shown in FIG. 4 may be generated for each of the components (eg, R(Red) component) constituting one pixel 300a. The electronic device 101 according to an embodiment of the present document generates a graph that is substantially straight line based on values of components constituting one pixel 300a (eg, intensity with respect to the R component). can do. In other words, the electronic device 101 according to an embodiment of the present document provides a section between the third image having a specific RGB component value and the y-intercept based on linearity (eg, a portion shown by a thick line in FIG. 4 ). ) can be estimated. The electronic device 101 according to an embodiment of the present document may estimate a y-intercept value of the generated graph as a value of a specific component of any one pixel constituting the ambient light. In other words, the electronic device 101 according to an embodiment of the present document may estimate the y-intercept value of the generated graph as values of RGB components of ambient light. The electronic device 101 according to an embodiment of the present document may repeatedly perform operation 640 with respect to other components (eg, a G (green) component and a B (blue) component) constituting a specific pixel. Also, the electronic device 101 according to an embodiment of the present document may repeatedly perform operation 640 on a plurality of pixels constituting a plurality of acquired images. The electronic device 101 according to an embodiment of the present document repeatedly performs operation 640 for each component (eg, RGB components) of a plurality of pixels constituting a plurality of acquired images, thereby composing an ambient light component. An image (eg, the first image) including only (Ia) may be obtained.
본 문서의 일 실시예에 따른 전자 장치(101)는, 동작 650에서, 획득된 제1 이미지를 이용하여 촬영 환경 상태를 추정할 수 있다. 본 문서의 일 실시예에 따른 촬영 환경 상태는, 예를 들면, 주변 광의 위치 및/또는 주변 광의 색 온도를 포함할 수 있다. 도 7a를 참조하면, 획득된 제1 이미지는 레드(R) 픽셀 값, 그린(G) 픽셀 값 및 블루(B) 픽셀 값(또는, 픽셀 강도)(예: 픽셀 값의 평균 값 또는 합)이 좌측 상단 부근(예: 제1 영역(710))이 가장 크고, 우측 하단(예: 제2 영역(720))이 가장 작은 픽셀 값(예: 픽셀 값의 평균 값 또는 합)을 가지는 이미지일 수 있다. 이 경우, 본 문서의 일 실시예에 따른 전자 장치(101)는, 픽셀 값(또는, 픽셀 강도)이 큰 값(또는, 세기)을 가지는 영역(예: 제1 영역(710)) 부근에 조명이 위치하고 있다고 추정할 수 있다. 마찬가지로, 도 7b를 참조하면, 획득된 제1 이미지는 레드(R) 픽셀 값, 그린(G) 픽셀 값 및 블루(B) 픽셀 값(또는, 픽셀 강도)이 우측 하단 부근(예: 제2 영역(720))(예: 픽셀 값의 평균 값 또는 합)이 가장 크고, 좌측 상단(예: 제1 영역(710))이 가장 작은 픽셀 값(예: 픽셀 값의 평균 값 또는 합)을 가지는 이미지일 수 있다. 이 경우, 본 문서의 일 실시예에 따른 전자 장치(101)는, 픽셀 값(또는, 픽셀 강도)이 큰 값(또는, 세기)을 가지는 영역(예: 제2 영역(720)) 부근에 조명이 위치하고 있다고 추정할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 제1 이미지를 구성하는 레드(R) 픽셀, 그린(G) 픽셀 및 블루(B) 픽셀의 비율을 연산하고, 연산된 비율에 기반하여 주변 광의 색 온도를 추정할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는, 이미지를 구성하는 픽셀의 비율과 색 온도와의 관계가 정의되어 있는 룩 업 테이블을 이용하여 주변 광의 색 온도를 추정할 수 있다. 예를 들어, 본 문서의 일 실시예에 따른 전자 장치(101)는, 이미지(예: 제1 이미지)를 구성하는 픽셀(예: 레드(R) 픽셀, 그린(G) 픽셀 및 블루(B) 픽셀)의 비율이 각각 0.333으로서 서로 동일한 경우, 룩 업 테이블을 참조하여, 색 온도는 5471K라고 추정할 수 있다. In operation 650 , the electronic device 101 according to an embodiment of the present document may estimate a photographing environment state by using the acquired first image. The photographing environment state according to an embodiment of the present document may include, for example, a position of an ambient light and/or a color temperature of the ambient light. Referring to FIG. 7A , the obtained first image has a red (R) pixel value, a green (G) pixel value, and a blue (B) pixel value (or pixel intensity) (eg, an average value or sum of pixel values). It can be an image with the largest pixel value near the upper left (eg, the first region 710) and the smallest pixel value (eg, the average value or sum of the pixel values) in the lower right region (eg, the second region 720). have. In this case, the electronic device 101 according to an embodiment of the present document illuminates near a region (eg, the first region 710 ) having a large value (or intensity) of a pixel value (or pixel intensity). It can be assumed that this is located Similarly, referring to FIG. 7B , the obtained first image has a red (R) pixel value, a green (G) pixel value, and a blue (B) pixel value (or pixel intensity) near the lower right corner (eg, the second region) (720)) (eg, average value or sum of pixel values) is the largest, and the upper left (eg, first region 710 ) has the smallest pixel value (eg, average value or sum of pixel values). can be In this case, the electronic device 101 according to an embodiment of the present document illuminates near a region (eg, the second region 720 ) having a large pixel value (or pixel intensity) value (or intensity). It can be assumed that this is located The electronic device 101 according to an embodiment of the present document calculates a ratio of a red (R) pixel, a green (G) pixel, and a blue (B) pixel constituting a first image, and based on the calculated ratio, The color temperature of ambient light can be estimated. The electronic device 101 according to an embodiment of the present document may estimate the color temperature of ambient light by using a lookup table in which a relationship between a ratio of pixels constituting an image and a color temperature is defined. For example, in the electronic device 101 according to an embodiment of the present document, pixels (eg, a red (R) pixel, a green (G) pixel, and a blue (B) constituting an image (eg, a first image) When the ratio of pixels) is equal to each other as 0.333, it can be estimated that the color temperature is 5471K by referring to the look-up table.
도 8은, 본 문서의 일 실시예에 따른 모바일 디바이스(예: 스마트 폰)를 이용하는 경우에 본 문서의 다양한 실시예가 적용될 수 있음을 설명하기 위한 예시 도면이다. 도 8을 참조하면, 본 문서의 일 실시예에 따른 모바일 디바이스(810)는, 서로 상이한 광량을 이용하여 복수의 이미지를 획득할 수 있다. 예를 들면, 본 문서의 일 실시예에 따른 모바일 디바이스(810)는, 셀피 촬영 시에, 모바일 디바이스(810)의 전면(예: 모바일 디바이스(810)의 디스플레이가 노출된 부분) 플래시(flash)가 동작된 경우의 이미지와 전면 플래시가 동작되지 않은 경우의 이미지를 획득할 수 있다. 본 문서의 일 실시예에 따른 모바일 디바이스(810)는, 이와 같이 서로 상이한 광량을 이용하여 획득된 복수의 이미지들을 이용하여 동작 220 내지 270을 수행할 수 있다.8 is an exemplary diagram for explaining that various embodiments of the present document may be applied when a mobile device (eg, a smart phone) according to an embodiment of the present document is used. Referring to FIG. 8 , the mobile device 810 according to an embodiment of the present document may acquire a plurality of images using different amounts of light. For example, when taking a selfie, the mobile device 810 according to an embodiment of the present document uses a flash on the front surface of the mobile device 810 (eg, a portion where the display of the mobile device 810 is exposed). An image when is operated and an image when the front flash is not operated can be acquired. The mobile device 810 according to an embodiment of the present document may perform operations 220 to 270 using a plurality of images obtained using different amounts of light as described above.
본 문서의 일 실시예에 따른 전자 장치(101)는, 획득된 이미지(예: 제5 이미지)의 적어도 일부 영역이 포화(saturation)된 경우, 포화된 특정 영역에 대응하는 다른 이미지(예: 제4 이미지)의 특정 영역으로 교체함으로써 새로운 이미지(예: HDR(high dynamic range) 이미지)를 생성할 수 있다. 본 문서의 일 실시예에 따른 전자 장치(101)는 생성된 새로운 이미지를 이용하여 피부 분석을 수행할 수 있다. In the electronic device 101 according to an exemplary embodiment of the present document, when at least a partial area of an acquired image (eg, a fifth image) is saturated, another image (eg, a second image) corresponding to the saturated specific area is 4 image), a new image (eg high dynamic range (HDR) image) can be created. The electronic device 101 according to an exemplary embodiment of the present document may perform skin analysis using the generated new image.
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들어, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 피부 분석 장치 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.The electronic device according to various embodiments disclosed in this document may have various types of devices. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, a skin analysis device, or a home appliance device. The electronic device according to the embodiment of the present document is not limited to the above-described devices.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 개시에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 개시에서, "A 또는 B", "A 및 B 중 적어도 하나","A 또는 B 중 적어도 하나,""A, B 또는 C," "A, B 및 C 중 적어도 하나,"및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로" 라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드" 라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.Various embodiments of the present document and terms used therein are not intended to limit the technical features described in the present disclosure to specific embodiments, and should be understood to include various modifications, equivalents, or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for similar or related components. The singular form of the noun corresponding to the item may include one or more of the item, unless the relevant context clearly dictates otherwise. In this disclosure, "A or B", "at least one of A and B", "at least one of A or B," "A, B or C," "at least one of A, B and C," and "A , B, or C," each of which may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof. Terms such as "first", "second", or "first" or "second" may simply be used to distinguish an element from other elements in question, and may refer elements to other aspects (e.g., importance or order) is not limited. that one (eg first) component is "coupled" or "connected" to another (eg, second) component with or without the terms "functionally" or "communicatively" When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.
본 개시에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들어, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들어, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in the present disclosure may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as, for example, logic, logic block, component, or circuit. A module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions. For example, according to an embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어로서 구현될 수 있다. 예를 들어, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(110))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체 는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, "비일시적"은 저장매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of the present document may be implemented as software including one or more instructions stored in a storage medium readable by a machine (eg, the electronic device 101). For example, the processor (eg, the processor 110 ) of the device (eg, the electronic device 101 ) may call at least one of one or more instructions stored from a storage medium and execute it. This makes it possible for the device to be operated to perform at least one function according to the called at least one command. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, "non-transitory" only means that the storage medium is a tangible device and does not include a signal (eg, electromagnetic wave), and this term refers to the case where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.
본 문서의 일 실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to an embodiment of the present document, the methods according to various embodiments disclosed in this document may be provided by being included in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or via an application store (eg Play Store TM ) or on two user devices ( It can be distributed (eg downloaded or uploaded) directly or online between smartphones (eg: smartphones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a memory of a relay server.
본 문서의 일 실시예에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to an embodiment of the present document, each component (eg, a module or a program) of the above-described components may include a singular or a plurality of entities. According to various embodiments, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or a program) may be integrated into one component. In this case, the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, or omitted. , or one or more other operations may be added.

Claims (15)

  1. 전자 장치에 있어서,In an electronic device,
    적어도 하나의 카메라,at least one camera,
    적어도 하나의 발광 모듈, 및 at least one light emitting module, and
    적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는, at least one processor, the at least one processor comprising:
    상기 적어도 하나의 카메라 및 상기 적어도 하나의 발광 모듈을 이용하여 사용자의 신체 일부에 대한 복수의 이미지들을 획득하고, Obtaining a plurality of images of a user's body part using the at least one camera and the at least one light emitting module,
    상기 획득된 복수의 이미지들에서 얼굴 영역을 인식하고, Recognizing a face region from the plurality of acquired images,
    상기 인식된 얼굴 영역에 대해서 역 감마 보정을 수행하고, performing inverse gamma correction on the recognized face region;
    상기 역 감마 보정이 수행된 복수의 이미지들 중 적어도 2 이상의 이미지들을 기반으로, 주변 광의 RGB 성분의 값만을 포함하는 제1 이미지 및 상기 전자 장치의 상기 적어도 하나의 발광 모듈에 의해 출력된 광 성분만을 포함하는 제2 이미지를 각각 획득하도록 설정된 것을 특징으로 하는, 전자 장치.Based on at least two or more images among the plurality of images to which the inverse gamma correction has been performed, only a first image including only RGB component values of ambient light and a light component output by the at least one light emitting module of the electronic device The electronic device, characterized in that it is set to acquire each of the second images including the image.
  2. 제1항에 있어서, According to claim 1,
    상기 적어도 하나의 프로세서는, 상기 복수의 이미지들을 획득하기 위하여 상기 적어도 하나의 발광 모듈의 출력 광량을 조절하도록 더 설정된 것을 특징으로 하는, 전자 장치.The at least one processor is further configured to adjust an output light amount of the at least one light emitting module to obtain the plurality of images.
  3. 제2항에 있어서, 3. The method of claim 2,
    상기 복수의 이미지들은, 서로 상이한 상기 출력 광량의 환경 하에서 촬영된 이미지인 것을 특징으로 하는, 전자 장치.The plurality of images is an electronic device, characterized in that the images are photographed under environments of different output light amounts.
  4. 제1항에 있어서, According to claim 1,
    상기 적어도 하나의 프로세서는, 상기 역 감마 보정된 복수의 이미지들의 선형성(linearity)에 기반하여 상기 주변 광의 세기를 추정하도록 더 설정된 것을 특징으로 하는, 전자 장치.The at least one processor is further configured to estimate the intensity of the ambient light based on linearity of the plurality of inverse gamma-corrected images.
  5. 제1항에 있어서, According to claim 1,
    상기 적어도 하나의 프로세서는, 상기 제1 이미지를 이용하여 상기 주변 광의 색 온도를 추정하도록 더 설정된 것을 특징으로 하는, 전자 장치.The at least one processor is further configured to estimate a color temperature of the ambient light using the first image.
  6. 제1항에 있어서,According to claim 1,
    상기 적어도 하나의 프로세서는, 상기 제1 이미지를 이용하여 상기 주변 광의 위치를 추정하도록 더 설정된 것을 특징으로 하는, 전자 장치.The at least one processor is further configured to estimate the position of the ambient light using the first image.
  7. 제1항에 있어서, According to claim 1,
    상기 적어도 하나의 프로세서는, 상기 제2 이미지를 이용하여 사용자의 피부 상태를 분석하고, 상기 분석의 결과를 상기 전자 장치의 디스플레이를 통해 출력하도록 더 설정된 것을 특징으로 하는, 전자 장치.The at least one processor is further configured to analyze the user's skin condition using the second image and output a result of the analysis through a display of the electronic device.
  8. 제1항에 있어서,According to claim 1,
    상기 획득된 복수의 이미지들은, 상기 주변 광 성분 및 상기 발광 모듈에 의해 출력된 광 성분을 모두 포함하는 것을 특징으로 하는, 전자 장치.The plurality of acquired images includes both the ambient light component and the light component output by the light emitting module, the electronic device.
  9. 제1항에 있어서, According to claim 1,
    상기 복수의 이미지들 중 어느 하나의 이미지는, 상기 발광 모듈의 출력이 오프(OFF)된 상태에서 획득된 이미지이고, Any one of the plurality of images is an image obtained in a state in which the output of the light emitting module is OFF,
    상기 적어도 하나의 프로세서는, 상기 발광 모듈의 출력이 오프(OFF) 상태에서 획득된 이미지와 상기 발광 모듈의 출력이 온(ON) 상태에서 획득된 이미지를 기반으로 상기 제1 이미지 및 상기 제2 이미지를 획득하도록 더 설정된 것을 특징으로 하는, 전자 장치.The at least one processor, the first image and the second image based on an image obtained when the output of the light emitting module is in an OFF state and an image obtained when the output of the light emitting module is in an ON state The electronic device, characterized in that further set to obtain.
  10. 제1항에 있어서, According to claim 1,
    상기 적어도 하나의 프로세서는, 상기 복수의 이미지들에 포함된 상기 얼굴 영역 중 서로 동일한 부분에 위치하는 하나의 픽셀에 대해서 상기 주변 광의 세기를 추정하는 동작을 수행하도록 더 설정된 것을 특징으로 하는, 전자 장치.The at least one processor is further configured to perform an operation of estimating the intensity of the ambient light with respect to one pixel located in the same part of the face region included in the plurality of images. .
  11. 전자 장치를 제어하는 방법에 있어서,A method for controlling an electronic device, comprising:
    상기 전자 장치의 적어도 하나의 카메라 및 상기 전자 장치의 적어도 하나의 발광 모듈을 이용하여 사용자의 신체 일부에 대한 복수의 이미지들을 획득하는 동작과, acquiring a plurality of images of a body part of a user by using at least one camera of the electronic device and at least one light emitting module of the electronic device;
    상기 획득된 복수의 이미지들에서 얼굴 영역을 인식하는 동작과, Recognizing a face region from the plurality of acquired images;
    상기 인식된 얼굴 영역에 대해서 역 감마 보정을 수행하는 동작과, performing inverse gamma correction on the recognized face region;
    상기 역 감마 보정이 수행된 복수의 이미지들 중 적어도 2 이상의 이미지들을 기반으로 주변 광의 RGB 성분의 값만을 포함하는 제1 이미지 및 상기 전자 장치의 상기 적어도 하나의 발광 모듈에 의해 출력된 광 성분만을 포함하는 제2 이미지를 각각 획득하는 동작을 포함하는 것을 특징으로 하는, 전자 장치를 제어하는 방법.A first image including only RGB component values of ambient light based on at least two or more of the plurality of images on which the inverse gamma correction has been performed, and only a light component output by the at least one light emitting module of the electronic device A method of controlling an electronic device, comprising: acquiring each of the second images.
  12. 제11항에 있어서, 12. The method of claim 11,
    상기 복수의 이미지들을 획득하기 위하여 상기 적어도 하나의 발광 모듈의 출력 광량을 조절하는 동작을 더 포함하는 것을 특징으로 하는, 전자 장치를 제어하는 방법.The method of claim 1, further comprising: adjusting an output light amount of the at least one light emitting module to obtain the plurality of images.
  13. 제12항에 있어서, 13. The method of claim 12,
    상기 복수의 이미지들은, 서로 상이한 상기 출력 광량의 환경 하에서 촬영된 이미지인 것을 특징으로 하는, 전자 장치를 제어하는 방법.The method of controlling an electronic device, characterized in that the plurality of images are images photographed under environments of different output light amounts.
  14. 제1항에 있어서, According to claim 1,
    상기 주변 광의 세기를 추정하는 동작은, 상기 역 감마 보정된 복수의 이미지들의 선형성(linearity)에 기반하여 상기 주변 광의 세기를 추정하는 것을 특징으로 하는, 전자 장치를 제어하는 방법.The estimating of the intensity of the ambient light comprises estimating the intensity of the ambient light based on linearity of the plurality of inverse gamma-corrected images.
  15. 제11항에 있어서, 12. The method of claim 11,
    상기 제1 이미지를 이용하여 상기 주변 광의 색 온도를 추정하는 동작을 더 포함하는 것을 특징으로 하는, 전자 장치를 제어하는 방법.The method of claim 1, further comprising: estimating a color temperature of the ambient light by using the first image.
PCT/KR2022/004323 2021-03-29 2022-03-28 Electronic device for acquiring images including components of light output from light emitting module of electronic device and components of ambient light by using plurality of images, and control method therefor WO2022211414A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020210040194A KR20220134918A (en) 2021-03-29 2021-03-29 An electronic device for obtaining a plurality of images each including a component of ambient light and a component of light output from a light emitting module of the electronic device by using the plurality of images, and control method thereof
KR10-2021-0040194 2021-03-29

Publications (1)

Publication Number Publication Date
WO2022211414A1 true WO2022211414A1 (en) 2022-10-06

Family

ID=83456546

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2022/004323 WO2022211414A1 (en) 2021-03-29 2022-03-28 Electronic device for acquiring images including components of light output from light emitting module of electronic device and components of ambient light by using plurality of images, and control method therefor

Country Status (2)

Country Link
KR (1) KR20220134918A (en)
WO (1) WO2022211414A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007011935A (en) * 2005-07-04 2007-01-18 Fujifilm Holdings Corp Method and apparatus for discriminating face, and program
JP2014027597A (en) * 2012-07-30 2014-02-06 Toyota Central R&D Labs Inc Image processor, object identification device, and program
JP2014090511A (en) * 2014-01-23 2014-05-15 Casio Comput Co Ltd Imaging apparatus, image processing method and program
JP2017005484A (en) * 2015-06-10 2017-01-05 株式会社 日立産業制御ソリューションズ Imaging device
KR20200137918A (en) * 2019-05-31 2020-12-09 삼성전자주식회사 An electronic device obtaining a skin image and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007011935A (en) * 2005-07-04 2007-01-18 Fujifilm Holdings Corp Method and apparatus for discriminating face, and program
JP2014027597A (en) * 2012-07-30 2014-02-06 Toyota Central R&D Labs Inc Image processor, object identification device, and program
JP2014090511A (en) * 2014-01-23 2014-05-15 Casio Comput Co Ltd Imaging apparatus, image processing method and program
JP2017005484A (en) * 2015-06-10 2017-01-05 株式会社 日立産業制御ソリューションズ Imaging device
KR20200137918A (en) * 2019-05-31 2020-12-09 삼성전자주식회사 An electronic device obtaining a skin image and control method thereof

Also Published As

Publication number Publication date
KR20220134918A (en) 2022-10-06

Similar Documents

Publication Publication Date Title
EP3419024B1 (en) Electronic device for providing property information of external light source for interest object
JP6793325B2 (en) Skin diagnostic device and skin diagnostic method
WO2016065053A2 (en) Automatic display image enhancement based on user's visual perception model
WO2020032585A1 (en) Electronic device which adjusts white balance of image according to attributes of object in image and method for processing image by electronic device
US10984281B2 (en) System and method for correcting color of digital image based on the human sclera and pupil
KR20180125756A (en) Emotion recognition interface apparatus
US11252336B2 (en) Electronic device obtaining skin image and method of controlling the same
KR20200137918A (en) An electronic device obtaining a skin image and control method thereof
US20230169749A1 (en) Skin color detection method and apparatus, terminal, and storage medium
WO2022211414A1 (en) Electronic device for acquiring images including components of light output from light emitting module of electronic device and components of ambient light by using plurality of images, and control method therefor
CN112215808A (en) Method and related device for generating human face skin sensitive image
WO2019172577A1 (en) Image processing device and method of electronic device
WO2022098111A1 (en) Electronic device for analyzing skin image and control method thereof
US11509797B2 (en) Image processing apparatus, image processing method, and storage medium
WO2022131637A1 (en) Electronic device for controlling external electronic device to output specific light on basis of detected skin condition, and method for controlling same
Bai et al. An integrated design of a smartphone interface with multiple image processing methods to reduce shining light from a digital projector
WO2023128575A1 (en) Electronic device for providing information about oil and/or moisture of skin by using at least one image acquired with visible light, and control method therefor
WO2022010310A1 (en) Electronic device for acquiring image by using light-emitting module having polarizing filter and method for controlling same
CN113749614B (en) Skin detection method and apparatus
KR20200137916A (en) An electronic device obtaining a skin image and control method thereof
WO2022164008A1 (en) Electronic apparatus and control method thereof
WO2022015060A1 (en) An electronic device providing contact pressure information and method for controlling the same
CN113762010A (en) Image processing method, device, equipment and storage medium
KR20220006997A (en) An electronic device for acquiring an image using a light-emitting module equipped with a polarization filter and a control method thereof
CN117156290A (en) White balance correction method and device, chip and electronic equipment

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: 22781533

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22781533

Country of ref document: EP

Kind code of ref document: A1