WO2020228792A1 - Image capture method and electronic device - Google Patents

Image capture method and electronic device Download PDF

Info

Publication number
WO2020228792A1
WO2020228792A1 PCT/CN2020/090366 CN2020090366W WO2020228792A1 WO 2020228792 A1 WO2020228792 A1 WO 2020228792A1 CN 2020090366 W CN2020090366 W CN 2020090366W WO 2020228792 A1 WO2020228792 A1 WO 2020228792A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
shooting
mobile phone
electronic device
user
Prior art date
Application number
PCT/CN2020/090366
Other languages
French (fr)
Chinese (zh)
Inventor
吴钢
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2020228792A1 publication Critical patent/WO2020228792A1/en

Links

Images

Classifications

    • 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/62Control of parameters via user interfaces

Definitions

  • This application relates to the field of terminal technology, and in particular to an image shooting method and electronic equipment.
  • the purpose of the present application is to provide an image shooting method and electronic device, which can enable the electronic device to shoot images that meet the needs of users and improve user experience.
  • an image shooting method which can be executed by an electronic device, such as a mobile phone, an ipad, and so on.
  • the method includes: detecting an input operation; in response to the input operation, starting a camera, and displaying a framing interface, the framing interface includes a preview image; detecting a first operation on a shooting control; in response to the first operation, A first image is displayed, the first image is an image taken based on initial shooting parameters, the weight information and shooting adjustment parameters of each subject are displayed on the first image; the first image used to store the first image is detected Second operation: In response to the second operation, a second image is stored, the second image being an image obtained after adjusting the first image according to the weight information and shooting adjustment parameters of each shooting object.
  • the first image is captured.
  • the electronic device does not directly store the first image, but can provide the user with the first image before storing the first image.
  • the electronic device detects the operation of storing the first image, the electronic device will The second image obtained after retouching is stored.
  • the user does not need to capture the first image in the electronic device, and after storing the first image, find the first image from the gallery, and then retouch the first image, that is, the user passes through fewer operation steps. An image that is more in line with the user's aesthetics can be obtained, the operation is simple, and the user experience is improved.
  • the electronic device before detecting the second operation for storing the first image, may also detect the modification operation of the weight information and/or the shooting adjustment parameters for the first shooting object; In the modification operation, a third image is obtained by processing the first image, where the third image is an image obtained after adjusting the first image according to the modified weight information and/or shooting adjustment parameters; In response to the second operation, storing the second image includes: in response to the second operation, storing the third image.
  • the electronic device after the electronic device detects the operation on the shooting control, the first image is captured, and before the first image is stored, the user can be provided with the opportunity to edit the first image, and the user is prompted for the first image
  • the weights and shooting adjustment parameters of each subject are listed for the user’s reference.
  • the user can modify the weights and shooting adjustment parameters of each subject, and the electronic device can adjust the weights and/or shooting adjustment parameters of the first
  • the image is adjusted to obtain the third image, and when the electronic device detects the operation of storing the first image, the electronic device stores the third image.
  • the user does not need to capture the first image in the electronic device, and after storing the first image, find the first image from the gallery, and then retouch the first image, that is, the user passes through fewer operation steps.
  • An image that is more in line with the user's aesthetics can be obtained, the operation is simple, and the user experience is improved.
  • the electronic device may also save the first image; wherein a first mark is set on the second image, and the first mark is not set on the first image.
  • the electronic device can save the first image and the second image, that is, the electronic device can store the image before the retouching, or the image after the retouching.
  • the second image A first mark is set on the top, and the first mark is used to indicate that the second image is an image after retouching, and the first mark may not be set on the first image.
  • the first mark may be an icon and/or text, which is not limited in the embodiment of the present application.
  • the weight of each photographic object is determined according to the proportion of the area occupied by each photographic object in the first image; or it is preset; or it is determined according to a user selection operation Or, it is determined according to the user's operation behavior on the image stored in the electronic device.
  • the electronic device can self-learn the weight of each subject according to the user's operation behavior on the image stored in the electronic device. In this case, the electronic device can retouch the image based on the weight of each subject learned by itself. It is an image that fits the user's aesthetics.
  • the weight of each photographed object is determined according to the user's operation behavior on the image stored in the electronic device, including: the weight of each photographed object is determined according to the stored image Determined by the number of times that each subject is edited; or determined by the number of times that each subject in the stored image is cropped, or determined by the number of images containing each subject in all stored images of.
  • the electronic device can self-learn the weight of each subject according to the user's operation behavior on the image stored in the electronic device. In this case, the electronic device can retouch the image based on the weight of each subject learned by itself. It is an image that fits the user's aesthetics.
  • the shooting adjustment parameters of each shooting object are preset, or determined according to the image parameters adjusted by the user when retouching each shooting object in the image stored in the electronic device of.
  • the electronic device can self-learn the shooting adjustment parameters of each subject according to the user's operation behavior on the image stored in the electronic device.
  • the electronic device can retouch the image based on the self-learned shooting adjustment parameters of each subject. , The obtained image is more in line with the user’s aesthetics.
  • displaying the weight information and shooting adjustment parameters of each subject on the first image includes: a blank area on the first image displays the weight information and shooting adjustment parameters of each subject. Adjustment parameters; or displaying the weight information and the shooting adjustment parameters of each object in the area where each object is located on the first image.
  • the weight information and shooting adjustment parameters of each subject can be displayed in a blank area on the first image, or can be displayed in the area where each subject is located on the first image. limited.
  • the electronic device before detecting the second operation for storing the first image, the electronic device also detects a third operation; in response to the third operation, cancel on the first image Displaying the weight information and shooting adjustment parameters of each shooting object; in response to the second operation, storing a second image includes: in response to the second operation, storing the first image.
  • the electronic device after the electronic device detects the operation on the shooting control, the first image is captured, and before the first image is stored, the user can be provided with the opportunity to edit the first image, and the user is prompted for the first image
  • the weight and shooting adjustment parameters of each subject are listed for the user's reference.
  • the user can cancel the display of the weight and shooting adjustment parameters of each subject on the first image.
  • the image stored by the electronic device is the one before the retouching
  • the image is the first image.
  • the electronic device allows the user to choose whether to edit the image or not, which is convenient for the user to operate and enhance the user experience.
  • an electronic device including at least one processor and memory.
  • the memory is used to store one or more computer programs; when the one or more computer programs stored in the memory are executed by the at least one processor, the electronic device can realize the first aspect or any one of the first aspects. Design method.
  • an electronic device in a third aspect, includes a module/unit that executes the first aspect or any one of the possible design methods of the first aspect.
  • These modules/units can be realized by hardware, or by hardware executing corresponding software.
  • a computer-readable storage medium includes a computer program.
  • the computer program runs on an electronic device, the electronic device executes the first aspect or the above-mentioned first aspect. Any possible design method.
  • a program product which when the program product runs on an electronic device, causes the electronic device to execute the first aspect or any one of the possible design methods of the first aspect.
  • a chip is also provided, which is coupled with a memory in an electronic device, and is used to call a computer program stored in the memory and execute the first aspect of the embodiments of this application and any possible design technology of the first aspect Solution:
  • “coupled” means that two components are directly or indirectly combined with each other.
  • FIG. 1 is a schematic diagram of the hardware structure of a mobile phone 100 provided by an embodiment of the application;
  • FIG. 2 is a schematic diagram of a user graphical interface of the mobile phone 100 provided by an embodiment of the application;
  • FIG. 3 is a schematic diagram of a user graphical interface of the mobile phone 100 according to an embodiment of the application
  • FIG. 4 is a schematic diagram of a user graphical interface of the mobile phone 100 provided by an embodiment of the application;
  • FIG. 5 is a schematic diagram of a user graphical interface of the mobile phone 100 according to an embodiment of the application
  • FIG. 6 is a schematic diagram of the flow of an image shooting method provided by an embodiment of the application.
  • FIG. 7 is a schematic diagram of a user graphical interface of the mobile phone 100 provided by an embodiment of the application.
  • FIG. 8 is a schematic diagram of a flow of an image shooting method provided by an embodiment of the application.
  • FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • the electronic devices involved in the embodiments of the present application may be any electronic devices with image capturing functions, such as mobile phones, digital cameras, ipads, etc., or desktop computers, wearable devices, etc., which are not limited in the embodiments of the present application.
  • the shooting parameters involved in the embodiments of the present application may be parameters set when the electronic device shoots images, such as aperture, focal length, shutter, sensitivity, exposure, white balance, and so on.
  • the shooting adjustment parameter involved in the embodiment of the present application is the adjustment range of the shooting parameter.
  • the shooting adjustment parameter is the adjustment range of the focal length. Assuming that the focal length is 50mm, if the shooting parameter is adjusted to +5mm, then the adjusted focal length is 55mm.
  • the shooting adjustment parameters displayed on the electronic device can be divided into different levels.
  • the color can be divided into different levels.
  • the initial level is 0, and the color is increased by 2 levels (by +2).
  • the corresponding shooting adjustment parameter is that the exposure time is increased by 0.25, that is, when the exposure time is increased by 0.25 seconds when the electronic device takes an image, the color in the captured image can be increased by 2 levels.
  • the initial shooting parameters involved in the embodiments of the present application are shooting parameters before adjustment.
  • the electronic device adjusts the initial shooting parameters according to the shooting adjustment parameters to obtain the final shooting parameters. For example, taking the focal length as an example, the initial focal length is 50mm, if the shooting parameter adjustment is +5mm, then the final focal length is 55mm.
  • the preview image involved in the embodiment of the present application is an image displayed on the viewfinder interface before the electronic device detects the operation on the shooting control.
  • the shooting objects involved in the embodiments of the present application and the shooting objects included in the images, such as people, flowers, green plants, animals, etc., are not limited by the embodiments of the present application.
  • references described in this specification to "one embodiment” or “some embodiments”, etc. mean that one or more embodiments of the present application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the phrases “in one embodiment”, “in some embodiments”, “in some other embodiments”, “in some other embodiments”, etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless it is specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variations all mean “including but not limited to” unless otherwise specifically emphasized.
  • the electronic device may be a portable device including a camera, such as a mobile phone, a tablet computer, a wearable device (such as a smart watch), and the like.
  • portable devices include but are not limited to carrying Or portable devices with other operating systems.
  • the aforementioned portable device may also be other portable devices, as long as it can realize the image capturing function.
  • the above-mentioned electronic device may not be a portable device, but a desktop computer capable of implementing an image shooting function.
  • electronic devices can support multiple applications (application, APP).
  • application application
  • APP application
  • instant messaging applications such as WeChat, Tencent chat software (QQ), WhatsApp Messenger, Line, Kakao Talk, DingTalk, etc.
  • Users can send text, voice, pictures, video files, and various other files to other contacts through instant messaging applications; or users can implement voice and video calls with other contacts through instant messaging applications.
  • the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142, Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, A display screen 194, a subscriber identification module (SIM) card interface 195, a sensor module 180, and so on.
  • 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), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the mobile phone 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 100 may run the software code of the image shooting method provided in the embodiment of the present application, and shoot an image satisfying the user.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the mobile phone 100, and can also be used to transfer data between the mobile phone 100 and peripheral devices.
  • the charging management module 140 is used to receive charging input from the charger.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging 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 wireless communication function of the mobile phone 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination 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 mobile phone 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves 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 waves for radiation via 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 and at least part of the modules of the processor 110 may be provided in the same device.
  • the wireless communication module 160 can provide applications on the mobile phone 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
  • the antenna 1 of the mobile phone 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (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, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), 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 Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the display screen 194 is used to display the display interface of the application and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the mobile phone 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the camera 193 is used to capture still images or videos.
  • the camera 193 may include a front camera and a rear camera.
  • At least one camera may be provided on the mobile phone 100, such as at least one front camera, and/or at least one rear camera.
  • the internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions.
  • the processor 110 may execute the above-mentioned instructions stored in the internal memory 121 to enable the mobile phone 100 to execute the image capturing method provided in some embodiments of the present application.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store the operating system; the storage program area can also store one or more applications (such as photo galleries, contacts, etc.).
  • the data storage area can store data (such as photos, contacts, etc.) created during the use of the mobile phone 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), etc.
  • the processor 110 may execute the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor 110 to cause the mobile phone 100 to execute the image provided in the embodiments of the present application. Shooting method.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save pictures, videos and other files in an external memory card.
  • the software code of the image shooting method provided by the embodiment of the present application can also be stored in an external memory, and the processor 110 can run the software code through the external memory interface 120 to execute the process steps of the image shooting method, so as to capture the user's satisfaction.
  • Image the software code of the image shooting method provided by the embodiment of the present application can also be stored in an external memory, and the processor 110 can run the software code through the external memory interface 120 to execute the process steps of the image shooting method, so as to capture the user's satisfaction. Image.
  • images (still images or dynamic images), videos, etc. captured by the mobile phone 100 can be stored in an external memory, or the mobile phone 100 detects that a certain condition is met (the memory space of the internal memory is insufficient, or the user chooses to save the image,
  • the video is stored in the external storage
  • the image, video, etc. are stored in the external storage.
  • the mobile phone 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the gyroscope sensor 180B can be used to determine the movement posture of the mobile phone 100. In some embodiments, the angular velocity of the mobile phone 100 around three axes (ie, x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyro sensor 180B can be used for image stabilization.
  • the air pressure sensor 180C is used to measure air pressure.
  • the mobile phone 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the mobile phone 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the mobile phone 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the mobile phone 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the mobile phone 100 is stationary. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers and so on.
  • the mobile phone 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the mobile phone 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 mobile phone 100 emits infrared light to the outside through the light emitting diode.
  • the mobile phone 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the mobile phone 100. When insufficient reflected light is detected, the mobile phone 100 can determine that there is no object near the mobile phone 100.
  • the mobile phone 100 may use the proximity light sensor 180G to detect that the user holds the mobile phone 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 leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the mobile phone 100 can adaptively adjust the brightness of the display 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the mobile phone 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the mobile phone 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the mobile phone 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the mobile phone 100 performs a reduction in the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the mobile phone 100 when the temperature is lower than another threshold, the mobile phone 100 heats the battery 142 to avoid abnormal shutdown of the mobile phone 100 due to low temperature.
  • the mobile phone 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K 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 called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations 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.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the mobile phone 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 obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the mobile phone 100 can receive key input, and generate key signal input related to user settings and function control of the mobile phone 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be connected to and separated from the mobile phone 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195.
  • the components shown in FIG. 2 do not constitute a specific limitation on the mobile phone 100, and the mobile phone 100 may also include more or less components than those shown in the figure, or combine certain components, or split certain components. Or different component arrangements.
  • shooting parameters in each shooting mode are already set (usually set before the phone leaves the factory).
  • shooting Parameters include aperture, focal length, shutter, sensitivity, exposure, white balance and so on.
  • the aesthetics and demands of every user are different, and the images taken in a certain shooting mode may not meet the needs of every user. For example, an image taken by the mobile phone in the portrait mode is liked by user A, but not by user B. In this case, user B may still need to retouch the image to obtain a satisfactory image, which is cumbersome to operate and has a poor experience.
  • the mobile phone can learn the user's attention to each subject in the image and the shooting adjustment parameters of each subject. For example, the mobile phone learns that most of the stored images contain portraits. , A few images contain animals, indicating that users pay more attention to people and less attention to animals. For another example, if the mobile phone learns that in the process of retouching a picture, the user has made more changes to the characters and fewer changes to the scenery. The mobile phone determines that the person's attention is higher and the scenery is lower. For another example, the mobile phone can also learn the user's modification of the image parameters of the character during the retouching process, and record the modification. Therefore, the mobile phone can obtain the shooting adjustment parameters of the character through a large amount of learning process, and also obtain other shooting objects. Shooting adjustment parameters.
  • the mobile phone sets the weight of each object according to the degree of attention of each object, for example, a higher degree of attention has a higher weight, and a lower degree of attention has a lower weight.
  • the weight of each subject and the shooting adjustment parameters of each subject can be stored in the mobile phone, and the user can learn and update the weight and shooting adjustment parameters of each subject in real time while using the mobile phone.
  • a mobile phone when a mobile phone shoots an image, it recognizes each subject in the image, and determines the final shooting adjustment parameters for each subject according to the weight of each subject and the shooting adjustment parameters of each subject.
  • the final shooting adjustment parameters adjust the shooting parameters.
  • the image captured by the mobile phone is likely to conform to the user's habit, and the user satisfaction is high.
  • the mobile phone 100 displays a home screen 201, and the home screen 201 may include one or more application icons or components, including a camera icon 202.
  • the mobile phone 100 detects the operation on the icon 202 of the camera, and in response to the operation, displays the viewfinder interface 203 of the camera, as shown in FIG. 2(b).
  • the mobile phone 100 displays a viewfinder interface 203, and the viewfinder interface 203 includes a preview image, which is an image presented in the viewfinder interface before the mobile phone 100 detects an operation on the shooting control 205.
  • the preview image displayed in the viewfinder interface is an image collected based on the initial shooting parameters.
  • the initial shooting parameter is the initial value of the shooting parameter.
  • the initial shooting parameter is the initial exposure value. It should be noted that the initial shooting parameters may be the default shooting parameters, or the shooting parameters adjusted last time by the user.
  • the mobile phone 100 detects that the "smart shooting" mode 206 is selected, and displays a viewfinder interface 207.
  • the viewfinder interface 207 contains a preview image, which is an image collected by the mobile phone 100 based on the adjusted shooting parameters , Where the adjusted shooting parameters are the shooting parameters after adjusting the initial exposure parameters.
  • the mobile phone 100 may also display the prompt message "enter smart shooting mode" on the preview image.
  • the mobile phone 100 can recognize at least one photographed object in the preview image (there may be multiple image recognition methods, such as edge detection methods, etc., which are not limited in this embodiment), and determine the weight and photographing of each photographed object. Adjustment parameters. Wherein, the weight and shooting adjustment parameters of each shooting object may be self-learned by the mobile phone 100. The mobile phone 100 determines the final adjustment parameter of each object according to the weight of each object and the shooting adjustment parameters, and then adjusts the initial shooting parameters according to the final adjustment parameters to obtain the adjusted shooting parameters.
  • Example 1 after the mobile phone 100 enters the smart shooting mode, the preview image displayed in the viewfinder interface is an image collected based on the adjusted shooting parameters.
  • the preview image changes relative to the normal mode (such as the "photo” mode), and the user can intuitively see the effect of the smart shooting mode through the preview image.
  • the mobile phone 100 displays a viewfinder interface.
  • the viewfinder interface displays a preview image 302.
  • the preview image 302 is collected based on the initial shooting parameters.
  • 302 displays the weight information of each subject, as well as the “cancel” control 303 and the “apply” control 304.
  • the weight information displayed on the preview image includes: "blue sky and white clouds: 40%", “green plants: 20%”, and "single person: 40%”.
  • blue sky and white clouds 40% represents the weight of the blue sky and white clouds in the preview image is 40%
  • green plants: 20% represents the weight of the green plants in the preview image is 20%
  • single person: 40% represents the weight of the preview image.
  • the weight of the character is 40%.
  • the weight may be the proportion of the area occupied by the subject in the preview image, or the weight is related to the preset level of the subject.
  • the level of the subject is higher, the weight is higher, and the level of the subject is higher.
  • the weight can also be dynamically changed.
  • the mobile phone 100 when the mobile phone 100 detects an operation for "blue sky and white clouds: 40%", the mobile phone 100 displays the shooting adjustment parameters corresponding to the blue sky and white clouds, namely color +4.
  • the mobile phone 100 detects When the operation for "green plants: 20%” is performed, the mobile phone 100 displays the shooting adjustment parameter of the green plants, which is saturation +2.
  • the mobile phone 100 detects the operation for "single person: 40%”
  • the mobile phone 100 displays the task information Shooting adjustment parameter, namely color +2.
  • the weight and shooting adjustment parameters of each subject displayed on the preview image can be modified.
  • the mobile phone 100 detects 40% operations against blue sky and white clouds (such as a long press operation), and can adjust the weight information of the blue sky and white clouds to the editing state.
  • the weight information displays "-" and "+”, when the mobile phone 100 detects an operation for "+”, the increase weight is to increase the original 40% to 41%.
  • the mobile phone 100 detects an operation for "blue sky and white clouds: color + 4" (such as a long press operation), you can set “blue sky and white clouds: color + 4" as the editing state, for example, “blue sky and white clouds: color + 4" "-” and “+” are displayed in.
  • the mobile phone 100 detects the operation for "+”, and can increase the color, that is, set the original +4 to +5.
  • the mobile phone 100 detects an operation on the "application” control 304, the mobile phone 100 collects a new preview image based on the modified shooting parameters, and then displays the new preview image in the viewfinder interface, as shown in FIG. 3(c). As shown in FIG.
  • the image 305 displayed in the viewfinder interface is a new preview image.
  • the blue sky and white clouds are drawn diagonally in Figure 3 (c) to characterize the display effect of the blue sky and white clouds on the preview image in Figure 3 (c) and the blue sky and white clouds on the preview image in Figure 3 (b) different. Because the preview image in Figure 3(c) is collected based on the modified shooting parameters, while the preview image in Figure 3(b) is collected based on the initial shooting parameters.
  • Example 2 after the mobile phone 100 enters the "smart shooting" mode, the shooting parameters of each subject can be displayed.
  • the user can modify the weight and shooting parameters of each subject.
  • the mobile phone 100 can be based on the modified shooting parameters and weights. Adjust the initial shooting parameters to obtain the adjusted shooting parameters, and then acquire a new preview image based on the adjusted shooting parameters.
  • the mobile phone 100 is at the initial value of the aperture Decrease, increase the shutter, for example, decrease the aperture by one stop (for example, reduce from f2.8 to f2), and increase the shutter by 1/25 second to achieve the saturation of the green plants on the image +0.4. Among them, how much the aperture is adjusted to be smaller and the shutter is increased to achieve the saturation of green plants on the image +0.4.
  • Those skilled in the art can determine according to experiments, and then store the determined value in the mobile phone 100. This process can be performed in the mobile phone. 100 before leaving the factory.
  • the image captured by the mobile phone 100 is an image that the user is more satisfied with.
  • the mobile phone 100 displays the viewfinder interface of the camera, and the viewfinder interface includes a preview image 401, the preview image 401 is collected based on the initial shooting parameters, or the preview image is collected based on the adjusted shooting parameters
  • the mobile phone 100 recognizes the subject in the shooting scene, adjusts the final shooting parameters obtained by initial shooting parameters based on the weight of each subject and shooting adjustment parameters, and then shoots the preview image 401 based on the final shooting parameters.
  • the weight of each shooting object and shooting adjustment parameters are self-learned by the mobile phone 100.
  • the preview image 401 does not display the weight information and shooting adjustment parameters of each subject.
  • the image 403 taken by the mobile phone 100 is displayed, and the image 403 is displayed.
  • the cancel control 404 and the confirm control 405 are also displayed.
  • the captured image 403 displays the image of each subject.
  • weight information and shooting adjustment parameters please refer to Figure 4(b). It should be understood that the weight information and shooting adjustment parameters of each shooting object may be displayed in a blank area of the image 403, or may be displayed in the area where each shooting object is located, which is not limited in the embodiment of the present application.
  • the user can modify the weight information and shooting adjustment parameters of each shooting object on the image 403.
  • the specific process has been introduced in the foregoing, and will not be repeated here.
  • the mobile phone 100 can retouch the image 403 according to the modified weights and shooting adjustment parameters to obtain a retouched image.
  • the mobile phone 100 detects the operation of the determination control 403, the mobile phone 100 stores the retouched image.
  • the mobile phone 100 displays a thumbnail 406 in the lower left corner.
  • the image corresponding to the thumbnail 406 is the image 403 The image obtained after retouching.
  • the mobile phone 100 after the mobile phone 100 detects a preset operation, it can cancel the display of the weight information and shooting adjustment parameters of each subject on the image 403.
  • the prediction operation can be an operation of double-clicking a certain area on the image 403, or displaying a specific control (not shown in the figure) on the image 403.
  • the mobile phone 100 detects an operation for the specific control, it cancels the display of each area on the image 403.
  • the weight information and shooting adjustment parameters of each subject is not shown in the figure.
  • the weight information and shooting adjustment parameters of each subject are not displayed on the image 403, so when the mobile phone 100 detects the operation on the "OK" control 405, the image 403 is stored, that is, the mobile phone 100 has not adjusted the image 403 retouches the image, but stores the image 403.
  • the mobile phone 100 when the mobile phone 100 detects an operation on the shooting control 402, it may store the captured image 403 in the cache.
  • the user can modify the weight and shooting adjustment parameters of a certain subject on the image 403.
  • the mobile phone 100 can revise the image 403 in the buffer according to the revised weight and shooting adjustment parameters to obtain the revised image.
  • the modified image is stored in the gallery in the mobile phone 100.
  • the mobile phone 100 may delete the image 403 stored in the cache, or may also store the image 403 stored in the cache in the gallery.
  • the mobile phone 100 stores thumbnails of multiple images in the gallery, where the image corresponding to thumbnail 501 is the image stored in the cache (ie the image before retouching), and the image corresponding to thumbnail 502 is The image obtained after retouching the image in the buffer.
  • the thumbnail of the retouched image that is, the thumbnail 502
  • the thumbnail of the image before retouching that is, the thumbnail 501, does not display a mark.
  • the mark 503 may be an icon and/or text, etc., which is not limited in the embodiment of the present application.
  • the following describes the self-learning process of the mobile phone 100.
  • Example 1 The mobile phone 100 learns the weight of the subject by itself.
  • the mobile phone 100 detects a cropping instruction for the image, the mobile phone 100 determines that the subject of the cropped image (the retained subject) has a higher weight, and determines the cropped shot The weight of the object is low or 0.
  • the mobile phone 100 detects that multiple images are stored in the gallery.
  • the mobile phone 100 determines that the number of images containing people in the multiple images is large (or the number of images containing people in the multiple images taken recently is large), and determines that the multiple images contain less image data of animals (Or the number of images containing people in the multiple images taken recently is small), the mobile phone 100 determines that the weight of the person is higher, and the weight of the animal is determined to be lower.
  • the mobile phone 100 detects a retouching operation for an image and determines that there are more modifications to the characters in the image (for example, multiple retouching operations such as skin beautification, bright eyes, etc.), and fewer modifications to the green plants , The mobile phone 100 determines that the weight of the character is larger, and the weight of the green plants is smaller.
  • weight of each shooting object may also be set by default or manually set by the user, which is not limited in the embodiment of the present application.
  • Example 2 The mobile phone 100 can self-learn the shooting adjustment parameters of the subject.
  • the mobile phone 100 detects that multiple images are stored in the gallery, and the mobile phone 100 detects the user's retouching operation on a certain image, and the mobile phone 100 can record the adjustment of the shooting parameters of the subject in the image during the retouching. For example, if the mobile phone 100 determines that the green plant saturation is increased by 2 when retouching the image, and the color is increased by 2 for the portrait image, the mobile phone 100 determines that the green plant shooting adjustment parameter is saturation +2, and the portrait shooting adjustment parameter is color +2 .
  • Models are algorithms, including one or more functions/equations.
  • the models mentioned in the embodiments of this application may be models in the prior art, such as neural network units, machine learning models, and so on.
  • a model is a functional formula that includes model parameters, input parameters, and output parameters. Given the specific values of model parameters and input parameters, the output result can be obtained by calculating the functional formula.
  • the input parameter is the input image.
  • the model parameters are determined, the output result can be obtained through the model.
  • the output result may be the weight of each object in the input image, and/or each Shooting adjustment parameters for each subject. That is to say, the above example 1 and example 2 can be implemented using the same mode or different models.
  • the mobile phone 100 can adjust the shooting parameters according to the output result and obtain the final image by shooting (this process will be introduced later).
  • FIG. 6 is a schematic flowchart of an image shooting method provided by an embodiment of this application. As shown in Figure 6, the method may include:
  • the mobile phone 100 detects the input operation, starts the camera, and collects an initial image based on the initial shooting parameters.
  • the original shooting parameter may be an initial value, and the initial value may be a minimum value or a value set before the mobile phone 100 leaves the factory, or the original shooting parameter may also be a shooting parameter used when an image was taken last time.
  • the mobile phone 100 activates the camera. For example, taking FIG. 2(a) as an example, when the mobile phone 100 detects that the user clicks on the icon of the camera, the mobile phone 100 activates the camera and activates the camera. For another example, the mobile phone 100 detects that the user clicks on the icon of WeChat and starts WeChat. When the mobile phone 100 detects the operation of clicking the video call control in WeChat, it starts the camera. For another example, when the mobile phone 100 detects that the user has clicked the operation of the "shooting" control in the circle of friends, it starts the camera. All in all, the technical solutions provided by the embodiments of the present application can be applied to any application that can start a camera to capture images.
  • S602 The mobile phone 100 recognizes at least one scene type to which the initial image belongs.
  • the mobile phone 100 stores multiple preset scene types. For example, indoor scenes, outdoor scenes, single shooting, group shooting scenes, character scenes, landscape scenes, and so on.
  • the mobile phone 100 recognizes at least one scene type to which the original image belongs through the feature information in the original image.
  • the characteristic information includes characteristic information of the photographed object.
  • the scene type may be a single person scene
  • the scene type may be an outdoor scene and/or a landscape scene.
  • the preview image includes landscape scenes, outdoor scenes, single-person scenes, and so on.
  • S603 The mobile phone 100 determines the weight of each scene type in the at least one scene type.
  • the weight of each scene type can be manually set by the user, or the mobile phone 100 is set before the factory, or the mobile phone 100 is self-learning. After the mobile phone 100 determines each scene type, each scene type can be queried The corresponding weight. Taking the self-learning of the mobile phone 100 as an example, the mobile phone 100 detects that multiple images are stored in the gallery, and determines that there are more images of outdoor scene types (or there are more images of outdoor scene types in the images taken recently), then the mobile phone 100 determines that it is outdoor The weight of the scene is higher.
  • the mobile phone 100 recognizes that the preview image belongs to three scene types of "outdoor”, “landscape”, and "single person".
  • the weight of each scene type is shown in Table 1:
  • the mobile phone 100 determines shooting adjustment parameters of the shooting object corresponding to each scene type.
  • the mobile phone 100 learns the shooting adjustment parameters of the subject in the images of each scene type by itself, see Table 2 below for details:
  • the mobile phone 100 determines at least one subject on the original image and the weight of each subject.
  • the mobile phone 100 determines the final shooting adjustment parameter of each shooting object according to the weight of each scene type, the weight of each shooting object, and the shooting adjustment parameters of the corresponding shooting object in each scene type.
  • the mobile phone 100 determines the final shooting adjustment parameters of blue sky and white clouds according to the following formula:
  • the first adjustment parameter is: outdoor weight * blue sky and white cloud weight * (+2);
  • the second adjustment parameter is: scenery weight*blue sky and white cloud weight*(+4);
  • the third adjustment parameter is: single human weight * blue sky and white cloud weight * (+1);
  • the outdoor weight (see Table 1) is 20%
  • the scenery weight (see Table 1) is 30%
  • the single human weight (see Table 1) is 30%
  • the blue sky and white clouds weight (see Table 3) is 40%.
  • the "2" in the above formula is the color of the corresponding blue sky and white clouds in the outdoor scene type in Table 2 +2, and the "4" in the above formula is the color of the corresponding blue sky and white clouds in the landscape scene type in Table 2 +4, the above formula
  • the "1” in Table 2 is the color of the blue sky and white clouds in the single-player scene +1.
  • the mobile phone 100 can determine the final shooting adjustment parameters of the green plants in FIG. 2(b) and the final shooting adjustment parameters of the people.
  • the mobile phone 100 when the mobile phone 100 calculates the final shooting adjustment parameters, the weight of at least one scene type of the original image is considered, and the weight of each subject on the original image is also considered. In practical applications, the mobile phone 100 You can only consider the weight of each subject. For example, the mobile phone 100 learns the shooting adjustment parameters of each subject during the process of retouching. When the mobile phone 100 calculates the final shooting adjustment parameters, the The shooting adjustment parameter is multiplied by the weight of each subject, and the product is the final shooting adjustment parameter for each subject. Of course, the mobile phone 100 may also only consider the weight of at least one scene type of the original image. For example, the mobile phone 100 learns from the user to retouch the image of the outdoor scene or the shooting adjustment parameters in the process of shooting the image. In the final shooting adjustment parameters, the shooting adjustment parameters of each scene type can be multiplied by the weight of each scene type, and the product is the final shooting adjustment parameter.
  • S607 The mobile phone 100 adjusts the initial shooting parameters based on the final shooting adjustment parameters of each shooting object.
  • the mobile phone 100 can increase the color of the blue sky and white clouds (such as the area where the blue sky and white clouds are) in the preview image by 0.76; increase the saturation of the green plant (such as the area where the green plant is located) +0.12, and change the color of the person (such as the person) Area) color increased by 0.24.
  • the mobile phone 100 increases the color of the entire preview image by 0.76, then increases the saturation of the entire preview image by +0.12, and then increases the color of the entire preview image by 0.24.
  • S608 The mobile phone 100 obtains a preview image by shooting based on the adjusted shooting parameters.
  • the mobile phone 100 displays a viewfinder interface, and the viewfinder interface includes the preview image.
  • the preview image in FIG. 2(c) is an image captured by the mobile phone 100 based on the adjusted image capturing parameters.
  • the mobile phone 100 displays a main interface 701.
  • the main interface 701 includes multiple application icons, including a gallery icon 702.
  • the mobile phone 100 detects an operation on the icon 702, it displays the gallery interface 703 , See Figure 7(b).
  • the interface 703 of the gallery includes thumbnails of multiple images.
  • the mobile phone 100 detects that the user has clicked on the thumbnail of the image 704, the interface as shown in FIG. 7(c) is displayed.
  • the mobile phone 100 displays an image 704, and a logo 705 is displayed on the image 704.
  • the mobile phone 100 detects an operation on the logo 705, the mobile phone 100 displays a prompt message 706, which is used to prompt the user to enter the smart photo editing mode, as shown in FIG. 7(d).
  • the weight information and shooting adjustment parameters of each subject in the image 704 can be displayed.
  • the weight information and shooting adjustment parameters of each subject can be modified.
  • the image is retouched based on the modified weight and shooting adjustment parameters of each subject; when the mobile phone 100 detects To cancel the operation of the control, exit the smart editing mode.
  • the method of the mobile phone 100 for retouching the image based on the modified weight and shooting adjustment parameters of each shooting object is similar to the foregoing method, and will not be repeated.
  • the embodiments of the present application provide an image shooting method, which can be implemented in an electronic device (such as a mobile phone, a tablet computer, etc.) having a touch screen and a camera as shown in FIG. 1.
  • an electronic device such as a mobile phone, a tablet computer, etc.
  • the method may include the following steps:
  • the input operation may be an operation of clicking the icon 202 in the main interface 201 of the mobile phone 100.
  • S802 In response to the input operation, start the camera to display a viewfinder interface, and the viewfinder interface includes a preview image;
  • the viewfinder interface may be the interface 203.
  • the first operation may be an operation of clicking the shooting control 402 in the viewfinder interface 401.
  • S804 In response to the first operation, display a first image, where the first image is an image taken based on initial shooting parameters, and the weight information and shooting adjustment parameters of each subject are displayed on the first image;
  • the electronic device After detecting the operation on the shooting control, the electronic device captures the first image and displays the first image.
  • the weight of each shooting object and shooting adjustment parameters are displayed on the first image.
  • the first image may be the image 403 displayed on the mobile phone 100.
  • the second operation may be an operation of clicking the OK control 405.
  • S806 In response to the second operation, store a second image, where the second image is an image obtained after adjusting the first image according to the weight information and shooting adjustment parameters of each shooting object.
  • the mobile phone 100 may store the second image obtained after the first image, that is, the image 403, is modified.
  • the mobile phone 100 displays a thumbnail 406 in the lower left corner, and the thumbnail 406 is a thumbnail corresponding to the second image. That is, the mobile phone 100 stores the second image in the gallery.
  • the method provided in the embodiments of the present application is introduced from the perspective of an electronic device (such as a mobile phone 100) as an execution subject.
  • the electronic device may include a hardware structure and/or a software module, and realize the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above-mentioned functions is executed in a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraint conditions of the technical solution.
  • the electronic device may include a touch screen 901, where the touch screen 901 includes a touch-sensitive surface 906 and a display Screen 907; one or more processors 902; multiple application programs 908; the above-mentioned devices can be connected through one or more communication buses 905.
  • the display screen 907 may be used to display a main interface, or a display interface of a certain application of a plurality of application programs 908, such as a camera interface (ie, a viewfinder interface), and may also be used to display images taken by an electronic device.
  • the one or more computer programs 904 are stored in the aforementioned memory 903 and are configured to be executed by the one or more processors 902, and the one or more computer programs 904 include instructions, and the aforementioned instructions can be used for execution.
  • the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the first acquiring unit and the second acquiring unit may be the same unit or different units.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

Provided in the present application are an image capture method and an electronic device. The method comprises: detecting an input operation, starting up a camera, displaying a viewfinder interface, the viewfinder interface comprising a preview image; detecting a first operation for an image capture control, displaying a first image, the first image being an image captured on the basis of initial image capture parameters, the first image displaying thereon weight information and image capture adjustment parameters of each image capture object; detecting a second operation used to store the first image, storing a second image, the second image being an image obtained after adjusting the first image according to the weight information and the image capture adjustment parameters of each image capture object. In the described method, a user does not need to find the first image from within a gallery and then modify the first image after the electronic device captures the first image and stores the first image. That is, the user may obtain an image that is more in line with the aesthetics of the user by means of fewer operation steps, and the operation is thus simple and the user experience is improved.

Description

一种图像拍摄方法与电子设备Image shooting method and electronic equipment
本申请要求在2019年5月15日提交中国国家知识产权局、申请号为201910402906.9的中国专利申请的优先权,发明名称为“一种图像拍摄方法与电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office of China with the application number 201910402906.9, and the priority of the Chinese patent application with the title of "An Image Shooting Method and Electronic Equipment" on May 15, 2019. The entire content is incorporated into this application by reference.
技术领域Technical field
本申请涉及终端技术领域,尤其涉及一种图像拍摄方法与电子设备。This application relates to the field of terminal technology, and in particular to an image shooting method and electronic equipment.
背景技术Background technique
随着通信技术的进步,电子设备中各种功能不断完善。其中,电子设备中的拍照功能已经成为用户使用频率较高的功能之一。With the advancement of communication technology, various functions in electronic devices are constantly improving. Among them, the camera function in the electronic device has become one of the functions frequently used by users.
比如,用户旅行时,遇到美丽的风景时,用户希望拍摄出质量较高的图像作为留念。但是,对于大部分用户并非专业摄影者或者摄影爱好者,不懂拍摄技术,不知道如何才能拍摄出效果良好的照片,造成拍摄出来的照片生硬、呆板,也会影响用户心情,降低用户体验。For example, when a user travels and encounters a beautiful landscape, the user hopes to take a high-quality image as a souvenir. However, most users are not professional photographers or photography enthusiasts, do not know the shooting technology, and do not know how to take good photos, resulting in stiff and dull photos taken, which will also affect the user's mood and reduce the user experience.
发明内容Summary of the invention
本申请的目的在于提供了一种图像拍摄方法及电子设备,该方法可以使电子设备拍摄得到满足用户需求的图像,提升用户体验。The purpose of the present application is to provide an image shooting method and electronic device, which can enable the electronic device to shoot images that meet the needs of users and improve user experience.
上述目标和其他目标将通过独立权利要求中的特征来达成。进一步的实现方式在从属权利要求、说明书和附图中体现。The above goals and other goals will be achieved through the features in the independent claims. Further implementations are embodied in the dependent claims, description and drawings.
第一方面,提供了一种图像拍摄方法,该方法可以由电子设备执行,该电子设备比如手机、ipad等。该方法包括:检测到输入操作;响应于所述输入操作,启动摄像头,显示取景界面,所述取景界面中包括预览图像;检测到针对拍摄控件的第一操作;响应于所述第一操作,显示第一图像,所述第一图像是基于初始拍摄参数拍摄的图像,所述第一图像上显示每个拍摄对象的权重信息和拍摄调整参数;检测到用于存储所述第一图像的第二操作;响应于所述第二操作,存储第二图像,所述第二图像是根据所述每个拍摄对象的权重信息和拍摄调整参数对所述第一图像调整后得到的图像。In the first aspect, an image shooting method is provided, which can be executed by an electronic device, such as a mobile phone, an ipad, and so on. The method includes: detecting an input operation; in response to the input operation, starting a camera, and displaying a framing interface, the framing interface includes a preview image; detecting a first operation on a shooting control; in response to the first operation, A first image is displayed, the first image is an image taken based on initial shooting parameters, the weight information and shooting adjustment parameters of each subject are displayed on the first image; the first image used to store the first image is detected Second operation: In response to the second operation, a second image is stored, the second image being an image obtained after adjusting the first image according to the weight information and shooting adjustment parameters of each shooting object.
在本申请实施例中,电子设备检测到针对拍摄控件的操作后,拍摄得到第一图像,电子设备并未直接存储第一图像,而是在存储该第一图像之前,可以为用户提供对第一图像的修图机会,并且提示用户第一图像上每个拍摄对象的权重和拍摄调整参数,以供用户参考,当电子设备检测到存储第一图像的操作时,电子设备将对第一图像修图之后得到的第二图像存储。该方法中,用户无需在电子设备拍摄得到第一图像,且存储第一图像之后,再从图库中寻找到第一图像,然后再对第一图像修图,即用户通过较少的操作步骤,就能够得到比较符合用户审美的图像,操作简单,提升用户体验。In the embodiment of the present application, after the electronic device detects the operation on the shooting control, the first image is captured. The electronic device does not directly store the first image, but can provide the user with the first image before storing the first image. An image retouching opportunity, and prompts the user the weight and shooting adjustment parameters of each subject on the first image for the user’s reference. When the electronic device detects the operation of storing the first image, the electronic device will The second image obtained after retouching is stored. In this method, the user does not need to capture the first image in the electronic device, and after storing the first image, find the first image from the gallery, and then retouch the first image, that is, the user passes through fewer operation steps. An image that is more in line with the user's aesthetics can be obtained, the operation is simple, and the user experience is improved.
在一种可能的设计中,在检测到用于存储所述第一图像的第二操作之前,电子设备还可以检测到针对第一拍摄对象的权重信息和/或拍摄调整参数的修改操作;响应于所述修改操作,对所述第一图像处理得到第三图像,所述第三图像是根据所述修改后的权重信息和/或拍摄调整参数对所述第一图像调整后得到的图像;响应于所述第二操作,存储第二图像,包括:响应于所述第二操作,存储所述第三图像。In a possible design, before detecting the second operation for storing the first image, the electronic device may also detect the modification operation of the weight information and/or the shooting adjustment parameters for the first shooting object; In the modification operation, a third image is obtained by processing the first image, where the third image is an image obtained after adjusting the first image according to the modified weight information and/or shooting adjustment parameters; In response to the second operation, storing the second image includes: in response to the second operation, storing the third image.
在本申请实施例中,电子设备检测到针对拍摄控件的操作后,拍摄得到第一图像,在存储该第一图像之前,可以为用户提供第一图像的修图机会,并且提示用户第一图像上每个拍摄对象的权重和拍摄调整参数,以供用户参考,用户可以修改每个拍摄对象的权重和拍摄调整参数,电子设备可以基于修改后的权重和/或拍摄调整参数对所述第一图像调整得到第三图像,当电子设备检测到存储第一图像的操作时,电子设备将第三图像存储。该方法中,用户无需在电子设备拍摄得到第一图像,且存储第一图像之后,再从图库中寻找到第一图像,然后再对第一图像修图,即用户通过较少的操作步骤,就能够得到比较符合用户审美的图像,操作简单,提升用户体验。In the embodiment of the present application, after the electronic device detects the operation on the shooting control, the first image is captured, and before the first image is stored, the user can be provided with the opportunity to edit the first image, and the user is prompted for the first image The weights and shooting adjustment parameters of each subject are listed for the user’s reference. The user can modify the weights and shooting adjustment parameters of each subject, and the electronic device can adjust the weights and/or shooting adjustment parameters of the first The image is adjusted to obtain the third image, and when the electronic device detects the operation of storing the first image, the electronic device stores the third image. In this method, the user does not need to capture the first image in the electronic device, and after storing the first image, find the first image from the gallery, and then retouch the first image, that is, the user passes through fewer operation steps. An image that is more in line with the user's aesthetics can be obtained, the operation is simple, and the user experience is improved.
在一种可能的设计中,电子设备还可以保存所述第一图像;其中,所述第二图像上设置第一标记,所述第一图像上不设置所述第一标记。In a possible design, the electronic device may also save the first image; wherein a first mark is set on the second image, and the first mark is not set on the first image.
在本申请实施例中,电子设备可以保存第一图像和第二图像,也就是说,电子设备可以存储修图之前的图像,也可以存储修图之后的图像,为了方便用户查看,第二图像上设置第一标记,该第一标记用于表征第二图像是修图之后的图像,第一图像上可以不设置第一标记。应理解,第一标记可以是图标和/文字,本申请实施例不作限定。In the embodiment of the present application, the electronic device can save the first image and the second image, that is, the electronic device can store the image before the retouching, or the image after the retouching. In order to facilitate the user to view, the second image A first mark is set on the top, and the first mark is used to indicate that the second image is an image after retouching, and the first mark may not be set on the first image. It should be understood that the first mark may be an icon and/or text, which is not limited in the embodiment of the present application.
在一种可能的设计中,所述每个拍摄对象的权重是根据所述第一图像中每个拍摄对象所占的面积比例确定的;或者是预先设置的;或者,是根据用户选择操作确定的;或者,是根据用户对所述电子设备中存储的图像的操作行为确定的。In a possible design, the weight of each photographic object is determined according to the proportion of the area occupied by each photographic object in the first image; or it is preset; or it is determined according to a user selection operation Or, it is determined according to the user's operation behavior on the image stored in the electronic device.
应理解,电子设备可以根据用户对电子设备中存储的图像的操作行为自学习每个拍摄对象的权重,这样的话,电子设备基于自学习到的每个拍摄对象的权重修图时,得到的图像是比较符合用户审美的图像。It should be understood that the electronic device can self-learn the weight of each subject according to the user's operation behavior on the image stored in the electronic device. In this case, the electronic device can retouch the image based on the weight of each subject learned by itself. It is an image that fits the user's aesthetics.
在一种可能的设计中,所述每个拍摄对象的权重是根据用户对所述电子设备中存储的图像的操作行为确定的,包括:所述每个拍摄对象的权重是根据存储的图像中每个拍摄对象被修图的次数确定的;或者,是根据存储的图像中每个拍摄对象被裁剪的次数确定的,或者,根据存储的所有图像中包含所述每个拍摄对象的图像数量确定的。In a possible design, the weight of each photographed object is determined according to the user's operation behavior on the image stored in the electronic device, including: the weight of each photographed object is determined according to the stored image Determined by the number of times that each subject is edited; or determined by the number of times that each subject in the stored image is cropped, or determined by the number of images containing each subject in all stored images of.
应理解,电子设备可以根据用户对电子设备中存储的图像的操作行为自学习每个拍摄对象的权重,这样的话,电子设备基于自学习到的每个拍摄对象的权重修图时,得到的图像是比较符合用户审美的图像。It should be understood that the electronic device can self-learn the weight of each subject according to the user's operation behavior on the image stored in the electronic device. In this case, the electronic device can retouch the image based on the weight of each subject learned by itself. It is an image that fits the user's aesthetics.
在一种可能的设计中,所述每个拍摄对象的拍摄调整参数是预先设置的,或者,是根据用户对所述电子设备中存储的图像中每个拍摄对象修图时调整的图像参数确定的。In a possible design, the shooting adjustment parameters of each shooting object are preset, or determined according to the image parameters adjusted by the user when retouching each shooting object in the image stored in the electronic device of.
应理解,电子设备可以根据用户对电子设备中存储的图像的操作行为自学习每个拍摄对象的拍摄调整参数,这样的话,电子设备基于自学习到的每个拍摄对象的拍摄调整参数修图时,得到的图像是比较符合用户审美的图像。It should be understood that the electronic device can self-learn the shooting adjustment parameters of each subject according to the user's operation behavior on the image stored in the electronic device. In this case, the electronic device can retouch the image based on the self-learned shooting adjustment parameters of each subject. , The obtained image is more in line with the user’s aesthetics.
在一种可能的设计中,所述第一图像上显示每个拍摄对象的权重信息和拍摄调整参数,包括:所述第一图像上的空白区域显示所述每个拍摄对象的权重信息和拍摄调整参数;或 者所述第一图像上所述每个拍摄对象所在的区域内显示所述每个对象的权重信息和拍摄调整参数。In a possible design, displaying the weight information and shooting adjustment parameters of each subject on the first image includes: a blank area on the first image displays the weight information and shooting adjustment parameters of each subject. Adjustment parameters; or displaying the weight information and the shooting adjustment parameters of each object in the area where each object is located on the first image.
在本申请实施例中,每个拍摄对象的权重信息和拍摄调整参数可以在第一图像上的空白区域显示,也可以在第一图像上每个拍摄对象所在的区域显示,本申请实施例不作限定。In the embodiments of this application, the weight information and shooting adjustment parameters of each subject can be displayed in a blank area on the first image, or can be displayed in the area where each subject is located on the first image. limited.
在一种可能的设计中,在检测到用于存储所述第一图像的第二操作之前,电子设备还检测到第三操作;响应于所述第三操作,在所述第一图像上取消显示所述每个拍摄对象的权重信息和拍摄调整参数;响应于所述第二操作,存储第二图像,包括:响应于所述第二操作,存储所述第一图像。In a possible design, before detecting the second operation for storing the first image, the electronic device also detects a third operation; in response to the third operation, cancel on the first image Displaying the weight information and shooting adjustment parameters of each shooting object; in response to the second operation, storing a second image includes: in response to the second operation, storing the first image.
在本申请实施例中,电子设备检测到针对拍摄控件的操作后,拍摄得到第一图像,在存储该第一图像之前,可以为用户提供第一图像的修图机会,并且提示用户第一图像上每个拍摄对象的权重和拍摄调整参数,以供用户参考,用户可以取消在第一图像上显示每个拍摄对象的权重和拍摄调整参数,这样的话,电子设备存储得到图像就是修图之前的图像,即第一图像。该方法中,电子设备可以让用户选择修图或不修图,方便用户操作,提升用户体验。In the embodiment of the present application, after the electronic device detects the operation on the shooting control, the first image is captured, and before the first image is stored, the user can be provided with the opportunity to edit the first image, and the user is prompted for the first image The weight and shooting adjustment parameters of each subject are listed for the user's reference. The user can cancel the display of the weight and shooting adjustment parameters of each subject on the first image. In this case, the image stored by the electronic device is the one before the retouching The image is the first image. In this method, the electronic device allows the user to choose whether to edit the image or not, which is convenient for the user to operate and enhance the user experience.
第二方面,还提供了一种电子设备,包括至少一个处理器和存储器。其中,存储器用于存储一个或多个计算机程序;当存储器存储的一个或多个计算机程序被所述至少一个处理器执行时,使得电子设备能够实现第一方面或者第一方面的任意一种可能的设计的方法。In a second aspect, an electronic device is also provided, including at least one processor and memory. The memory is used to store one or more computer programs; when the one or more computer programs stored in the memory are executed by the at least one processor, the electronic device can realize the first aspect or any one of the first aspects. Design method.
第三方面,还提供了一种电子设备,所述电子设备包括执行第一方面或者第一方面的任意一种可能的设计的方法的模块/单元。这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。In a third aspect, an electronic device is also provided, and the electronic device includes a module/unit that executes the first aspect or any one of the possible design methods of the first aspect. These modules/units can be realized by hardware, or by hardware executing corresponding software.
第四方面,还提供一种计算机可读存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行第一方面或上述第一方面的任意一种可能的设计的方法。In a fourth aspect, a computer-readable storage medium is also provided. The computer-readable storage medium includes a computer program. When the computer program runs on an electronic device, the electronic device executes the first aspect or the above-mentioned first aspect. Any possible design method.
第五方面,还提供一种程序产品,当所述程序产品在电子设备上运行时,使得所述电子设备执行第一方面或上述第一方面的任意一种可能的设计的方法。In a fifth aspect, a program product is also provided, which when the program product runs on an electronic device, causes the electronic device to execute the first aspect or any one of the possible design methods of the first aspect.
第六方面,还提供一种芯片,所述芯片与电子设备中的存储器耦合,用于调用存储器中存储的计算机程序并执行本申请实施例第一方面及其第一方面任一可能设计的技术方案;本申请实施例中“耦合”是指两个部件彼此直接或间接地结合。In a sixth aspect, a chip is also provided, which is coupled with a memory in an electronic device, and is used to call a computer program stored in the memory and execute the first aspect of the embodiments of this application and any possible design technology of the first aspect Solution: In the embodiments of this application, "coupled" means that two components are directly or indirectly combined with each other.
附图说明Description of the drawings
图1为本申请实施例提供的手机100的硬件结构的示意图;FIG. 1 is a schematic diagram of the hardware structure of a mobile phone 100 provided by an embodiment of the application;
图2为本申请实施例提供的手机100的用户图形界面的示意图;2 is a schematic diagram of a user graphical interface of the mobile phone 100 provided by an embodiment of the application;
图3为本申请实施例提供的手机100的用户图形界面的示意图;FIG. 3 is a schematic diagram of a user graphical interface of the mobile phone 100 according to an embodiment of the application;
图4为本申请实施例提供的手机100的用户图形界面的示意图;4 is a schematic diagram of a user graphical interface of the mobile phone 100 provided by an embodiment of the application;
图5为本申请实施例提供的手机100的用户图形界面的示意图;FIG. 5 is a schematic diagram of a user graphical interface of the mobile phone 100 according to an embodiment of the application;
图6为本申请实施例提供的一种图像拍摄方法的流程的示意图;FIG. 6 is a schematic diagram of the flow of an image shooting method provided by an embodiment of the application;
图7为本申请实施例提供的手机100的用户图形界面的示意图;FIG. 7 is a schematic diagram of a user graphical interface of the mobile phone 100 provided by an embodiment of the application;
图8为本申请实施例提供的一种图像拍摄方法的流程的示意图;FIG. 8 is a schematic diagram of a flow of an image shooting method provided by an embodiment of the application;
图9为本申请实施例提供的一种电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some terms in the embodiments of the present application will be explained to facilitate the understanding of those skilled in the art.
本申请实施例涉及的电子设备,可以是具有图像拍摄功能的任何电子设备,比如手机、数码相机、ipad等,还可以是台式计算机、穿戴式设备等,本申请实施例不作限定。The electronic devices involved in the embodiments of the present application may be any electronic devices with image capturing functions, such as mobile phones, digital cameras, ipads, etc., or desktop computers, wearable devices, etc., which are not limited in the embodiments of the present application.
本申请实施例涉及的拍摄参数,可以是电子设备拍摄图像时设置的参数,比如光圈、焦距、快门、感光度、曝光、白平衡度等等。The shooting parameters involved in the embodiments of the present application may be parameters set when the electronic device shoots images, such as aperture, focal length, shutter, sensitivity, exposure, white balance, and so on.
本申请实施例涉及的拍摄调整参数,即拍摄参数的调整幅度,以拍摄参数是焦距为例,那么拍摄调整参数就是焦距的调整幅度。假设焦距是50mm,若拍摄参数调整是+5mm,那么调整之后的焦距是55mm。The shooting adjustment parameter involved in the embodiment of the present application is the adjustment range of the shooting parameter. Taking the shooting parameter as the focal length as an example, then the shooting adjustment parameter is the adjustment range of the focal length. Assuming that the focal length is 50mm, if the shooting parameter is adjusted to +5mm, then the adjusted focal length is 55mm.
需要说明的是,为了方便用户使用,电子设备上显示的拍摄调整参数可以以档级的方式划分,比如色彩可以按照档级划分,初始档级是0档,那么色彩增加2档(以+2表示),对应的拍摄调整参数为曝光时间增加0.25,也就是说,当电子设备拍摄图像时曝光时间增加0.25秒时,拍摄的图像中的色彩可以增加2档。应理解,本文中提供的数值均是举例,不是限定。It should be noted that, for the convenience of users, the shooting adjustment parameters displayed on the electronic device can be divided into different levels. For example, the color can be divided into different levels. The initial level is 0, and the color is increased by 2 levels (by +2). Indicates), the corresponding shooting adjustment parameter is that the exposure time is increased by 0.25, that is, when the exposure time is increased by 0.25 seconds when the electronic device takes an image, the color in the captured image can be increased by 2 levels. It should be understood that the numerical values provided herein are all examples and not limitations.
本申请实施例涉及的初始拍摄参数,即调整之前的拍摄参数,电子设备根据拍摄调整参数对初始拍摄参数进行调整,得到最终拍摄参数。比如,以焦距为例,初始焦距是50mm,若拍摄参数调整是+5mm,那么最终焦距是55mm。The initial shooting parameters involved in the embodiments of the present application are shooting parameters before adjustment. The electronic device adjusts the initial shooting parameters according to the shooting adjustment parameters to obtain the final shooting parameters. For example, taking the focal length as an example, the initial focal length is 50mm, if the shooting parameter adjustment is +5mm, then the final focal length is 55mm.
本申请实施例涉及的预览图像,是电子设备检测到针对拍摄控件的操作之前,在取景界面中显示的图像。The preview image involved in the embodiment of the present application is an image displayed on the viewfinder interface before the electronic device detects the operation on the shooting control.
本申请实施例涉及的拍摄对象,图像中包括的拍摄对象,比如,人、花卉、绿植、动物等等,本申请实施例不限定。The shooting objects involved in the embodiments of the present application and the shooting objects included in the images, such as people, flowers, green plants, animals, etc., are not limited by the embodiments of the present application.
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请实施例中,“一个或多个”是指一个、两个或两个以上;“和/或”,描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also This includes expressions such as "one or more" unless the context clearly indicates to the contrary. It should also be understood that in the embodiments of the present application, "one or more" refers to one, two, or more than two; "and/or" describes the association relationship of associated objects, indicating that three relationships may exist; for example, A and/or B can mean: A alone exists, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character "/" generally indicates that the associated objects are in an "or" relationship.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References described in this specification to "one embodiment" or "some embodiments", etc. mean that one or more embodiments of the present application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless it is specifically emphasized otherwise. The terms "including", "including", "having" and their variations all mean "including but not limited to" unless otherwise specifically emphasized.
以下介绍电子设备、用于这样的电子设备的图形用户界面(graphical user interface,GUI)、 和用于使用这样的电子设备的实施例。在本申请一些实施例中,电子设备可以是包含摄像头的便携式设备,诸如手机、平板电脑、可穿戴设备(如智能手表)等。便携式设备的示例性实施例包括但不限于搭载
Figure PCTCN2020090366-appb-000001
或者其它操作系统的便携式设备。上述便携式设备也可以是其它便携式设备,只要能够实现图像拍摄功能即可。还应当理解的是,在本申请其他一些实施例中,上述电子设备也可以不是便携式设备,而是能够实现图像拍摄功能的台式计算机。
Hereinafter, an electronic device, a graphical user interface (GUI) for such an electronic device, and embodiments for using such an electronic device are introduced. In some embodiments of the present application, the electronic device may be a portable device including a camera, such as a mobile phone, a tablet computer, a wearable device (such as a smart watch), and the like. Exemplary embodiments of portable devices include but are not limited to carrying
Figure PCTCN2020090366-appb-000001
Or portable devices with other operating systems. The aforementioned portable device may also be other portable devices, as long as it can realize the image capturing function. It should also be understood that, in some other embodiments of the present application, the above-mentioned electronic device may not be a portable device, but a desktop computer capable of implementing an image shooting function.
通常情况下,电子设备可以支持多种应用(application,APP)。比如以下应用中的一个或多个:相机、图库、即时消息收发应用等。其中,即时消息收发应用可以有多种,比如微信、腾讯聊天软件(QQ)、WhatsApp Messenger、连我(Line)、Kakao Talk、钉钉等。用户通过即时消息收发应用,可以将文字、语音、图片、视频文件以及其他各种文件等信息发送给其他联系人;或者用户可以通过即时消息收发应用与其他联系人实现语音、视频通话等。Generally, electronic devices can support multiple applications (application, APP). For example, one or more of the following applications: camera, gallery, instant messaging application, etc. Among them, there are many kinds of instant messaging applications, such as WeChat, Tencent chat software (QQ), WhatsApp Messenger, Line, Kakao Talk, DingTalk, etc. Users can send text, voice, pictures, video files, and various other files to other contacts through instant messaging applications; or users can implement voice and video calls with other contacts through instant messaging applications.
下面以手机为例,介绍手机的结构。Take the mobile phone as an example to introduce the structure of the mobile phone.
参见图1所示,手机100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195、传感器模块180等。Referring to FIG. 1, the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142, Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, A display screen 194, a subscriber identification module (SIM) card interface 195, a sensor module 180, and so on.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Among them, the different processing units may be independent devices or integrated in one or more processors.
其中,控制器可以是手机100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the mobile phone 100. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
处理器100可以运行本申请实施例提供的图像拍摄方法的软件代码,拍摄得到用户满足的图像。The processor 100 may run the software code of the image shooting method provided in the embodiment of the present application, and shoot an image satisfying the user.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为手机100充电,也可以用于手机100与外围设备之间传输数据。The USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 130 can be used to connect a charger to charge the mobile phone 100, and can also be used to transfer data between the mobile phone 100 and peripheral devices.
充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线 通信模块160等供电。The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging 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.
手机100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile phone 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。手机100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在手机100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied on the mobile phone 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves 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 waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
无线通信模块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转为电磁波辐射出去。The wireless communication module 160 can provide applications on the mobile phone 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 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)。In some embodiments, the antenna 1 of the mobile phone 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (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, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
显示屏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的正整数。The display screen 194 is used to display the display interface of the application and the like. The display screen 194 includes a display panel. The display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the mobile phone 100 may include one or N display screens 194, and N is a positive integer greater than one.
摄像头193用于捕获静态图像或视频。摄像头193可以包括前置摄像头和后置摄像头。The camera 193 is used to capture still images or videos. The camera 193 may include a front camera and a rear camera.
应理解,手机100上可以设置至少一个摄像头,比如至少一个前置摄像头,和/或至少一个后置摄像头。It should be understood that at least one camera may be provided on the mobile phone 100, such as at least one front camera, and/or at least one rear camera.
内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得手机100执行本申请一些实施例中所提供的图像拍摄方法。示例性地,内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统;该存储程序区还可以存储一个或多个应用(比如图库、联系人等)等。存储数据区可存储手机100使用过程中所创建的数据(比如照片,联系人等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储部件,闪存部件,通用闪存存储器(universal flash storage,UFS)等。在一些实施例中,处理器110可以通过运行存储在内部存储器121的指令,和/或存储在设置于处理器110中的存储器的指令,来使得手机100执行本申请实施例中所提供的图像拍摄方法。The internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions. The processor 110 may execute the above-mentioned instructions stored in the internal memory 121 to enable the mobile phone 100 to execute the image capturing method provided in some embodiments of the present application. Exemplarily, the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store the operating system; the storage program area can also store one or more applications (such as photo galleries, contacts, etc.). The data storage area can store data (such as photos, contacts, etc.) created during the use of the mobile phone 100. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), etc. In some embodiments, the processor 110 may execute the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor 110 to cause the mobile phone 100 to execute the image provided in the embodiments of the present application. Shooting method.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将图片,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save pictures, videos and other files in an external memory card.
当然,本申请实施例提供的图像拍摄方法的软件代码也可以存储在外部存储器中,处理器110可以通过外部存储器接口120运行所述软件代码,执行图像拍摄方法的流程步骤,以拍摄到用户满足的图像。Of course, the software code of the image shooting method provided by the embodiment of the present application can also be stored in an external memory, and the processor 110 can run the software code through the external memory interface 120 to execute the process steps of the image shooting method, so as to capture the user's satisfaction. Image.
应理解,手机100拍摄得到的图像(静态图像或动态图像)、视频等可以存储在外部存储器中,或者,手机100检测到满足一定的条件(内部存储器的内存空间不够,或者用户选择将图像、视频等存储在外部存储器中)时,将图像、视频等存储在外部存储器中。It should be understood that images (still images or dynamic images), videos, etc. captured by the mobile phone 100 can be stored in an external memory, or the mobile phone 100 detects that a certain condition is met (the memory space of the internal memory is insufficient, or the user chooses to save the image, When the video is stored in the external storage), the image, video, etc. are stored in the external storage.
手机100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The mobile phone 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be provided on the display screen 194.
陀螺仪传感器180B可以用于确定手机100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定手机100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。The gyroscope sensor 180B can be used to determine the movement posture of the mobile phone 100. In some embodiments, the angular velocity of the mobile phone 100 around three axes (ie, x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyro sensor 180B can be used for image stabilization.
气压传感器180C用于测量气压。在一些实施例中,手机100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the mobile phone 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。手机100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当手机100是翻盖机时,手机100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The mobile phone 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster. In some embodiments, when the mobile phone 100 is a flip phone, the mobile phone 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测手机100在各个方向上(一般为三轴)加速度的大小。当手机100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换, 计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the mobile phone 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the mobile phone 100 is stationary. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers and so on.
距离传感器180F,用于测量距离。手机100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,手机100可以利用距离传感器180F测距以实现快速对焦。 Distance sensor 180F, used to measure distance. The mobile phone 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the mobile phone 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。手机100通过发光二极管向外发射红外光。手机100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定手机100附近有物体。当检测到不充分的反射光时,手机100可以确定手机100附近没有物体。手机100可以利用接近光传感器180G检测用户手持手机100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。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 mobile phone 100 emits infrared light to the outside through the light emitting diode. The mobile phone 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the mobile phone 100. When insufficient reflected light is detected, the mobile phone 100 can determine that there is no object near the mobile phone 100. The mobile phone 100 may use the proximity light sensor 180G to detect that the user holds the mobile phone 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 leather case mode, and the pocket mode will automatically unlock and lock the screen.
环境光传感器180L用于感知环境光亮度。手机100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测手机100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense the brightness of the ambient light. The mobile phone 100 can adaptively adjust the brightness of the display 194 according to the perceived brightness of the ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the mobile phone 100 is in the pocket to prevent accidental touch.
指纹传感器180H用于采集指纹。手机100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The mobile phone 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
温度传感器180J用于检测温度。在一些实施例中,手机100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,手机100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,手机100对电池142加热,以避免低温导致手机100异常关机。在其他一些实施例中,当温度低于又一阈值时,手机100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the mobile phone 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the mobile phone 100 performs a reduction in the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the mobile phone 100 heats the battery 142 to avoid abnormal shutdown of the mobile phone 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the mobile phone 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于手机100的表面,与显示屏194所处的位置不同。 Touch sensor 180K, 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 called a “touch screen”. The touch sensor 180K is used to detect touch operations 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. The visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the mobile phone 100, which is different from the position of the display screen 194.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。手机100可以接收按键输入,产生与手机100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The mobile phone 100 can receive key input, and generate key signal input related to user settings and function control of the mobile phone 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和手机100的接触和分离。The SIM card interface 195 is used to connect to the SIM card. The SIM card can be connected to and separated from the mobile phone 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195.
可以理解的是,图2所示的部件并不构成对手机100的具体限定,手机100还可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布 置。It is understandable that the components shown in FIG. 2 do not constitute a specific limitation on the mobile phone 100, and the mobile phone 100 may also include more or less components than those shown in the figure, or combine certain components, or split certain components. Or different component arrangements.
需要说明的是,手机中拍摄模式有多种,比如人像模式、风景模式等等,但是每种拍摄模式下拍摄参数都是已经设置好的(一般是手机出厂之前设置好的),其中,拍摄参数包括光圈、焦距、快门、感光度、曝光、白平衡度等等。但是每个用户的美感和诉求都不尽相同,以某种拍摄模式拍摄得到的图像不一定满足每个用户的需要。比如,手机采用人像模式拍摄的一张图像,是用户A喜欢的,但是用户B不喜欢,这样的话,用户B可能还需要修图才能得到满足的图像,操作繁琐,体验较差。It should be noted that there are many shooting modes in the phone, such as portrait mode, landscape mode, etc., but the shooting parameters in each shooting mode are already set (usually set before the phone leaves the factory). Among them, shooting Parameters include aperture, focal length, shutter, sensitivity, exposure, white balance and so on. However, the aesthetics and demands of every user are different, and the images taken in a certain shooting mode may not meet the needs of every user. For example, an image taken by the mobile phone in the portrait mode is liked by user A, but not by user B. In this case, user B may still need to retouch the image to obtain a satisfactory image, which is cumbersome to operate and has a poor experience.
本申请实施例提供的图像拍摄方法中,手机可以学习用户对图像中每个拍摄对象的关注程度,以及每个拍摄对象的拍摄调整参数,比如,手机学习到存储的图像中多数图像中包含人像,少数图像中包含动物,则说明用户对人物的关注程度更高,对动物的关注度较低。再比如,手机学习到用户在修图过程中,对人物的修改次数较多,对风景的修改次数较少,则手机确定人物的关注程度较高,对风景的关注程度较低。再比如,手机还可以学习用户在修图过程中,对人物的图像参数的修改,记录该修改,所以,手机通过大量的学习过程,可以得到人物的拍摄调整参数,还可以得到其他拍摄对象的拍摄调整参数。In the image shooting method provided by the embodiment of the application, the mobile phone can learn the user's attention to each subject in the image and the shooting adjustment parameters of each subject. For example, the mobile phone learns that most of the stored images contain portraits. , A few images contain animals, indicating that users pay more attention to people and less attention to animals. For another example, if the mobile phone learns that in the process of retouching a picture, the user has made more changes to the characters and fewer changes to the scenery. The mobile phone determines that the person's attention is higher and the scenery is lower. For another example, the mobile phone can also learn the user's modification of the image parameters of the character during the retouching process, and record the modification. Therefore, the mobile phone can obtain the shooting adjustment parameters of the character through a large amount of learning process, and also obtain other shooting objects. Shooting adjustment parameters.
手机根据每个对象的关注程度设置每个对象的权重,比如,关注程度较高的权重较高,关注程度较低的权重较低。The mobile phone sets the weight of each object according to the degree of attention of each object, for example, a higher degree of attention has a higher weight, and a lower degree of attention has a lower weight.
因此,手机中可以存储每个拍摄对象的权重、以及每个拍摄对象的拍摄调整参数,并且在用户使用手机的过程中,实时的学习更新每个拍摄对象的权重和拍摄调整参数。Therefore, the weight of each subject and the shooting adjustment parameters of each subject can be stored in the mobile phone, and the user can learn and update the weight and shooting adjustment parameters of each subject in real time while using the mobile phone.
因此,手机拍摄一张图像时,识别图像中的每个拍摄对象,根据每个对象的权重和每个拍摄对象的拍摄调整参数确定对每个对象的最终的拍摄调整参数,基于每个拍摄对象最终的拍摄调整参数调整拍摄参数,这样的话,手机拍摄得到的图像很大概率上是符合用户习惯的图像,用户满意度较高。Therefore, when a mobile phone shoots an image, it recognizes each subject in the image, and determines the final shooting adjustment parameters for each subject according to the weight of each subject and the shooting adjustment parameters of each subject. The final shooting adjustment parameters adjust the shooting parameters. In this case, the image captured by the mobile phone is likely to conform to the user's habit, and the user satisfaction is high.
下面介绍通过图1所示的手机100实现拍摄一张图像的过程的几种示例。The following describes several examples of the process of capturing an image through the mobile phone 100 shown in FIG. 1.
示例1:Example 1:
参见图2(a)所示,手机100显示主界面(home screen)201,主界面201上可以包括一个或多个应用的图标或者组件,其中包括相机的图标202。手机100检测到针对相机的图标202的操作,响应于该操作,显示相机的取景界面203,参见图2(b)所示。如图2(b)所示,手机100显示取景界面203,取景界面203中包括预览图像,该预览图像是手机100检测到针对拍摄控件205的操作之前,呈现在取景界面中的图像。Referring to FIG. 2(a), the mobile phone 100 displays a home screen 201, and the home screen 201 may include one or more application icons or components, including a camera icon 202. The mobile phone 100 detects the operation on the icon 202 of the camera, and in response to the operation, displays the viewfinder interface 203 of the camera, as shown in FIG. 2(b). As shown in FIG. 2(b), the mobile phone 100 displays a viewfinder interface 203, and the viewfinder interface 203 includes a preview image, which is an image presented in the viewfinder interface before the mobile phone 100 detects an operation on the shooting control 205.
继续参见图2(b)所示,手机100检测到“照片”模式204被选中时,取景界面中显示的预览图像是基于初始拍摄参数采集的图像。其中,初始拍摄参数即拍摄参数的初始值,比如,当拍摄参数是曝光时,初始拍摄参数即初始曝光值。需要说明的是,初始拍摄参数可以是默认的拍摄参数,或者用户上一次调整的拍摄参数。Continuing to refer to FIG. 2(b), when the mobile phone 100 detects that the "photo" mode 204 is selected, the preview image displayed in the viewfinder interface is an image collected based on the initial shooting parameters. The initial shooting parameter is the initial value of the shooting parameter. For example, when the shooting parameter is exposure, the initial shooting parameter is the initial exposure value. It should be noted that the initial shooting parameters may be the default shooting parameters, or the shooting parameters adjusted last time by the user.
参见图2(c)所示,手机100检测到“智能拍摄”模式206被选中,显示取景界面207,该取景界面207中预览图像,该预览图像是手机100基于调整之后的拍摄参数采集的图像,其中调整之后的拍摄参数是对初始曝光参数调整之后的拍摄参数。当然,手机100还可以在预览图像上显示提示信息“进入智能拍摄模式”。Referring to Figure 2(c), the mobile phone 100 detects that the "smart shooting" mode 206 is selected, and displays a viewfinder interface 207. The viewfinder interface 207 contains a preview image, which is an image collected by the mobile phone 100 based on the adjusted shooting parameters , Where the adjusted shooting parameters are the shooting parameters after adjusting the initial exposure parameters. Of course, the mobile phone 100 may also display the prompt message "enter smart shooting mode" on the preview image.
示例性的,手机100可以识别预览图像上的至少一个拍摄对象(图像识别方法可以有多种,比如边缘检测法等等,本申请实施例不作限定),并确定每个拍摄对象的权重和拍摄 调整参数。其中,每个拍摄对象的权重和拍摄调整参数可以是手机100自学习的。手机100根据每个拍摄对象的权重和拍摄调整参数,确定每个拍摄对象的最终调整参数,然后根据最终调整参数调整初始拍摄参数,得到调整后的拍摄参数。Exemplarily, the mobile phone 100 can recognize at least one photographed object in the preview image (there may be multiple image recognition methods, such as edge detection methods, etc., which are not limited in this embodiment), and determine the weight and photographing of each photographed object. Adjustment parameters. Wherein, the weight and shooting adjustment parameters of each shooting object may be self-learned by the mobile phone 100. The mobile phone 100 determines the final adjustment parameter of each object according to the weight of each object and the shooting adjustment parameters, and then adjusts the initial shooting parameters according to the final adjustment parameters to obtain the adjusted shooting parameters.
以预览图像中的拍摄对象是蓝天白云为例,为了方便理解,图2(c)中将蓝天白云的区域画斜线区分,以表征图2(c)中预览图像上的蓝天白云和图2(b)中预览图像上的蓝天白云的显示效果不同。因为,图2(c)中的预览图像是基于调整后的拍摄参数采集的,而图2(b)中预览图像是基于初始拍摄参数采集的。Take the blue sky and white clouds as an example in the preview image. In order to facilitate understanding, the blue sky and white clouds are drawn diagonally in Figure 2(c) to represent the blue sky and white clouds on the preview image in Figure 2(c) and Figure 2 The display effect of blue sky and white clouds on the preview image in (b) is different. Because the preview image in Figure 2(c) is collected based on adjusted shooting parameters, while the preview image in Figure 2(b) is collected based on initial shooting parameters.
在示例1中,手机100进入智能拍摄模式之后,取景界面中显示的预览图像是基于调整之后的拍摄参数采集的图像。也就是说,手机100进入智能拍摄模式之后,预览图像相对于普通模式(比如“照片”模式)发生变化,用户可以通过预览图像直观的看到智能拍摄模式的效果。In Example 1, after the mobile phone 100 enters the smart shooting mode, the preview image displayed in the viewfinder interface is an image collected based on the adjusted shooting parameters. In other words, after the mobile phone 100 enters the smart shooting mode, the preview image changes relative to the normal mode (such as the "photo" mode), and the user can intuitively see the effect of the smart shooting mode through the preview image.
示例2:Example 2:
参见图3(a)所示,手机100检测到“智能拍摄”模式301被选中后,显示取景界面,该取景界面中显示预览图像302,该预览图像302是基于初始拍摄参数采集的,预览图像302上显示每个拍摄对象的权重信息、以及“取消”控件303和“应用”控件304。举例来说,参见图3(a)所示,预览图像上显示的权重信息包括:“蓝天白云:40%”,“绿植:20%”、“单人:40%”。其中,“蓝天白云40%”表征预览图像中蓝天白云的权重为40%,“绿植:20%”表征预览图像中绿植的权重为20%,“单人:40%”表征预览图像中人物的权重是40%。As shown in Figure 3(a), after the mobile phone 100 detects that the "smart shooting" mode 301 is selected, it displays a viewfinder interface. The viewfinder interface displays a preview image 302. The preview image 302 is collected based on the initial shooting parameters. 302 displays the weight information of each subject, as well as the “cancel” control 303 and the “apply” control 304. For example, referring to Figure 3(a), the weight information displayed on the preview image includes: "blue sky and white clouds: 40%", "green plants: 20%", and "single person: 40%". Among them, "blue sky and white clouds 40%" represents the weight of the blue sky and white clouds in the preview image is 40%, "green plants: 20%" represents the weight of the green plants in the preview image is 20%, and "single person: 40%" represents the weight of the preview image. The weight of the character is 40%.
示例性的,权重可以是拍摄对象在预览图像中的所占的面积比例,或者,权重与预先设置的拍摄对象的等级相关,比如拍摄对象的等级较高,权重较高,拍摄对象的等级较低,权重较低;其中,预先设置可以是用户自定义的,也可以是手机100出厂之前默认设置好的,还可以是手机100根据用户的拍照习惯(比如拍摄的过程中调整的拍摄参数,或者修图时调整的图像参数等)自学习的。以权重是拍摄对象在预览图像中的所占面积比例为例,当预览图像动图变化时,每个拍摄对象的权重也可以是动态变化的。Exemplarily, the weight may be the proportion of the area occupied by the subject in the preview image, or the weight is related to the preset level of the subject. For example, the level of the subject is higher, the weight is higher, and the level of the subject is higher. Low, low weight; among them, the preset can be user-defined, or the mobile phone 100 can be set by default before leaving the factory, or it can be the mobile phone 100 according to the user’s photographing habits (such as the shooting parameters adjusted during the shooting process, Or adjust the image parameters when retouching, etc.) self-learning. Taking the weight as the proportion of the area occupied by the subject in the preview image as an example, when the animation of the preview image changes, the weight of each subject can also be dynamically changed.
示例性的,参见图3(b)所示,当手机100检测到针对“蓝天白云:40%”的操作时,手机100显示蓝天白云对应的拍摄调整参数,即色彩+4,当手机100检测到针对“绿植:20%”的操作时,手机100显示绿植的拍摄调整参数即饱和度+2,当手机100检测到针对“单人:40%”的操作时,手机100显示任务的拍摄调整参数,即色彩+2。Exemplarily, referring to Fig. 3(b), when the mobile phone 100 detects an operation for "blue sky and white clouds: 40%", the mobile phone 100 displays the shooting adjustment parameters corresponding to the blue sky and white clouds, namely color +4. When the mobile phone 100 detects When the operation for "green plants: 20%" is performed, the mobile phone 100 displays the shooting adjustment parameter of the green plants, which is saturation +2. When the mobile phone 100 detects the operation for "single person: 40%", the mobile phone 100 displays the task information Shooting adjustment parameter, namely color +2.
需要说明的是,在一些实施例中,预览图像上显示的每个拍摄对象的权重和拍摄调整参数可以修改。继续参见图3(b)所示,手机100检测到针对蓝天白云40%的操作(比如长按操作),可以将蓝天白云的权重信息调整为编辑状态,比如,权重信息中显示“-”和“+”,当手机100检测到针对“+”的操作时,增加权重即将原来的40%增大到41%。再比如,手机100检测到针对“蓝天白云:色彩+4”的操作(比如长按操作),可以将“蓝天白云:色彩+4”设置为编辑状态,比如,“蓝天白云:色彩+4”中显示“-”和“+”。手机100检测到针对“+”的操作,可以增加色彩即将原来的+4设置为+5。当手机100检测到针对“应用”控件304的操作时,手机100基于修改后的拍摄参数采集新的预览图像,然后在取景界面中显示该新的预览图像,参见图3(c)所示。如图3(c)所示,取景界面中显示的图像305是新的预览图像。为了方便理解,图3(c)中将蓝天白云的区域画斜线区分,以表征图3(c)中预览图像上的蓝天白云和图3(b)中预览图像上的蓝天白云的显示效果不同。因为,图3(c)中的预览图像是基 于修改后的拍摄参数采集的,而图3(b)中预览图像是基于初始拍摄参数采集的。It should be noted that in some embodiments, the weight and shooting adjustment parameters of each subject displayed on the preview image can be modified. Continuing to refer to Figure 3(b), the mobile phone 100 detects 40% operations against blue sky and white clouds (such as a long press operation), and can adjust the weight information of the blue sky and white clouds to the editing state. For example, the weight information displays "-" and "+", when the mobile phone 100 detects an operation for "+", the increase weight is to increase the original 40% to 41%. For another example, if the mobile phone 100 detects an operation for "blue sky and white clouds: color + 4" (such as a long press operation), you can set "blue sky and white clouds: color + 4" as the editing state, for example, "blue sky and white clouds: color + 4" "-" and "+" are displayed in. The mobile phone 100 detects the operation for "+", and can increase the color, that is, set the original +4 to +5. When the mobile phone 100 detects an operation on the "application" control 304, the mobile phone 100 collects a new preview image based on the modified shooting parameters, and then displays the new preview image in the viewfinder interface, as shown in FIG. 3(c). As shown in FIG. 3(c), the image 305 displayed in the viewfinder interface is a new preview image. In order to facilitate understanding, the blue sky and white clouds are drawn diagonally in Figure 3 (c) to characterize the display effect of the blue sky and white clouds on the preview image in Figure 3 (c) and the blue sky and white clouds on the preview image in Figure 3 (b) different. Because the preview image in Figure 3(c) is collected based on the modified shooting parameters, while the preview image in Figure 3(b) is collected based on the initial shooting parameters.
在示例2中,手机100进入“智能拍摄”模式之后,可以显示每个拍摄对象的拍摄参数,用户可以修改每个拍摄对象的权重和拍摄参数,手机100可以基于修改后的拍摄参数和权重,调整初始拍摄参数,得到调整后的拍摄参数,然后基于调整后的拍摄参数采集得到新的预览图像。In Example 2, after the mobile phone 100 enters the "smart shooting" mode, the shooting parameters of each subject can be displayed. The user can modify the weight and shooting parameters of each subject. The mobile phone 100 can be based on the modified shooting parameters and weights. Adjust the initial shooting parameters to obtain the adjusted shooting parameters, and then acquire a new preview image based on the adjusted shooting parameters.
示例性的,手机100可以确定每个拍摄对象的权重与拍摄调整参数的乘积,然后以该乘积来调整初始拍摄参数。举例来说,参见图3(b)所示,手机100确定蓝天白云的拍摄调整参数为色彩+4,所以手机100可以确定蓝天白云的拍摄调整参数为色彩+1.6(40%*4=1.6),对应的,手机100在初始曝光时间增加0.6秒,以实现图像上蓝天白云的色彩增加1.6。Exemplarily, the mobile phone 100 may determine the product of the weight of each shooting object and the shooting adjustment parameter, and then use the product to adjust the initial shooting parameter. For example, referring to FIG. 3(b), the mobile phone 100 determines that the shooting adjustment parameter of blue sky and white clouds is color +4, so the mobile phone 100 can determine that the shooting adjustment parameter of blue sky and white clouds is color +1.6 (40%*4=1.6) Correspondingly, the initial exposure time of the mobile phone 100 is increased by 0.6 seconds, so that the color of the blue sky and white clouds on the image is increased by 1.6.
手机100确定绿植的拍摄调整参数为饱和度+2,所以手机100确定绿植的拍摄调整参数为饱和度+0.4(即20%*2=0.4),对应的,手机100在光圈的初始值调小,将快门增大,比如光圈调小一档(比如从f2.8降低到f2),将快门增大1/25秒,以实现图像上绿植的饱和度+0.4。其中,光圈调小多少,快门增大多少,才能实现图像上绿植的饱和度+0.4,本领域技术人员可以根据试验确定,然后将确定出的值存储在手机100中,该过程可以在手机100出厂之前进行。The mobile phone 100 determines that the green plant's shooting adjustment parameter is saturation + 2, so the mobile phone 100 determines that the green plant's shooting adjustment parameter is saturation + 0.4 (ie 20%*2 = 0.4). Correspondingly, the mobile phone 100 is at the initial value of the aperture Decrease, increase the shutter, for example, decrease the aperture by one stop (for example, reduce from f2.8 to f2), and increase the shutter by 1/25 second to achieve the saturation of the green plants on the image +0.4. Among them, how much the aperture is adjusted to be smaller and the shutter is increased to achieve the saturation of green plants on the image +0.4. Those skilled in the art can determine according to experiments, and then store the determined value in the mobile phone 100. This process can be performed in the mobile phone. 100 before leaving the factory.
手机100确定人物的拍摄调整参数为色彩+2。因此,手机100确定人物的拍摄调整参数为色彩+0.8(40%*2=0.8)。对应的,手机100将初始曝光时间增加0.3,以实现图像上人物的色彩增加0.8。应理解,本文中的数值仅是举例说明,并不是限定。The mobile phone 100 determines that the shooting adjustment parameter of the person is color+2. Therefore, the mobile phone 100 determines that the shooting adjustment parameter of the person is color+0.8 (40%*2=0.8). Correspondingly, the mobile phone 100 increases the initial exposure time by 0.3, so that the color of the person on the image increases by 0.8. It should be understood that the numerical values in this text are only examples and are not limiting.
作为一种示例,可以将初始曝光时间增加0.6,然后将光圈调小一档(比如从f2.8降低到f2),将快门增大1/25秒,再将曝光时间增大0.3秒,这样的话,手机100拍摄到的图像是用户比较满意的图像。As an example, you can increase the initial exposure time by 0.6, then reduce the aperture by one stop (for example, reduce from f2.8 to f2), increase the shutter by 1/25 second, and then increase the exposure time by 0.3 seconds. In this case, the image captured by the mobile phone 100 is an image that the user is more satisfied with.
示例3:Example 3:
参见图4(a)所示,手机100显示相机的取景界面,取景界面中包括预览图像401,该预览图像401是基于初始拍摄参数采集的,或者该预览图像是基于调整后的拍摄参数采集的,比如,手机100识别拍摄场景中的拍摄对象,基于每个拍摄对象的权重和拍摄调整参数调整初始拍摄参数得到的最终拍摄参数,然后基于最终拍摄参数拍摄得到该预览图像401。其中,每个拍摄对象的权重和拍摄调整参数是手机100自学习的。如图4(a)所示,预览图像401中并未显示每个拍摄对象的权重信息和拍摄调整参数。Referring to Figure 4(a), the mobile phone 100 displays the viewfinder interface of the camera, and the viewfinder interface includes a preview image 401, the preview image 401 is collected based on the initial shooting parameters, or the preview image is collected based on the adjusted shooting parameters For example, the mobile phone 100 recognizes the subject in the shooting scene, adjusts the final shooting parameters obtained by initial shooting parameters based on the weight of each subject and shooting adjustment parameters, and then shoots the preview image 401 based on the final shooting parameters. Among them, the weight of each shooting object and shooting adjustment parameters are self-learned by the mobile phone 100. As shown in FIG. 4(a), the preview image 401 does not display the weight information and shooting adjustment parameters of each subject.
当手机100检测到针对拍摄控件402的操作时,手机100拍摄得到的图像403,并显示该图像403,还显示取消控件404和确定控件405,而且,拍摄的图像403上显示每个拍摄对象的权重信息和拍摄调整参数,请参见图4(b)所示。应理解,每个拍摄对象的权重信息和拍摄调整参数可以在图像403的空白区域显示,也可以在每个拍摄对象所在的区域显示,本申请实施例不作限定。When the mobile phone 100 detects the operation on the shooting control 402, the image 403 taken by the mobile phone 100 is displayed, and the image 403 is displayed. The cancel control 404 and the confirm control 405 are also displayed. Moreover, the captured image 403 displays the image of each subject. For weight information and shooting adjustment parameters, please refer to Figure 4(b). It should be understood that the weight information and shooting adjustment parameters of each shooting object may be displayed in a blank area of the image 403, or may be displayed in the area where each shooting object is located, which is not limited in the embodiment of the present application.
用户可以修改图像403上的每个拍摄对象的权重信息和拍摄调整参数,具体过程前文已介绍,在此不重复赘述。手机100可以根据修改后的权重和拍摄调整参数对该图像403进行修图,得到修图之后的图像。当手机100检测到确定控件403的操作时,手机100存储修图后的图像,参见图4(c)所示,手机100左下角显示缩略图406,该缩略图406对应的图像是对图像403修图之后得到的图像。The user can modify the weight information and shooting adjustment parameters of each shooting object on the image 403. The specific process has been introduced in the foregoing, and will not be repeated here. The mobile phone 100 can retouch the image 403 according to the modified weights and shooting adjustment parameters to obtain a retouched image. When the mobile phone 100 detects the operation of the determination control 403, the mobile phone 100 stores the retouched image. As shown in FIG. 4(c), the mobile phone 100 displays a thumbnail 406 in the lower left corner. The image corresponding to the thumbnail 406 is the image 403 The image obtained after retouching.
在另一些实施例中,继续以图4(b)为例,手机100检测到预设操作后,可以取消在图 像403上显示每个拍摄对象的权重信息和拍摄调整参数。其中预测操作可以是双击图像403上的某一个区域的操作,或者图像403上显示一特定控件(图中未示出),手机100检测针对该特定控件的操作时,取消在图像403上显示每个拍摄对象的权重信息和拍摄调整参数。这种情况下,图像403上未显示每个拍摄对象的权重信息和拍摄调整参数,所以手机100检测到针对“确定”控件405的操作时,存储图像403,也就是说,手机100未对图像403进行修图,而是将图像403存储。In other embodiments, continuing to take FIG. 4(b) as an example, after the mobile phone 100 detects a preset operation, it can cancel the display of the weight information and shooting adjustment parameters of each subject on the image 403. The prediction operation can be an operation of double-clicking a certain area on the image 403, or displaying a specific control (not shown in the figure) on the image 403. When the mobile phone 100 detects an operation for the specific control, it cancels the display of each area on the image 403. The weight information and shooting adjustment parameters of each subject. In this case, the weight information and shooting adjustment parameters of each subject are not displayed on the image 403, so when the mobile phone 100 detects the operation on the "OK" control 405, the image 403 is stored, that is, the mobile phone 100 has not adjusted the image 403 retouches the image, but stores the image 403.
需要说明的是,在该示例中,手机100检测到针对拍摄控件402的操作时,可以将拍摄的图像403存储在缓存中。用户可以修改该图像403上的某个拍摄对象的权重和拍摄调整参数。手机100可以根据修改后的权重和拍摄调整参数,对缓存中的图像403进行修图,得到修改后的图像。当手机100检测到确定控件403的操作时,将修改后的图像存储在手机100中图库中。示例性的,手机100可以删除缓存中存储的图像403,或者也可以将缓存中存储的图像403也存储在图库中。参见图5所示,手机100的图库中存储多张图像的缩略图,其中缩略图501对应的图像是存储在缓存中的图像(即修图之前的图像),缩略图502对应的图像是对缓存中的图像修图后得到的图像。It should be noted that, in this example, when the mobile phone 100 detects an operation on the shooting control 402, it may store the captured image 403 in the cache. The user can modify the weight and shooting adjustment parameters of a certain subject on the image 403. The mobile phone 100 can revise the image 403 in the buffer according to the revised weight and shooting adjustment parameters to obtain the revised image. When the mobile phone 100 detects the operation of the determining control 403, the modified image is stored in the gallery in the mobile phone 100. Exemplarily, the mobile phone 100 may delete the image 403 stored in the cache, or may also store the image 403 stored in the cache in the gallery. As shown in Figure 5, the mobile phone 100 stores thumbnails of multiple images in the gallery, where the image corresponding to thumbnail 501 is the image stored in the cache (ie the image before retouching), and the image corresponding to thumbnail 502 is The image obtained after retouching the image in the buffer.
继续参见图5所示,为了方便用户查看,修图之后的图像的缩略图即缩略图502上显示标记503,该标记503用于表征缩略图502对应的图像是修图之后的图像。修图之前的图像的缩略图即缩略图501上不显示标记。应理解,标记503可以是图标和/或文字等,本申请实施例不作限定。Continuing to refer to FIG. 5, in order to facilitate the user's viewing, the thumbnail of the retouched image, that is, the thumbnail 502, displays a mark 503, which is used to indicate that the image corresponding to the thumbnail 502 is the retouched image. The thumbnail of the image before retouching, that is, the thumbnail 501, does not display a mark. It should be understood that the mark 503 may be an icon and/or text, etc., which is not limited in the embodiment of the present application.
下面介绍手机100自学习的过程。The following describes the self-learning process of the mobile phone 100.
示例1:手机100自学习拍摄对象的权重。Example 1: The mobile phone 100 learns the weight of the subject by itself.
举例来说,以一张图像为例,手机100检测到针对该图像的裁剪指令,手机100确定裁剪后的图像上的拍摄对象(保留下的拍摄对象)的权重较高,确定裁剪掉的拍摄对象的权重较低或者为0。For example, taking an image as an example, the mobile phone 100 detects a cropping instruction for the image, the mobile phone 100 determines that the subject of the cropped image (the retained subject) has a higher weight, and determines the cropped shot The weight of the object is low or 0.
再例如,手机100检测到图库中存储多张图像。手机100确定所述多张图像中包含人物的图像的数量较多(或者近期拍摄的多张图像中包含人物的图像的数量较多),确定所述多张图像中包含动物的图像数据较少(或者近期拍摄的多张图像中包含人物的图像的数量较少),则手机100确定人物的权重较高,确定动物的权重较低。For another example, the mobile phone 100 detects that multiple images are stored in the gallery. The mobile phone 100 determines that the number of images containing people in the multiple images is large (or the number of images containing people in the multiple images taken recently is large), and determines that the multiple images contain less image data of animals (Or the number of images containing people in the multiple images taken recently is small), the mobile phone 100 determines that the weight of the person is higher, and the weight of the animal is determined to be lower.
再例如,手机100检测到针对一张图像的修图操作,确定对图像中人物的修改较多(比如对人物进行美肤、亮眼等多次修图操作),对绿植的修改较少,则手机100确定人物的权重较大,绿植的权重较小。For another example, the mobile phone 100 detects a retouching operation for an image and determines that there are more modifications to the characters in the image (for example, multiple retouching operations such as skin beautification, bright eyes, etc.), and fewer modifications to the green plants , The mobile phone 100 determines that the weight of the character is larger, and the weight of the green plants is smaller.
当然,每个拍摄对象的权重还可以是默认设置的,或者是用户手动设置的,本申请实施例不作限定。Of course, the weight of each shooting object may also be set by default or manually set by the user, which is not limited in the embodiment of the present application.
示例2:手机100可以自学习拍摄对象的拍摄调整参数。Example 2: The mobile phone 100 can self-learn the shooting adjustment parameters of the subject.
举例来说,手机100检测到图库中存储多张图像,手机100检测到用户对某张图像的修图操作,手机100可以记录修图时对图像中拍摄对象的拍摄参数的调整。比如,手机100确定,修图时对绿植饱和度增加2,对于人像图,色彩增加2,则手机100确定绿植的拍摄调整参数是饱和度+2,人物的拍摄调整参数是色彩+2。For example, the mobile phone 100 detects that multiple images are stored in the gallery, and the mobile phone 100 detects the user's retouching operation on a certain image, and the mobile phone 100 can record the adjustment of the shooting parameters of the subject in the image during the retouching. For example, if the mobile phone 100 determines that the green plant saturation is increased by 2 when retouching the image, and the color is increased by 2 for the portrait image, the mobile phone 100 determines that the green plant shooting adjustment parameter is saturation +2, and the portrait shooting adjustment parameter is color +2 .
需要说明的是,手机100的自学习过程可以通过模型来实现。模型即算法,包括一个或多个函数/方程。本申请实施例提到的模型可以是现有技术的模型,比如神经网络单元、机 器学习模型等。通常,模型是包括模型参数、输入参数和输出参数的函数式,在给定模型参数和输入参数的具体取值的情况下,通过计算该函数式可以得到输出结果。应理解,在本申请实施例中,输入参数即输入图像,在模型参数确定的情况下,通过模型可以得到输出结果,该输出结果可以是输入图像中每个拍摄对象的权重,和/或每个拍摄对象的拍摄调整参数。也就是说,上述示例1和示例2可以使用同一模式实现,也可以使用不同的模型实现。手机100可以根据输出结果调整拍摄参数,拍摄得到最终的图像(该过程将在后文介绍)。It should be noted that the self-learning process of the mobile phone 100 can be implemented through a model. Models are algorithms, including one or more functions/equations. The models mentioned in the embodiments of this application may be models in the prior art, such as neural network units, machine learning models, and so on. Generally, a model is a functional formula that includes model parameters, input parameters, and output parameters. Given the specific values of model parameters and input parameters, the output result can be obtained by calculating the functional formula. It should be understood that in the embodiments of the present application, the input parameter is the input image. When the model parameters are determined, the output result can be obtained through the model. The output result may be the weight of each object in the input image, and/or each Shooting adjustment parameters for each subject. That is to say, the above example 1 and example 2 can be implemented using the same mode or different models. The mobile phone 100 can adjust the shooting parameters according to the output result and obtain the final image by shooting (this process will be introduced later).
参见图6所示,为本申请实施例提供的一种图像拍摄方法的流程示意图。如图6所示,该方法可以包括:Refer to FIG. 6, which is a schematic flowchart of an image shooting method provided by an embodiment of this application. As shown in Figure 6, the method may include:
S601:手机100检测到输入操作,启动摄像头,基于初始拍摄参数采集一张初始图像。S601: The mobile phone 100 detects the input operation, starts the camera, and collects an initial image based on the initial shooting parameters.
示例性的,原始拍摄参数可以是初始值,该初始值可以是最小值或者是手机100出厂之前设置好的取值,或者原始拍摄参数也可以是上一次拍摄图像时采用的拍摄参数。Exemplarily, the original shooting parameter may be an initial value, and the initial value may be a minimum value or a value set before the mobile phone 100 leaves the factory, or the original shooting parameter may also be a shooting parameter used when an image was taken last time.
需要说明的是,手机100启动摄像头的情况可能有多种。举例来说,以图2(a)为例,手机100检测到用户点击相机的图标时,手机100启动相机,启动摄像头。再例如,手机100检测到用户点击微信的图标,启动微信,当手机100检测到点击微信中视频通话控件的操作时,启动摄像头。再例如,手机100检测到用户点击朋友圈中“拍摄”控件的操作时,启动摄像头。总而言之,本申请实施例提供的技术方案可以适用于任何可以启动摄像头,捕捉图像的应用中。It should be noted that there may be many situations in which the mobile phone 100 activates the camera. For example, taking FIG. 2(a) as an example, when the mobile phone 100 detects that the user clicks on the icon of the camera, the mobile phone 100 activates the camera and activates the camera. For another example, the mobile phone 100 detects that the user clicks on the icon of WeChat and starts WeChat. When the mobile phone 100 detects the operation of clicking the video call control in WeChat, it starts the camera. For another example, when the mobile phone 100 detects that the user has clicked the operation of the "shooting" control in the circle of friends, it starts the camera. All in all, the technical solutions provided by the embodiments of the present application can be applied to any application that can start a camera to capture images.
S602:手机100识别初始图像所属的至少一种场景类型。S602: The mobile phone 100 recognizes at least one scene type to which the initial image belongs.
示例性的,手机100中存储有多种预设场景类型。比如,室内场景、室外场景、单人拍摄、群拍场景、人物场景、风景场景等等。Exemplarily, the mobile phone 100 stores multiple preset scene types. For example, indoor scenes, outdoor scenes, single shooting, group shooting scenes, character scenes, landscape scenes, and so on.
手机100通过原始图像中的特征信息识别原始图像所属的至少一种场景类型。其中,特征信息包括拍摄对象的特征信息、比如,拍摄对象包括一个人时,场景类型可以是单人场景,拍摄对象包括蓝天时,场景类型是室外场景和/或风景场景。The mobile phone 100 recognizes at least one scene type to which the original image belongs through the feature information in the original image. Wherein, the characteristic information includes characteristic information of the photographed object. For example, when the photographed object includes a person, the scene type may be a single person scene, and when the photographed object includes a blue sky, the scene type may be an outdoor scene and/or a landscape scene.
一张原始图像上包括的场景类型可以有一种或多种。以图2(b)为例,预览图像中包括风景场景、室外场景、单人场景等等。There can be one or more types of scenes included in an original image. Taking Figure 2(b) as an example, the preview image includes landscape scenes, outdoor scenes, single-person scenes, and so on.
S603:手机100确定所述至少一种场景类型中每种场景类型的权重。S603: The mobile phone 100 determines the weight of each scene type in the at least one scene type.
示例性的,每种场景类型的权重可以是用户手动设置的,或者手机100出厂之前设置好的,或者手机100自学习的,手机100确定出每种场景类型之后,可以查询出每种场景类型对应的权重。以手机100自学习为例,手机100检测到图库中存储多张图像,并确定其中室外场景类型的图像较多(或者近期拍摄的图像中室外场景类型的图像较多),则手机100确定室外场景的权重较高。Exemplarily, the weight of each scene type can be manually set by the user, or the mobile phone 100 is set before the factory, or the mobile phone 100 is self-learning. After the mobile phone 100 determines each scene type, each scene type can be queried The corresponding weight. Taking the self-learning of the mobile phone 100 as an example, the mobile phone 100 detects that multiple images are stored in the gallery, and determines that there are more images of outdoor scene types (or there are more images of outdoor scene types in the images taken recently), then the mobile phone 100 determines that it is outdoor The weight of the scene is higher.
以图2(b)为例,手机100识别出预览图像属于“室外”、“风景”、“单人”三种场景类型。每种场景类型的权重如下表1:Taking FIG. 2(b) as an example, the mobile phone 100 recognizes that the preview image belongs to three scene types of "outdoor", "landscape", and "single person". The weight of each scene type is shown in Table 1:
场景类型Scene type 场景类型的权重Weight of scene type
室外outdoor 20%20%
风景landscape 30%30%
单人individual 30%30%
表1Table 1
S604:手机100确定每种场景类型对应的拍摄对象的拍摄调整参数。S604: The mobile phone 100 determines shooting adjustment parameters of the shooting object corresponding to each scene type.
手机100自学习到每种场景类型的图像中拍摄对象的拍摄调整参数,具体参见如下表2:The mobile phone 100 learns the shooting adjustment parameters of the subject in the images of each scene type by itself, see Table 2 below for details:
Figure PCTCN2020090366-appb-000002
Figure PCTCN2020090366-appb-000002
表2Table 2
S605:手机100确定原始图像上至少一个拍摄对象,以及每个拍摄对象的权重。S605: The mobile phone 100 determines at least one subject on the original image and the weight of each subject.
拍摄对象Subject 拍摄对象的权重Subject weight
绿植Green plants 20%20%
蓝天白云Blue sky and white clouds 40%40%
人物character 40%40%
表3table 3
S606:手机100根据每种场景类型的权重,每个拍摄对象的权重,以及每种场景类型下对应的拍摄对象的拍摄调整参数,确定每个拍摄对象的最终拍摄调整参数。S606: The mobile phone 100 determines the final shooting adjustment parameter of each shooting object according to the weight of each scene type, the weight of each shooting object, and the shooting adjustment parameters of the corresponding shooting object in each scene type.
继续以图2(b)所示,手机100根据如下公式确定蓝天白云的最终的拍摄调整参数:As shown in Figure 2(b), the mobile phone 100 determines the final shooting adjustment parameters of blue sky and white clouds according to the following formula:
第一次调整参数为:室外权重*蓝天白云权重*(+2);The first adjustment parameter is: outdoor weight * blue sky and white cloud weight * (+2);
第二次调整参数为:风景权重*蓝天白云权重*(+4);The second adjustment parameter is: scenery weight*blue sky and white cloud weight*(+4);
第三次调整参数为:单人权重*蓝天白云权重*(+1);The third adjustment parameter is: single human weight * blue sky and white cloud weight * (+1);
其中,室外权重(参见表1)是20%,风景权重(参见表1)是30%,单人权重(参见表1)是30%,蓝天白云权重(参见表3)是40%。Among them, the outdoor weight (see Table 1) is 20%, the scenery weight (see Table 1) is 30%, the single human weight (see Table 1) is 30%, and the blue sky and white clouds weight (see Table 3) is 40%.
上述公式中的“2”是表2中室外场景类型下对应的蓝天白云的色彩+2,上述公式中的“4”是表2中风景场景类型下对应的蓝天白云的色彩+4,上述公式中的“1”是表2中单人场景类型下对应的蓝天白云的色彩+1。The "2" in the above formula is the color of the corresponding blue sky and white clouds in the outdoor scene type in Table 2 +2, and the "4" in the above formula is the color of the corresponding blue sky and white clouds in the landscape scene type in Table 2 +4, the above formula The "1" in Table 2 is the color of the blue sky and white clouds in the single-player scene +1.
因此,上述公式中,第一次调整参数为:20%*40%*2=0.16,对应的手机100可以将曝光时间增大t1,以实现将色彩增大0.16的效果;第二次调整参数为30%*40%*4=0.48,对应的手机100可以将曝光时间增大t2,以实现将色彩增大0.48的效果;第三次调整参数为:30%*40%*1=0.12,对应的,手机100可以将曝光时间增加t3,以实现将色彩增大0.12的效果。也就是说,手机100可以分三次调整曝光时间以实现增大蓝天白云的色彩的效果。Therefore, in the above formula, the first adjustment parameter is: 20%*40%*2=0.16, the corresponding mobile phone 100 can increase the exposure time by t1 to achieve the effect of increasing the color by 0.16; the second adjustment parameter It is 30%*40%*4=0.48, the corresponding mobile phone 100 can increase the exposure time by t2 to achieve the effect of increasing the color by 0.48; the third adjustment parameter is: 30%*40%*1=0.12, Correspondingly, the mobile phone 100 can increase the exposure time by t3 to achieve the effect of increasing the color by 0.12. In other words, the mobile phone 100 can adjust the exposure time three times to achieve the effect of increasing the color of the blue sky and white clouds.
当然,手机100可以一次调整,即20%*40%*(+2)+30%*40%*(+4)+30%*40%*(+1)=0.76,对应的,手机100将曝光时间增大t4,即手机100可以调整一次曝光时间,实现将蓝天白云的色彩为+0.76的效果。Of course, the mobile phone 100 can be adjusted once, that is, 20%*40%*(+2)+30%*40%*(+4)+30%*40%*(+1)=0.76, correspondingly, the mobile phone 100 will The exposure time is increased by t4, that is, the mobile phone 100 can adjust the exposure time once to achieve the effect of changing the color of the blue sky and white clouds to +0.76.
通过类似的方式,手机100可以确定图2(b)中绿植的最终拍摄调整参数,以及人物的最终拍摄调整参数。In a similar manner, the mobile phone 100 can determine the final shooting adjustment parameters of the green plants in FIG. 2(b) and the final shooting adjustment parameters of the people.
在上面的实施例中,手机100在计算最终拍摄调整参数时,考虑了原始图像的至少一种场景类型的权重,也考虑了原始图像上每个拍摄对象的权重,在实际应用中,手机100可以仅考虑每个拍摄对象的权重,比如,手机100自学习到用户在修图的过程中对每个拍摄对象的拍摄调整参数,手机100计算最终拍摄调整参数时,可以将每个拍摄对象的拍摄调整参数和每个拍摄对象的权重相乘,该乘积为每个拍摄对象的最终拍摄调整参数。当然,手机100还可以仅考虑原始图像的至少一张场景类型的权重,比如,手机100自学习到用户对室外场景的图像进行修图或者拍摄图像的过程中的拍摄调整参数,当手机100计算最终拍摄调整参数时,可以将每个场景类型的拍摄调整参数和每个场景类型的权重相乘,该乘积为最终拍摄调整参数。In the above embodiment, when the mobile phone 100 calculates the final shooting adjustment parameters, the weight of at least one scene type of the original image is considered, and the weight of each subject on the original image is also considered. In practical applications, the mobile phone 100 You can only consider the weight of each subject. For example, the mobile phone 100 learns the shooting adjustment parameters of each subject during the process of retouching. When the mobile phone 100 calculates the final shooting adjustment parameters, the The shooting adjustment parameter is multiplied by the weight of each subject, and the product is the final shooting adjustment parameter for each subject. Of course, the mobile phone 100 may also only consider the weight of at least one scene type of the original image. For example, the mobile phone 100 learns from the user to retouch the image of the outdoor scene or the shooting adjustment parameters in the process of shooting the image. In the final shooting adjustment parameters, the shooting adjustment parameters of each scene type can be multiplied by the weight of each scene type, and the product is the final shooting adjustment parameter.
S607:手机100基于每个拍摄对象的最终拍摄调整参数调整初始拍摄参数。S607: The mobile phone 100 adjusts the initial shooting parameters based on the final shooting adjustment parameters of each shooting object.
作为一种示例,手机100可以将预览图像中蓝天白云(比如蓝天白云所在的区域)的色彩增加0.76;将绿植(比如绿植所在的区域的)饱和度+0.12,将人物(比如人物所在区域)的色彩增加0.24。As an example, the mobile phone 100 can increase the color of the blue sky and white clouds (such as the area where the blue sky and white clouds are) in the preview image by 0.76; increase the saturation of the green plant (such as the area where the green plant is located) +0.12, and change the color of the person (such as the person) Area) color increased by 0.24.
作为另一种示例,手机100将整个预览图像的色彩增加0.76,然后将整个预览图像的饱和度+0.12,然后将整个预览图像的色彩增加0.24。As another example, the mobile phone 100 increases the color of the entire preview image by 0.76, then increases the saturation of the entire preview image by +0.12, and then increases the color of the entire preview image by 0.24.
S608;手机100基于调整后的拍摄参数拍摄得到预览图像。S608: The mobile phone 100 obtains a preview image by shooting based on the adjusted shooting parameters.
S609:手机100显示取景界面,该取景界面中包括所述预览图像。S609: The mobile phone 100 displays a viewfinder interface, and the viewfinder interface includes the preview image.
示例性的,参见图2(c)所示,图2(c)中的预览图像是手机100基于调整后的图像拍摄参数拍摄的图像。Exemplarily, referring to FIG. 2(c), the preview image in FIG. 2(c) is an image captured by the mobile phone 100 based on the adjusted image capturing parameters.
下面介绍另一种场景:图库。Here is another scenario: gallery.
参见图7(a)所示,手机100显示主界面701,主界面701中包括多个应用的图标,其中包括图库的图标702,手机100检测到针对图标702的操作时,显示图库的界面703,参见图7(b)所示。图库的界面703中包括多张图像的缩略图,手机100检测到用户点击图像704的缩略图的操作时,显示如图7(c)所示的界面。Referring to Figure 7(a), the mobile phone 100 displays a main interface 701. The main interface 701 includes multiple application icons, including a gallery icon 702. When the mobile phone 100 detects an operation on the icon 702, it displays the gallery interface 703 , See Figure 7(b). The interface 703 of the gallery includes thumbnails of multiple images. When the mobile phone 100 detects that the user has clicked on the thumbnail of the image 704, the interface as shown in FIG. 7(c) is displayed.
参见图7(c)所示,手机100显示图像704,且在图像704上显示标识705。当手机100检测到针对标识705的操作时,手机100显示提示信息706,该提示信息用于提示用户进入智能修图模式,参见图7(d)所示。Referring to FIG. 7(c), the mobile phone 100 displays an image 704, and a logo 705 is displayed on the image 704. When the mobile phone 100 detects an operation on the logo 705, the mobile phone 100 displays a prompt message 706, which is used to prompt the user to enter the smart photo editing mode, as shown in FIG. 7(d).
继续参见图7(d)所示,手机100进入智能修图模式之后,可以显示图像704中每个拍摄对象的权重信息和拍摄调整参数。每个拍摄对象的权重信息和拍摄调整参数可以修改,当手机100检测到针对确定控件的操作时,基于每个拍摄对象的修改后的权重和拍摄调整参数对图像进行修图;当手机100检测到针对取消控件的操作时,退出智能修图模式。其中,手机100基于每个拍摄对象的修改后的权重和拍摄调整参数进行修图的方式与前述方式类似,不重复赘述。Continuing to refer to FIG. 7(d), after the mobile phone 100 enters the smart photo editing mode, the weight information and shooting adjustment parameters of each subject in the image 704 can be displayed. The weight information and shooting adjustment parameters of each subject can be modified. When the mobile phone 100 detects an operation for the certain control, the image is retouched based on the modified weight and shooting adjustment parameters of each subject; when the mobile phone 100 detects To cancel the operation of the control, exit the smart editing mode. Wherein, the method of the mobile phone 100 for retouching the image based on the modified weight and shooting adjustment parameters of each shooting object is similar to the foregoing method, and will not be repeated.
结合上述实施例及相关附图,本申请实施例提供了一种图像拍摄方法,该方法可以在 如图1所示的具有触摸屏和摄像头的电子设备(例如手机、平板电脑等)中实现。如图8所示,该方法可以包括以下步骤:In combination with the above-mentioned embodiments and related drawings, the embodiments of the present application provide an image shooting method, which can be implemented in an electronic device (such as a mobile phone, a tablet computer, etc.) having a touch screen and a camera as shown in FIG. 1. As shown in Figure 8, the method may include the following steps:
S801:检测到输入操作;S801: An input operation is detected;
示例性的,以图2(a)为例,该输入操作可以是点击手机100中的主界面201中的图标202的操作。Exemplarily, taking FIG. 2(a) as an example, the input operation may be an operation of clicking the icon 202 in the main interface 201 of the mobile phone 100.
S802:响应于所述输入操作,启动摄像头,显示取景界面,所述取景界面中包括预览图像;S802: In response to the input operation, start the camera to display a viewfinder interface, and the viewfinder interface includes a preview image;
示例性的,以图2(b)为例,取景界面可以是界面203。Exemplarily, taking FIG. 2(b) as an example, the viewfinder interface may be the interface 203.
S803:检测到针对拍摄控件的第一操作;S803: Detect the first operation for the shooting control;
示例性的,以4(a)为例,第一操作可以是点击取景界面401中的拍摄控件402的操作。Exemplarily, taking 4(a) as an example, the first operation may be an operation of clicking the shooting control 402 in the viewfinder interface 401.
S804:响应于所述第一操作,显示第一图像,所述第一图像是基于初始拍摄参数拍摄的图像,所述第一图像上显示每个拍摄对象的权重信息和拍摄调整参数;S804: In response to the first operation, display a first image, where the first image is an image taken based on initial shooting parameters, and the weight information and shooting adjustment parameters of each subject are displayed on the first image;
电子设备检测到针对拍摄控件的操作后,拍摄得到第一图像,并显示第一图像,该第一图像上显示每个拍摄对象的权重和拍摄调整参数。示例性的,以图4(b)为例,第一图像可以是手机100上显示的图像403。After detecting the operation on the shooting control, the electronic device captures the first image and displays the first image. The weight of each shooting object and shooting adjustment parameters are displayed on the first image. Illustratively, taking FIG. 4(b) as an example, the first image may be the image 403 displayed on the mobile phone 100.
S805:检测到用于存储所述第一图像的第二操作;S805: Detect a second operation for storing the first image;
示例性的,以图4(b)为例,第二操作可以是点击确定控件405的操作。Illustratively, taking FIG. 4(b) as an example, the second operation may be an operation of clicking the OK control 405.
S806:响应于所述第二操作,存储第二图像,所述第二图像是根据所述每个拍摄对象的权重信息和拍摄调整参数对所述第一图像调整后得到的图像。S806: In response to the second operation, store a second image, where the second image is an image obtained after adjusting the first image according to the weight information and shooting adjustment parameters of each shooting object.
示例性的,以图4(b)为例,手机100检测到针对确定控件405的操作后,可以将对第一图像即图像403修图之后得到的第二图像存储。以图4(c)为例,手机100左下角显示缩略图406,该缩略图406就是第二图像对应的缩略图,也就是说,手机100将第二图像存储在图库中。Exemplarily, taking FIG. 4(b) as an example, after the mobile phone 100 detects an operation on the determination control 405, it may store the second image obtained after the first image, that is, the image 403, is modified. Taking FIG. 4(c) as an example, the mobile phone 100 displays a thumbnail 406 in the lower left corner, and the thumbnail 406 is a thumbnail corresponding to the second image. That is, the mobile phone 100 stores the second image in the gallery.
本申请的各个实施方式可以任意进行组合,以实现不同的技术效果。The various embodiments of the present application can be combined arbitrarily to achieve different technical effects.
上述本申请提供的实施例中,从电子设备(比如手机100)作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In the above-mentioned embodiments provided in the present application, the method provided in the embodiments of the present application is introduced from the perspective of an electronic device (such as a mobile phone 100) as an execution subject. In order to realize the functions in the methods provided in the above embodiments of the present application, the electronic device may include a hardware structure and/or a software module, and realize the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above-mentioned functions is executed in a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraint conditions of the technical solution.
如图9所示,本申请另外一些实施例公开了一种电子设备,该电子设备比如为手机、ipad等该电子设备可以包括:触摸屏901,其中,所述触摸屏901包括触敏表面906和显示屏907;一个或多个处理器902;多个应用程序908;上述各器件可以通过一个或多个通信总线905连接。所述显示屏907可以用于显示主界面,或者多个应用程序908中的某个应用程序的显示界面比如相机的界面(即取景界面),还可以用于显示电子设备拍摄的图像等。As shown in FIG. 9, some other embodiments of the present application disclose an electronic device, such as a mobile phone, ipad, etc. The electronic device may include a touch screen 901, where the touch screen 901 includes a touch-sensitive surface 906 and a display Screen 907; one or more processors 902; multiple application programs 908; the above-mentioned devices can be connected through one or more communication buses 905. The display screen 907 may be used to display a main interface, or a display interface of a certain application of a plurality of application programs 908, such as a camera interface (ie, a viewfinder interface), and may also be used to display images taken by an electronic device.
其中,所述一个或多个计算机程序904被存储在上述存储器903中并被配置为被该一个或多个处理器902执行,该一个或多个计算机程序904包括指令,上述指令可以用于执行如图2-8及相应实施例中的各个步骤。The one or more computer programs 904 are stored in the aforementioned memory 903 and are configured to be executed by the one or more processors 902, and the one or more computer programs 904 include instructions, and the aforementioned instructions can be used for execution. Figure 2-8 and the respective steps in the corresponding embodiment.
需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。本发明实施例中的各功能单元可以集成在一个处理单 元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。例如,上述实施例中,第一获取单元和第二获取单元可以是同一个单元,也不同的单元。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation. The functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. For example, in the above embodiment, the first acquiring unit and the second acquiring unit may be the same unit or different units. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
以上实施例中所用,根据上下文,术语“当…时”或“当…后”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。另外,在上述实施例中,使用诸如第一、第二之类的关系术语来区份一个实体和另一个实体,而并不限制这些实体之间的任何实际的关系和顺序。As used in the above embodiments, depending on the context, the term "when" or "after" can be interpreted as meaning "if..." or "after" or "in response to determining..." or "in response to detecting …". Similarly, depending on the context, the phrase "when determining..." or "if detected (statement or event)" can be interpreted as meaning "if determined..." or "in response to determining..." or "when detected (Condition or event stated)" or "in response to detection of (condition or event stated)". In addition, in the foregoing embodiments, relationship terms such as first and second are used to distinguish one entity from another entity, and any actual relationship and order between these entities are not limited.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present invention are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website site, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
需要指出的是,本专利申请文件的一部分包含受著作权保护的内容。除了对专利局的专利文件或记录的专利文档内容制作副本以外,著作权人保留著作权。It should be pointed out that a part of this patent application file contains content protected by copyright. Except for making copies of patent documents or recorded contents of patent documents in the Patent Office, the copyright owner reserves the copyright.

Claims (10)

  1. 一种图像拍摄方法,应用于电子设备,其特征在于,所述方法包括:An image shooting method applied to electronic equipment, characterized in that the method includes:
    检测到输入操作;Input operation detected;
    响应于所述输入操作,启动摄像头,显示取景界面,所述取景界面中包括预览图像;In response to the input operation, start the camera to display a viewfinder interface, and the viewfinder interface includes a preview image;
    检测到针对拍摄控件的第一操作;The first operation for the shooting control is detected;
    响应于所述第一操作,显示第一图像,所述第一图像是基于初始拍摄参数拍摄的图像,所述第一图像上显示每个拍摄对象的权重信息和拍摄调整参数;In response to the first operation, a first image is displayed, the first image is an image taken based on initial shooting parameters, and the weight information and shooting adjustment parameters of each shooting object are displayed on the first image;
    检测到用于存储所述第一图像的第二操作;A second operation for storing the first image is detected;
    响应于所述第二操作,存储第二图像,所述第二图像是根据所述每个拍摄对象的权重信息和拍摄调整参数对所述第一图像调整后得到的图像。In response to the second operation, a second image is stored, the second image being an image obtained by adjusting the first image according to the weight information and shooting adjustment parameters of each shooting object.
  2. 如权利要求1所述的方法,其特征在于,在检测到用于存储所述第一图像的第二操作之前,所述方法还包括:The method of claim 1, wherein before detecting the second operation for storing the first image, the method further comprises:
    检测到针对第一拍摄对象的权重信息和/或拍摄调整参数的修改操作;A modification operation of the weight information and/or the shooting adjustment parameters for the first shooting object is detected;
    响应于所述修改操作,对所述第一图像处理得到第三图像,所述第三图像是根据所述修改后的权重信息和/或拍摄调整参数对所述第一图像调整后得到的图像;In response to the modification operation, a third image is obtained by processing the first image, and the third image is an image obtained after adjusting the first image according to the modified weight information and/or shooting adjustment parameters ;
    响应于所述第二操作,存储第二图像,包括:In response to the second operation, storing the second image includes:
    响应于所述第二操作,存储所述第三图像。In response to the second operation, the third image is stored.
  3. 如权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    保存所述第一图像;Save the first image;
    其中,所述第二图像上设置第一标记,所述第一图像上不设置所述第一标记。Wherein, a first mark is set on the second image, and the first mark is not set on the first image.
  4. 如权利要求1-3任一所述的方法,其特征在于,所述每个拍摄对象的权重是根据所述第一图像中每个拍摄对象所占的面积比例确定的;或者是预先设置的;或者,是根据用户选择操作确定的;或者,是根据用户对所述电子设备中存储的图像的操作行为确定的。The method according to any one of claims 1 to 3, wherein the weight of each shooting object is determined according to the proportion of the area occupied by each shooting object in the first image; or is preset Or, it is determined according to the user's selection operation; or, it is determined according to the user's operation behavior on the image stored in the electronic device.
  5. 如权利要求4所述的方法,其特征在于,所述每个拍摄对象的权重是根据用户对所述电子设备中存储的图像的操作行为确定的,包括:The method according to claim 4, wherein the weight of each photographed object is determined according to the user's operation behavior on the image stored in the electronic device, comprising:
    所述每个拍摄对象的权重是根据存储的图像中每个拍摄对象被修图的次数确定的;或者,是根据存储的图像中每个拍摄对象被裁剪的次数确定的,或者,根据存储的所有图像中包含所述每个拍摄对象的图像数量确定的。The weight of each subject is determined according to the number of times each subject in the stored image has been edited; or, it is determined according to the number of times each subject in the stored image is cropped, or according to the stored All images are determined by the number of images contained in each subject.
  6. 如权利要求1-5任一所述的方法,其特征在于,所述每个拍摄对象的拍摄调整参数是预先设置的,或者,是根据用户对所述电子设备中存储的图像中每个拍摄对象修图时调整的图像参数确定的。The method according to any one of claims 1-5, wherein the shooting adjustment parameter of each shooting object is preset, or is based on the user's shooting of each of the images stored in the electronic device. The image parameters adjusted when the object is retouched are determined.
  7. 如权利要求1-6任一所述的方法,其特征在于,在检测到用于存储所述第一图像的第二操作之前,所述方法还包括:8. The method according to any one of claims 1 to 6, characterized in that, before detecting the second operation for storing the first image, the method further comprises:
    检测到第三操作;The third operation is detected;
    响应于所述第三操作,在所述第一图像上取消显示所述每个拍摄对象的权重信息和拍摄调整参数;In response to the third operation, cancel displaying the weight information and shooting adjustment parameters of each shooting object on the first image;
    响应于所述第二操作,存储第二图像,包括:In response to the second operation, storing the second image includes:
    响应于所述第二操作,存储所述第一图像。In response to the second operation, the first image is stored.
  8. 一种电子设备,其特征在于,包括至少一个处理器和存储器;An electronic device, characterized by comprising at least one processor and memory;
    所述存储器用于存储一个或多个计算机程序;The memory is used to store one or more computer programs;
    当所述存储器存储的一个或多个计算机程序被所述至少一个处理器执行时,使得所述电子设备能够实现如权利要求1至7任一所述的方法。When one or more computer programs stored in the memory are executed by the at least one processor, the electronic device is enabled to implement the method according to any one of claims 1 to 7.
  9. 一种计算机存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1至7任一所述的方法。A computer storage medium, wherein the computer readable storage medium includes a computer program, and when the computer program runs on an electronic device, the electronic device executes the method according to any one of claims 1 to 7.
  10. 一种程序产品,其特征在于,所述程序产品包括指令,当所述指令在计算机上运行时,使得所述计算机执行如权利要求1至7任一项所述的方法。A program product, characterized in that the program product includes instructions, which when run on a computer, cause the computer to execute the method according to any one of claims 1 to 7.
PCT/CN2020/090366 2019-05-15 2020-05-14 Image capture method and electronic device WO2020228792A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910402906.9A CN110225244B (en) 2019-05-15 2019-05-15 Image shooting method and electronic equipment
CN201910402906.9 2019-05-15

Publications (1)

Publication Number Publication Date
WO2020228792A1 true WO2020228792A1 (en) 2020-11-19

Family

ID=67821095

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/090366 WO2020228792A1 (en) 2019-05-15 2020-05-14 Image capture method and electronic device

Country Status (2)

Country Link
CN (1) CN110225244B (en)
WO (1) WO2020228792A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116320716A (en) * 2023-05-25 2023-06-23 荣耀终端有限公司 Picture acquisition method, model training method and related devices
CN116723415A (en) * 2022-10-20 2023-09-08 荣耀终端有限公司 Thumbnail generation method and terminal equipment

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225244B (en) * 2019-05-15 2021-02-09 华为技术有限公司 Image shooting method and electronic equipment
CN112532854B (en) * 2019-09-17 2022-05-31 华为技术有限公司 Image processing method and electronic equipment
CN111027374B (en) * 2019-10-28 2023-06-30 华为终端有限公司 Image recognition method and electronic equipment
CN111666124B (en) * 2020-05-29 2023-10-27 平安科技(深圳)有限公司 Image acquisition device calling method, device, computer device and storage medium
CN115835010A (en) 2020-08-27 2023-03-21 荣耀终端有限公司 Shooting method and terminal
CN112215804B (en) * 2020-09-15 2021-10-15 数坤(北京)网络科技股份有限公司 Data processing method, equipment and computer storage medium
CN116782024A (en) * 2020-09-30 2023-09-19 华为技术有限公司 Shooting method and electronic equipment
CN112948048A (en) * 2021-03-25 2021-06-11 维沃移动通信(深圳)有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN116703791B (en) * 2022-10-20 2024-04-19 荣耀终端有限公司 Image processing method, electronic device and readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018002423A1 (en) * 2016-06-30 2018-01-04 Nokia Technologies Oy Recommendation method and system
CN107995422A (en) * 2017-11-30 2018-05-04 广东欧珀移动通信有限公司 Image capturing method and device, computer equipment, computer-readable recording medium
CN108076268A (en) * 2016-11-15 2018-05-25 谷歌有限责任公司 The equipment, system and method for auto-focusing ability are provided based on object distance information
CN108702452A (en) * 2017-06-09 2018-10-23 华为技术有限公司 A kind of image capturing method and device
CN110225244A (en) * 2019-05-15 2019-09-10 华为技术有限公司 A kind of image capturing method and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006287814A (en) * 2005-04-04 2006-10-19 Fuji Photo Film Co Ltd Imaging apparatus and method of determining motion vector
JP2009152827A (en) * 2007-12-20 2009-07-09 Nikon Corp Image processing method for time-lapse image, image processing program, and image processor
CN105391940B (en) * 2015-11-05 2019-05-28 华为技术有限公司 A kind of image recommendation method and device
CN106303250A (en) * 2016-08-26 2017-01-04 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN107197170A (en) * 2017-07-14 2017-09-22 维沃移动通信有限公司 A kind of exposal control method and mobile terminal
CN108182031A (en) * 2017-12-28 2018-06-19 努比亚技术有限公司 A kind of photographic method, terminal and computer readable storage medium
CN108629814B (en) * 2018-05-14 2022-07-08 北京小米移动软件有限公司 Camera adjusting method and device
CN109002243B (en) * 2018-06-28 2021-06-29 维沃移动通信有限公司 Image parameter adjusting method and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018002423A1 (en) * 2016-06-30 2018-01-04 Nokia Technologies Oy Recommendation method and system
CN108076268A (en) * 2016-11-15 2018-05-25 谷歌有限责任公司 The equipment, system and method for auto-focusing ability are provided based on object distance information
CN108702452A (en) * 2017-06-09 2018-10-23 华为技术有限公司 A kind of image capturing method and device
CN107995422A (en) * 2017-11-30 2018-05-04 广东欧珀移动通信有限公司 Image capturing method and device, computer equipment, computer-readable recording medium
CN110225244A (en) * 2019-05-15 2019-09-10 华为技术有限公司 A kind of image capturing method and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116723415A (en) * 2022-10-20 2023-09-08 荣耀终端有限公司 Thumbnail generation method and terminal equipment
CN116723415B (en) * 2022-10-20 2024-04-19 荣耀终端有限公司 Thumbnail generation method and terminal equipment
CN116320716A (en) * 2023-05-25 2023-06-23 荣耀终端有限公司 Picture acquisition method, model training method and related devices
CN116320716B (en) * 2023-05-25 2023-10-20 荣耀终端有限公司 Picture acquisition method, model training method and related devices

Also Published As

Publication number Publication date
CN110225244A (en) 2019-09-10
CN110225244B (en) 2021-02-09

Similar Documents

Publication Publication Date Title
WO2020228792A1 (en) Image capture method and electronic device
WO2021093793A1 (en) Capturing method and electronic device
WO2021052232A1 (en) Time-lapse photography method and device
WO2020259038A1 (en) Method and device for capturing images
WO2020233553A1 (en) Photographing method and terminal
EP3893491A1 (en) Method for photographing the moon and electronic device
EP3979100A1 (en) Image display method and electronic device
WO2020073959A1 (en) Image capturing method, and electronic device
WO2021129198A1 (en) Method for photography in long-focal-length scenario, and terminal
WO2021213341A1 (en) Video photographing method and electronic device
WO2021143269A1 (en) Photographic method in long focal length scenario, and mobile terminal
WO2023015981A1 (en) Image processing method and related device therefor
WO2021190613A1 (en) Photographic method and device
WO2019183775A1 (en) Intelligent assistant control method and terminal device
WO2021057752A1 (en) Image preferential selection method and electronic device
WO2022228274A1 (en) Preview image display method in zoom photographing scenario, and electronic device
CN113497881A (en) Image processing method and device
WO2022266907A1 (en) Processing method, terminal device and storage medium
CN113660408B (en) Anti-shake method and device for video shooting
CN112150499A (en) Image processing method and related device
CN112840642A (en) Image shooting method and terminal equipment
CN113630558A (en) Camera exposure method and electronic equipment
WO2024045661A1 (en) Image processing method and electronic device
US20230370718A1 (en) Shooting Method and Electronic Device
WO2023160224A9 (en) Photographing method and related device

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20805423

Country of ref document: EP

Kind code of ref document: A1