WO2020015144A1 - 一种拍照方法及电子设备 - Google Patents

一种拍照方法及电子设备 Download PDF

Info

Publication number
WO2020015144A1
WO2020015144A1 PCT/CN2018/106219 CN2018106219W WO2020015144A1 WO 2020015144 A1 WO2020015144 A1 WO 2020015144A1 CN 2018106219 W CN2018106219 W CN 2018106219W WO 2020015144 A1 WO2020015144 A1 WO 2020015144A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
camera
light flux
threshold
display screen
Prior art date
Application number
PCT/CN2018/106219
Other languages
English (en)
French (fr)
Inventor
丁欣
董辰
胡宏伟
姜永涛
郜文美
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201880085138.2A priority Critical patent/CN111543049B/zh
Priority to US17/260,997 priority patent/US11272116B2/en
Priority to EP18926720.6A priority patent/EP3813352B1/en
Publication of WO2020015144A1 publication Critical patent/WO2020015144A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/633Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
    • H04N23/634Warning indications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/633Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
    • H04N23/635Region indicators; Field of view indicators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/2222Prompting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/57Control of contrast or brightness
    • H04N5/58Control of contrast or brightness in dependence upon ambient light
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Definitions

  • the present application relates to the technical field of terminals, and in particular, to a photographing method and an electronic device.
  • users can meet various needs of users by using various applications installed on electronic devices (such as smart phones, tablet computers, etc.).
  • electronic devices such as smart phones, tablet computers, etc.
  • the user can take a picture by using the camera application.
  • the electronic device after the electronic device enters the photo preview interface, it can take a photo in response to the user's photo operation; it can also automatically take a photo after entering the photo preview interface and delaying for a preset period of time.
  • the quality of the photos obtained by the above photographing methods may be poor.
  • the present application provides a photographing method and electronic device, which are helpful to improve the quality of photographing.
  • an embodiment of the present application provides a photographing method applied to an electronic device, where the electronic device includes a display screen and a camera.
  • the display screen displays an icon of the first application; and in response to the operation of the icon, displaying The screen displays the user interface of the first application, and the user interface includes a camera button; and in response to the operation of the camera button, the display displays a camera preview interface of the second application; the second application is a camera application, and the camera preview interface is used to display the camera collection When the ambient light meets the shooting conditions, the electronic device automatically takes a picture of the image collected by the camera.
  • the electronic device can automatically take a picture when the ambient light meets the shooting conditions, it helps to improve the quality of the picture.
  • the electronic device may determine that the ambient light meets the shooting conditions in any of the following ways:
  • Method 1 Obtain the ambient light intensity from the ambient light sensor in the electronic device; when the ambient light intensity is less than the first threshold, determine that the average gray value of the image of the ROI of the region of interest is greater than the second threshold; of which the ROI of the region of interest
  • the images were obtained by the electronic device on the photo preview interface. In this way, compared with evaluating the ambient light only by the intensity of the ambient light obtained from the ambient light sensor, it is helpful to improve the reliability of evaluating the ambient light.
  • Method 2 Determine that the ambient light intensity is greater than the fifth threshold. In this way, it helps to simplify the shooting conditions for evaluating ambient light.
  • the second threshold value can be obtained in advance by the following manner:
  • the first ISO is the ISO determined by the electronic device when the photo preview interface is displayed
  • the first exposure time is the exposure time determined by the electronic device when the photo preview interface is displayed
  • An exposure time determines the first amount of light
  • a correspondence table between the luminous flux and the threshold may be preset in the electronic device, and the correspondence relationship table may include a first luminous flux range and a second luminous flux range, where the first luminous flux range is in the The minimum light flux is greater than the maximum light flux in the second light flux range.
  • the first light flux range corresponds to a threshold
  • the second light flux range corresponds to another threshold
  • the first light flux range corresponds to a threshold greater than the second light flux.
  • the threshold corresponding to the range.
  • the corresponding relationship table is queried according to the determined first light flux, and a threshold corresponding to the first light flux is obtained as the second threshold.
  • the user may also be prompted that the current ambient lighting is insufficient. Helps improve the interaction between the electronic device and the user, and helps improve the user experience.
  • the electronic device may notify the user that the current ambient light is insufficient in any of the following ways:
  • Method 1 Voice prompts the user that the current ambient light is insufficient. This method is more intuitive and effective, which helps simplify the implementation.
  • Method 2 The display screen displays prompt information, which is used to prompt the user that the current ambient light is insufficient. This method can avoid the sound interference during the prompting process and help simplify the implementation.
  • an embodiment of the present application provides an electronic device including a processor, a memory, a display screen, and a camera; wherein the processor is coupled with the memory, the display and the camera; wherein the memory is used to store program instructions; the processor is used for A method for reading the program instructions stored in the memory and combining the display screen and the camera to implement the first aspect of the embodiment of the present application and any of its possible designs.
  • a computer storage medium provided in an embodiment of the present application stores the program instructions, and when the program instructions are run on the electronic device, the electronic device executes the first aspect of the embodiments of the application and any of the first aspects Possible design methods.
  • a computer program product provided in an embodiment of the present application, when the computer program product is run on an electronic device, causes the electronic device to implement the first aspect of the embodiment of the present application and any of its possible design methods.
  • a chip provided in an embodiment of the present application, the chip is coupled to a memory in an electronic device, and controls the electronic device to execute the first aspect of the embodiment of the application and a method of any possible design thereof.
  • Coupled in the embodiments of the present application means that two components are directly or indirectly combined with each other.
  • FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a user interface according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an application scenario according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of prompt information according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a setting interface of a camera application according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a setting interface of another camera application according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another application scenario provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an ROI according to an embodiment of the present application.
  • 9A is a schematic diagram of a correspondence table between ISO, exposure time, and light flux according to an embodiment of the present application.
  • FIG. 9B is a schematic diagram of a correspondence relationship between a light flux and a threshold according to an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of a photographing method according to an embodiment of the present application.
  • FIG. 11 is a schematic flowchart of another photographing method according to an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
  • At least one means one or more, and “multiple” means two or more.
  • “And / or” describes the association relationship of related objects, and indicates that there can be three kinds of relationships. For example, A and / or B can indicate: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character “/” generally indicates that the related objects are an "or” relationship. "At least one (item) below” or similar expressions refers to any combination of these items, including any combination of single or plural items.
  • At least one (a), a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, c It can be single or multiple.
  • the electronic device may be a portable electronic device including functions such as a personal digital assistant and / or a music player, such as a mobile phone, a tablet computer, and a wearable device with a wireless communication function (such as a smart watch, smart Bracelets, etc.), car equipment, etc.
  • portable electronic devices include, but are not limited to, carrying Or portable electronic devices with other operating systems.
  • the above-mentioned portable electronic device may also be a laptop computer or the like having a touch-sensitive surface (for example, a touch panel). It should also be understood that, in other embodiments of the present application, the above electronic device may also be a desktop computer having a touch-sensitive surface (such as a touch panel).
  • FIG. 1 is 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 charge management module 140, a power management module 141, a battery 142, an antenna 2, and wireless communication
  • the sensor module 180 includes an ambient light sensor 180L.
  • the sensor module 180 may further include a pressure sensor 180A, a gyro 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, Bone conduction sensor 180M and so on.
  • the electronic device 100 in this embodiment of the present application may further include an antenna 1, a mobile communication module 150, and a subscriber identification module (SIM) card interface 195.
  • SIM subscriber identification module
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, and a memory.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • controller controller
  • memory e.g., RAM
  • Video codec e.g., RAM
  • DSP digital signal processor
  • NPU neural-network processing unit
  • different processing units may be independent devices or integrated in one or more processors.
  • the processor 110 may further include a memory for storing instructions and data.
  • the memory in the processor 110 may be a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • the processor 110 may further include one or more interfaces.
  • the interface may be a universal serial bus (USB) interface 130.
  • the interface can also be an integrated circuit (I2C) interface, an integrated circuit (I2S) interface, a pulse code modulation (PCM) interface, or a universal asynchronous transmission / reception transmission.
  • I2C integrated circuit
  • I2S integrated circuit
  • PCM pulse code modulation
  • UART Universal asynchronous receiver / transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input / output
  • SIM subscriber identity module
  • the USB interface 130 is an interface that complies with the USB standard specification.
  • the USB interface 130 may include a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones and play audio through headphones. This interface can also be used to connect other electronic devices, such as augmented reality (AR) devices.
  • AR augmented reality
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. While the charge management module 140 is charging the battery 142, the power management module 141 can also provide power to the electronic device.
  • the power management module 141 is used to connect the battery 142, the charge management module 140 and the processor 110.
  • the power management module 141 receives inputs from the battery 142 and / or the charge management module 140 and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be disposed in the processor 110.
  • the power management module 141 and the charge management module 140 may be provided 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 antenna 1 and the antenna 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 frequency bands. Different antennas can also be multiplexed to improve antenna utilization.
  • antenna 1 can be multiplexed into a diversity antenna for a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G / 3G / 4G / 5G and the like applied on 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 by the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic wave, and transmit it to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic wave radiation through the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is configured to modulate a low-frequency baseband signal to be transmitted into a high-frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed 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.
  • the modem processor may be a separate device.
  • the modem processor may be independent of the processor 110 and disposed in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 may provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (Bluetooth, BT), and global navigation satellites applied to the electronic device 100. Wireless communication solutions such as global navigation system, GNSS, frequency modulation (FM), near field communication (NFC), and infrared (IR).
  • the wireless communication module 160 may be one or more devices that integrate at least one communication processing module.
  • the wireless communication module 160 receives the electromagnetic wave signal via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor 110.
  • the wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it into electromagnetic wave radiation through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include a global system for mobile communications (GSM), a general packet radio service (GPRS), code division multiple access (CDMA), and broadband. Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and / or IR technology.
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidou navigation navigation system (BDS), and a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and / or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Bertdou navigation navigation system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing and is connected to the display 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 change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light-emitting diode).
  • LED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLEDs flexible light-emitting diodes
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diodes (QLEDs), etc.
  • the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP processes the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and the light is transmitted to the light receiving element of the camera through the lens. The light signal is converted into an electrical signal, and the light receiving element of the camera passes the electrical signal to the ISP for processing and converts the image to the naked eye. ISP can also optimize the image's noise, brightness, and skin tone. ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, an ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • An object generates an optical image through a lens and projects it onto a photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs digital image signals to the DSP for processing.
  • DSP converts digital image signals into image signals in standard RGB, YUV and other formats.
  • the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals. In addition to digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform a Fourier transform on the frequency point energy and the like.
  • 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 can play or record videos in multiple encoding formats, such as: moving picture expert groups (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture expert groups
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can quickly process input information and continuously learn by itself.
  • the NPU can realize applications such as intelligent cognition of the electronic device 100, such as 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 (for example, a Micro SD card) to achieve the expansion of the storage capacity 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, save files such as music and videos on an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.) and the like.
  • the storage data area may store data (such as audio data, phonebook, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), or the like.
  • UFS universal flash memory
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. For example, music playback, recording, etc.
  • the audio module 170 is configured to convert digital audio information into an analog audio signal and output, and is also used 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.
  • 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 audio electrical signals into sound signals.
  • the electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
  • the receiver 170B also referred to as the "handset" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or a voice message, it can answer the voice by holding the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound through the mouth near the microphone 170C, and input a sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C.
  • the electronic device 100 may be provided with two microphones 170C, in addition to collecting sound signals, it may also implement a noise reduction function.
  • the electronic device 100 may further be provided with three, four, or more microphones 170C to implement sound signal collection, noise reduction, and can also identify the source of the sound, implement a directional recording function, and the like.
  • the headset interface 170D is used to connect a wired headset.
  • the headphone interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic platform (OMTP) standard interface, a cellular telecommunications industry association (of the USA, CTIA) standard interface, etc. .
  • OMTP open mobile electronic platform
  • CTIA cellular telecommunications industry association
  • the pressure sensor 180A is used to sense a pressure signal, and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be disposed on the display screen 194.
  • the capacitive pressure sensor may be at least two parallel plates having a conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity lower than the first pressure threshold is applied to the short message application icon, an instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction for creating a short message is executed.
  • the gyro sensor 180B may be used to determine a movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, the x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the angle of the electronic device 100 shake, and calculates the distance that the lens module needs to compensate according to the angle, so that the lens cancels the shake of the electronic device 100 through the backward movement to achieve image stabilization.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the barometric pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C, and assists in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip leather case by using the magnetic sensor 180D.
  • the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the opened and closed state of the holster or the opened and closed state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to recognize the posture of electronic devices, and is used in applications such as switching between horizontal and vertical screens, and pedometers.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • 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 through a light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from a nearby object. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficiently reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100.
  • the electronic device 100 may use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in holster mode, and the pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • Ambient light sensor 180L can also be used to automatically adjust white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 may use the collected fingerprint characteristics to realize fingerprint unlocking, access application lock, fingerprint photographing, fingerprint answering an incoming call, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 executes a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 performs a performance reduction of a processor located near the temperature sensor 180J so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid the abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 when the temperature is lower than another threshold, performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 180K is also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also referred to as a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • a visual output related to the touch operation may be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire a vibration signal of a human voice oscillating bone mass.
  • Bone conduction sensor 180M can also contact the human pulse and receive blood pressure beating signals.
  • the bone conduction sensor 180M may also be disposed in the earphone and combined into a bone conduction earphone.
  • the audio module 170 may analyze a voice signal based on the vibration signal of the oscillating bone mass of the vocal part obtained by the bone conduction sensor 180M to implement a voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement a heart rate detection function.
  • the keys 190 may include a start key, a volume key, and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 may receive a key input, and generate a key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 may generate a vibration alert.
  • the motor 191 can be used for vibration alert for incoming calls, and can also be used for touch vibration feedback.
  • the touch operation applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects.
  • Touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate a charging state, a power change, and may also be used to indicate a message, missed call, notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting or removing the SIM card interface 195.
  • the electronic device 100 may support one or N SIM card interfaces, and N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple SIM cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple 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 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through a SIM card to implement functions such as calling and data communication.
  • the electronic device 100 uses an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the structure illustrated in FIG. 1 in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer parts than shown, or some parts may be combined, or some parts may be split, or different parts may be arranged.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the electronic device 100 is taken as an example to describe the embodiment of the present application in detail.
  • the applications supported by the electronic device in the embodiments of the present application may include applications such as a camera, such as a camera.
  • the applications supported by the electronic device may also include various other applications, such as: graphics, games, phones, video players, music players, photo management, browsers, calendars, clocks, and so on.
  • the applications supported by the electronic device in the embodiments of the present application may further include applications for skin detection.
  • the application for skin detection is to detect the characteristics of the user's facial skin (such as facial skin wrinkles, pores, blackheads, stains, red areas, etc.) through the captured face images, and can provide users with a detection result report .
  • the detection result report may include, but is not limited to, scoring for each feature on the facial skin, comprehensive analysis of the facial skin, etc., and may further display the user's face picture, and based on the detection result of each feature on the face image Corresponding problems are marked, such as blackheads in the nose area, wrinkles in the forehead area, and stains in the cheek area.
  • the detection result report can be presented to the user through a user interface.
  • the detection result report can be shown in the user interface 200 shown in FIG. 2, including a comprehensive score, skin age, and pores, blackheads, fine lines, stains, and Red zone score.
  • the user interface 200 may further include a virtual button 201, a virtual button 202, a virtual button 203, a virtual button 204, and a virtual button 205.
  • the virtual button 201 the electronic device 100 responds to the virtual button.
  • the specific care suggestions for the pores are displayed on the display screen 194.
  • the virtual button 202, the virtual button 203, the virtual button 204, and the virtual button 205 refer to the functions of the virtual button 201, and details are not described herein again.
  • the user skin detection solution in the embodiment of the present application may integrate a shooting condition detection module, an image quality detection module, and a region of interest in the processor 110. , ROI) detection module, skin feature detection module, result analysis module, etc.
  • a shooting condition detection module, an image quality detection module, a region of interest (ROI) detection module, a skin feature detection module, a result analysis module, and the like may be integrated on an application processor in the processor 110. Wait.
  • an artificial intelligence (AI) chip is integrated in the processor 110, and a shooting condition detection module, an image quality detection module, and a region of interest (ROI) detection module are integrated on the AI chip.
  • Skin feature detection module, result analysis module, etc. to achieve user skin detection.
  • the shooting condition detection module can detect the current shooting conditions to guide users to shoot under the required shooting conditions to ensure that the captured images meet the requirements, thereby ensuring the accuracy of skin detection based on the images.
  • the required shooting conditions include: sufficient ambient lighting, a suitable distance between the face and the electronic device (for example, about 25cm), straight faces, eyes closed, no glasses, no bangs on the forehead, accurate focus, no Obvious jitter, etc.
  • the processor 110 When the shooting condition detection module successfully detects, the processor 110 will start the intelligent fill light. For example, when the shooting condition detection module meets the requirements of the current shooting condition, it determines that the detection is successful. Specifically, in the embodiment of the present application, the electronic device may use different fill light modes (such as a flash mode and a flashlight mode) to fill the user's face to meet the requirements for detecting different facial skin features. After the user's face is filled with light, the processor 110 can control the camera 193 to photograph the user's face to obtain a face image of the user's face.
  • different fill light modes such as a flash mode and a flashlight mode
  • the image quality detection module can detect the quality of the face image to ensure that the captured image meets the requirements of different facial skin feature detection.
  • the ROI detection module can determine the ROI to be detected from the face image after the image quality detection module detects that the quality of the image meets the requirements. For example, a blackhead ROI is a small area on the nose.
  • the skin feature detection module can detect facial skin features in the determined ROI, for example, detecting wrinkles, pores, blackheads, stains, red areas, and oil output in the skin.
  • the result analysis module can analyze the detection results of the facial skin features detected by the skin feature detection module, and give a score and a ranking of each detection item for each skin feature.
  • the processor 110 may further integrate an image pre-processing module.
  • the image pre-processing module can compress and crop the captured face image, so that the ROI detection module and skin feature detection module can perform subsequent processing.
  • the processor 110 may also report the detected detection report (including the area of the detection result of each feature on the face image, such as a blackhead in the nose area). , Wrinkles are marked in the forehead area, stains are marked in the cheek area, etc., the scores of each detection item are displayed on the display screen 194 for users to check and improve the user experience.
  • the electronic device can automatically photograph the images collected by the camera when the ambient light meets the photographing conditions.
  • the automatic photographing of the images collected by the camera in the embodiments of the present application means that the user can perform operations on the camera without any operation (such as the operation of the camera button, voice instructions, and camera gestures). The captured images are taken.
  • the electronic device can automatically take pictures of the images collected by the camera when the ambient light meets the shooting conditions. It may be that the electronic device can automatically capture the images collected by the camera only when the ambient light meets the shooting conditions. Images can also be taken; it can also be: when the ambient light meets the shooting conditions and other preset conditions (such as the user's eyes closed) are also met, the electronic device automatically takes pictures of the images collected by the camera.
  • the embodiments of the present application may be applied to a first application, where the first application may be an application having a photographing function.
  • the first application may be an application having a photographing function.
  • the first application in the embodiment of the present application may be an application pre-installed by the electronic device 100 at the factory, or a third-party application downloaded by a user from an application market.
  • the display screen 194 of the electronic device 100 displays an icon 300 of a camera application, and in response to an operation on the icon 300, the display screen 194 displays a photo preview interface 310.
  • the photo preview interface 310 may be used to display an image collected by the camera 193.
  • the operation on the icon 300 may be a touch operation on the icon 300 or other operations.
  • the photo preview interface 310 may include a preview area 311 for displaying an image collected by the camera 193.
  • the image collected by the camera 193 may be a facial image, a landscape image, or other types.
  • the camera 193 may be a front camera of the electronic device 100 or a rear camera of the electronic device 100. The user can switch the front camera and the rear camera by operating the virtual button 313. You can also switch between the front camera and the rear camera in other ways.
  • the electronic device 100 can automatically take pictures of the images collected by the camera 193 when the ambient light meets the shooting conditions.
  • the electronic device 100 prompts the user that the current ambient light is insufficient when the ambient light does not meet the shooting conditions. Therefore, it is helpful for the user to understand why the current electronic device 100 cannot automatically take a picture.
  • the electronic device 100 may prompt the user that the current ambient light is insufficient, or display a prompt message through the display screen 194, where the prompt information is used to prompt the user that the current ambient light is insufficient, and the voice prompt and the display screen 194 may also be used.
  • the combination of the display prompt information prompts the user that the current ambient light is insufficient.
  • the display screen 194 of the electronic device 100 displays a prompt box 400, where the prompt box 400 includes prompt information, where the prompt information is used to prompt the user that the current ambient light is insufficient. Please change the photographing environment.
  • a virtual button for controlling whether to enable or disable the function of taking photos based on ambient light may be added to the setting interface of the camera application.
  • the setting interface of the camera application may be a setting interface provided by the camera application, or may be a setting interface for the camera application in the system setting interface.
  • the electronic device 100 may display a setting interface 510 of a camera application on the display screen 194 in response to an operation of the setting button 500 on the photo preview interface 310.
  • the setting interface 510 of the application includes some virtual buttons for setting a photographing function, such as resolution, selfie mirroring, and the like.
  • the electronic device 100 may also display a setting interface 510 of the camera application on the display screen 194 in response to other operations (such as swiping to the right or swiping to the left, etc.).
  • a virtual button 511 for controlling light photography is added to the application setting interface 510.
  • the electronic device 100 When the virtual button 511 is ON, the electronic device 100 displays a photo preview interface If the ambient light meets the shooting conditions, it will automatically take a picture of the image collected by the camera 193. When the virtual button 511 is OFF, if the electronic device 100 takes a picture of the image collected by the camera 193, it may no longer detect whether the environmental care satisfies the shooting condition.
  • the electronic device 100 may display a system setting interface 610 on the display screen 194 in response to an operation on the setting icon 600.
  • the electronic device 100 may display the user interface 620 on the display screen 194 in response to an operation of the application management 611 included on the system setting interface 610.
  • the user interface 620 includes application icons installed on the electronic device 100, such as a gallery, an email, a camera, and settings.
  • the electronic device 100 may display a setting interface 630 of the camera application on the display screen 194 in response to a user's operation on the icon 621 of the camera application.
  • a virtual button 631 for controlling lighting photos is added to the setting interface 630 of the application.
  • the function of the virtual button 631 refer to the function of the virtual button 511, and details are not described herein again.
  • the electronic device 100 may, in response to a user operation, call a camera through a first application to collect an image, thereby displaying a photo preview interface.
  • the electronic device 100 may also call the second application through the first application in response to the user's operation, thereby calling the camera to collect images to display the photo preview interface.
  • the display screen 194 of the electronic device 100 displays an icon 700 of the skin measurement application.
  • the electronic device 100 detects an operation on the icon 700, and in response to the operation on the icon 700, displays the user interface 710 of the skin measurement application on the display screen 194.
  • the user interface 710 of the skin measurement application includes a skin measurement button 711.
  • the electronic device 100 detects an operation on the skin detection button 711.
  • the display screen 194 displays a photo preview interface 720 of the camera application.
  • the photo preview interface 720 is used to display an image collected by the camera 193.
  • the photo preview interface 720 may include a preview area 721, and the preview area 721 is used to display an image collected by the camera 193.
  • the image collected by the camera 193 may be a face image of a user.
  • the camera 193 may be a front camera of the electronic device 100, and may be a rear camera of the electronic device 100.
  • the camera 193 in order to improve the photographing quality, when the pixels of the front camera are lower than the pixels of the rear camera, the camera 193 is a rear camera of the electronic device 100.
  • the electronic device 100 automatically takes pictures of the images collected by the camera 193 when it is determined that the ambient light meets the shooting conditions.
  • the skin test button 711 in the embodiment of the present application may also be called a photographing button, and the name of the skin test button 711 is not limited in the embodiment of the present application.
  • the environmental light may be evaluated by a combination of software and hardware.
  • the electronic device 100 may obtain the ambient light intensity from the ambient light sensor 180L. When the ambient light intensity is less than the first threshold, the gray average value of the ROI image is obtained from the photo preview interface. If the gray average is greater than the second threshold, the electronic device 100 automatically takes a picture of the image collected by the camera 193.
  • the photo preview interface 720 includes a preview area 721.
  • the preview area 721 is used to display a complete image collected by the camera 193.
  • the ROI can be the preview area 721 or smaller than the preview area 721.
  • the ROI is a region 800.
  • the electronic device 100 may determine the ROI from the photo preview interface based on a preset algorithm.
  • the average gray value of the ROI image may be determined based on an algorithm of the existing average gray value of the image, or may be determined based on other algorithms.
  • the first threshold in the embodiment of the present application may be configured in the electronic device 100 in advance, or an algorithm for determining the first threshold may be configured in the electronic device 100 in advance.
  • the first threshold may be set based on actual conditions or experimental data. For example, when the ambient light intensity is greater than or equal to 10 lux, the ambient light is sufficient, and when the ambient light intensity is less than 10 lux, the ambient light is insufficient, and the first threshold value may be set to 10 lux.
  • the gray average value of the ROI image is further judged. Compared with evaluating the ambient light only by the ambient light intensity, it helps to avoid the ambient light.
  • the sensor 180L is inaccurately obtained by the electronic device 100 due to occlusion and other reasons, and the evaluation of the ambient light is inaccurate.
  • the second threshold may be configured in the electronic device 100 in advance, or an algorithm for determining the second threshold may be configured in the electronic device 100 in advance.
  • the different light fluxes are related to the ambient light. For example, when the light flux is large, the ambient light is dark, and when the light flux is small, the ambient light is brighter.
  • the electronic device 100 may be pre-configured with a correspondence table between the amount of light flux and the threshold value, where the larger the amount of light flux, the more the corresponding threshold value is The larger, the smaller the light flux, the smaller the corresponding threshold.
  • the second threshold is a threshold corresponding to the first amount of light
  • the first amount of light is the amount of light determined when the electronic device 100 displays the photo preview interface on the display screen 194.
  • the electronic device 100 determines a first light flux in response to a photographing operation (such as an operation of a photographing button, an operation of an icon applied to a camera, etc.), and then the camera 193 collects an image based on the first light flux, and displays the image on the display screen 194 display.
  • a photographing operation such as an operation of a photographing button, an operation of an icon applied to a camera, etc.
  • different thresholds may be set for different luminous fluxes, or different luminous fluxes may be segmented, that is, different luminous flux ranges correspond to different thresholds.
  • different luminous fluxes can be divided into N luminous flux ranges, where the N luminous flux ranges correspond to a threshold, and the N luminous flux ranges correspond to different thresholds.
  • the value of N can be determined according to actual requirements. Settings.
  • different light fluxes can be divided into a light flux range 1 and a light flux range 2, where the light flux range 1 corresponds to a threshold value 1 and the light flux range 2 corresponds to a threshold value 2.
  • the threshold value 1 is greater than the threshold value 2.
  • different light fluxes can be divided into a light flux range 1, a light flux range 2, a light flux range 3, and a light flux range 4, where the light flux range 1 corresponds to threshold 1 and the light flux range 2 corresponds to threshold 2 and flux.
  • the light amount range 3 corresponds to the threshold 3
  • the light flux range 4 corresponds to the threshold 4.
  • the electronic device 100 may determine the first light flux according to the first sensitivity (international standards) and the first exposure time.
  • the first ISO is the ISO determined by the electronic device 100 when the display screen 194 displays the photo preview interface
  • the first exposure time is the exposure time determined by the electronic device 100 when the display screen 194 displays the photo preview interface.
  • the electronic device 100 may be configured with different ISOs and different exposure times in advance.
  • the electronic device 100 may determine the first ISO from different ISOs based on a preset first policy.
  • the preset second strategy determines the first exposure time from different exposure times, and then the camera 193 acquires an image based on the first ISO and the first exposure time, and displays a photo preview interface on the display screen 194.
  • the electronic device 100 may determine the first light flux based on the corresponding relationship among ISO, exposure time, and light flux.
  • the first light flux is the light flux corresponding to the first ISO and the first exposure time.
  • the light flux is 1 part. If the first ISO is 400 and the first exposure time is 1 / 30s, the first light flux is 128 copies.
  • the luminous flux in Table 1 can be divided into four luminous flux ranges, which are luminous flux range 1, luminous flux range 2, luminous flux range 3, and luminous flux range 4, among which, the luminous flux range 1 is ⁇ 1,2,4,8 ⁇ , the light flux range 2 is ⁇ 16, 32,64 ⁇ , the light flux range 3 is ⁇ 128, 256, 512 ⁇ , and the light flux range 4 is ⁇ 1024, 2048, 4096 ⁇
  • the correspondence between the amount of light flux and the threshold may be as shown in FIG. 9B.
  • the light flux range 1 corresponds to threshold 1
  • the light flux range 2 corresponds to threshold 2
  • the light flux range 3 corresponds to threshold 3
  • the light flux range 4 corresponds to threshold 4
  • Determining the first amount of light through the first ISO and the first exposure time helps to eliminate the effects of white balance and the camera's automatic adjustment parameters (ISO and exposure time), thereby improving the reliability of evaluating ambient lighting.
  • the display screen 194 displays the photo preview interface
  • the user may be prompted for the current ambient light Insufficient.
  • a manner of prompting the user that the current ambient light is insufficient refer to the foregoing manner of prompting the user that the current ambient light is insufficient when the ambient light does not meet the shooting conditions, and details are not described herein again.
  • the electronic device 100 may obtain the ambient light intensity from the ambient light sensor 180L.
  • the ambient light intensity is greater than the third threshold, the image collected by the camera 193 is automatically photographed.
  • the third threshold may be equal to the first threshold, and the third threshold may be greater than the first threshold. Specifically, the value of the third threshold may be set based on actual conditions.
  • the ambient light may be evaluated multiple times, thereby achieving the purpose of determining whether the ambient light meets the shooting conditions.
  • the imaging quality of a photograph affects the accuracy of skin detection, and sufficient ambient light is an important condition for obtaining high-quality photos. Therefore, in order to ensure that high-quality photos are obtained, in some embodiments, the electronic device 100 After determining that the current ambient light is sufficient for N consecutive times, it is determined that the current ambient light meets the shooting requirements, where N is a positive integer greater than or equal to 1.
  • another photographing method according to an embodiment of the present application includes the following steps.
  • step 1001 the electronic device 100 displays an icon 700 of the skin-detection application on the display screen 194.
  • step 1002 the electronic device 100 displays an application interface 710 of the skin measurement application on the display screen 194 in response to an operation on the icon 700, where the application interface 710 includes a virtual button 711.
  • the virtual button 711 may be named “skin test” or “photograph”.
  • the electronic device 100 displays a photo preview interface 720 on the display screen 194 in response to the operation of the virtual button 711.
  • the photo preview interface 720 is used to display the facial image collected by the camera 193.
  • the photo preview interface 720 may be a photo preview interface of the camera application 701 or a photo preview interface of the skin measurement application.
  • step 1004 the electronic device 100 starts from displaying the shooting preview interface 720, and can obtain the ambient light intensity from the ambient light sensor 180L every preset time.
  • the preset time can be set as required, such as 1s, 2s, and so on.
  • step 1004 the electronic device 100 determines whether the intensity of the ambient light obtained from the ambient light sensor 180L for the i-th time is not less than the first threshold. If yes, execute step 1005, otherwise execute step 1006. i takes 1 to N consecutive positive integers including 1 and N.
  • the electronic device 100 After the electronic device 100 automatically takes a picture of the image collected by the camera 193, subsequent detection of the user's facial skin and the like may be performed based on the obtained picture.
  • step 1006 the electronic device 100 obtains the average gray value of the ROI image in the photo preview interface.
  • step 1007 the electronic device 100 determines whether the average gray value of the ROI image is greater than the second threshold. If yes, step 1005 is performed, otherwise step 1008 is performed.
  • step 1008 the electronic device 100 prompts the user that the current ambient light is insufficient.
  • the prompting method refer to the foregoing method for prompting the user that the current ambient light is insufficient, and details are not described herein.
  • an embodiment of the present application provides a photographing method, which can be implemented in an electronic device 100 having a hardware structure shown in FIG. 1.
  • the photographing method according to the embodiment of the present application includes the following steps.
  • step 1101 the display screen 194 displays an icon of the first application.
  • step 1102 the electronic device 100 displays a user interface of the first application on the display screen 194 in response to the operation of the icon, and the user interface includes a camera button.
  • step 1103 the electronic device 100 displays a photo preview interface of the second application on the display screen 194 in response to the operation of the photo button.
  • the second application is a camera application, and the photo preview interface is used to display an image collected by the camera 193.
  • step 1104 the electronic device 100 automatically takes a picture of the image collected by the camera when the ambient light meets the shooting conditions.
  • the display screen and the camera may be located on the electronic device, or may not be located on the electronic device.
  • the display screen and / or the camera can be connected to the electronic device as external devices, so as to implement the technical solution in the embodiment of the present application.
  • the method provided by the embodiment of the present application is described from the perspective of the electronic device as the execution subject.
  • the electronic device may include a hardware structure and / or a software module, and implement the foregoing functions in the form of a hardware structure, a software module, or a hardware structure and a software module. Whether one of the above functions is executed by a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application of the technical solution and design constraints.
  • FIG. 12 illustrates an electronic device 1200 provided by the present application.
  • the electronic device 1200 includes at least one processor 1210, a memory 1220, a display screen 1230, and a camera 1240.
  • the processor 1210 is coupled to the memory 1220, the display screen 1230, and the camera 1240.
  • the coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units, or modules, which may be electrical, mechanical, or other forms. Used for information exchange between devices, units or modules.
  • the memory 1220 is used to store program instructions
  • the camera 1240 is used to capture external images.
  • the display screen 1230 is used to display a photo preview interface when the camera 1240 starts shooting, and the photo preview interface includes an image collected by the camera 1240.
  • the processor 1210 calls the program instructions stored in the memory 1220
  • the electronic device 1200 is caused to execute the steps performed by the electronic device in the photographing method shown in FIG. 10 and / or FIG. 11, thereby improving the quality of photographing.
  • the electronic device 1200 may be used to implement the photographing method shown in FIG. 10 and / or 11 according to the embodiment of the present application.
  • the electronic device 1200 may be used to implement the photographing method shown in FIG. 10 and / or 11 according to the embodiment of the present application.
  • Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a computer.
  • computer-readable media may include RAM, ROM, electrically erasable programmable read-only memory (EEPROM), read-only memory (EEPROM), compact disc-read-only memory (CD-ROM) ROM) or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer. Also. Any connection is properly a computer-readable medium.
  • disks and discs include compact discs (CDs), laser discs, optical discs, digital video discs (DVDs), floppy discs, and Blu-ray discs, among which Discs usually reproduce data magnetically, while discs use lasers to reproduce data optically.
  • CDs compact discs
  • DVDs digital video discs
  • floppy discs floppy discs
  • Blu-ray discs among which Discs usually reproduce data magnetically, while discs use lasers to reproduce data optically. The above combination should also be included in the protection scope of the computer-readable medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种拍照方法及电子设备,涉及终端技术领域,该方法应用于电子设备中,其中,电子设备包括显示屏和摄像头,具体的该方法包括:显示屏显示第一应用的图标;响应于对图标的操作,显示屏显示第一应用的用户界面,用户界面包括拍照按钮;并响应于对拍照按钮的操作,显示屏显示第二应用的拍照预览界面;第二应用为相机应用,拍照预览界面用于显示摄像头采集的图像;然后当环境光照满足拍摄条件时,电子设备自动对摄像头采集的图像进行拍照。这种技术方案有助于提高拍照的质量。

Description

一种拍照方法及电子设备
本申请中要求在2018年07月16日提交中国专利局、申请号为201810775963.7、申请名称为“一种判断光照强度的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,特别涉及一种拍照方法及电子设备。
背景技术
目前,用户可以通过使用在电子设备(如智能手机、平板电脑等)上安装的各种应用,来满足用户的各种需求。例如,用户可以通过使用相机应用进行拍照。现有技术中,电子设备在进入拍照预览界面后,可以响应于用户的拍照操作,进行拍照;也可以在进入拍照预览界面延时到预设时长后,自动进行拍照。
上述拍照方式得到照片的质量有可能较差。
发明内容
本申请提供一种拍照方法及电子设备,有助于提高拍照的质量。
第一方面,本申请实施例提供了一种拍照方法,应用于电子设备中,其中电子设备包括显示屏和摄像头,具体的,显示屏显示第一应用的图标;响应于对图标的操作,显示屏显示第一应用的用户界面,用户界面包括拍照按钮;并响应于对拍照按钮的操作,显示屏显示第二应用的拍照预览界面;第二应用为相机应用,拍照预览界面用于显示摄像头采集的图像;然后当环境光照满足拍摄条件时,电子设备自动对摄像头采集的图像进行拍照。
本申请实施例中由于电子设备可以当环境光照满足拍摄条件时,自动进行拍照,因而有助于提高拍照的质量。
在一种可能的设计中,电子设备可以通过下列方式中的任意一种确定环境光照满足拍摄条件:
方式一:从电子设备中的环境光传感器获取环境光照强度;当环境光照强度小于第一阈值时,再确定感兴趣区域ROI的图像的灰度平均值大于第二阈值;其中,感兴趣区域ROI的图像为电子设备在拍照预览界面获取的。通过该方式,与仅通过从环境光传感器获取的环境光照强度来评价环境光照相比,有助于提高评价环境光照的可靠性。
方式二:确定环境光照强度大于第五阈值。通过该方式,有助于简化评价环境光照的拍摄条件。
在一种可能的设计中,在上述方式一中,第二阈值可以预先通过下述方式来获取得到:
获取第一感光度ISO和第一曝光时间;第一ISO为显示拍照预览界面时电子设备确定的ISO;第一曝光时间为显示拍照预览界面时电子设备确定的曝光时间;根据第一ISO和第一曝光时间,确定第一通光量;进而根据第一通光量,确定第二阈值。通过该过程确定的第二阈值更有助于进一步提高评价环境光照的可靠性。
在一种可能的设计中,可以在电子设备中预先设置通光量与阈值的对应关系表,该对应关系表中可以包括第一通光量范围和第二通光量范围,其中第一通光量范围中的通光量 最小值大于第二通光量范围中的通光量最大值,第一通光量范围对应一个阈值,第二通光量范围对应另一个阈值,第一通光量范围对应的阈值大于第二通光量范围对应的阈值。然后根据上述确定的第一通光量查询该对应关系表,获得与第一通光量对应的阈值作为第二阈值。通过预先设置通光量与阈值的对应关系表,有助于提高评价环境光的可靠性,还有助于降低确定第二阈值的复杂性。
在一种可能的设计中,当环境光照不满足拍摄条件时,还可以提示用户当前环境光照不充足。有助于提高电子设备和用户之间的交互,有助于提升用户体验。
在一种可能的设计中,电子设备可以通过下列方式中的任一方式提示用户当前环境光照不充足:
方式一:通过语音提示用户当前环境光照不充足,该方式提示更直观有效,有助于简化实现方式。
方式二:显示屏显示提示信息,提示信息用于提示用户当前环境光照不充足。该方式可以避免提示过程中的声音干扰,有助于简化实现方式。
第二方面,本申请实施例提供了一种电子设备,包括处理器、存储器、显示屏和摄像头;其中处理器与存储器、显示屏和摄像头相耦合;其中,存储器用于存储程序指令;处理器用于读取存储器中存储的程序指令,结合显示屏和摄像头,以实现本申请实施例第一方面及其任一可能的设计的方法。
第三方面,本申请实施例提供的一种计算机存储介质,该计算机存储介质存储有程序指令,当程序指令在电子设备上运行时,使得电子设备执行本申请实施例第一方面及其任一可能的设计的方法。
第四方面,本申请实施例提供的一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备本申请实施例第一方面及其任一可能的设计的方法。
第五方面,本申请实施例提供的一种芯片,所述芯片与电子设备中的存储器耦合,控制电子设备执行本申请实施例第一方面及其任一可能的设计的方法。
另外,第二方面至第五方面所带来的技术效果可参见上述第一方面的描述,此处不再赘述。
需要说明的是,本申请实施例中“耦合”是指两个部件彼此直接或间接地结合。
附图说明
图1为本申请实施例电子设备的结构示意图;
图2为本申请实施例的用户界面示意图;
图3为本申请实施例提供的一种应用场景的示意图;
图4为本申请实施例提示信息的示意图;
图5为本申请实施例提供的一种相机应用的设置界面的示意图;
图6为本申请实施例提供的另一种相机应用的设置界面的示意图;
图7为本申请实施例提供的另一种应用场景的示意图;
图8为本申请实施例ROI的示意图;
图9A为本申请实施例ISO、曝光时间和通光量三者对应关系表的示意图;
图9B为本申请实施例通光量与阈值对应关系示意图;
图10为本申请实施例提供的一种拍照方法的流程示意图;
图11为本申请实施例提供的另一种拍照方法的流程示意图;
图12为本申请实施例提供的另一种电子设备的结构示意图。
具体实施方式
应理解,本申请实施例中“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一(项)个”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a、b和c,其中a、b、c可以是单个,也可以是多个。
本申请公开的各个实施例可以应用于电子设备中。在本申请一些实施例中,电子设备可以是包含诸如个人数字助理和/或音乐播放器等功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(如智能手表、智能手环等)、车载设备等。便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2018106219-appb-000001
或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是诸如具有触敏表面(例如触控面板)的膝上型计算机(Laptop)等。还应当理解的是,在本申请其他一些实施例中,上述电子设备也可以是具有触敏表面(例如触控面板)的台式计算机。
图1示出了一种电子设备100的结构示意图。
电子设备100可以包括处理器110、外部存储器接口120、内部存储器121、通用串行总线(universal serial bus,USB)接口130、充电管理模块140、电源管理模块141、电池142、天线2、无线通信模块160、音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、传感器模块180、按键190、马达191、指示器192、摄像头193、以及显示屏194等。其中传感器模块180包括环境光传感器180L。此外,传感器模块180还可以包括压力传感器180A、陀螺仪传感器180B、气压传感器180C、磁传感器180D、加速度传感器180E、距离传感器180F、接近光传感器180G、指纹传感器180H、温度传感器180J、触摸传感器180K、骨传导传感器180M等。在另一些实施例中,本申请实施例中的电子设备100还可以包括天线1、移动通信模块150、以及用户标识模块(subscriber identification module,SIM)卡接口195等。
处理器110可以包括一个或多个处理单元。例如:处理器110可以包括应用处理器(application processor,AP)、调制解调处理器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、存储器、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器、和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
在一些实施例中,处理器110中还可以设置存储器,用于存储指令和数据。示例的,处理器110中的存储器可以为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在另一些实施例中,处理器110还可以包括一个或多个接口。例如,接口可以为通用 串行总线(universal serial bus,USB)接口130。又例如,接口还可以为集成电路(inter-integrated circuit,I2C)接口、集成电路内置音频(inter-integrated circuit sound,I2S)接口、脉冲编码调制(pulse code modulation,PCM)接口、通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口、移动产业处理器接口(mobile industry processor interface,MIPI)、通用输入输出(general-purpose input/output,GPIO)接口、用户标识模块(subscriber identity module,SIM)接口等。可以理解的是,本申请实施例可以通过接口连接电子设备100的不同模块,从而使得电子设备100能够实现不同的功能。例如拍照、处理等。需要说明的是,本申请实施例对电子设备100中接口的连接方式不作限定。
其中,USB接口130是符合USB标准规范的接口。例如,USB接口130可以包括Mini USB接口、Micro USB接口、USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如增强现实技术(augmented reality,AR)设备等。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110、内部存储器121、外部存储器、显示屏194、摄像头193和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电、阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1、天线2、移动通信模块150、无线通信模块160、调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器、开关、功率放大器、低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波、放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后, 被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A、受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络)、蓝牙(bluetooth,BT)、全球导航卫星系统(global navigation satellite system,GNSS)、调频(frequency modulation,FM)、近距离无线通信技术(near field communication,NFC)、红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波信号,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址接入(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、时分码分多址(time-division code division multiple access,TD-SCDMA)、长期演进(long term evolution,LTE)、BT、GNSS、WLAN、NFC、FM、和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS)、全球导航卫星系统(global navigation satellite system,GLONASS)、北斗卫星导航系统(beidou navigation satellite system,BDS)、准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU、显示屏194、以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像、视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、Miniled、MicroLed、Micro-oLed、量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP、摄像头193、视频编解码器、GPU、显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点、亮度、肤色进行算法优化。ISP还可以对拍摄场景的曝光、色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。 感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1、MPEG2、MPEG3、MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别、人脸识别、语音识别、文本理解等。
外部存储器接口120可以用于连接外部存储卡(例如,Micro SD卡),实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐、视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据、电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D以及应用处理器等实现音频功能。例如音乐播放、录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐、或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个、四个或更多麦克风170C,实现声音信号采集、降噪、还可 以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口、美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口等。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境 光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190可以包括开机键、音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照、音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒、接收信息、闹钟、游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态、电量变化,也可以用于指示消息、未接来电、通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
可以理解的是,本申请实施例中图1所示意的结构并不构成对电子设备100的具体限 定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件、软件或软件和硬件的组合实现。
下面以电子设备100为例对本申请实施例进行详细说明。
另外,应理解,本申请实施例中电子设备支持的应用程序可以包括拍照类的应用,例如相机。此外,电子设备支持的应用程序还可以包括其他多种应用,例如:绘图、游戏、电话、视频播放器、音乐播放器、照片管理、浏览器、日历、时钟等。
本申请实施例中的电子设备支持的应用又可以包括用于皮肤检测的应用。其中,用于皮肤检测的应用是通过对拍摄的人脸图像来检测用户面部皮肤的特征(例如面部皮肤的皱纹、毛孔、黑头、色斑、红区等),并可以为用户提供检测结果报告。例如,检测结果报告可以但不限于包括针对面部皮肤上各个特征的打分、对面部皮肤的综合分析等,还可以进而展示用户的人脸图片,并根据对各个特征的检测结果在人脸图像上分别标示出相应的问题,比如在鼻头区域标示有黑头,在额头区域标示有皱纹,在脸颊区域标示有色斑等等。可以理解的是,检测结果报告可以通过用户界面呈现给用户,例如,检测结果报告可以如图2所示的用户界面200,包括综合得分、肤龄、以及毛孔、黑头、细纹、色斑以及红区的得分。在另一些实施例中,用户界面200上还可以包括虚拟按钮201、虚拟按钮202、虚拟按钮203、虚拟按钮204和虚拟按钮205,其中以虚拟按钮201为例,电子设备100响应于对虚拟按钮201的操作,在显示屏194上显示针对毛孔的具体护理建议。虚拟按钮202、虚拟按钮203、虚拟按钮204和虚拟按钮205的功能可参见虚拟按钮201的功能,在此不再赘述。
为了使得电子设备对用户面部皮肤的检测更加准确,示例的,本申请实施例的用户皮肤检测方案,可以在处理器110中集成拍摄条件检测模块、图像质量检测模块、感兴趣区域(region of interest,ROI)检测模块、皮肤特征检测模块、结果分析模块等。在一些实施例中,可以在处理器110中的应用处理器上集成拍摄条件检测模块、图像质量检测模块、感兴趣区域(region of interest,ROI)检测模块、皮肤特征检测模块、结果分析模块等等。在另一些实施例中,在处理器110中集成人工智能(artificial intelligence,AI)芯片,在AI芯片上集成拍摄条件检测模块、图像质量检测模块、感兴趣区域(region of interest,ROI)检测模块、皮肤特征检测模块、结果分析模块等,来实现用户皮肤检测。
其中,拍摄条件检测模块可以实现对当前拍摄条件进行检测,以指导用户在要求的拍摄条件下进行拍摄,确保拍摄图像满足要求,从而保证基于图像对皮肤检测的准确性。例如,要求的拍摄条件包括:环境光照充足、人脸与电子设备之间的距离合适(例如25cm左右)、面部端正、睁眼闭眼、不佩戴眼镜、前额尽量无刘海遮挡、对焦准确、无明显抖动等。
当拍摄条件检测模块检测成功后,处理器110会启动智能补光。例如,当拍摄条件检测模块在当前拍摄条件满足要求时,确定检测成功。具体的,本申请实施例中电子设备可以采用不同的补光模式(例如闪光灯模式,手电筒模式)对用户的面部进行补光,以满足不同面部皮肤特征检测的要求。在对用户的面部补光后,处理器110就可以控制摄像头193对用户面部进行拍摄得到用户面部的人脸图像。
图像质量检测模块可以对人脸图像的质量进行检测,以确保拍摄的图像满足不同面部皮肤特征检测的要求。
ROI检测模块可以在图像质量检测模块检测到图像的质量满足要求后,从人脸图像中 确定待检测的ROI,例如黑头的ROI是鼻头上的一小块区域。
皮肤特征检测模块可以分别对已经确定出的ROI中的面部皮肤特征进行检测,例如检测皮肤中的皱纹、毛孔、黑头、色斑、红区、出油程度等。
结果分析模块可以对皮肤特征检测模块检测得到的面部皮肤特征的检测结果进行分析,并针对各个皮肤特征给出各个检测项的打分、打分排序等。
另外,在一些实施例中,处理器110中还可以集成图像预处理模块。其中,图像预处理模块可以对拍摄到的人脸图像进行压缩、剪裁等,以便ROI检测模块、皮肤特征检测模块等进行后续处理。
为了输出人脸图像分析结果,或输出各个检测项的打分等,处理器110还可以将检测得到的检测报告(包含各个特征的检测结果在人脸图像上的区域,比如在鼻头区域标示有黑头,在额头区域标示有皱纹,在脸颊区域标示有色斑等等,各个检测项的打分等)显示在显示屏194上,供用户进行查看,提高用户体验。
考虑到环境光照是影响拍照质量的重要因素,因此本申请实施例中为了提高拍照的质量,电子设备可以在环境光照满足拍摄条件时,自动对摄像头采集的图像进行拍照。需要说明的是,本申请实施例中的自动对对摄像头采集的图像进行拍照,指的是用户无需进行任何操作(例如对拍照按钮操作、语音指令、拍照手势等),电子设备就能够对摄像头采集的图像进行拍照。
需要说明的是,本申请实施例中电子设备可以在环境光照满足拍摄条件时,自动对摄像头采集的图像进行拍照,可以是:电子设备可以仅在环境光照满足拍摄条件时,自动对摄像头采集的图像进行拍照;也可以是:电子设备在环境光照满足拍摄条件,而且其他预设条件(例如用户闭眼等)也满足时,自动对摄像头采集的图像进行拍照。
具体的,本申请实施例可以应用于第一应用中,其中第一应用可以为具有拍照功能的应用。例如相机应用、皮肤检测类应用等。还需要说明的是,本申请实施例中的第一应用可以为电子设备100在出厂时预装的应用,也可以为用户从应用市场下载的第三方应用。
以第一应用为相机应用为例。例如,如图3所示,电子设备100的显示屏194显示相机应用的图标300,并响应于对图标300的操作,显示屏194显示拍照预览界面310。其中,拍照预览界面310可以用于显示摄像头193采集的图像。例如,对图标300的操作可以为对图标300的触摸操作,还可以为其它操作。
在一些实施例中,拍照预览界面310可以包括预览区域311,预览区域311用于显示摄像头193采集的图像。例如,摄像头193采集的图像可以为面部图像、也可以为风景图像,还可以为其它等。需要说明的是,摄像头193可以为电子设备100的前置摄像头,也可以为电子设备100的后置摄像头,用户可以通过对虚拟按钮313的操作,来实现前置摄像头和后置摄像头的切换,也可以通过其它方式实现前置摄像头和后置摄像头的切换。
当显示屏194显示拍照预览界面310时,可以响应于用户对虚拟按钮312的操作,对摄像头193采集的图像进行拍照。为了得到高质量的照片,电子设备100可以在当环境光照满足拍摄条件时,则自动对摄像头193采集的图像进行拍照。在一些实施例中,电子设备100当环境光照不满足拍摄条件时,提示用户当前环境光照不充足。从而有助于用户了解当前电子设备100无法自动拍照的原因。示例的,电子设备100可以通过语音提示用户当前环境光照不充足,也可以通过显示屏194显示提示信息,其中提示信息用于提示用户 当前环境光照不充足,还可以通过语音提示和在显示屏194上显示提示信息相结合的方式,提示用户当前环境光照不充足。
例如,如图4所示,电子设备100的显示屏194显示提示框400,其中提示框400包括提示信息,其中提示信息用于提示用户当前环境光照不足,请更换拍照环境。
为了便于用户了解基于环境光照自动拍照的功能,在一些实施例中,可以通过在相机应用的设置界面中增加用于控制开启或关闭基于环境光照自动拍照的功能的虚拟按钮。需要说明的是,相机应用的设置界面可以为相机应用自带的设置界面,也可以为系统设置界面中针对相机应用的设置界面。
示例的,如图5所示,电子设备100可以响应于对拍照预览界面310上的设置按钮500操作,在显示屏194显示相机应用的设置界面510。其中,应用的设置界面510上包括用于设置拍照功能的一些虚拟按钮,例如分辨率、自拍镜像等。需要说明的是,电子设备100还可以响应于其它操作(例如向右滑动、或者向左滑动等),在显示屏194显示相机应用的设置界面510。为了便于用户了解基于环境光照自动拍照的功能,在应用的设置界面510增加用于控制光照拍照的虚拟按钮511,当虚拟按钮511为ON(开启)时,则电子设备100在显示拍照预览界面时,若环境光照满足拍摄条件,则自动对摄像头193采集的图像进行拍照。当虚拟按钮511为OFF(关闭)时,则电子设备100若对摄像头193采集的图像进行拍照,则可以不再检测环境关照是否满足拍摄条件。
又示例的,如图6所示,电子设备100可以响应于对设置图标600的操作,在显示屏194上显示系统设置界面610。电子设备100可以响应于对系统设置界面610上包括的应用管理611的操作,在显示屏194上显示用户界面620。其中,用户界面620包括安装在电子设备100上的应用图标,例如,图库、邮件、相机、设置等。电子设备100可以响应于用户对相机应用的图标621的操作,在显示屏194上显示相机应用的设置界面630。为了便于用户了解基于环境光照自动拍照的功能,在应用的设置界面630增加用于控制光照拍照的虚拟按钮631。其中,虚拟按钮631的功能可参见虚拟按钮511的功能,在此不再赘述。
需要说明的是,本申请实施例中电子设备100可以响应于用户的操作,通过第一应用调用摄像头采集图像,从而显示拍照预览界面。电子设备100也可以响应于用户的操作,通过第一应用调用第二应用,从而调用摄像头采集图像,来显示拍照预览界面。
以下以第一应用为用于皮肤检测的应用、第二应用为相机为例进行说明。例如,如图7所示,电子设备100的显示屏194显示测肤应用的图标700。电子设备100检测到对图标700的操作,则响应于对图标700的操作,在显示屏194显示测肤应用的用户界面710。其中测肤应用的用户界面710包括测肤按钮711。电子设备100检测到对测肤按钮711的操作。则响应于对测肤按钮711的操作,显示屏194显示相机应用的拍照预览界面720。拍照预览界面720用于显示摄像头193采集的图像。示例的,拍照预览界面720可以包括预览区域721,预览区域721用于显示摄像头193采集的图像。应理解,摄像头193采集的图像可以为用户的面部图像。另外,摄像头193可以为电子设备100的前置摄像头,可以为电子设备100的后置摄像头。在一些实施例中,为了提高拍照的质量,在前置摄像头的像素低于后置摄像头的像素的情况下,摄像头193为电子设备100的后置摄像头。为了进一步提高拍照的质量,电子设备100在确定当环境光照满足拍摄条件时,自动对摄像头193采集的图像进行拍照。需要说明是,本申请实施例中的测肤按钮711又可称之为拍照 按钮,本申请实施例对测肤按钮711的名称不作限定。
本申请实施例中,为了提高电子设备100对环境光照评价的可靠性,可以通过软硬结合的方式对环境光照进行评价。
在一些实施例中,当显示屏194显示拍照预览界面时,电子设备100可以从环境光传感器180L获取环境光照强度。当环境光照强度小于第一阈值时,则从拍照预览界面获取ROI的图像的灰度平均值,若灰度平均值大于第二阈值,则电子设备100自动对摄像头193采集的图像进行拍照。
以图7所示的拍照预览界面720为例,拍照预览界面720包括预览区域721,预览区域721用于显示摄像头193采集的完整的图像,ROI可以预览区域721,也可以小于预览区域721。例如,如图8所示,ROI为区域800。需要说明的是,当ROI小于预览区域721时,电子设备100可以基于预设算法从拍照预览界面确定ROI。另外,本申请实施例中ROI的图像的灰度平均值可以基于已有的图像的灰度平均值的算法确定,也可以基于其它算法确定。
本申请实施例中的第一阈值可以预先配置在电子设备100中,也可以将确定第一阈值的算法预先配置在电子设备100中。其中,第一阈值可以基于实际情况或者实验数据进行设置。例如,当环境光强度大于或等于10勒克斯(lux)时,环境光照充足,当环境光强度小于10lux时,环境光照不充足,则第一阈值可以取值为10lux。
由于本申请实施例中在当环境光强度小于第一阈值时,进一步对ROI的图像的灰度平均值进行判断,与仅通过环境光照强度来评价环境光照相比,有助于避免因环境光照传感器180L因被遮挡等原因,导致电子设备100获取环境光照强度不准确而对环境光照的评价不准确。
本申请实施例中,第二阈值可以预先配置在电子设备100中,也可以将确定第二阈值的算法预先配置在电子设备100中。
考虑到不同的通光量与环境光照相关,例如,当通光量较大时,环境光照较暗,当通光量较小时,环境光照较亮。为了使得基于ROI的图像的灰度平均值评价环境光照更加准确,在一些实施例中,可以在电子设备100预先配置通光量与阈值的对应关系表,其中,通光量越大,对应的阈值越大,通光量越小,对应的阈值越小。第二阈值为第一通光量对应的阈值,第一通光量为电子设备100在显示屏194显示拍照预览界面时确定的通光量。具体的,电子设备100响应于拍照操作(例如对拍照按钮的操作、对相机应用的图标的操作等),确定第一通光量,然后摄像头193基于第一通光量采集图像,并在显示屏194显示。
应理解,本申请实施例中,可以针对不同的通光量设置不同的阈值,也可以将不同的通光量分段,即不同的通光量范围对应不同的阈值。具体的,可以将不同的通光量划分为N个通光量范围,其中,N个通光量范围分别对应一个阈值,且N个通光量范围分别对应的阈值不同,N的取值可以根据实际需求进行设置。例如,可以将不同的通光量划分为通光量范围1和通光量范围2,其中,通光量范围1对应阈值1,通光量范围2对应阈值2。例如,通光量范围1中的最小值大于通光量范围2中的最大值,则阈值1大于阈值2。再例如,还可以不同的通光量划分为通光量范围1、通光量范围2、通光量范围3和通光量范围4,其中,通光量范围1对应阈值1,通光量范围2对应阈值2、通光量范围3对应阈值3,通光量范围4对应阈值4。
本申请实施例中为了简化实现方式,在一些实施例中,电子设备100可以根据第一感光度(international standards organization,ISO)和第一曝光时间,确定第一通光量。其中, 第一ISO为显示屏194显示拍照预览界面时电子设备100确定的ISO,第一曝光时间为显示屏194显示拍照预览界面时电子设备100确定的曝光时间。示例的,电子设备100中可以预先配置不同的ISO和不同的曝光时间,然后在需要摄像头193采集图像时,电子设备100可以基于预设的第一策略,从不同的ISO确定第一ISO,基于预设的第二策略,从不同的曝光时间中确定第一曝光时间,然后摄像头193基于第一ISO和第一曝光时间采集图像,并在显示屏194显示拍照预览界面。示例的,电子设备100可以基于ISO、曝光时间与通光量三者的对应关系,确定第一通光量,其中第一通光量为与第一ISO和第一曝光时间对应的通光量。
例如,ISO、曝光时间与通光量三者的对应关系可以如表1所示。
表1
Figure PCTCN2018106219-appb-000002
以表1为例,当ISO为50、曝光时间为1/500秒(s)时,则通光量为1份。若第一ISO为400,第一曝光时间为1/30s,则第一通光量为128份。
其中,表1所示的ISO、曝光时间与通光量三者的对应关系是基于对黄种人拍摄的不同场景得到的。例如,如图9A所示,将表1中的通光量可以划分四个通光量范围,分别为通光量范围1、通光量范围2、通光量范围3和通光量范围4,其中,通光量范围1为{1、2、4、8},通光量范围2为{16、32、64},通光量范围3为{128、256、512},通光量范围4为{1024、2048、4096},在这种情况下,为了提高评价环境光照的可靠性,通光量与阈值之间的对应关系可以如图9B所示。其中通光量范围1对应阈值1,通光量范围2对应阈值2,通光量范围3对应阈值3,通光量范围4对应阈值4,阈值1<阈值2<阈值3<阈值4。以图9A和图9B为例,若第一ISO为400,第一曝光时间为1/30s,则第一通光量为128份,在这种情况下,第一通光量属于通光量范围3中,所以第二阈值为阈值3。
通过第一ISO和第一曝光时间确定第一通光量,有助于排除白平衡以及相机自动调节参数(ISO和曝光时间)的影响,从而提高了评价环境光照的可靠性。
此外,当显示屏194显示拍照预览界面时,若环境光照强度小于第一阈值,且从拍照预览界面获取的ROI的图像的灰度平均值小于或等于第二阈值时,可以提示用户当前环境光照不充足。具体的,提示用户当前环境光照不充足的方式可参见上述当环境光照不满足拍摄条件时,提示用户当前环境光照不充足的方式,在此不再赘述。
在另一些实施例中,当显示屏194显示拍照预览界面时,电子设备100可以从环境光传感器180L获取环境光照强度。当环境光照强度大于第三阈值时,则自动对摄像头193采集的图像进行拍照。其中,第三阈值可以等于第一阈值,第三阈值也可以大于第一阈值,具体的,第三阈值的取值可以基于实际情况进行设置。
本申请实施例中,为了进一步提高评价环境光照的可靠性,可以通过多次对环境光照进行评价,从而达到对环境光照判定是否满足拍摄条件的目的。例如对于皮肤检测应用来说,拍照的成像质量影响皮肤检测的精度,而环境光照充足是得到高质量照片的重要条件,因此,为了确保得到高质量的照片,在一些实施例中,电子设备100连续N次判定当前环境光照充足后,再确定当前环境光照满足拍摄要求,其中N为大于或等于1的正整数。
示例的,下面结合图7对本申请实施例的拍照方法进行具体介绍。
如图10所示,本申请实施例的另一种拍照方法,包括以下步骤。
步骤1001,电子设备100在显示屏194上显示测肤应用的图标700。
步骤1002,电子设备100响应于对图标700的操作,在显示屏194上显示测肤应用的应用界面710,其中应用界面710包括虚拟按钮711。示例的,该虚拟按钮711可命名为“测肤”或者“拍照”等。
步骤1003,电子设备100响应于对虚拟按钮711的操作,在显示屏194上显示拍照预览界面720。拍照预览界面720用于显示摄像头193采集的面部图像,其中拍照预览界面720可以为相机应用701的拍照预览界面,也可以为测肤应用的拍照预览界面。
步骤1004,电子设备100从显示拍摄预览界面720开始,可以每隔预设时间从环境光传感器180L获取环境光强度。需要说明的是,预设时间可以根据需要进行相应的设置,例如1s、2s等。
步骤1004,电子设备100判断第i次从环境光传感器180L获取的环境光强度是否不小于第一阈值,若是,执行步骤1005,否则执行步骤1006。i取遍1~N包括1和N在内的N个连续的正整数。
步骤1005,电子设备100当i<N时,将i的取值自动加1,重新执行步骤1004;当i=N时,则自动对摄像头193采集的图像进行拍照。
当电子设备100自动对摄像头193采集的图像进行拍照后,后续可以基于拍照得到的照片对用户面部皮肤进行检测等。
步骤1006,电子设备100获取拍照预览界面中ROI的图像的灰度平均值。
步骤1007,电子设备100判断ROI的图像的灰度平均值是否大于第二阈值,若是,执行步骤1005,否则执行步骤1008。
需要说明的是,第二阈值的确定方式可以参见上述第二阈值的确定方式,在此不再赘述。
步骤1008,电子设备100提示用户当前环境光照不足。其中,提示方式可以参见上述提示用户当前环境光照不足的方式,在此不在赘述。
结合上述实施例及附图,本申请实施例提供一种拍照方法,该方法可以在具有图1所示的硬件结构的电子设备100中实现。
示例的,如图11所示,本申请实施例的拍照方法,包括以下步骤。
步骤1101,显示屏194显示第一应用的图标。
步骤1102,电子设备100响应于对图标的操作,在显示屏194显示第一应用的用户界面,用户界面包括拍照按钮。
步骤1103,电子设备100响应于对拍照按钮的操作,在显示屏194显示第二应用的拍照预览界面。其中,第二应用为相机应用,拍照预览界面用于显示摄像头193采集的图像。
步骤1104,电子设备100当环境光照满足拍摄条件时,自动对摄像头采集的图像进行 拍照。
其中,图11所示的拍照方法的具体实现方式,可参见上述各个实施例的相关介绍,在此不再赘述。
需要说明的是,本申请实施例中显示屏和摄像头可以位于电子设备上,也可以不位于电子设备上。例如,显示屏和/或摄像头可以作为外接设备与电子设备连接,从而实现本申请实施例的技术方案。
应理解,本申请各个实施例可以相互结合使用,也可以单独使用。
上述本申请提供的实施例中,从电子设备作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。
基于相同的构思,图12所示为本申请提供的一种电子设备1200。示例的,电子设备1200包括至少一个处理器1210、存储器1220、显示屏1230和摄像头1240。其中,处理器1210与存储器1220、显示屏1230和摄像头1240耦合,本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。
具体的,存储器1220用于存储程序指令,摄像头1240用于拍摄外界图像。显示屏1230用于在摄像头1240启动拍摄时,显示拍照预览界面,拍照预览界面包括摄像头1240采集的图像。处理器1210调用存储器1220中存储的程序指令时,使得电子设备1200执行图10和/或图11所示的拍照方法中由电子设备所执行的步骤,从而提高拍照的质量。
应理解,该电子设备1200可以用于实现本申请实施例的如图10和/或11所示的拍照的方法,相关特征可以参照上文,此处不再赘述。
所属领域的技术人员可以清楚地了解到本申请实施例可以用硬件实现,或固件实现,或它们的组合方式来实现。当使用软件实现时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、电可擦可编程只读存储器(electrically erasable programmable read only memory,EEPROM)、只读光盘(compact disc read-Only memory,CD-ROM)或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(digital subscriber line,DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定影中。如本申请实施例所使用的,盘(disk)和碟(disc)包括压缩光碟(compact disc,CD)、激光碟、光碟、数字通用光碟(digital video disc,DVD)、软盘和蓝光光碟,其中盘通常磁性的复制数据,而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的保护范围之内。
总之,以上所述仅为本申请的实施例而已,并非用于限定本申请的保护范围。凡根据本申请的揭露,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (12)

  1. 一种拍照方法,其特征在于,应用于电子设备中,所述电子设备包括显示屏和摄像头,所述方法包括:
    所述显示屏显示第一应用的图标;
    响应于对所述图标的操作,所述显示屏显示所述第一应用的用户界面,所述用户界面包括拍照按钮;
    响应于对所述拍照按钮的操作,所述显示屏显示第二应用的拍照预览界面;所述第二应用为相机应用,所述拍照预览界面用于显示所述摄像头采集的图像;
    当环境光照满足拍摄条件时,所述电子设备自动对所述摄像头采集的图像进行拍照。
  2. 如权利要求1所述的方法,其特征在于,所述环境光照满足拍摄条件,包括:
    从所述电子设备中的环境光传感器获取环境光照强度;
    当所述环境光照强度小于第一阈值时,确定感兴趣区域ROI的图像的灰度平均值大于第二阈值;
    其中,所述感兴趣区域ROI的图像为所述电子设备在所述拍照预览界面获取。
  3. 如权利要求2所述的方法,其特征在于,所述方法还包括:
    获取第一感光度ISO和第一曝光时间;所述第一ISO为显示所述拍照预览界面时所述电子设备确定的ISO;所述第一曝光时间为显示所述拍照预览界面时所述电子设备确定的曝光时间;
    根据所述第一ISO和所述第一曝光时间,确定第一通光量;
    根据所述第一通光量,确定所述第二阈值。
  4. 如权利要求3所述的方法,其特征在于,所述根据所述第一通光量,确定所述第二阈值,包括:
    所述电子设备根据所述第一通光量,从预先设置的通光量与阈值的对应关系表中查找所述第二阈值,所述第二阈值为所述第一通光量所属的通光量范围对应的阈值;
    其中,所述对应关系表中包括第一通光量范围和第二通光量范围,所述第一通光量范围中的通光量最小值大于所述第二通光量范围中的通光量最大值,所述第一通光量范围对应一个阈值,所述第二通光量范围对应另一个阈值,所述第一通光量范围对应的阈值大于所述第二通光量范围对应的阈值。
  5. 如权利要求1所述的方法,其特征在于,所述环境光照满足拍摄条件,包括:
    确定环境光照强度大于第五阈值。
  6. 如权利要求1至5任一所述的方法,其特征在于,所述方法还包括:
    当所述环境光照不满足拍摄条件时,提示用户当前环境光照不充足。
  7. 如权利要求6所述的方法,其特征在于,所述提示用户当前环境光照不充足,包括:
    通过语音提示用户当前环境光照不充足。
  8. 如权利要求6所述的方法,其特征在于,所述提示用户当前环境光照不充足,包括:
    所述显示屏显示提示信息,所述提示信息用于提示用户当前环境光照不充足。
  9. 一种电子设备,其特征在于,包括处理器、存储器、显示屏和摄像头;其中所述 处理器与所述存储器、所述显示屏和所述摄像头相耦合;
    所述存储器,用于存储程序指令;
    所述处理器,用于读取所述存储器中存储的所述程序指令,结合所述显示屏和所述摄像头,以实现如权利要求1至8任一所述的方法。
  10. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序指令,当所述程序指令在电子设备上运行时,使得所述电子设备执行如权利要求1至8任一所述的方法。
  11. 一种计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1至8任一所述的方法。
  12. 一种芯片,其特征在于,所述芯片与电子设备中的存储器耦合,控制所述电子设备执行如权利要求1至8任一所述的方法。
PCT/CN2018/106219 2018-07-16 2018-09-18 一种拍照方法及电子设备 WO2020015144A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201880085138.2A CN111543049B (zh) 2018-07-16 2018-09-18 一种拍照方法及电子设备
US17/260,997 US11272116B2 (en) 2018-07-16 2018-09-18 Photographing method and electronic device
EP18926720.6A EP3813352B1 (en) 2018-07-16 2018-09-18 Photographing method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810775963.7 2018-07-16
CN201810775963 2018-07-16

Publications (1)

Publication Number Publication Date
WO2020015144A1 true WO2020015144A1 (zh) 2020-01-23

Family

ID=69164972

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/106219 WO2020015144A1 (zh) 2018-07-16 2018-09-18 一种拍照方法及电子设备

Country Status (4)

Country Link
US (1) US11272116B2 (zh)
EP (1) EP3813352B1 (zh)
CN (1) CN111543049B (zh)
WO (1) WO2020015144A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770279A (zh) * 2020-08-03 2020-10-13 维沃移动通信有限公司 一种拍摄方法及电子设备
CN115314642A (zh) * 2021-05-08 2022-11-08 四川大学 一种基于多像素累积的相机光通信系统及实现方法

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542581A (zh) * 2020-04-22 2021-10-22 华为技术有限公司 多路录像的取景方法、图形用户界面及电子设备
CN114650363B (zh) * 2020-12-18 2023-07-21 华为技术有限公司 一种图像显示的方法及电子设备
CN115225753A (zh) * 2021-04-19 2022-10-21 华为技术有限公司 拍摄方法、相关装置及系统
CN115543061B (zh) * 2022-04-12 2023-11-07 荣耀终端有限公司 一种功耗控制方法及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090010494A1 (en) * 1997-04-02 2009-01-08 Gentex Corporation System for controlling vehicle equipment
CN104382575A (zh) * 2014-11-20 2015-03-04 惠州Tcl移动通信有限公司 一种基于移动终端的心律检测方法及移动终端
CN106557295A (zh) * 2016-11-26 2017-04-05 宇龙计算机通信科技(深圳)有限公司 一种数据处理方法及移动终端
CN106603904A (zh) * 2015-10-19 2017-04-26 意法半导体国际有限公司 使用基于环境光传感器的触发器捕捉稳定图像
CN107506752A (zh) * 2017-09-18 2017-12-22 艾普柯微电子(上海)有限公司 人脸识别装置及方法

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070008326A1 (en) * 2005-06-02 2007-01-11 Searete Llc, A Limited Liability Corporation Of The State Of Delaware Dual mode image capture technique
JP2008116823A (ja) * 2006-11-07 2008-05-22 Nikon Corp カメラ
US9672510B2 (en) * 2008-01-18 2017-06-06 Mitek Systems, Inc. Systems and methods for automatic image capture and processing of documents on a mobile device
TWI445397B (zh) * 2010-12-29 2014-07-11 Altek Corp 電子裝置、影像擷取裝置及其自動擷取影像之方法
US8995784B2 (en) * 2013-01-17 2015-03-31 Google Inc. Structure descriptors for image processing
KR102099635B1 (ko) * 2013-04-09 2020-04-13 삼성전자 주식회사 카메라의 가이드 제공 방법 및 그 전자 장치
CN105991841A (zh) * 2015-07-03 2016-10-05 经研八信息科技(北京)有限公司 基于app技术的高尔夫球场计分拍照方法及系统
KR20170089653A (ko) * 2016-01-27 2017-08-04 엘지전자 주식회사 이동단말기 및 그 제어방법
US9800975B1 (en) * 2016-04-18 2017-10-24 mPerpetuo, Inc. Audio system for a digital camera
CN107402879B (zh) * 2016-05-20 2020-11-06 阿里巴巴集团控股有限公司 确定应用之间调用关系的方法及装置
CN107920210A (zh) * 2017-12-27 2018-04-17 广东欧珀移动通信有限公司 图像拍摄方法、装置及终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090010494A1 (en) * 1997-04-02 2009-01-08 Gentex Corporation System for controlling vehicle equipment
CN104382575A (zh) * 2014-11-20 2015-03-04 惠州Tcl移动通信有限公司 一种基于移动终端的心律检测方法及移动终端
CN106603904A (zh) * 2015-10-19 2017-04-26 意法半导体国际有限公司 使用基于环境光传感器的触发器捕捉稳定图像
CN106557295A (zh) * 2016-11-26 2017-04-05 宇龙计算机通信科技(深圳)有限公司 一种数据处理方法及移动终端
CN107506752A (zh) * 2017-09-18 2017-12-22 艾普柯微电子(上海)有限公司 人脸识别装置及方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3813352A4

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770279A (zh) * 2020-08-03 2020-10-13 维沃移动通信有限公司 一种拍摄方法及电子设备
CN115314642A (zh) * 2021-05-08 2022-11-08 四川大学 一种基于多像素累积的相机光通信系统及实现方法
CN115314642B (zh) * 2021-05-08 2024-03-12 四川大学 一种基于多像素累积的相机光通信系统及实现方法

Also Published As

Publication number Publication date
US11272116B2 (en) 2022-03-08
EP3813352A4 (en) 2021-07-14
US20210266447A1 (en) 2021-08-26
EP3813352A1 (en) 2021-04-28
CN111543049A (zh) 2020-08-14
EP3813352B1 (en) 2022-06-08
CN111543049B (zh) 2021-11-05

Similar Documents

Publication Publication Date Title
US11798162B2 (en) Skin detection method and electronic device
WO2020015144A1 (zh) 一种拍照方法及电子设备
EP3885968A1 (en) Skin detection method and electronic device
CN113810601B (zh) 终端的图像处理方法、装置和终端设备
KR102548317B1 (ko) 색소 검출 방법 및 전자 장치
CN113542580B (zh) 去除眼镜光斑的方法、装置及电子设备
WO2020015149A1 (zh) 一种皱纹检测方法及电子设备
CN113467735A (zh) 图像调整方法、电子设备及存储介质
CN111417982B (zh) 一种色斑检测方法及电子设备
CN114661258A (zh) 自适应显示方法、电子设备及存储介质
WO2020015145A1 (zh) 一种检测眼睛睁闭状态的方法及电子设备
CN114125144B (zh) 一种防误触的方法、终端及存储介质
CN116437194B (zh) 显示预览图像的方法、装置及可读存储介质
CN115150543B (zh) 拍摄方法、装置、电子设备及可读存储介质
WO2023071497A1 (zh) 拍摄参数调节方法、电子设备及存储介质
WO2022105670A1 (zh) 一种显示方法及终端
CN118057858A (zh) 数据处理方法、设备和系统
CN118113386A (zh) 转场动效生成方法和电子设备
CN116449942A (zh) 轴向匹配方法及其相关设备
CN114691066A (zh) 一种应用的显示方法及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18926720

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018926720

Country of ref document: EP

Effective date: 20210119