CN114241347A - Skin sensitivity display method and device, electronic equipment and readable storage medium - Google Patents

Skin sensitivity display method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114241347A
CN114241347A CN202010944311.9A CN202010944311A CN114241347A CN 114241347 A CN114241347 A CN 114241347A CN 202010944311 A CN202010944311 A CN 202010944311A CN 114241347 A CN114241347 A CN 114241347A
Authority
CN
China
Prior art keywords
skin
original image
sensitivity
image
pixel value
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010944311.9A
Other languages
Chinese (zh)
Inventor
黄伟
郜文美
董辰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010944311.9A priority Critical patent/CN114241347A/en
Priority to PCT/CN2021/113689 priority patent/WO2022052786A1/en
Publication of CN114241347A publication Critical patent/CN114241347A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • 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
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Molecular Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application is applicable to the technical field of image processing, and provides a display method, a device, an electronic device and a readable storage medium of skin sensitivity, wherein the method comprises the following steps: acquiring an original image containing a photographic subject, and extracting a skin area image of the photographic subject from the original image; determining the skin sensitivity corresponding to each pixel point in the skin area image; and adjusting the pixel value of each pixel point in the skin area image in the original image according to the skin sensitivity, taking the original image after the pixel value is adjusted as a sensitivity distribution schematic diagram, and displaying the sensitivity distribution schematic diagram. The technical scheme provided by the application is generated by adjusting the pixel values of the pixel points based on the original image, so that the outline of the skin area is consistent with that of the original image, the sensitivity corresponding to each local area can be determined by viewing the sensitivity distribution schematic diagram, and the display effect is improved.

Description

Skin sensitivity display method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of data acquisition, and particularly relates to a skin sensitivity display method and device, an electronic device and a readable storage medium.
Background
The skin is an organ with the largest area occupied by the human body, the skin state is particularly important for the human body, and the skin state, such as skin sensitivity, can be determined through multiple indexes. Skin sensitivity mainly refers to the severity of the skin's response to external stimuli. The higher the skin sensitivity, the more drastic the response to external stimuli. How to effectively and quickly make the user know the skin sensitivity of the user is an urgent problem to be solved.
The existing skin detection technology usually requires a user to go to a designated medical institution to perform detection through professional instruments, so as to obtain a corresponding skin detection report. The skin detection report only informs the user of the overall sensitivity of the skin, the specific sensitivity degrees of different areas cannot be known in real time, and the display effect of the detection report is poor.
Disclosure of Invention
The embodiment of the application provides a display method and device of skin sensitivity, an electronic device and a readable storage medium, which can improve the measurement accuracy and reduce the measurement cost.
In a first aspect, an embodiment of the present application provides a method for displaying skin sensitivity, which is applied to an electronic device, and includes:
acquiring an original image containing a photographic subject, and extracting a skin area image of the photographic subject from the original image;
determining the skin sensitivity corresponding to each pixel point in the skin area image;
and adjusting the pixel value of each pixel point in the skin area image in the original image according to the skin sensitivity, taking the original image after the pixel value is adjusted as a sensitivity distribution schematic diagram, and displaying the sensitivity distribution schematic diagram.
The embodiment of the application has the following beneficial effects: the method comprises the steps that a distance measurement image containing a target object is obtained, the target object is a user executing non-contact interactive behaviors, a display distance measurement reference parameter used for skin sensitivity is extracted through the distance measurement image, so that a distance value between electronic equipment and the target object can be determined according to the distance measurement reference parameter, the electronic equipment can be realized only by containing one camera module, when the distance value between the electronic equipment and the target object is measured, a depth image is not depended on, or distance measurement is carried out in a mode of shooting angle difference of a binocular camera, so that the electronic equipment does not need to be provided with a transceiver based on light pulses, the binocular camera and other modules, and the manufacturing cost of the electronic equipment is greatly reduced; meanwhile, in the process of distance measurement, the distance measurement is carried out by determining one or more distance measurement reference parameters, and the distance value is not directly acquired, so that the accuracy of distance measurement can be improved.
In one possible implementation manner of the first aspect, the determining skin sensitivities corresponding to respective pixel points in the skin region image includes:
acquiring a first pixel value corresponding to the pixel point in a red channel of the original image and a second pixel value corresponding to a green channel;
and importing the first pixel value and the second pixel value into a preset sensitivity conversion algorithm to obtain the skin sensitivity corresponding to the pixel point.
In a possible implementation manner of the first aspect, the sensitivity conversion algorithm is specifically:
Figure BDA0002674189490000011
wherein f is the skin sensitivity; r is the first pixel value; g is the second pixel value; alpha and beta are preset adjusting coefficients; exp (x) is an exponential function.
In one possible implementation manner of the first aspect, the acquiring an original image including a photographic subject includes:
acquiring video data acquired in real time;
extracting each video image frame within the video data as the original image;
the displaying the sensitivity distribution schematic diagram comprises:
and sequentially displaying the sensitivity distribution schematic diagram associated with each original image based on the frame number of each original image.
In one possible implementation manner of the first aspect, the extracting each video image frame within the video data as the original image includes:
sequentially carrying out image analysis on the original image based on the frame number, and judging whether the original image contains a skin area;
if the original image contains a skin area, performing an operation of extracting a skin area image of the photographic subject from the original image;
and if the original image does not contain the skin area, analyzing the original image corresponding to the next frame number, and executing the operation of judging whether the original image contains the skin area.
In a possible implementation manner of the first aspect, the adjusting the pixel value of each pixel point in the skin region in the original image according to the skin sensitivity includes:
determining an adjustment pixel value associated with the skin sensitivity corresponding to each pixel point based on a preset pixel mapping relation;
and replacing the original pixel value of the pixel point in the original image with the adjusted pixel value.
In one possible implementation manner of the first aspect, the acquiring an original image including a photographic subject includes:
and if the shot object is in the sensitivity detection mode, starting a light supplement module loaded with a polaroid to acquire the original image of the shot object under the irradiation of the light supplement module.
In a second aspect, an embodiment of the present application provides a display device with skin sensitivity, including:
an original image acquisition unit configured to acquire an original image including a photographic subject and extract a skin area image of the photographic subject from the original image;
the skin sensitivity determining unit is used for determining the skin sensitivity corresponding to each pixel point in the skin area image;
and the sensitivity distribution schematic diagram display unit is used for adjusting the pixel value of each pixel point in the skin region image in the original image according to the skin sensitivity, taking the original image after the pixel value is adjusted as a sensitivity distribution schematic diagram, and displaying the sensitivity distribution schematic diagram.
In a third aspect, an embodiment of the present application provides an electronic device, a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for displaying skin sensitivity according to any one of the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement the method for displaying skin sensitivity according to any one of the above first aspects.
In a fifth aspect, the present application provides a computer program product, which when run on an electronic device, causes the electronic device to execute the method for displaying skin sensitivity according to any one of the first aspect.
In a sixth aspect, an embodiment of the present application provides a chip system, which includes a processor, where the processor is coupled with a memory, and the processor executes a computer program stored in the memory to implement the method for displaying skin sensitivity according to any one of the first aspect.
It is understood that the beneficial effects of the second to sixth aspects can be seen from the description of the first aspect, and are not described herein again.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of another electronic device provided in an embodiment of the present application;
fig. 3 is a block diagram of a software structure of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic diagram of an output screen of the intelligent cosmetic mirror according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating an implementation of a method for displaying skin sensitivity according to an embodiment of the present disclosure;
FIG. 6 is a schematic view of an electronic device acquiring an original image according to an embodiment of the present application;
FIG. 7 is a diagram of a selection interface for an original image according to an embodiment of the present application;
fig. 8 is a flowchart illustrating an implementation of S5012 according to an embodiment of the present application;
FIG. 9 is a schematic diagram of an extraction of an image of a skin region provided by an embodiment of the present application;
fig. 10 is a flowchart illustrating an implementation of S502 according to an embodiment of the present disclosure;
FIG. 11 is a graph illustrating sensitivity distributions provided by an embodiment of the present application;
FIG. 12 is a graph illustrating sensitivity distributions provided by another embodiment of the present application;
fig. 13 is a flowchart illustrating a specific implementation of adjusting the pixel value of each pixel point in the skin region in the original image according to the skin sensitivity in S503 according to an embodiment of the present application;
FIG. 14 is a block diagram of a display device for skin sensitivity according to an embodiment of the present application;
fig. 15 is a schematic view of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The method for displaying skin sensitivity provided in the embodiment of the application may be applied to electronic devices such as a mobile phone, a tablet personal computer, a wearable device, a vehicle-mounted device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and an intelligent cosmetic mirror.
For example, the electronic device may be a Station (ST) in a WLAN, and may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with Wireless communication capability, a computing device or other processing device connected to a Wireless modem, a computer, a laptop, a handheld communication device, a handheld computing device, and/or other devices for communicating on a Wireless system, and a next generation communication system, such as a Mobile terminal in a 5G Network or a Mobile terminal in a future evolved Public Land Mobile Network (PLMN) Network, and so on.
Fig. 1 shows a schematic structural diagram of an electronic device 100.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1. The display screen 194 may include a touch panel as well as other input devices.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also called a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
Fig. 2 shows a schematic structural diagram of another electronic device provided in an embodiment of the present application. In this embodiment, the electronic device is specifically an intelligent mirror, and for example, the acquired picture may be processed by a preset algorithm in real time and then displayed on the mirror. The intelligent mirror comprises at least a camera module 201, a display module 202 and a data processing device 203. The image capturing module 201 may be configured to acquire a picture including a shooting object, display the shot picture through the display module 202, and if the shot picture needs to be processed, output the picture through the display module 202 after the picture is adjusted through the data processing device 203.
Preferably, the intelligent mirror may further include a light supplement lamp 204, and the electronic device may turn on the light supplement lamp 204 to perform light supplement operation when detecting that the current scene environment light intensity is low, so as to improve the overall brightness of the shot picture. Optionally, the fill-in light 204 is provided with a polarizer, and the fill-in light emits illumination light of a predetermined color by controlling an angle of the polarizer, for example, the fill-in light 204 illuminates red light and green light, and obtains an original image of a shooting object under the illumination of the red light and the green light.
The software system of the electronic device may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention uses an Android system with a layered architecture as an example to exemplarily illustrate a software structure of the electronic device 100.
Fig. 3 is a block diagram of a software structure of an electronic device according to an embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The following describes exemplary workflow of the software and hardware of the electronic device 100 in connection with capturing a photo scene.
When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, a time stamp of the touch operation, and other information). The raw input events are stored at the kernel layer. And the application program framework layer acquires the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and taking a control corresponding to the click operation as a control of a camera application icon as an example, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera drive by calling a kernel layer, and captures a still image or a video through the camera 193.
The first embodiment is as follows:
when a user needs to detect the skin, the method can be realized by the following three ways:
mode 1: skin detection is performed by a skin detection device. The skin detection device may be a medical skin detection device, which is usually purchased by medical institutions due to factors such as counterfeit cost and device volume, and when a user needs to perform skin detection through the skin detection device, the user generally needs to go to the corresponding medical institution to perform skin detection, and the output skin detection report mainly provides various index values of the skin detection, such as melanin content, acne density, roughness, tissue oxygen content, skin type classification (such as oily skin or dry skin), and the user can obtain the whole skin state through the skin detection report. However, the above method has a high detection difficulty, and because the skin detection device has a high manufacturing cost, the user is difficult to purchase the device at home, and the user needs to go to a medical institution for detection, so that the difficulty and cost of skin detection are greatly increased. Moreover, the skin detection device cannot acquire the local skin state, and the display effect of the report is poor. On the other hand, the detection device has long data processing time and low real-time performance, and needs a user to wait for a long time to obtain a detection report, so that the report acquisition efficiency is low.
Mode 2: skin detection is performed through the intelligent beauty mirror. The existing intelligent makeup mirror generally only has the functions of beautifying and whitening skin, namely beautifying human face and not having the function of skin detection. In the process of face beautification, freckles, dark circles and the like of the face can be recognized through an intelligent recognition algorithm, and the treatment such as beautification, blurring, whitening and the like is carried out on the flaw areas. Exemplarily, fig. 4 shows a schematic diagram of an output screen of the intelligent cosmetic mirror provided by an embodiment of the present application. Referring to fig. 4, the intelligent cosmetic mirror can identify the human face defect area and mark the human face defect area so that the user can know the current skin condition. However, the existing intelligent cosmetic mirror cannot determine the skin sensitivity, has fewer skin detection items, and cannot meet the skin detection requirements of the existing users.
Mode 3: and carrying out skin detection through an application program on the smart phone. Similar to skin detection through an intelligent makeup mirror, a smart phone with the application program often only can perform skin beautifying and whitening treatment on an image with a face of a user and identify flaws of the face of the user, skin sensitivity cannot be determined, skin detection items are few, and skin detection requirements of the existing user cannot be met.
Therefore, the three modes cannot simultaneously consider two aspects of efficiently acquiring the skin sensitivity detection result and knowing the local sensitivity distribution of the skin. Therefore, in order to solve the above-mentioned drawbacks of the skin detection technology, the present application provides a method for displaying skin sensitivity, which is described in detail as follows: referring to fig. 5, an executing subject of the skin sensitivity display method is an electronic device, which may be any one of a smart phone, a tablet computer, a smart game machine and a device configured with a camera module, and optionally, the electronic device may be a smart mirror, the camera module loaded on the smart mirror is used to acquire a user image including the user using the smart mirror, the user image is processed by a processor, and the processed user image is output on a "mirror surface" (i.e., a display module) of the smart mirror, so as to simulate a scene where the user looks at the mirror, and adjust a picture presented by the "mirror surface" according to a user's requirement. Fig. 5 shows a flowchart of an implementation of a method for displaying skin sensitivity according to an embodiment of the present application, which is detailed as follows:
in S501, an original image containing a photographic subject is acquired, and a skin area image of the photographic subject is extracted from the original image.
In this embodiment, the electronic device may be provided with a built-in camera module, the camera module is used to obtain an original image including a subject, and the subject may move a region to be detected into a shooting area of the electronic device, so that the skin region including the region to be detected is included in the original image obtained by shooting. Exemplarily, fig. 6 shows a schematic view of a scene of an electronic device acquiring an original image according to an embodiment of the present application. Referring to fig. 6, the electronic device is specifically an intelligent mirror, the intelligent mirror can be placed on a desktop, and when a user is in a sitting posture, the intelligent mirror can shoot the face of the user, in this scene, the shooting object is the user, and the skin area to be detected is the skin area of the face.
In one possible implementation manner, the electronic device may receive an original image fed back by an external camera module. The electronic equipment can be in communication connection with an external camera module through a wired interface or a wireless communication module, and receives an original image which is acquired by the camera module and contains a shooting object. The camera module may be a camera module specially used for skin detection, for example, a camera equipped with a plurality of different light emitting devices, and may emit violet light, red light, ultraviolet light, infrared light, and the like through the different light emitting devices. The camera module can acquire original images of a shooting object under different light irradiation, and feeds back the shot original images to the electronic equipment through a communication link between the camera module and the electronic equipment. Some skin detection methods, such as skin sensitivity detection or acne density, may require a subject to capture an original image under specific light irradiation, and based on this, the camera module may configure a plurality of different light emitting devices according to the requirements of detection items, so that when a corresponding skin detection item is performed, the associated light emitting device is turned on, and the subject is irradiated under corresponding light to obtain the original image.
In a possible implementation manner, the electronic device may select the captured image from the gallery as the original image. Fig. 7 illustrates a selection interface diagram of an original image according to an embodiment of the present application. Referring to fig. 7 (a), the electronic device may enter a gallery display interface, such as fig. 7 (b), upon detecting that the user clicks on the gallery control 701. The method comprises the steps that images which are shot or obtained from other equipment can be displayed in a gallery display interface of the electronic equipment, when the electronic equipment detects that preset selecting operation is initiated on any existing image, the existing image is used as a target image, a skin sensitivity display process is carried out on the target image, the target image is used as the original image, and the operations from S501 to S503 are carried out. For example, the preset selecting operation may be a long-press operation, and if it is detected that the user performs the long-press operation on any existing image, a control 702 as in (c) in fig. 7 is popped up, where the control 702 is specifically an edit menu executable for the existing image, and the edit menu includes a "skin sensitivity detection" item, that is, a control 703, and if the electronic device detects that the user clicks the control 703, a skin sensitivity display process is executed; for another example, when the electronic device detects that the user clicks any existing image, a preview page of the existing image may be displayed, as shown in fig. 7 (d), the preview page includes a plurality of editing controls, including a control 704 for detecting skin sensitivity, and when the electronic device detects that the user clicks the control 704, the electronic device may execute a display process of a skin sensitive area to output a sensitivity distribution diagram corresponding to the existing image previewed by the user.
In one possible implementation, the electronic device may configure a plurality of display modes, which include but are not limited to: a normal display mode and a sensitivity detection mode. If the electronic equipment is in the normal display mode, the original image can be directly displayed and output, namely, other processing on the original image is not needed; in the sensitivity detection mode, it indicates that the user needs to view the skin sensitivity of the user, and at this time, the operations from S501 to S503 are performed to display the sensitivity distribution image corresponding to the original image.
In a possible implementation manner, the electronic device may obtain real-time video data including a photographic object, where the real-time video data is specifically data obtained by a camera module through shooting at a preset frame rate, each frame corresponds to one image, and the electronic device may extract each video image frame from the video data, and perform a skin sensitivity display process on each video image frame, that is, perform operations from S501 to S503, and output a sensitivity distribution diagram corresponding to each video image frame, so as to implement real-time dynamic observation of the skin sensitivity of the photographic object, and improve the display effect and the real-time performance of the skin sensitivity.
Further, when the electronic device acquires real-time video data, S501 may specifically include S5011 to S5012, which are detailed as follows:
in S5011, video data acquired in real time is acquired.
In this embodiment, the electronic device is configured with a camera module, the camera module may acquire video data, and the camera module may acquire video data of a shooting object in real time through the camera module, and transmit the video data acquired in real time to a processor of the electronic device for processing, for example, performing display processing of skin sensitivity. It should be noted that, since the camera module acquires video data of a shot object in real time, after each frame of video image is acquired, the camera module transmits newly-added acquired video data to a processor of the electronic device for processing, that is, in the process of acquiring video data in real time, the acquired video data is also processed in subsequent steps in real time, and the processed video data is displayed on the display module, so as to achieve the purpose of dynamically checking the skin sensitivity in real time.
In a possible implementation manner, the camera module generates a video data stream, encapsulates the video data acquired in real time into data packets of corresponding formats, and transmits the data packets of the acquired video data in real time through the video data stream so as to process the video data in real time.
In S5012, each video image frame within the video data is extracted as the raw image.
In this embodiment, after obtaining the video data, the electronic device may analyze the video data, extract each video image frame included in the video data, and use the obtained video image frame as the original image to generate a sensitivity distribution diagram corresponding to each video image frame.
In the embodiment of the application, the electronic device can acquire the video data of the target object in real time, and respectively display and process the skin sensitivity of each video image frame in the video data to obtain the sensitivity distribution schematic diagram corresponding to each video image frame, so that a user can check the skin sensitivity condition in real time, the display effect of the skin sensitivity is improved, the checking real-time performance is improved, and the use experience of the user is improved.
Further, as another embodiment of the present application, fig. 8 is a flowchart of a specific implementation of S5012 provided in an embodiment of the present application. Referring to fig. 8, compared with the previous embodiment, S5012 in the embodiment of the present application specifically includes S801 to S803, which are specifically described as follows:
further, the extracting each video image frame within the video data as the raw image comprises:
in S801, image analysis is sequentially performed on the original image based on the frame number, and it is determined whether or not a skin region is included in the original image.
In this embodiment, when the electronic device obtains the video data of the shooting object in real time, a frame number is associated with each video image frame according to the sequence of the shooting time, and each video image frame is sequentially processed based on the frame numbers. In this embodiment, since the original image of the sensitivity distribution diagram is displayed, an image including a skin region is necessarily required, and if the original image does not include the skin region, the original image does not need to be processed; on the contrary, if the skin area is included in the original image, it is necessary to extract an area image corresponding to the skin area from the original image and perform the operations of S502 and S503.
In one possible implementation, the electronic device may be configured with a skin recognition algorithm, the electronic device imports an original image into the skin recognition algorithm, and may output a corresponding recognition result about the original image, where the recognition result includes: a first result comprising an area of skin and a second result not comprising an area of skin. The electronic device may determine to perform the operation of S802 or S803 according to the above recognition result.
In one possible implementation, the skin identification algorithm is embodied as a convolutional neural network. The electronic device may sequentially import each original image into the convolutional neural network based on the frame number, where the convolutional neural network may perform a plurality of convolutional operations on the original image through a plurality of cascaded convolutional kernels that are built in the convolutional neural network, to obtain N layers of convolutional vectors, where N is specifically the number of convolutional layers included in the convolutional neural network, each convolutional layer corresponds to one convolutional kernel, and import the convolutional vector output by the nth layer into a corresponding fully-connected layer, to identify whether the original image includes a skin region, so as to obtain an identification result. The electronic equipment extracts the features of the original image through the multiple convolution layers to judge whether the original image contains feature information related to the skin or not, so that whether the skin area is contained or not is identified.
In a possible implementation manner, the color of the skin is within a specific interval range, and the skin area has the characteristics of large area, flat picture and the like. Based on the two points, the electronic device can judge whether the pixel value of each pixel point in the original image is in the preset interval range or not according to the pixel value of each pixel point in the original image, if so, the number of the pixel points in the interval range is counted, whether the pixel points in the interval range are adjacent or not is judged, and if the number of the adjacent pixel points is larger than the preset number threshold value, the original image is identified to contain the skin area.
In a possible implementation manner, the electronic device may obtain an ambient light intensity when the original image is shot, perform light intensity compensation on each pixel value in the original image based on the ambient light intensity, and perform the identification operation in the above range according to the adjusted original image, so as to avoid color cast of the pixel value in the original image due to too bright or too dark ambient light intensity, so that the pixel value in the skin region deviates from the above range, thereby improving the accuracy of skin region identification.
In S802, if the original image includes a skin area, an operation of extracting a skin area image of the subject from the original image is performed.
In this embodiment, if the electronic device detects that the original image corresponding to the current frame number contains a skin area, a skin area image associated with the skin area may be extracted from the original image.
In S803, if the original image does not include a skin region, the original image corresponding to the next frame number is analyzed, and the operation of determining whether the original image includes a skin region is performed.
In this embodiment, when the electronic device detects that the original image corresponding to the current frame number does not include the skin region, it is not necessary to generate the sensitivity distribution diagram corresponding to the original image, and acquire the original image of the next frame number, and perform the operation of identifying the skin region.
In a possible implementation manner, if it is detected that the original image corresponding to the current frame number does not include a skin region, the original image is directly displayed.
In the embodiment of the application, before determining the skin sensitivity of an original image, firstly, judging whether the original image contains a skin region, and not performing the conversion operation of a sensitivity distribution schematic diagram on the original image not containing the skin region; only the original image containing the skin area is processed, thereby reducing unnecessary processing operations and improving the conversion efficiency.
In this embodiment, the electronic device may recognize an area covered by the skin of the photographic subject in the original image, that is, the skin area image described above, and extract the skin area image from the original image. Since the main recognition object is the skin area of the photographic subject when determining the skin sensitivity, sensitivity recognition is not required for other areas of the skin other than the photographic subject.
In one possible implementation, the electronic device may determine the skin region image by: extracting a plurality of contour curves contained in the original image through a contour recognition algorithm, and determining an image characteristic value of each image area based on the image area enclosed by each contour curve, wherein the image characteristic value comprises but is not limited to at least one of the following: average pixel value, number of pixels, mean square error of pixel values, etc. If the image characteristic value meets the preset skin characteristic condition, the image area enclosed by the contour curve is identified as a skin area, and the skin area image is extracted from the original image.
In one possible implementation, the electronic device may determine the skin area image by: the method comprises the steps of performing sliding framing on an original image through an image frame with an initial size, identifying whether an area currently covered by the image frame contains a skin area or not in the sliding framing process, marking the area if the area contains the skin area, obtaining the area containing a plurality of marks after the sliding framing is finished, reducing the image frame based on a preset adjustment step length, performing framing identification operation on the areas containing the marks until the size of the image frame is smaller than a preset lower limit threshold, and obtaining a skin area image in the last marked area.
Exemplarily, fig. 9 shows an extraction schematic diagram of a skin region image provided by an embodiment of the present application. Referring to fig. 9 (a), the original image is specifically an image including a hand region, and profile information corresponding to a skin region image included in the original image is determined by a preset skin region identification algorithm, that is, as shown in fig. 9 (b); and extracts a skin region image, i.e., (c) in fig. 9, from the original image based on the contour information.
In S502, skin sensitivities corresponding to respective pixel points within the skin region image are determined.
In this embodiment, the electronic device may be configured with a conversion algorithm of skin sensitivity, and each pixel point in the skin region image in the original image is imported into the conversion algorithm, so as to calculate the skin sensitivity corresponding to each pixel point.
In this embodiment, the original image of the photographic subject is obtained through any one of the camera modules, that is, the reason why the sensitivity of the skin region can be determined is specifically: the skin sensitive areas show a reddish appearance in clinical external skin manifestations. Skin sensitivity is generally caused by internal and external factors such as irritation by drugs, topically applied agents or environmental components. It is becoming increasingly important to understand the physiological response of the skin to these irritants in skin tests, medical studies and clinical drug studies, and skin tissue activity tests are the ability of the microvascular network of skin tissue to respond to vasodilation to increase blood flow and vasoconstriction to decrease blood flow, and thus to understand the allergic stiffness, inflammatory processes and irritation of the skin to irritants. Among them, skin sensitivity can be specifically classified into the following three types:
1. sensitive skin: the sensitivity is a skin normality, which means that the skin has high sensitivity, weak resistance to the outside and obvious reaction after being stimulated. For example, when the stratum corneum of the skin is damaged due to external environmental influences, incorrect use of cosmetics, excessive cleansing, etc., the barrier function of the skin is insufficient, the skin hydration degree is low, and therefore the skin is thin and fragile, and subcutaneous capillaries are dilated.
2. Skin irritation: also called irritant contact dermatitis, which is a phenomenon that skin is rapidly red, swollen, hot, painful and itchy after being stimulated by chemical irritants at or above a critical concentration. For example, exposure to excessive stimuli in a short period of time causes epidermal damage, barrier disruption, triggers cellular stress and immune responses, and activates inflammation.
3. Skin allergy: also called allergic contact dermatitis, it is a phenomenon that red, swollen, hot, painful, itchy etc. are produced in a short time after the skin is affected by allergen. Because the antigen is contacted with the skin for the first time to induce sensitization immunity, T cells can react after a period of time; allergic contact dermatitis occurs in a short time after sensitization, as in the principle of secondary contact resistance. Skin allergy is caused by an abnormal immune reaction triggered by chemicals, while low molecular weight chemicals (haptens) are the main cause of skin allergy, which also leads to subcutaneous telangiectasia.
Any of the above skin sensitivity phenomena is accompanied by subcutaneous telangiectasia, i.e. the skin surface shows a reddish appearance, so that the skin sensitivity of the shooting object can be determined by judging the reddish appearance of the skin surface of the user.
In a possible implementation manner, when calculating the skin sensitivity, it is necessary to determine the red, green, and blue channel values of each pixel point, that is, the skin area image is specifically an RGB image. Based on this, the terminal device may identify the image format of the skin area image, determine whether the image format is an image in RGB format, if so, execute the operation of S502; otherwise, the skin area image may be converted into RGB format by an image format conversion algorithm, and the operation of S502 is performed based on the converted skin area image.
In a possible implementation manner, the manner for the electronic device to determine the skin sensitivity corresponding to each pixel point may be: the electronic device can store a mapping relation between the skin sensitivity and the pixel value, and the electronic device can lead the pixel value of the pixel point into the mapping relation, so that the skin sensitivity corresponding to the pixel point can be obtained through calculation.
In a possible implementation, the skin sensitivity may be used in particular for characterizing the type of sensitivity, i.e. in particular skin allergy, skin irritation or sensitive skin, etc., according to three different classifications of the skin sensitivity. The electronic equipment configures corresponding sensitivity values for different skin sensitivity types, and if the sensitivity type of the random shadow of any pixel point is detected, the sensitivity value associated with the sensitivity type is used as the skin sensitivity of the pixel point.
As another embodiment of the present application, fig. 10 shows a flowchart of a specific implementation of S502 provided in an embodiment of the present application. Referring to fig. 10, compared to the embodiment shown in fig. 5, S502 in this embodiment specifically includes S5021 to S5022, which are detailed as follows:
further, the determining the skin sensitivity corresponding to each pixel point in the skin region image includes:
in S5021, a first pixel value corresponding to the pixel point in a red channel and a second pixel value corresponding to a green channel of the original image are obtained.
In the embodiment, the red blood cells of the blood capillaries in the skin tissue have the characteristic of strongly absorbing green light, and have little absorption on red light, while the subcutaneous dermal layer tissue has little absorption on light with various wavelengths in contrast, so that the detection of the heme by visible light can be realized; sensitive skin tends to develop redness, which is caused by the high number of red blood cells in the capillaries. Based on this, the electronic device can take an image of the skin area of the photographic subject under illumination light containing green and red light (e.g., white light or red-green polarized light, etc.), and determine the skin sensitivity based on the pixel values of the respective skin areas in the green channel and the red channel.
In this embodiment, the original image is specifically an RGB image, that is, each pixel point in the original image corresponds to one pixel value in each channel, which is a first pixel value of a red channel, a second pixel value of a green channel, and a third pixel value of a blue channel. The absorption degree of the green light and the red light of the skin corresponding to each pixel point in the skin area image needs to be determined, so that a first pixel value of a red channel and a second pixel value of a green channel are obtained.
In S5022, the first pixel value and the second pixel value are imported into a preset sensitivity conversion algorithm to obtain the skin sensitivity corresponding to the pixel point.
In this embodiment, the electronic device may import the obtained first pixel value and the obtained second pixel value into a sensitivity conversion algorithm, and determine the skin sensitivity of the skin area corresponding to the pixel point. If the absorption degree of the skin area corresponding to the pixel point to the red light is less, the first pixel value corresponding to the pixel point is larger, that is, the skin sensitivity and the first pixel value are in a positive correlation; if the skin area corresponding to the pixel point has a higher absorption degree for green light, the second pixel value corresponding to the pixel point is smaller, i.e. the skin sensitivity is in a negative correlation with the second pixel value.
In a possible implementation manner, the sensitivity conversion algorithm may be a hash conversion function, and the skin sensitivity corresponding to the pixel point may be obtained by importing the first pixel value and the second pixel value into the hash conversion function.
In a possible implementation manner, the sensitivity transformation algorithm may be obtained by training a neural network based on a plurality of training images. The electronic device may use red layers and green layers in the plurality of training images as input of the neural network, use the sensitivity training distribution map corresponding to the training images as output of the neural network, train the neural network, use the trained neural network as the sensitivity conversion algorithm, introduce the first pixel value and the second pixel value corresponding to each pixel point into the sensitivity conversion algorithm of the merchant, and calculate the skin sensitivity corresponding to each pixel point.
Further, the sensitivity conversion algorithm specifically includes:
Figure BDA0002674189490000171
wherein f is the skin sensitivity; r is the first pixel value; g is the second pixel value; alpha and beta are preset adjusting coefficients; exp (x) is an exponential function.
In this embodiment, the electronic device may determine, according to a difference between a first pixel value of a red channel and a second pixel value of a green channel, an absorption deviation for red light and green light between the first pixel value and the second pixel value, so as to determine a concentration of red blood cells in a skin area corresponding to the pixel point, and determine a skin sensitivity of the skin area based on the concentration of red blood cells, thereby improving an accuracy of the skin sensitivity.
In the embodiment of the application, according to the characteristic that red blood cells absorb light of different colors, the first pixel value of the red channel and the second pixel value of the green channel are determined, so that the skin sensitivity corresponding to the pixel points is obtained, the acquisition difficulty of the skin sensitivity is reduced, and the accuracy of the skin sensitivity can be ensured.
In S503, the pixel values of the pixel points in the skin region image in the original image are adjusted according to the skin sensitivity, and the original image after the pixel values are adjusted is used as a sensitivity distribution diagram to display the sensitivity distribution diagram.
In this embodiment, in order to enable the user to intuitively determine the skin sensitivity of each local skin area in the skin area, the electronic device may change the pixel value of each pixel point in the skin area in the original image, so that the distribution of the skin sensitivity is not displayed, and the display effect is improved. Based on this, the electronic device may adjust the pixel value of each pixel point in the skin region according to the skin sensitivity, and use the original image after the pixel value is adjusted as a sensitivity distribution diagram for representing the skin sensitivity distribution condition of the skin region.
In a possible implementation manner, the electronic device may identify other area images except for the skin area image as a background area image, adjust a pixel value of each pixel point in the background area image to a preset value, for example, set all pixel points in the background area image to black, so as to prevent the background of the picture from affecting the display effect of the sensitivity distribution of the skin area. Illustratively, fig. 11 shows a sensitivity distribution diagram provided by an embodiment of the present application. As shown in fig. 11, each pixel point in the background region in the sensitivity distribution diagram is provided with a uniform pixel value so as to highlight the sensitivity distribution of the skin region, and a corresponding comparison table between the sensitivities and the pixel values is configured so that the user can determine the skin sensitivities corresponding to different pixel values.
In a possible implementation manner, the electronic device may crop the skin area image from the original image, adjust a pixel value of each pixel point in the skin area image, and display the skin area image after the pixel value is adjusted as the sensitivity distribution diagram. Illustratively, fig. 12 shows a sensitivity distribution diagram provided by another embodiment of the present application. As shown in fig. 12, the sensitivity distribution diagram only includes skin regions, and does not include background regions, and is configured with a corresponding comparison table between sensitivities and pixel values, so that the user can determine the skin sensitivities corresponding to different pixel values.
Further, as another implementation of the present application, fig. 13 is a flowchart illustrating a specific implementation that, in S503, the pixel values of the pixel points in the skin region in the original image are adjusted according to the skin sensitivity according to the present application. Referring to fig. 13, compared to the embodiment shown in fig. 5, S503 in this embodiment specifically includes S5031 to S5032, which are detailed as follows:
further, the adjusting the pixel value of each pixel point in the skin region in the original image according to the skin sensitivity includes:
in S5031, based on a preset pixel mapping relationship, an adjustment pixel value associated with the skin sensitivity corresponding to each pixel point is determined.
In this embodiment, the electronic device may establish a pixel mapping relationship, where the pixel mapping relationship specifically defines a pixel value corresponding to each skin sensitivity in the sensitivity distribution diagram. The electronic device may query the pixel value associated with each pixel point in the pixel mapping relationship, and use the queried pixel value as the adjusted pixel value.
In a possible implementation manner, the pixel mapping relationship may be specifically a conversion algorithm, and the adjusted pixel value corresponding to the skin sensitivity may be determined by introducing the skin sensitivity of the pixel point into the conversion algorithm.
In a possible implementation manner, the adjusted pixel value may specifically include pixel values corresponding to a plurality of different channels. If the original image is an RGB image, the adjusted pixel values specifically include pixel values of three channels, namely a red channel, a green channel and a blue channel; if the original image is a printing color mode CMYK image, the adjusted pixel values specifically include pixel values of four channels, namely a cyan channel, a magenta channel, a yellow channel and a black channel.
In S5032, the original pixel value of the pixel point in the original image is replaced with the adjusted pixel value.
In this embodiment, the electronic device may use the adjusted pixel values determined by the pixel points in each skin region image to replace the pixel values in the original image, so as to achieve the purpose of adjusting the pixel values in the original image.
In the embodiment of the application, the pixel mapping relation is set, the adjustment pixel value corresponding to each pixel point is inquired, and the pixel value of each pixel point in the original image is set based on the adjustment pixel value, so that the sensitivity distribution schematic diagram is automatically generated, and the generation efficiency is improved.
Further, as another embodiment of the present application, if the obtained original images are sequentially extracted based on the frame numbers based on the video data to be captured, in S503, the generating and displaying the sensitivity distribution diagram may specifically be: and sequentially displaying the sensitivity distribution schematic diagram associated with each original image based on the frame number of each original image.
In this embodiment, the electronic device may sequentially determine the skin sensitivity of each pixel point in the skin region of each original image according to the frame number, and adjust the pixel value of each pixel point in the original image based on the skin sensitivity to generate a sensitivity distribution diagram of the original image. Based on this, the electronic device may also sequentially display the sensitivity distribution diagram corresponding to each original image based on the frame number corresponding to each original image, so as to achieve dynamic display of skin sensitivity and improve the display effect.
It can be seen from the above that, in the method for displaying skin sensitivity provided in the embodiment of the present application, the original image including the shot object is obtained, the skin area image is determined from the original image, the skin sensitivity associated with each pixel point is obtained according to the pixel value of each pixel point in the skin area image, and the pixel value of the corresponding pixel point in the original image is adjusted according to the determined skin sensitivity, so as to generate a sensitivity distribution diagram, so that a user can know the whole skin sensitivity in the sensitivity distribution diagram and can also determine the sensitivity corresponding to each local skin. Compared with the existing skin detection technology, the generated sensitivity distribution schematic diagram is generated by adjusting the pixel values of the pixel points based on the original image, so that the outline of the skin area is consistent with that of the original image, the sensitivity corresponding to each local area can be determined by viewing the sensitivity distribution schematic diagram, and the display effect is improved; on the other hand, the generation process of the sensitivity distribution schematic diagram can be completed only by the electronic equipment comprising the camera module, and a user does not need to go to a specific medical institution to complete the generation process, so that the convenience of skin sensitivity acquisition is greatly improved, the acquisition difficulty is reduced, and the skin detection efficiency is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example two:
fig. 14 is a block diagram showing a structure of a display device for skin sensitivity according to an embodiment of the present application, which corresponds to the method for displaying skin sensitivity according to the above-described embodiment, and only shows a portion related to the embodiment of the present application for convenience of explanation.
Referring to fig. 14, the skin sensitivity display device includes:
an original image acquisition unit 141 that acquires an original image containing a photographic subject and extracts a skin area image of the photographic subject from the original image;
a skin sensitivity determining unit 142, configured to determine skin sensitivities corresponding to the pixel points in the skin region image;
the sensitivity distribution schematic diagram display unit 143 is configured to adjust the pixel value of each pixel point in the skin region in the original image according to the skin sensitivity, and generate and display a sensitivity distribution schematic diagram.
Optionally, the skin sensitivity determination unit 142 includes:
the pixel value acquisition unit is used for acquiring a first pixel value corresponding to the pixel point in a red channel of the original image and a second pixel value corresponding to a green channel;
and the skin sensitivity conversion unit is used for leading the first pixel value and the second pixel value into a preset sensitivity conversion algorithm to obtain the skin sensitivity corresponding to the pixel point.
Optionally, the sensitivity conversion algorithm specifically includes:
Figure BDA0002674189490000191
wherein f is the skin sensitivity; r is the first pixel value; g is the second pixel value; alpha and beta are preset adjusting coefficients; exp (x) is an exponential function.
Optionally, the original image acquiring unit 141 includes:
the video data acquisition unit is used for acquiring video data acquired in real time;
a video image frame extracting unit for extracting each video image frame in the video data as the original image;
the sensitivity distribution diagram display unit 143 is specifically configured to:
and sequentially displaying the sensitivity distribution schematic diagram associated with each original image based on the frame number of each original image.
Optionally, the video image frame extraction unit includes:
a skin area identification unit, configured to perform image analysis on the original image in sequence based on the frame number, and determine whether the original image includes a skin area;
a first operation unit configured to perform an operation of extracting a skin area image of the photographic subject from the original image if the original image contains a skin area;
and the second operation unit is used for analyzing the original image corresponding to the next frame number and executing the operation of judging whether the original image contains the skin area or not if the original image does not contain the skin area.
Optionally, the sensitivity distribution diagram display unit 143 includes:
the adjustment pixel value query unit is used for determining the adjustment pixel value associated with the skin sensitivity corresponding to each pixel point based on a preset pixel mapping relation;
and the adjusting pixel value replacing unit is used for replacing the original pixel value of the pixel point in the original image with the adjusting pixel value.
Optionally, the original image acquiring unit 141 includes:
and the polarized light shooting unit is used for starting a light supplement module loaded with a polaroid if the polarized light shooting unit is in a sensitivity detection mode, and acquiring the original image of the shooting object under the irradiation of the light supplement module.
Therefore, the display device for skin sensitivity provided by the embodiment of the application can also determine a skin area image from the original image by acquiring the original image containing the shot object, obtain the skin sensitivity associated with each pixel point according to the pixel value of each pixel point in the skin area image, and adjust the pixel value of the corresponding pixel point in the original image according to the determined skin sensitivity, thereby generating a sensitivity distribution schematic diagram, so that a user can know the whole skin sensitivity in the sensitivity distribution schematic diagram and can also determine the sensitivity corresponding to each local skin. Compared with the existing skin detection technology, the generated sensitivity distribution schematic diagram is generated by adjusting the pixel values of the pixel points based on the original image, so that the outline of the skin area is consistent with that of the original image, the sensitivity corresponding to each local area can be determined by viewing the sensitivity distribution schematic diagram, and the display effect is improved; on the other hand, the generation process of the sensitivity distribution schematic diagram can be completed only by the electronic equipment comprising the camera module, and a user does not need to go to a specific medical institution to complete the generation process, so that the convenience of skin sensitivity acquisition is greatly improved, the acquisition difficulty is reduced, and the skin detection efficiency is improved.
Fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 15, the electronic apparatus 15 of this embodiment includes: at least one processor 150 (only one shown in fig. 15), a memory 151, and a computer program 152 stored in the memory 151 and executable on the at least one processor 150, the processor 150 implementing the steps in any of the various embodiments of the skin sensitivity display method described above when executing the computer program 152.
The electronic device 15 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The electronic device may include, but is not limited to, a processor 150, a memory 151. Those skilled in the art will appreciate that fig. 15 is merely an example of the electronic device 15, and does not constitute a limitation of the electronic device 15, and may include more or less components than those shown, or combine some of the components, or different components, such as an input-output device, a network access device, etc.
The Processor 150 may be a Central Processing Unit (CPU), and the Processor 150 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 151 may be an internal storage unit of the electronic device 15 in some embodiments, such as a hard disk or a memory of the electronic device 15. The memory 151 may also be an external storage device of the electronic device 15 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 15. Further, the memory 151 may also include both an internal storage unit and an external storage device of the electronic device 15. The memory 151 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer programs. The memory 151 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides an electronic device, including: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/electronic device, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for displaying skin sensitivity, comprising:
acquiring an original image containing a photographic subject, and extracting a skin area image of the photographic subject from the original image;
determining the skin sensitivity corresponding to each pixel point in the skin area image;
and adjusting the pixel value of each pixel point in the skin area image in the original image according to the skin sensitivity, taking the original image after the pixel value is adjusted as a sensitivity distribution schematic diagram, and displaying the sensitivity distribution schematic diagram.
2. The method of claim 1, wherein the determining the skin sensitivity corresponding to each pixel point in the image of the skin area comprises:
acquiring a first pixel value corresponding to the pixel point in a red channel of the original image and a second pixel value corresponding to a green channel;
and importing the first pixel value and the second pixel value into a preset sensitivity conversion algorithm to obtain the skin sensitivity corresponding to the pixel point.
3. The display method according to claim 2, wherein the sensitivity conversion algorithm is specifically:
Figure FDA0002674189480000011
wherein f is the skin sensitivity; r is the first pixel value; g is the second pixel value; alpha and beta are preset adjusting coefficients; exp (x) is an exponential function.
4. The display method according to claim 1, wherein the acquiring an original image including a photographic subject includes:
acquiring video data acquired in real time;
extracting each video image frame within the video data as the original image;
the displaying the sensitivity distribution schematic diagram comprises:
and sequentially displaying the sensitivity distribution schematic diagram associated with each original image based on the frame number of each original image.
5. The method according to claim 4, wherein said extracting each video image frame within the video data as the original image comprises:
sequentially carrying out image analysis on the original image based on the frame number, and judging whether the original image contains a skin area;
if the original image contains a skin area, performing an operation of extracting a skin area image of the photographic subject from the original image;
and if the original image does not contain the skin area, analyzing the original image corresponding to the next frame number, and executing the operation of judging whether the original image contains the skin area.
6. The method according to any one of claims 1 to 5, wherein said adjusting the pixel value of each of the pixel points in the skin region in the original image according to the skin sensitivity comprises:
determining an adjustment pixel value associated with the skin sensitivity corresponding to each pixel point based on a preset pixel mapping relation;
and replacing the original pixel value of the pixel point in the original image with the adjusted pixel value.
7. The display method according to any one of claims 1 to 5, wherein the acquiring an original image including a photographic subject includes:
and if the shot object is in the sensitivity detection mode, starting a light supplement module loaded with a polaroid to acquire the original image of the shot object under the irradiation of the light supplement module.
8. A display device of skin sensitivity, comprising:
an original image acquisition unit configured to acquire an original image including a photographic subject and extract a skin area image of the photographic subject from the original image;
the skin sensitivity determining unit is used for determining the skin sensitivity corresponding to each pixel point in the skin area image;
and the sensitivity distribution schematic diagram display unit is used for adjusting the pixel value of each pixel point in the skin region image in the original image according to the skin sensitivity, taking the original image after the pixel value is adjusted as a sensitivity distribution schematic diagram, and displaying the sensitivity distribution schematic diagram.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202010944311.9A 2020-09-09 2020-09-09 Skin sensitivity display method and device, electronic equipment and readable storage medium Pending CN114241347A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010944311.9A CN114241347A (en) 2020-09-09 2020-09-09 Skin sensitivity display method and device, electronic equipment and readable storage medium
PCT/CN2021/113689 WO2022052786A1 (en) 2020-09-09 2021-08-20 Method and apparatus for displaying skin sensitivity, electronic device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010944311.9A CN114241347A (en) 2020-09-09 2020-09-09 Skin sensitivity display method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114241347A true CN114241347A (en) 2022-03-25

Family

ID=80630254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010944311.9A Pending CN114241347A (en) 2020-09-09 2020-09-09 Skin sensitivity display method and device, electronic equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN114241347A (en)
WO (1) WO2022052786A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115272138A (en) * 2022-09-28 2022-11-01 荣耀终端有限公司 Image processing method and related device
CN116977464A (en) * 2023-07-10 2023-10-31 深圳伯德睿捷健康科技有限公司 Detection method, system, equipment and medium for skin sensitivity of human face

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100430024C (en) * 2004-12-24 2008-11-05 重庆融海超声医学工程研究中心有限公司 Image monitoring device and method for damage on skin and subcutaneous tissue
JP5072655B2 (en) * 2008-03-03 2012-11-14 キヤノン株式会社 Image processing apparatus, image processing method, program, and storage medium
KR20120066286A (en) * 2010-12-14 2012-06-22 한국전자통신연구원 Phototherapy device and method
CN103152476B (en) * 2013-01-31 2015-01-28 广东欧珀移动通信有限公司 Mobile phone capable of detecting skin state and use method thereof
CN106611415B (en) * 2016-12-29 2020-01-10 北京奇艺世纪科技有限公司 Skin region detection method and device
CN108921128B (en) * 2018-07-19 2020-09-01 厦门美图之家科技有限公司 Cheek sensitive muscle identification method and device
CN110363088B (en) * 2019-06-12 2022-09-13 南京理工大学 Self-adaptive skin inflammation area detection method based on multi-feature fusion

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115272138A (en) * 2022-09-28 2022-11-01 荣耀终端有限公司 Image processing method and related device
CN115272138B (en) * 2022-09-28 2023-02-21 荣耀终端有限公司 Image processing method and related device
CN116977464A (en) * 2023-07-10 2023-10-31 深圳伯德睿捷健康科技有限公司 Detection method, system, equipment and medium for skin sensitivity of human face

Also Published As

Publication number Publication date
WO2022052786A1 (en) 2022-03-17

Similar Documents

Publication Publication Date Title
CN110134316B (en) Model training method, emotion recognition method, and related device and equipment
CN109496423B (en) Image display method in shooting scene and electronic equipment
CN113325941B (en) Method for displaying finger print under screen and electronic equipment
CN112233064B (en) Pigment detection method and electronic equipment
WO2020029306A1 (en) Image capture method and electronic device
WO2021258814A1 (en) Video synthesis method and apparatus, electronic device, and storage medium
WO2021218540A1 (en) Antenna power adjustment method, terminal device and storage medium
CN114650363A (en) Image display method and electronic equipment
CN113542580B (en) Method and device for removing light spots of glasses and electronic equipment
CN113170037A (en) Method for shooting long exposure image and electronic equipment
CN112930533A (en) Control method of electronic equipment and electronic equipment
WO2021164300A1 (en) Data presentation method, terminal device and storage medium
WO2022052786A1 (en) Method and apparatus for displaying skin sensitivity, electronic device, and readable storage medium
WO2022022406A1 (en) Always-on display method and electronic device
WO2021208677A1 (en) Eye bag detection method and device
CN114444000A (en) Page layout file generation method and device, electronic equipment and readable storage medium
CN115359156B (en) Audio playing method, device, equipment and storage medium
WO2022078116A1 (en) Brush effect picture generation method, image editing method and device, and storage medium
CN115437601A (en) Image sorting method, electronic device, program product, and medium
CN115657992A (en) Screen display method, device, equipment and storage medium
CN115730091A (en) Comment display method and device, terminal device and readable storage medium
CN111339513A (en) Data sharing method and device
CN115619628B (en) Image processing method and terminal equipment
CN116703741B (en) Image contrast generation method and device and electronic equipment
CN114463762B (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination