WO2019227281A1 - 一种拍摄的方法及电子设备 - Google Patents

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

Info

Publication number
WO2019227281A1
WO2019227281A1 PCT/CN2018/088677 CN2018088677W WO2019227281A1 WO 2019227281 A1 WO2019227281 A1 WO 2019227281A1 CN 2018088677 W CN2018088677 W CN 2018088677W WO 2019227281 A1 WO2019227281 A1 WO 2019227281A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
electronic device
touch screen
mobile phone
user
Prior art date
Application number
PCT/CN2018/088677
Other languages
English (en)
French (fr)
Inventor
蒋进
李颖
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2018/088677 priority Critical patent/WO2019227281A1/zh
Priority to PCT/CN2018/092873 priority patent/WO2019227553A1/zh
Priority to CN201880093594.1A priority patent/CN112136100A/zh
Priority to CN202310829423.3A priority patent/CN116931666A/zh
Priority to CN202311855276.3A priority patent/CN117880415A/zh
Priority to US17/058,804 priority patent/US11811961B2/en
Priority to PCT/CN2018/103662 priority patent/WO2019227752A1/zh
Priority to CN202111525871.1A priority patent/CN114401336B/zh
Priority to CN201880063475.1A priority patent/CN111164539A/zh
Priority to EP18920362.3A priority patent/EP3779643B1/en
Priority to CN202210843023.3A priority patent/CN115390620B/zh
Publication of WO2019227281A1 publication Critical patent/WO2019227281A1/zh
Priority to US18/312,320 priority patent/US20230275985A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1643Details related to the display arrangement, including those related to the mounting of the display in the housing the display being associated to a digitizer, e.g. laptops that can be used as penpads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1647Details related to the display arrangement, including those related to the mounting of the display in the housing including at least an additional display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1686Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being an integrated camera
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1694Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a single or a set of motion sensors for pointer control or gesture input obtained by sensing movements of the portable computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/633Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2200/00Indexing scheme relating to G06F1/04 - G06F1/32
    • G06F2200/16Indexing scheme relating to G06F1/16 - G06F1/18
    • G06F2200/161Indexing scheme relating to constructional details of the monitor
    • G06F2200/1614Image rotation following screen orientation, e.g. switching from landscape to portrait mode
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2200/00Indexing scheme relating to G06F1/04 - G06F1/32
    • G06F2200/16Indexing scheme relating to G06F1/16 - G06F1/18
    • G06F2200/163Indexing scheme relating to constructional details of the computer
    • G06F2200/1637Sensing arrangement for detection of housing movement or orientation, e.g. for controlling scrolling or cursor movement on the display of an handheld computer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/16Details of telephonic subscriber devices including more than one display unit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Definitions

  • the present application relates to the technical field of terminals, and in particular, to a photographing method and an electronic device.
  • This application provides a photographing method and an electronic device, which helps to improve the interaction between the user and the electronic device to a certain extent, thereby improving the user experience.
  • a shooting method is applied to an electronic device.
  • the electronic device includes a first touch screen, a first camera, and a second camera.
  • the first touch screen and the first camera are located on a first surface of the electronic device.
  • the second camera is located on the second side of the electronic device, and the first side and the second side are different.
  • the method includes: the first touch screen displays a main interface including a camera icon on the main interface; An operation; in response to the first operation, displaying a first user interface on the first touch screen, the first user interface including a first preview box, and the first preview box displays an image collected by the first camera; if the face image is displayed on the first
  • the preview box in response to the electronic device detecting that the electronic device is rotated and the face image is not displayed in the first preview box, turns on the second camera.
  • the electronic device since the electronic device can automatically turn on the second camera in response to the rotation and the face is not displayed in the first preview frame, it helps to improve the interaction between the user and the electronic device, thereby improving the user experience.
  • the electronic device is a mobile phone
  • the first camera is the front camera of the mobile phone
  • the second camera is the rear camera of the mobile phone.
  • the mobile phone can automatically open the rear camera, so that the user can use the rear camera to take selfies without operating the mobile phone, thereby improving the user experience.
  • the first camera is a front camera and the second camera is a rear camera
  • the first side is the front of the phone
  • the second side is the back of the phone.
  • the first camera is a rear camera and the second camera is a front camera
  • the first side is the back of the mobile phone and the second side is the front of the mobile phone.
  • the first camera in response to the first operation, the first camera is turned on.
  • the electronic device further includes a second touch screen, and the second touch screen is located on the second surface; and in response to the electronic device detecting that the electronic device is rotated and the face image is moved out of the first preview frame, a second touch screen is displayed.
  • Two user interfaces or after the second camera is turned on, in response to the electronic device detecting that the image collected by the second camera includes a face image, displaying the second user interface on the second touch screen; wherein the second user interface includes the first Two preview boxes, and the second preview box displays the images collected by the second camera.
  • the above technical solution helps the user to check the shooting effect through the second user interface when taking a selfie.
  • the first touch screen in response to the electronic device detecting that the electronic device is rotated and the facial image moves out of the first preview box, the first touch screen is turned off; or in response to the electronic device detecting that the image captured by the second camera includes a facial image To close the first touch screen.
  • the second operation is to generate and save a first target picture according to at least one frame of images captured by the first camera and at least one frame of images collected by the second camera, and the image displayed in the first target picture includes at least one frame collected by the first camera The image and at least one frame of image acquired by the second camera.
  • the first camera is turned off in response to the electronic device detecting that the electronic device is rotated and the facial image moves out of the first preview frame; or in response to the electronic device detecting that the image captured by the second camera includes a facial image , Turn off the first camera.
  • a second target picture is generated and saved, and the image displayed in the second target picture is the second The image displayed in the preview box.
  • the second touch screen in response to the electronic device detecting a fourth operation of the user on the second touch screen, the second touch screen is turned off; the fourth operation is a user operation on the icon displayed on the second user interface, or a preset Gesture operation.
  • the facial image is displayed in the first preview frame, and when the facial image is the target facial image, in response to the electronic device detecting that the electronic device is rotated and the facial image is not displayed in the first preview frame, open the first Two cameras.
  • the target facial image may be a facial image of a holder of the electronic device.
  • an electronic device in a second aspect, includes a touch screen, a camera, a processor, and a memory; wherein the memory is used to store one or more computer programs; and when the memory stores one or more computers
  • the electronic device can implement the first aspect of the embodiments of the present application and any possible technical solution of the first aspect.
  • a chip according to an embodiment of the present application the chip is coupled to a memory in an electronic device, and executes the first aspect of the embodiments of the present application and any possible technical solution of the first aspect.
  • “coupled” means that two components are directly or indirectly combined with each other.
  • a computer storage medium includes a computer program, and when the computer program runs on an electronic device, the electronic device executes the first aspect of the embodiment of the application and Any possible technical solution of the first aspect.
  • a computer program product in an embodiment of the present application when the computer program product runs on an electronic device, causes the electronic device to execute the first aspect of the embodiments of the present application and any of the first aspect of the first aspect. Designed technical solutions.
  • FIG. 1 is a schematic structural diagram of a possible mobile phone applicable to this application;
  • FIG. 1 is a schematic structural diagram of a possible mobile phone applicable to this application;
  • FIG. 2 is a schematic diagram of a possible graphical user interface in this application.
  • FIG. 3 is a schematic diagram of a possible user interface of a camera application in this application.
  • FIG. 4 is a schematic diagram of the front and back of a possible mobile phone of the present application.
  • FIG. 5 is a schematic diagram of a possible application scenario of the present application.
  • FIG. 6 is a schematic diagram of rotating a mobile phone of the present application.
  • FIG. 7 is a schematic diagram of a possible setting interface for opening a camera application of the present application.
  • FIG. 8 is a schematic diagram of a possible recognition surface image
  • FIG. 9 is a schematic diagram of the front and back of a possible mobile phone of the present application.
  • FIG. 10 is a schematic diagram of another possible application scenario of the present application.
  • FIG. 11 is a schematic diagram of another possible application scenario of this application.
  • FIG. 13 is a schematic diagram of a setting interface of a camera application of this application.
  • FIG. 14 is a schematic flowchart of a shooting method according to an embodiment of the present application.
  • the application can be applied to an electronic device having a front camera and a rear camera.
  • This embodiment of the present application does not limit the number of front cameras and the number of rear cameras on the electronic device.
  • an electronic device is configured with a front camera and two rear cameras.
  • the electronic device is configured with two front cameras and three rear cameras.
  • the electronic device may be a portable electronic device including functions such as a personal digital assistant and / or a music player, such as a mobile phone, a tablet computer, a wearable device with a wireless communication function (such as a smart watch), and the like.
  • portable electronic devices include, but are not limited to, carrying Or portable electronic devices with other operating systems.
  • the aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer having a touch-sensitive surface (eg, a touch panel), or the like.
  • the above electronic device may not be a portable electronic device, but a desktop computer having a touch-sensitive surface (such as a touch panel).
  • electronic devices support multiple applications. For example, one or more of the following applications: drawing applications, presentation applications, word processing applications, gaming applications, phone applications, video player applications, music player applications, email applications, instant messaging applications, photo management applications, cameras Applications, browser applications, calendar applications, clock applications, payment applications, health management applications, and more.
  • the electronic device is specifically described as an example of a mobile phone having a front camera and a rear camera.
  • FIG. 1 is a schematic structural diagram of a possible mobile phone having a front camera and a rear camera. It should be understood that the illustrated mobile phone 100 is only an example of an electronic device, and the mobile phone 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different Component configuration.
  • the various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
  • the mobile phone 100 may also include one or more processors 101, memory 102, radio frequency (RF) circuits 103, audio circuits 140, speakers 141, microphones 142, touch screen 150, One or more sensors 106, a wireless fidelity (Wi-Fi) device 107, a peripheral interface 108, and a power supply device 109. These components can communicate via one or more communication buses or signal lines (not shown in Figure 1). Those skilled in the art can understand that the hardware structure shown in FIG. 1 does not constitute a limitation on the mobile phone 100.
  • the mobile phone 100 may include more or fewer components than shown in the figure, or some components may be combined, or different components may be arranged. .
  • the processor 101 is the control center of the mobile phone 100, and uses various interfaces and lines to connect various parts of the mobile phone 100.
  • the processor 101 runs or executes an application program (application, App) stored in the memory 102, and calls the stored program in the memory 102.
  • Data and instructions perform various functions of the mobile phone 100 and process data.
  • the processor 101 may automatically control the opening or closing of the front camera and the rear camera.
  • the processor 101 may include one or more processing units.
  • the processor 101 may further integrate an application processor and a modem processor.
  • the application processor mainly deals with the operating system, user interface, and application programs
  • the modem processor mainly deals with wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 101.
  • the processor 101 may be a Kirin 970 chip manufactured by Huawei Technologies Co., Ltd.
  • the processor 101 may further include a fingerprint verification chip for verifying the collected fingerprint.
  • the memory 102 is used to store application programs and data.
  • the memory 102 mainly includes a program storage area and a data storage area.
  • the program storage area can store operating systems and applications required for at least one function (such as sound playback function, image playback function, etc.);
  • the data storage area can store data (such as audio data, telephone, etc.) created when the mobile phone 100 is used. This etc.).
  • the data storage area may further store photos taken by the user, or pictures synthesized based on the photos taken by the user. It should be understood that the photos taken by the user using the mobile phone 100 or photos synthesized based on the photos taken by the user using the mobile phone 100 may also be stored in the cloud.
  • the memory 102 may include a high-speed random access memory, and may also include a non-volatile memory, such as a magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
  • the memory 102 may also store various operating systems, such as those developed by Apple Inc. Operating system, developed by Google Operating system, etc.
  • the RF circuit 103 may be used for receiving and transmitting wireless signals during information transmission or communication. Specifically, the RF circuit 103 may receive the downlink data of the base station and then process the downlink data to the processor 101. In addition, the RF circuit 103 may also send uplink data to the base station. Generally, the RF circuit 103 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and the like. In addition, the RF circuit 103 can also communicate with other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to a global mobile communication system, a general packet wireless service, code division multiple access, broadband code division multiple access, long-term evolution, email, short message service, and the like.
  • the audio circuit 140, the speaker 141, and the microphone 142 may provide an audio interface between the user and the mobile phone 100.
  • the audio circuit 140 may transmit the received electrical data converted electrical signal to the speaker 141, and the speaker 141 converts it into a sound signal for output.
  • the microphone 142 converts the collected sound signal into an electrical signal, and the audio circuit 140 After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 103 for transmission to, for example, a mobile phone, or the audio data is output to the memory 102 for further processing.
  • the touch screen 150 may include a touch-sensitive surface 151 and a display 152.
  • the touch-sensitive surface 151 (for example, a touch panel) can capture a touch event on or near the user of the mobile phone 100 (for example, the user uses a finger, a stylus, or any suitable object on the touch-sensitive surface 151 or the touch-sensitive surface). Near the surface 151), and send the collected touch information to other devices such as the processor 101.
  • the touch event of the user near the touch-sensitive surface 151 may be referred to as a floating touch.
  • Hover touch can mean that the user does not need to directly touch the touchpad in order to select, move, or drag an object (such as an App icon), but only needs to be located near the electronic device in order to perform the desired function.
  • touch In the application scenario of hovering touch, the terms “touch”, “contact”, and the like do not imply a direct contact with the touch screen 150, but a contact near or close to it.
  • the touch-sensitive surface 151 capable of floating touch can be implemented using a capacitive type, an infrared light sensor, and an ultrasonic wave.
  • the touch-sensitive surface 151 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and then When sent to the processor 101, the touch controller may also receive and execute instructions sent by the processor 101. In addition, various types such as resistive, capacitive, infrared, and surface acoustic waves can be used to implement the touch-sensitive surface 151.
  • the display (also referred to as a display screen) 152 may be used to display information input by the user or information provided to the user, as well as various graphical user interfaces (GUIs).
  • GUIs graphical user interfaces
  • the display 152 may display photos or videos.
  • the display 152 may display a graphical user interface as shown in FIG. 2.
  • the graphical user interface shown in FIG. 2 includes a status bar 201, a hideable navigation bar 202, a time and weather widget 203, and an icon of an application, such as an icon 204 of a camera.
  • the status bar 201 includes the operator name (such as China Mobile), mobile network (such as 4G), time, and remaining power.
  • the navigation bar 202 includes a back button icon, a home button icon, and a forward button icon.
  • the status bar 201 may further include a Bluetooth icon, a Wi-Fi icon, an external device icon, and the like.
  • the graphical user interface shown in FIG. 2 may further include a Dock bar, and the Dock bar may include commonly used application icons and the like.
  • the processor 101 detects the first operation of the camera icon 204 by the user, it responds to the first With one operation, the user interface of the camera application is displayed on the display 152.
  • the first operation performed by the user on the camera icon 204 may be an operation that the user clicks or touches the camera icon 204, or may be a user ’s touch operation above the camera icon 204, which is not limited.
  • the mobile phone 100 may also turn on the default camera in response to the first operation.
  • the default camera of the mobile phone 100 may be a rear camera.
  • the default camera of the mobile phone 100 may be a front camera.
  • the user interface of the camera application may be as shown in FIG. 3.
  • the user interface includes a shooting icon 300, an album icon 301, a camera flip icon 302, a preview frame 303, a flash icon 304, a moving image shooting icon 305, a beautification picture icon 306, a delayed shooting icon 307, and a setting icon 308.
  • the preview frame 303 displays an image collected by the front camera.
  • the facial image 309 is displayed in the preview frame 303.
  • the image displayed in the preview frame 303 can also be referred to as a shooting preview image, and the user can view the shooting effect by shooting the preview image.
  • the display 152 may include a display controller and a display device.
  • the display controller is configured to receive signals or data sent by the processor 101 to drive a corresponding interface to be displayed on the display device.
  • a display device may be configured by using an LCD (liquid crystal display, liquid crystal display, or organic light-emitting diode, OLED), etc.
  • LCD liquid crystal display, liquid crystal display, or organic light-emitting diode, OLED
  • AMOLED active matrix organic light-emitting diode
  • the touch-sensitive surface 151 may be covered on the display 152.
  • the touch-sensitive surface 151 detects a touch event on or near the touch-sensitive surface 151, it is transmitted to the processor 101 to determine the type of the touch event, and the processor 101 may then The type of touch event provides a corresponding visual output on the display 152.
  • the touch-sensitive surface 151 and the display 152 are implemented as two separate components to implement the input and output functions of the mobile phone 100, in some embodiments, the touch-sensitive surface 151 and the display 152 may be integrated to implement Input and output functions of the mobile phone 100. It can be understood that the touch screen 150 is formed by stacking multiple layers of materials.
  • the touch-sensitive surface 151 may be covered on the display 152, and the size of the touch-sensitive surface 151 is larger than the size of the display 152, so that the display 152 is entirely covered under the touch-sensitive surface 151, or,
  • the above touch-sensitive surface 151 may be configured on the front surface of the mobile phone 100 in the form of a comprehensive board, that is, a user's touch on the front surface of the mobile phone 100 can be perceived by the mobile phone, so that a full touch experience on the front of the mobile phone can be realized.
  • the touch-sensitive surface 151 is configured on the front of the mobile phone 100 in the form of a full board, and the display 152 may also be configured on the front of the mobile phone 100 in the form of a full board. In this way, a borderless structure.
  • the touch screen 150 may further include a series of pressure sensor arrays, so that the mobile phone can sense the pressure applied to the touch screen 150 by a touch event.
  • the light sensor may include an ambient light sensor and a proximity sensor.
  • the ambient light sensor may adjust the brightness of the display of the touch screen 150 according to the brightness of the ambient light.
  • the proximity sensor may turn off the power of the display when the mobile phone 100 is moved to the ear.
  • an accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. It can be used to identify the attitude of the mobile phone (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap) and so on.
  • Other sensors such as a gyroscope, can be used to detect the angle of rotation of the mobile phone 100 about a fixed point or axis.
  • the sensor 106 may further include a fingerprint sensor.
  • a fingerprint sensor may be configured on the back of the mobile phone 100 (for example, below the rear camera), or a fingerprint sensor may be configured on the front of the mobile phone 100 (for example, below the touch screen 150).
  • the fingerprint recognition function can also be implemented by configuring a fingerprint sensor in the touch screen 150, that is, the fingerprint sensor can be integrated with the touch screen 150 to implement the fingerprint recognition function of the mobile phone 100.
  • the fingerprint sensor may be configured in the touch screen 150, may be a part of the touch screen 150, or may be configured in the touch screen 150 in other ways.
  • the fingerprint sensor can also be implemented as a full-board fingerprint sensor.
  • the touch screen 150 can be regarded as a panel that can be used for fingerprint collection at any position.
  • the fingerprint sensor may process the collected fingerprint (for example, verify the collected fingerprint), and send the fingerprint processing result (for example, whether the fingerprint is verified to pass) to the processor 101, and the processor 101 Make corresponding processing according to the fingerprint processing results.
  • the fingerprint sensor may also send the collected fingerprint to the processor 101, so that the processor 101 processes the fingerprint (for example, fingerprint verification, etc.).
  • the fingerprint sensor in the embodiments of the present application may use any type of sensing technology, including but not limited to optical, capacitive, piezoelectric, or ultrasonic sensing technologies.
  • the mobile phone 200 may be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein.
  • the Wi-Fi device 107 is configured to provide the mobile phone 100 with network access that complies with Wi-Fi related standard protocols.
  • the mobile phone 100 can access the Wi-Fi access point through the Wi-Fi device 107, thereby helping users to send and receive emails, browse web pages, and access streaming media. It provides users with wireless broadband Internet access.
  • the Wi-Fi device 107 can also be used as a Wi-Fi wireless access point, and can provide Wi-Fi network access for other electronic devices.
  • the peripheral interface 108 is used to provide various interfaces for external input / output devices (such as a keyboard, a mouse, an external display, an external memory, a user identification module card, etc.).
  • external input / output devices such as a keyboard, a mouse, an external display, an external memory, a user identification module card, etc.
  • the mouse is connected through a universal serial bus interface
  • the SIM card provided by the operator is connected through the metal contacts on the card slot of the user identification module.
  • the peripheral interface 108 may be used to couple the above-mentioned external input / output peripherals to the processor 101 and the memory 103.
  • the mobile phone 100 may further include a power supply device 109 (such as a battery and a power management chip) for supplying power to various components.
  • a power supply device 109 such as a battery and a power management chip
  • the battery may be logically connected to the processor 101 through the power management chip, so that the power supply device 109 can be used to manage charging, discharging, and power management And other functions.
  • the mobile phone 100 may further include a Bluetooth device, a positioning device, a flash, a micro-projection device, a near field communication (NFC) device, and the like, which are not described herein.
  • the front camera may be used to capture facial feature information, and the processor 101 may perform face recognition on the facial feature information, and then perform subsequent processing.
  • the following embodiments can all be implemented in an electronic device (such as a mobile phone 100, a tablet computer, etc.) having the above-mentioned hardware structure.
  • the mobile phone 100 can automatically switch the front camera and the rear camera.
  • a method for automatically switching the front camera and the rear camera of the mobile phone 100 will be specifically described below with a touch screen configured on the front of the mobile phone 100 and no touch screen on the back of the mobile phone 100 as an example.
  • the touch screen on the front of the mobile phone 100 is the touch screen 150.
  • the schematic diagram of the front can be shown as A in FIG. 4.
  • the front of the mobile phone 100 shown in A in FIG. 4 includes a front camera 410, a touch screen 430, and a home button 420.
  • the home button 420 is used to return to the main interface.
  • the home (home screen) key 420 may not be configured on the front of the mobile phone 100.
  • a navigation bar is added to the user interface displayed on the mobile phone 100, and a home button icon is set in the navigation bar.
  • the schematic diagram on the back can be shown as B in FIG. 4.
  • the back of the mobile phone 100 shown in B in FIG. 4 includes a rear camera 440 and a fingerprint sensor 450.
  • the back of the mobile phone 100 may not include a fingerprint sensor, which is not limited.
  • the icons of the applications in the user interface displayed on the touch screen 430 include a mail icon, a short message icon, a gallery icon, a WeChat icon, a phone icon, a setting icon, a camera icon, and a calendar icon. If the mobile phone 100 detects a user's operation of touching the camera icon, in response to the user's operation of touching the camera icon, the rear camera 440 is turned on, and the user interface displayed by the mobile phone 100 shown in B in FIG. 5 is displayed. The displayed image is an image collected by the rear camera 440.
  • the mobile phone 100 faces the user on the front, the front camera 410 is turned off, the rear camera 440 is turned on, and the preview box 460 displays the image collected by the rear camera 440 (for example, the image collected by the rear camera 440 can be previewed as shown in FIG. 5B In the case of the image displayed in frame 460), if it is detected that the user touches the icon 302, in response to the user touching the icon 302, the rear camera 440 is turned off and the front camera 410 is turned on.
  • the image collected by the front camera 410 is displayed in the preview frame 460.
  • the image collected by the front camera 410 is the face image 470 shown in C in FIG. 5, and the face image 470 is displayed in the preview frame 460.
  • the facial image 470 may be a facial image of a user who operates the mobile phone 100 or a facial image of a user other than the user who operates the mobile phone 100, which is not limited thereto.
  • the facial image 470 as the facial image of a user operating the mobile phone 100 as an example
  • the mobile phone 100 displays a user interface as shown in C in FIG. 5
  • the mobile phone 100 faces the user with the front camera 410 turned on and the rear camera 440 Off
  • the touch screen 460 displays the user interface of the camera application
  • the user interface of the camera application includes a preview frame 460
  • the preview frame 460 displays a facial image 470 collected by the front camera.
  • the user uses the front camera 410 of the mobile phone 100 to take a selfie.
  • the selfie can be a photo or a video, which is not limited.
  • the mobile phone 100 can automatically switch the front camera in one of the following ways To the rear camera.
  • Method 1 The mobile phone 100 turns on the rear camera 440 after detecting that the rotation angle is not less than a preset angle.
  • the mobile phone 100 may also turn off the front camera 410 after detecting that the rotation angle is not less than a preset angle.
  • the preset angle can be set according to requirements, for example, the preset angle can be 5 degrees, 10 degrees, or 180 degrees. In a case where the preset angle is 180 degrees, the mobile phone 100 turns on the rear camera 440 after detecting that the mobile phone 100 is turned from the front to the user to the back to the user.
  • the mobile phone 100 may detect whether the rotation angle of the mobile phone 100 is not less than a preset angle by using a gyroscope and / or an acceleration sensor. For example, when the gyroscope detects that one side of the mobile phone 100 is an axis and the rotation angle is a preset angle, the mobile phone 100 determines to flip from the front toward the user toward the back toward the user. For example, as shown in A in FIG. 6, the mobile phone 100 can be rotated clockwise with the side 1 as the axis, or as shown in B in FIG. 6, the mobile phone 100 can be rotated counterclockwise with the side 2 as the axis, as shown in FIG. 6. The mobile phone 100 shown in C rotates clockwise with the side 3 as an axis.
  • Method 2 When the mobile phone 100 detects that the mobile phone 100 is rotated and the face image 470 is not displayed in the preview frame 460, the rear camera 440 is turned on. In some embodiments, the front camera 410 may also be turned off in response to the mobile phone 100 being rotated and the facial image 470 not displayed in the preview frame 460. For example, the mobile phone 100 may determine that the mobile phone 100 is rotated after detecting that the rotation angle of the mobile phone 100 is greater than or equal to a preset angle through a gyroscope. The mobile phone 100 may determine whether a facial image 470 is displayed in the preview frame 460 through a face recognition function.
  • the mobile phone 100 detects that the mobile phone 100 is rotated and the face image 470 is not displayed in the preview frame 460, the rear camera 440 is turned on, and the rear camera is turned on In a preset time period of 440, it is detected that the image collected by the rear camera 440 includes a face image 470, and in response to the image collected by the rear camera 440 including a face image 470, the front camera 410 is turned off.
  • the rear camera is turned off 440.
  • the preset duration can be set according to requirements.
  • the preset duration can be 2 seconds, 1 second, or 5 seconds, which is not limited.
  • the user when the user flips the mobile phone 100 from the front to the user and the back to the user, the user can use the rear camera 440 to take a selfie after the mobile phone 100 is turned to the user without the user's operation. Improved intelligent interaction between electronic devices and users.
  • the touch screen 430 may be turned on during the process that the mobile phone 100 is flipped from the front toward the user to the back toward the user and after the mobile phone 100 is turned from the front to the user to the back to the user.
  • the image captured by the rear camera 440 may be displayed on the touch screen 430.
  • the user interface displayed on the touch screen 430 may display the face image 470 in the preview box 460 as shown in FIG. 5E.
  • the mobile phone 100 may also respond to the rotation of the mobile phone 100 and the face image 470 is not displayed in the preview box 460, and the touch screen 430 is turned off; or, the mobile phone 100 detects that It includes a face image 470 and the touch screen 430 is turned off.
  • the user can click or double-click anywhere in the preview frame 460 on the touch screen 430 configured on the front of the mobile phone 100 to perform a shooting operation to obtain Pictures or videos.
  • the user can also click the lower volume button on the side of the mobile phone 100 to perform a shooting operation to obtain a captured picture or video.
  • the lower volume key is used to decrease the volume set on the mobile phone 100.
  • you can also perform shooting operations by means of voice control, setting time delay, and other methods to obtain captured pictures or videos.
  • the embodiment of the present application does not limit the specific implementation of the shooting operation.
  • an option for automatic camera switching 701 and a virtual button 702 can be added to the setting interface of the camera application.
  • the virtual button 702 is used to enable or disable the function of automatically switching the front and rear cameras. For example, when the virtual button 702 is OFF, when the mobile phone 100 displays the user interface shown in A in FIG. 7 on the touch screen 430, it detects that the user touches or clicks the icon 308, and then responds to the user's touch or click The operation of the icon 308 displays a setting interface of the camera application shown in B in FIG. 7, where the virtual button 702 shown in B in FIG. 7 is turned off. When the virtual button 702 is turned on, the mobile phone 100 can automatically switch from the front camera 410 to the rear camera 440 if the mobile phone 100 flips from the front to the user and back to the user when taking a selfie with the front camera 410.
  • the mobile phone 100 may display the facial image 470 in the preview frame 460
  • the facial image is determined to be the target facial image
  • the facial image 470 is not displayed in the preview Block 460.
  • the rear camera 440 For example, when the face image displayed in the preview box 460 shown in A in FIG. 8 is the same as the face image 800 shown in B in FIG. 8, in response to the mobile phone 100 detecting that the mobile phone 100 is rotated and the face image 470 is not displayed in Preview box 460.
  • the facial image 800 shown in B in FIG. 8 is a target facial image.
  • the target facial image is the face image of the owner of the mobile phone 100.
  • the target facial image may also be a facial image with the highest number of occurrences among pictures stored in the album application of the mobile phone 100.
  • the target facial image may also be a facial image displayed in a picture preset by the user, and the target facial image is not limited.
  • the mobile phone 100 determines that the facial image 460 displayed in the preview frame 406 is the target facial image, it can also automatically turn on the beauty function (such as freckle, acne, microdermabrasion, etc.) .
  • the beauty function such as freckle, acne, microdermabrasion, etc.
  • the touch screen 150 includes a touch screen on the front of the mobile phone 100 and a touch screen on the back of the mobile phone 100.
  • the front schematic diagram may be shown as A in FIG. 9.
  • the front of the mobile phone 100 shown in A in FIG. 9 includes a front camera 910, a touch screen 930, and a home button 920.
  • the home button 920 is used to return to the main interface.
  • the home (home screen) key 920 may not be configured on the front of the mobile phone 100.
  • a navigation bar is added to the user interface displayed on the mobile phone 100, and a home button icon is set in the navigation bar.
  • the schematic diagram on the back can be shown as B in FIG.
  • the back of the mobile phone 100 may further include a fingerprint sensor, which is not limited thereto.
  • the touch screen configured on the front of the mobile phone 100 may also be referred to as a main screen or a front touch screen, and the touch screen configured on the back of the mobile phone 100 may also be referred to as a secondary screen or a rear touch screen.
  • the name of the touch screen is not limited in this application.
  • the front face of the mobile phone 100 faces the user, the front camera 910, the rear camera 940, and the touch screen 950 are all turned off, and the touch screen 930 displays the main interface.
  • the main interface may be the touch screen shown in A in FIG. 10
  • the illustrated main interface includes a mail icon, a short message icon, a gallery icon, a WeChat icon, a phone icon, a settings icon, a camera icon, and a calendar icon, and the camera application is not running in the background.
  • the mobile phone 100 detects the operation of the user touching the camera icon, it may respond to the operation of the user touching the camera icon based on the following manner.
  • Method 1 In response to the user's operation of touching the camera icon, the mobile phone 100 turns on the front camera 910 and displays the user interface of the camera application on the touch screen 930.
  • the user interface of the camera application includes a preview box 960, and the preview box 960
  • the displayed image is the image captured by the front camera 910 (for example, as shown in C in FIG. 10, the image captured by the front camera 910 is a face image 970, and the face image 970 is displayed in the preview frame 960).
  • the mobile phone 100 in response to the operation of the user touching the camera icon, the mobile phone 100 opens the front camera 910 and displays the user interface shown in C in FIG. 10, and can continue to close the rear camera 940 and the touch screen. 950.
  • the mobile phone 100 may turn on the front camera 910 and display the user interface of the camera application on the touch screen 930 in response to the user's operation of touching the camera icon according to the front of the mobile phone 100 facing the user.
  • the user interface of the camera application includes a preview frame 960, and the image collected by the front camera 910 is displayed in the preview frame 960.
  • the mobile phone 100 may determine whether the front side of the mobile phone 100 faces the user or the back side according to information measured by the sensor (for example, angle information measured by a gyroscope).
  • the mobile phone 100 may also turn on one of the front camera 910 and the rear camera 940 after the user touches the camera icon, after turning on at least one of the touch screen 930 and the touch screen 950, and judge according to the image collected by the turned on camera Whether the mobile phone 100 is facing the user. For example, whether the mobile phone 100 has the touch screen 930 or the touch screen 950 turned on, the front camera 910 is turned on. If it is detected that the front camera 910 collects a user's face image, it is determined that the front of the mobile phone 100 is facing the user. If it is detected that the front camera 910 has not captured the user's face image, it is determined that the front of the mobile phone 100 is not facing the user. In order to save power consumption, if the mobile phone 100 does not currently open a camera application, after determining that the front face of the mobile phone 100 is not facing the user, the front camera 910 is turned off.
  • Method 2 In response to the user touching the camera icon, the mobile phone 100 turns on the rear camera 940 and displays the user interface of the camera application on the touch screen 930.
  • the user interface of the camera application includes a preview box 960, and the preview box 960 displays
  • the image collected by the rear camera 940 is, for example, as shown in FIG. 10B, the image displayed by the preview frame 960 is an image collected by the rear camera 940.
  • the mobile phone 100 in response to the operation of the user touching the camera icon, the mobile phone 100 turns on the rear camera 940 and displays the user interface of the camera application shown in B in FIG. 10, and can continue to close the front camera 910 and Touch screen 950.
  • the mobile phone 100 After the mobile phone 100 responds to the operation of the user touching the camera icon in the second way, if the user needs to turn on the front camera 910, he can click the icon 302 to switch the rear camera 940 and the front camera 910. After the mobile phone 100 detects that the user clicks the icon 302, the rear camera 940 is turned off and the front camera 910 is turned on. For example, if the image collected by the front camera 910 is a face image 970 shown in C in FIG. 10, the face image 970 is displayed in the preview frame 960. In this case, in order to save power consumption, the touch screen 950 is kept off in some embodiments.
  • the front camera 910 or the rear camera 940 may be always turned on in this embodiment of the present application.
  • the first method is taken as an example.
  • the mobile phone 100 responds to the user ’s operation of touching the camera icon on the touch screen 930 Display the user interface of the camera application.
  • the front camera 910 When the front of the mobile phone 100 faces the user, the front camera 910 is turned on, and the preview frame 960 displays the face image 970, the rear camera 940, and the touch screen 950 collected by the front camera 910, as shown in FIG. 10, if If the user wants to take a selfie with the rear camera 940, the user can manually turn on the rear camera 940 and the touch screen 950. For example, in the case shown by C in FIG. 10, if the mobile phone 100 detects an operation of the user clicking or touching the icon 302, in response to the operation of the user clicking or touching the icon 302, the front camera 910 is switched to the rear camera 940 .
  • the user can turn the mobile phone 100 from the front to the user and the back to the user, and when the mobile phone 100 detects an operation of the user to light up the touch screen 950 (for example, double-click anywhere on the touch screen 950, or other specific operations), the response is The operation of turning on the touch screen 950 by the user turns on the touch screen 950.
  • the touch screen 950 in response to a user's operation of lighting the touch screen 950, after the touch screen 950 is lit, the touch screen 950 may display an image (for example, a facial image 970) collected by the rear camera 940, or may display a main image including an application icon interface. If the touch screen 950 displays a main interface including application icons, the user can click the camera icon to cause the touch screen 950 to display an image collected by the rear camera 940.
  • the front face of the mobile phone 100 faces the user, the front camera 910 is turned on, and the shooting preview area 960 displays the user's avatar 970 and the rear camera collected by the front camera 910.
  • the 940 and the touch screen 950 are turned off, in order to allow the user to take a selfie with the rear camera, simplifying the user's operation of the mobile phone 100, if the mobile phone 100 is turned from the front to the user and the back to the user, until the back of the mobile phone 100 is directed to the user
  • the mobile phone 100 can automatically switch the front camera to the rear camera in the following manner.
  • Method A After detecting that the rotation angle of the mobile phone 100 is not less than a preset angle, the mobile phone 100 turns on the rear camera 940.
  • the preset angle can be set according to requirements, for example, the preset angle can be 5 degrees, 10 degrees, 12 degrees, or 180 degrees.
  • the preset angle is 180 degrees, the mobile phone 100 turns on the rear camera 940 after turning from the front to the user to the back to the user.
  • Method B When the mobile phone 100 detects that the mobile phone 100 is rotated and the facial image 970 is not displayed in the preview frame 960, the rear camera 940 is turned on. In some embodiments, if the mobile phone 100 detects that the rear camera 940 collects a facial image 970 within a preset time period after the rear camera 940 is turned on, it is determined that the mobile phone 100 is flipped from the front to the user toward the back toward the user. It is detected that the rear camera 940 does not capture a facial image 970, and the rear camera 940 is turned off. It can be understood that the preset duration can be set according to requirements. For example, the preset duration can be 2 seconds, 1 second, or 5 seconds, which is not limited.
  • the mobile phone 100 can turn on the rear camera 940, turn off the front camera 910, and turn off the touch screen 930, turn on the touch screen 950, and display the rear camera 940 on the touch screen 950.
  • Image In order to further reduce power consumption, the mobile phone 100 can turn on the front camera 940, turn off the front camera 910, and turn off the touch screen 930, and turn on the touch screen 950 when the rear camera 940 collects a facial image 970, and turn on the touch screen 950
  • the image collected by the rear camera 940 is displayed. Wherein, as shown by D1 in FIG.
  • FIG. 10 it is a schematic diagram of the front and the back of the mobile phone 100 after being turned from the front to the user to the back to the user.
  • the touch screen 930 is turned off, and the front camera 910 is turned on or off.
  • the rear camera 940 is turned on, and the touch screen 950 displays a facial image 970 collected by the rear camera 940.
  • the mobile phone 100 may also turn on the touch screen 950 while turning on the rear camera 940, and continue to turn on the front camera 910 and turn on the touch screen 930.
  • the touch screen 950 displays the image collected by the rear camera 940
  • the touch screen 930 displays the image collected by the front camera 910.
  • D2 in FIG. 10 it is a schematic diagram of the front and the back after the mobile phone 100 is turned from the front to the user to the back to the user.
  • the front camera 910 is turned on the front of the mobile phone 100, the front camera 910 is turned on, and the touch screen 950 displays an image collected by the front camera 910.
  • the rear camera 940 is turned on, and the touch screen 950 displays a facial image 970 collected by the rear camera 940.
  • the mobile phone 100 may also turn on the touch screen 950 while turning on the rear camera 940, and continue to turn on the front camera 910 and turn off the touch screen 930.
  • the front camera 910 and the rear camera 940 are turned on at the same time in the above manner, during the process of the mobile phone 100 flipping from the front to the user toward the back, the front camera 910 captures the collected multiple frames of images, and the rear camera 940 captures The collected multi-frame images, and then the mobile phone 100 may respond to the shooting operation (for example, the shooting operation may be an operation of a user touching a quick shooting button or icon, or a voice-activated operation, etc., which is not limited), and the shooting is based on the front camera 910 The captured multi-frame image and the captured multi-frame image taken by the rear camera 940 to synthesize a picture and save the picture.
  • the shooting operation may be an operation of a user touching a quick shooting button or icon, or a voice-activated operation, etc., which is not limited
  • the synthesized picture includes the information of the multi-frame image taken by the front camera 910 and Information about multiple frames of images captured by the rear camera 940.
  • the mobile phone 100 may delete the collected multi-frame images captured by the front camera 910 and the collected multi-frame images captured by the rear camera 940 after synthesizing pictures.
  • the mobile phone 100 may respond to the shooting operation according to the current front camera when detecting that the mobile phone 100 is flipped from the front to the user to the back.
  • the image collected by 910 and the image collected by the rear camera 940 are combined into a picture, where the picture includes information of the image collected by the current front camera 910 and the image collected by the rear camera 940.
  • the touch screen 930 of the mobile phone 100 displays a user interface of a camera application
  • the user interface of the camera application includes a preview frame 960
  • the rear camera 940 is displayed in the preview frame 960 to capture data.
  • the mobile phone 100 can respond to the rotation of the mobile phone 100, and the image collected by the rear camera 940 is not displayed in the preview box 960, and the touch screen 950 is lit, so that the touch screen 950 displays the user interface of the camera application, where the user of the camera application
  • the interface includes a preview frame in which the image collected by the rear camera 950 is displayed.
  • the mobile phone 100 may also respond to the rotation of the mobile phone 100, and the image collected by the rear camera 940 is not displayed in the preview frame 960, and the touch screen 930 is turned off.
  • the touch screen 930 and the touch screen 950 are both turned off, and the front camera 910 and the rear camera 940 are both turned off, if the mobile phone 100 detects the user's gesture operation on the touch screen 950 , It can respond to the gesture operation of the user based on the following manner.
  • the gesture operation of the user may be double-tap, circle drawing, three-finger sliding up, pressing, etc., which is not limited thereto.
  • Method a In response to a user's gesture operation, the mobile phone 100 lights up the touch screen 950 and displays a main interface including application icons on the touch screen 950.
  • the main interface displayed on the touch screen 950 includes an operator ( (Such as China Mobile), mobile network (such as 4G), application icons (such as camera icons), time and power.
  • other icons can be included, such as the wifi icon.
  • the interface includes operators (such as China Mobile), mobile networks (such as 4G), application icons (such as camera icons), time and power.
  • Method b In response to the user's gesture operation, the mobile phone 100 turns on the rear camera 940 and displays the image collected by the rear camera 940 on the touch screen 950, wherein the touch screen 930 and the front camera 910 are kept off at all times.
  • the mobile phone 100 responds to a user's gesture operation, and the front and back of the mobile phone 100 are shown as C in FIG. 11. Specifically, the face image 970 collected by the rear camera 940 displayed on the touch screen 950 shown in C in FIG. 11, the front of the mobile phone 100, the touch screen 930 and the front camera 910 continue to be turned off.
  • the mobile phone 100 may turn on the rear camera 940 in response to the gesture operation of the user according to the back of the mobile phone 100 facing the user, and display the image collected by the rear camera 940 on the touch screen 950.
  • the mobile phone 100 may determine whether the front side of the mobile phone 100 faces the user or the rear side according to information measured by the sensor (for example, angle information measured by a gyroscope).
  • the mobile phone 100 may also turn on one of the front camera 910 and the rear camera 940 when at least one of the touch screen 930 and the touch screen 950 is turned on, and determine whether the mobile phone 100 is facing the user according to the image collected by the opened camera.
  • the mobile phone 100 turns on the rear camera 940 whether the touch screen 930 or the touch screen 950 is turned on. If it is detected that the rear camera 940 collects a facial image, it is determined that the back of the mobile phone 100 faces the user. If it is detected that the avatar of the user is not collected by the rear camera 940, it is determined that the back of the mobile phone 100 is not facing the user. To save power consumption, if the mobile phone 100 is not currently open with the camera application, the rear camera 910 is turned off.
  • the mobile phone 100 responds to the user's gesture operation in the manner a, if the main interface displayed on the touch screen 950 is the main interface as shown in B in FIG. 11, the mobile phone 100 detects that the user touches the camera. After the operation of the icon, in response to the operation of the user touching the camera icon, the rear camera 940 is turned on, and the image collected by the rear camera 940 is displayed on the touch screen 950. The front camera 910 and the touch screen 930 remain off. For example, as shown in b in FIG. 11, when the image captured by the rear camera 940 is a face image 970, the face image 970 is displayed on the touch screen 970.
  • the back of the mobile phone 100 faces the user, the touch screen 930 is turned off, the front camera 910 is turned off, the rear camera 940 is turned on, the touch screen 950 is turned on, and the face image collected by the rear camera 940 is displayed on the touch screen 950
  • the mobile phone 100 can automatically switch the rear camera 940 to the front camera 910.
  • the manner in which the mobile phone 100 automatically switches the rear camera 940 to the front camera 910 may be similar to the manner in which the mobile phone 100 automatically switches the front camera 910 to the rear camera 940, which is not repeated here.
  • D1 in FIG. 11 is a schematic diagram of the front and back of the mobile phone 100 after the mobile phone 100 is turned from the back to the user to the front to the user.
  • the front camera 910 is turned on, the touch screen 930 is lit, and the user interface of the camera application is displayed on the touch screen 930.
  • the user interface of the camera application includes a preview box 960 and a preview box 960.
  • the displayed face image 970 collected by the front camera 910 is turned off, and the touch screen 950 is turned off.
  • the rear camera 940 may be always on or may be off, which is not limited.
  • FIG. 11 is a schematic diagram of the front and back of the mobile phone 100 after the mobile phone 100 is turned from the back to the user to the front to the user.
  • the front camera 910 is turned on, the touch screen 930 is lit, and the user interface of the camera application is displayed on the touch screen 930.
  • the user interface of the camera application includes a preview box 960, where the preview box 960 displays The facial image 970 collected by the front camera 910.
  • the rear camera 940 is turned on, the touch screen 950 is lit, and the touch screen 950 displays images collected by the rear camera 940.
  • the mobile phone 100 can detect a gesture operation of the user on the touch screen 950 ( (Eg, double-click, slide up, slide down, etc.), in response to a user's gesture operation on the touch screen 950, turn on the rear camera 940, and light up the touch screen 950, and display the facial image collected by the rear camera 940 on the touch screen 950.
  • a gesture operation of the user on the touch screen 950 (Eg, double-click, slide up, slide down, etc.)
  • the mobile phone 100 can detect a gesture operation of the user on the touch screen 950 (Eg, double-click, slide up, slide down, etc.), in response to a user's gesture operation on the touch screen 950, turn on the rear camera 940, and light up the touch screen 950, and display the facial image collected by the rear camera 940 on the touch screen 950.
  • a shooting icon 1202 can be added to the interface displaying the user's avatar. If the mobile phone 100 detects the user's operation of clicking or touching the shooting icon 1202, in response to the user's operation of clicking or touching the shooting icon 1202, taking a picture and shooting The resulting photos including facial images are saved to the gallery.
  • the mobile phone 100 may display the face image collected by the rear camera 940 on the touch screen 950 as shown in C in FIG. 12 and the latest photo taken in the gallery 1203. .
  • the mobile phone 100 may respond to a user's operation of clicking or touching the shooting icon 1202. As shown in D in FIG. 12, a facial image collected by the rear camera 940 is displayed on the touch screen 950, and the latest image in the photo gallery 1203 is displayed on the touch screen 930. Photos taken in one shot.
  • the mobile phone 100 can hide the gallery 1203 after the photo taken in the gallery 1203 for the last time is displayed for a preset duration.
  • the mobile phone 100 displays the image collected by the rear camera 940 on the touch screen 950 and the photo gallery 1203 is not displayed. If a preset shortcut gesture operation is detected, the gallery 1203 is displayed on the touch screen 940 within a preset time period. It should be noted that the preset duration can be set according to the user's needs, such as 5 seconds, 10 seconds, and so on.
  • the touch screen 950 displays a facial image collected by the rear camera 940
  • the mobile phone 100 detects a gesture operation of the user (for example, on the touch screen 950 Long press at any position)
  • a gesture operation of the user for example, on the touch screen 950 Long press at any position
  • an icon 1201 is displayed on the touch screen 950, where the icon 1201 is displayed for a preset duration, which can be set according to actual needs, such as 5 Seconds, 6 seconds, etc.
  • the touch screen 950 is turned off.
  • the rear camera 940 can be turned on all the time, and also turned off to save power consumption.
  • the mobile phone 100 responds to the operation of the user touching the icon 1201, turns off the touch screen 950, and turns off the rear camera 940.
  • the mobile phone 100 turns off the rear camera 940 after the touch screen 950 goes out for the first time.
  • the first duration can be preset as required, such as 10 seconds, 60 seconds, and so on.
  • the touch screen 950 and the rear camera 940 can be turned off by clicking or touching the icon 1201.
  • the mobile phone 100 may also turn off the touch screen 950 and turn off the rear screen when it is detected that the user presses the power button or a specific gesture operation (such as sliding up or down) on the touch screen 950.
  • Camera 940 when the back of the mobile phone 100 is facing the user as shown in C in FIG. 11, when the rear camera 940 is turned on, the image collected by the rear camera 940 and the gallery 1203 are displayed on the touch screen 950, the rear camera 940 and the touch screen 950 are turned off.
  • the method is similar to the method of closing the rear camera 940 and the touch screen 950 in the scenario shown in B in FIG. 11, and details are not described herein again.
  • an option for automatic camera switching 1301 and a virtual button 1302 may be added to the camera setting interface.
  • the virtual button 1302 is used to enable or disable the function of automatically switching the front and rear cameras.
  • the setting interface of the camera may be as shown in FIG. 13.
  • the user can enter the camera's setting interface by clicking or touching the setting icon on the camera's user interface, or can enter the camera's setting interface through a specific operation (such as a swipe operation to the right, etc.).
  • the mobile phone 100 may also respond to the mobile phone 100 detecting that the mobile phone 100 is rotated and the facial image 970 collected by the front camera 910 or the rear camera 940 is the target facial image.
  • the face image 970 is not displayed in the preview frame 960.
  • the mobile phone 100 determines that the facial image 460 displayed in the preview frame 406 is the target facial image, it can also automatically turn on the beauty function (such as freckle, acne, microdermabrasion, etc.) .
  • the back of the mobile phone 100 shown in B in FIG. 9 is taken as an example.
  • the touch screen 950 on the back of the mobile phone 100 displays an image collected by the rear camera 940 or the front camera 910 by displaying a preview frame, and the touch screen 950
  • the size of the displayed preview frame may be the same as the size of the touch screen 950 or smaller than the size of the touch screen 950, which is not limited.
  • an embodiment of the present application provides a photographing method, which can be implemented in an electronic device having a hardware structure shown in FIG. 1.
  • the electronic device includes a first touch screen, a first camera, and a second camera.
  • the first touch screen and the first camera are located on the first surface of the electronic device, and the second camera is located on the second surface of the electronic device.
  • the method for screen-off display in the embodiment of the present application may include the following steps:
  • Step 1401 The first touch screen displays a main interface, where the main interface includes a camera icon;
  • Step 1402 Detect a user's first operation on the camera icon
  • Step 1403 In response to the first operation, display a first user interface on the first touch screen.
  • the first user interface includes a first preview frame, and the first preview frame displays an image collected by the first camera.
  • step 1404 if the face image is displayed in the first preview frame, in response to the electronic device detecting that the electronic device is rotated and the face image is not displayed in the first preview frame, the second camera is turned on.
  • the electronic device is a mobile phone
  • the first camera is the front camera of the mobile phone
  • the second camera is the rear camera of the mobile phone.
  • the mobile phone can automatically open the rear camera, so that the user can use the rear camera to take selfies without operating the mobile phone, thereby improving the user experience.
  • the embodiments of the present application may also be applied to a scenario of video communication.
  • a scenario of video communication For example, when the user is using WeChat for video communication, if the user is currently using the front camera to collect facial images, when the user flips the phone from the front to the back, the user can automatically switch the front camera to the rear camera in the manner of the embodiment of this application.
  • the back of the mobile phone includes a touch screen
  • the touch screen on the back of the mobile phone can further display the facial image of the user collected by the rear camera of the mobile phone and the facial image of the other party in the video communication.
  • the terminal device may include a hardware structure and / or a software module, and the functions are implemented in the form of a hardware structure, a software module, or a hardware structure and a software module. Whether one of the above functions is executed by a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application of the technical solution and the design constraint conditions.
  • Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a computer.
  • computer-readable media may include RAM, ROM, electrically erasable programmable read-only memory (EEPROM), read-only memory (CD-ROM), compact disc-read-only memory (CD-ROM) ROM) or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer. Also. Any connection is properly a computer-readable medium.
  • disks and discs include compact discs (CDs), laser discs, optical discs, digital video discs (DVDs), floppy discs, and Blu-ray discs, among which Discs usually reproduce data magnetically, while discs use lasers to reproduce data optically.
  • CDs compact discs
  • DVDs digital video discs
  • floppy discs floppy discs
  • Blu-ray discs among which Discs usually reproduce data magnetically, while discs use lasers to reproduce data optically. The above combination should also be included in the protection scope of the computer-readable medium.

Abstract

一种拍摄的方法及电子设备,涉及终端技术领域,其中该方法应用于电子设备,该电子设备包括第一触摸屏、第一摄像头和第二摄像头,第一触摸屏和第一摄像头位于电子设备的第一面上,第二置摄像头位于电子设备的第二面上,第一面和第二面不同,具体的,该方法包括:第一触摸屏显示主界面,主界面上包括相机图标;检测用户对相机图标的第一操作;响应于第一操作,在第一触摸屏上显示第一用户界面,第一用户界面包括第一预览框,第一预览框中显示第一摄像头采集的图像;若面部图像显示在第一预览框,响应于电子设备检测到电子设备旋转且面部图像不显示在第一预览框,打开第二摄像头。这种技术方案有助于提高用户和电子设备的交互,从而提高用户体验。

Description

一种拍摄的方法及电子设备 技术领域
本申请涉及终端技术领域,特别涉及一种拍摄的方法及电子设备。
背景技术
目前,用户使用电子设备如手机、平板电脑等自拍时,是根据需要手动切换前置摄像头和后置摄像头的,操作起来较为麻烦,降低了用户和电子设备之间的交互。
发明内容
本申请提供了一种拍摄的方法及电子设备,在一定程度上有助于提高用户和电子设备的交互,从而提高用户的体验。
第一方面,本申请实施例的一种拍摄方法,应用于电子设备,该电子设备包括第一触摸屏、第一摄像头和第二摄像头,第一触摸屏和第一摄像头位于电子设备的第一面上,第二置摄像头位于电子设备的第二面上,第一面和第二面不同,其中,该方法包括:第一触摸屏显示主界面,主界面上包括相机图标;检测用户对相机图标的第一操作;响应于第一操作,在第一触摸屏上显示第一用户界面,第一用户界面包括第一预览框,第一预览框中显示第一摄像头采集的图像;若面部图像显示在第一预览框,响应于电子设备检测到电子设备旋转且面部图像不显示在第一预览框,打开第二摄像头。
本申请实施例中由于电子设备能够响应于旋转且面部不显示在第一预览框,自动打开第二摄像头,因此,有助于提高用户和电子设备的交互,从而提高用户体验。
例如,以电子设备为手机、第一摄像头为手机的前置摄像头,第二摄像头为手机的后置摄像头为例,用户使用前置摄像头自拍的情况下,若用户旋转手机,使得用户面对后置摄像头,通过上述方案,则手机可以自动打开后置摄像头,使得用户无需对手机进行操作,即可使用后置摄像头进行自拍,因而提高了用户体验。
还需要说明的是,以手机为例,若第一摄像头为前置摄像头、第二摄像头为后置摄像头,则第一面为手机的正面,第二面为手机的背面。若第一摄像头为后置摄像头、第二摄像头为前置摄像头,则第一面为手机的背面,第二面为手机的正面。
在一种可能的设计中,响应于第一操作,打开第一摄像头。通过上述技术方案,有助于简化实现方式。
在一种可能的设计中,电子设备还包括第二触摸屏,第二触摸屏位于第二面上;响应于电子设备检测到电子设备旋转且面部图像移出第一预览框,在第二触摸屏上显示第二用户界面;或者,在打开第二摄像头之后,响应于电子设备检测到第二摄像头采集到的图像中包括面部图像,在第二触摸屏上显示第二用户界面;其中,第二用户界面包括第二预览框,第二预览框中显示第二摄像头采集的图像。
通过上述技术方案,有助于用户在自拍时通过第二用户界面查看拍摄的效果。
在一种可能的设计中,响应于电子设备检测到电子设备旋转且面部图像移出第一预览框,关闭第一触摸屏;或者,响应于电子设备检测到第二摄像头采集到的图像中包括面部图像,关闭第一触摸屏。
通过上述技术方案,有助于降低电子设备的功耗。
在一种可能的设计中,打开第二摄像头之后,保存从电子设备旋转的过程中第一摄像头采集的至少一帧图像和第二摄像头采集的至少一帧图像;响应于电子设备检测到用户的第二操作,根据第一摄像头采集的至少一帧图像和第二摄像头采集的至少一帧图像,生成第一目标图片并保存,第一目标图片中显示的图像包括第一摄像头采集的至少一帧图像和第二摄像头采集的至少一帧图像。通过上述技术方式,有助于提高照片的拍摄效果。
在一种可能的设计中,生成第一目标图片之后,删除第一摄像头采集的至少一帧图像和第二摄像头采集的至少一帧图像。通过上述技术方案,有助于避免电子设备存储空间的浪费。
在一种可能的设计中,响应于电子设备检测到电子设备旋转且面部图像移出第一预览框,关闭第一摄像头;或者,响应于电子设备检测到第二摄像头采集到的图像中包括面部图像,关闭第一摄像头。通过上述技术方案,有助于进一步降低电子设备的功耗。
在一种可能的设计中,打开第二摄像头,关闭第一摄像头之后,响应于电子设备检测到用户的第三操作,生成第二目标图片并保存,第二目标图片中显示的图像为第二预览框中显示的图像。通过上述技术方案,有助于简化实现拍照的方式。
在一种可能的设计中,响应于电子设备检测到用户在第二触摸屏上的第四操作,关闭第二触摸屏;第四操作为用户对第二用户界面上显示的图标的操作、或者预设的手势操作。通过上述技术方案,有助于简化关闭第二触摸屏的操作的实现方式。
在一种可能的设计中,响应于电子设备检测到用户在第二触摸屏上的第四操作,关闭第二摄像头;或者,在关闭第二触摸屏预设时长后,关闭第二摄像头。通过上述技术方案,有助于简化关闭第二摄像头的操作的实现方式。
在一种可能的设计中,若面部图像显示在第一预览框,且在面部图像为目标面部图像时,响应于电子设备检测到电子设备旋转且面部图像不显示在第一预览框,打开第二摄像头。通过上述技术方案,有助于提高目标面部图像对应的用户与电子设备之间的交互。例如目标面部图像可以为电子设备的持有者的面部图像。
第二方面,本申请实施例的一种电子设备,包括触摸屏、摄像头、处理器和存储器;其中,所述存储器用于存储一个或多个计算机程序;当所述存储器存储的一个或多个计算机程序被所述处理器执行时,使得所述电子设备能够实现本申请实施例第一方面及其第一方面任一可能设计的技术方案。
第三方面,本申请实施例的一种芯片,所述芯片与电子设备中的存储器耦合,执行本申请实施例第一方面及其第一方面任一可能设计的技术方案。本申请实施例中“耦合”是指两个部件彼此直接或间接地结合。
第四方面,本申请实施例的一种计算机存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行本申请实施例第一方面及其第一方面任一可能设计的技术方案。
第五方面,本申请实施例的中一种计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行本申请实施例第一方面及其第一方面任一可能设计的技术方案。
附图说明
图1为本申请适用的一种可能的手机的结构示意图;
图2为本申请中一种可能的图形用户界面的示意图;
图3为本申请中相机应用的一种可能的用户界面示意图;
图4为本申请一种可能的手机的正面和背面的示意图;
图5为本申请一种可能的应用场景示意图;
图6为本申请手机旋转的示意图;
图7为本申请一种可能的打开相机应用的设置界面的示意图;
图8为本申请一种可能识别面图图像的示意图;
图9为本申请一种可能的手机的正面和背面的示意图;
图10为本申请另一种可能的应用场景示意图;
图11为本申请又一种可能的应用场景示意图;
图12为本申请又一种可能的应用场景示意图;
图13为本申请相机应用的设置界面示意图;
图14为本申请实施例拍摄方法的流程示意图。
具体实施方式
本申请可应用于具有前置摄像头和后置摄像头的电子设备中。本申请实施例对电子设备上前置摄像头的个数和后置摄像头的个数不作限定。例如,电子设备上配置有一个前置摄像头和两个后置摄像头。再例如,电子设备上配置有两个前置摄像头和三个后置摄像头。
应理解,电子设备可以是包含诸如个人数字助理和/或音乐播放器等功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(如智能手表)等。便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2018088677-appb-000001
或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是其它便携式电子设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(laptop)等。还应当理解的是,在本申请其他一些实施例中,上述电子设备也可以不是便携式电子设备,而是具有触敏表面(例如触控面板)的台式计算机。
通常情况下,电子设备支持多种应用。比如以下应用中的一个或多个:绘图应用、演示应用、字处理应用、游戏应用、电话应用、视频播放器应用、音乐播放器应用、电子邮件应用、即时消息收发应用、照片管理应用、相机应用、浏览器应用、日历应用、时钟应用、支付应用和健康管理应用等。
下面以电子设备为具有前置摄像头和后置摄像头的手机为例进行具体介绍。
示例性地,如图1所示为一种可能的具有前置摄像头和后置摄像头的手机的结构示意图。应理解,图示手机100仅是电子设备的一个范例,并且手机100可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
手机100除了包括前置摄像头和后置摄像头以外,还可以包括一个或多个处理器101、存储器102、射频(radio frequency,RF)电路103、音频电路140、扬声器141、麦克风142、触摸屏150、一个或多个传感器106、无线保真(wireless fidelity,Wi-Fi)装置107、外设接口108以及电源装置109。这些部件可通过一根或多根通信总线或信号线(图1中未示出) 进行通信。本领域技术人员可以理解,图1中示出的硬件结构并不构成对手机100的限定,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面对手机100的各个部件进行具体的介绍:
处理器101是手机100的控制中心,利用各种接口和线路连接手机100的各个部分,通过运行或执行存储在存储器102内的应用程序(application,简称App),以及调用存储在存储器102内的数据和指令,执行手机100的各种功能和处理数据。示例性地,处理器101可以自动控制前置摄像头和后置摄像头的开启或关闭。
在一些实施例中,处理器101可包括一个或多个处理单元。处理器101还可以集成应用处理器和调制解调处理器。其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器101中。举例来说,处理器101可以是华为技术有限公司制造的麒麟970芯片。在本申请其他一些实施例中,上述处理器101还可以包括指纹验证芯片,用于对采集到的指纹进行验证。
存储器102用于存储应用程序以及数据。存储器102主要包括程序存储区以及数据存储区。其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等);数据存储区可以存储根据使用手机100时所创建的数据(比如音频数据、电话本等)。示例性的,数据存储区还可以存储用户拍摄的照片,或者基于用户拍摄的照片合成的图片等。应理解,用户使用手机100拍摄的照片、或者基于用户使用手机100拍摄的照片合成的照片还可以存储到云端,当手机100接收到用户查看照片的操作时,从云端获取相应的照片,显示在手机100上。此外,存储器102可以包括高速随机存取存储器,还可以包括非易失存储器,例如磁盘存储器件、闪存器件或其他非易失性固态存储器件等。存储器102还可以存储各种操作系统,例如苹果公司所开发的
Figure PCTCN2018088677-appb-000002
操作系统、谷歌公司所开发的
Figure PCTCN2018088677-appb-000003
操作系统等。
RF电路103可用于在收发信息或通话过程中进行无线信号的接收和发送。具体地,RF电路103可以将基站的下行数据接收后,给处理器101处理。另外,RF电路103还可以将上行数据发送给基站。通常,RF电路103包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪放大器、双工器等。此外,RF电路103还可以通过无线通信实现与其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统、通用分组无线服务、码分多址、宽带码分多址、长期演进、电子邮件、短消息服务等。
音频电路140、扬声器141、麦克风142可提供用户与手机100之间的音频接口。音频电路140可将接收到的音频数据转换后的电信号,传输到扬声器141,由扬声器141转换为声音信号输出;另一方面,麦克风142将收集的声音信号转换为电信号,由音频电路140接收后转换为音频数据,再将音频数据输出至RF电路103以发送给比如一个手机,或者将音频数据输出至存储器102以便进一步处理。
触摸屏150可以包括触敏表面151和显示器152。其中,触敏表面151(例如触控面板)可采集手机100的用户在其上或附近的触摸事件(比如用户使用手指、触控笔等任何适合的物体在触敏表面151上或在触敏表面151附近的操作),并将采集到的触摸信息发送给其他器件例如处理器101。其中,用户在触敏表面151附近的触摸事件可以称之为悬浮触控。悬浮触控可以是指,用户无需为了选择、移动或拖动目标(例如App图标等)而直接接触触控板,而只需用户位于电子设备附近以便执行所想要的功能。在悬浮触控的应用场景下, 术语“触摸”、“接触”等不会暗示用于直接接触触摸屏150,而是在其附近或接近的接触。能够进行悬浮触控的触敏表面151可以采用电容式、红外光感以及超声波等实现。
触敏表面151可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再发送给处理器101,触摸控制器还可以接收处理器101发送的指令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型来实现触敏表面151。
显示器(也称为显示屏)152可用于显示由用户输入的信息或提供给用户的信息以及各种图形用户界面(graphical user interface,GUI)。例如,显示器152可以显示照片或者视频等。再例如,显示器152可以显示如图2所示的图形用户界面。其中,如图2所示的图形用户界面上包括状态栏201、可隐藏的导航栏202、时间和天气小组件(widget)203、以及应用的图标,例如相机的图标204等。状态栏201中包括运营商名称(例如中国移动)、移动网络(例如4G)、时间和剩余电量。导航栏202中包括后退(back)键图标、主屏幕(home)键图标和前进键图标。此外,可以理解的是,在一些实施例中,状态栏201中还可以包括蓝牙图标、Wi-Fi图标、外接设备图标等。还可以理解的是,在另一些实施例中,图2所示的图形用户界面中还可以包括Dock栏,Dock栏中可以包括常用的应用图标等。当处理器101检测到用户的手指(或触控笔等)针对某一应用图标的触摸事件后,响应于该触摸事件,打开与该应用图标对应的应用的用户界面,并在显示器152上显示该应用的用户界面。以触摸屏150与前置摄像头安装在手机100的正面,手机100的背面未安装触摸屏为例。当相机应用未在手机100的后台运行、且显示器152当前显示的为图2所示的图形用户界面的情况下,若处理器101检测到用户对相机图标204的第一操作,则响应于第一操作,在显示器152上显示相机应用的用户界面。例如,用户对相机图标204的第一操作可以为用户点击或者触摸相机图标204的操作,也可以为用户在相机图标204的上方的触摸操作等,对此不作限定。另外,在手机100的前置摄像头和后置摄像头关闭的情况下,手机100响应于第一操作,还可以打开默认摄像头。手机100的默认摄像头可以为后置摄像头。若用户需要使用前置摄像头自拍,可以点击或者触摸摄像头翻转图标302,使得手机100切换到前置摄像头。此外,手机100的默认摄像头还可以为前置摄像头。例如,在手机100打开前置摄像头后,相机应用的用户界面可以如图3所示。该用户界面包括拍摄图标300、相册图标301、摄像头翻转图标302、预览框303、闪光灯图标304、动图拍摄图标305、美化图片图标306、延迟拍摄图标307和设置图标308。其中,预览框303中显示前置摄像头采集的图像。例如,当前置摄像头采集的为面部图像309时,则预览框303中显示面部图像309。可以理解的是,预览框303内显示的图像又可称之为拍摄预览图像,用户可以通过拍摄预览图像来查看拍摄的效果。
应理解,通常情况下,显示器152可以包括显示控制器和显示装置两部分。其中,显示控制器用于接收处理器101发送的信号或数据,来驱动在显示装置上显示相应的界面。示例的,本申请实施例可以通过LCD(liquid crystal display,液晶显示器、或者有机发光二极管(organic light-emitting diode,OLED)等来配置显示装置。例如,采用有源矩阵有机发光二极管(active matrix organic light emitting diode,AMOLED)来配置显示装置。
应理解,触敏表面151可以覆盖在显示器152之上,当触敏表面151检测到在其上或附近的触摸事件后,传送给处理器101以确定触摸事件的类型,随后处理器101可以根据触摸 事件的类型在显示器152上提供相应的视觉输出。虽然在图1中,触敏表面151与显示器152是作为两个独立的部件来实现手机100的输入和输出功能,但是在某些实施例中,可以将触敏表面151与显示器152集成而实现手机100的输入和输出功能。可以理解的是,触摸屏150是由多层材料堆叠而成,本申请实施例中只展示出了触敏表面(层)和显示器(层),其他层在本申请实施例中不予赘述。另外,在本申请其他一些实施例中,触敏表面151可以覆盖在显示器152之上,并且触敏表面151的尺寸大于显示器152的尺寸,使得显示器152全部覆盖在触敏表面151下面,或者,上述触敏表面151可以以全面板的形式配置在手机100的正面,也即用户在手机100正面的触摸均能被手机感知,这样就可以实现手机正面的全触控体验。在其他一些实施例中,触敏表面151以全面板的形式配置在手机100的正面,显示器152也可以以全面板的形式配置在手机100的正面,这样在手机的正面就能够实现无边框的结构。在本申请其他一些实施例中,触摸屏150还可以包括一系列的压力传感器阵列,可以使得手机感测触摸事件所施加给触摸屏150的压力。
一个或多个传感器106,比如光传感器、运动传感器以及其他传感器。具体的,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节触摸屏150的显示器的亮度,接近传感器可在手机100移动到耳边时,关闭显示器的电源。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。其他传感器例如陀螺仪,可以用于检测手机100围绕一个定点或轴的旋转的角度。
在本申请一些实施例中,传感器106还可以包括指纹传感器。例如,可以在手机100的背面(例如后置摄像头的下方)配置指纹传感器,或者在手机100的正面(例如触摸屏150的下方)配置指纹传感器。另外,也可以通过在触摸屏150中配置指纹传感器来实现指纹识别功能,即指纹传感器可以与触摸屏150集成在一起来实现手机100的指纹识别功能。在这种情况下,该指纹传感器可以配置在触摸屏150中,可以是触摸屏150的一部分,也可以以其他方式配置在触摸屏150中。另外,该指纹传感器还可以被实现为全面板指纹传感器,因此,可以把触摸屏150看成是任何位置都可以进行指纹采集的一个面板。在一些实施例中,该指纹传感器可以对采集到的指纹进行处理(例如对采集到的指纹进行验证),并将指纹处理结果(例如指纹是否验证通过)发送给处理器101,由处理器101根据指纹处理结果做出相应的处理。在另一些实施例中,该指纹传感器还可以将采集到的指纹发送给处理器101,以便处理器101对该指纹进行处理(例如指纹验证等)。本申请实施例中的指纹传感器可以采用任何类型的感测技术,包括但不限于光学式、电容式、压电式或超声波传感技术等。另外,关于本申请实施例中在触摸屏中集成指纹传感器的具体技术方案,可以参见美国专利与商标局公告的申请号为US 2015/0036065 A1,名称为“在电子设备中的指纹传感器”的专利申请,其全部控件通过引用结合在本申请各个实施例中。此外,手机200还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不予赘述。
Wi-Fi装置107,用于为手机100提供遵循Wi-Fi相关标准协议的网络接入。手机100可以通过Wi-Fi装置107接入到Wi-Fi接入点,进而帮助用户收发电子邮件、浏览网页和访问流媒体等,它为用户提供了无线的宽带互联网访问。在其他一些实施例中,该Wi-Fi装置107也可以作为Wi-Fi无线接入点,可以为其他电子设备提供Wi-Fi网络接入。
外设接口108用于为外部的输入/输出设备(例如键盘、鼠标、外接显示器、外部存储器、用户识别模块卡等)提供各种接口。例如通过通用串行总线接口与鼠标连接,通过用户识别模块卡卡槽上的金属触点与运营商提供的SIM卡连接。外设接口108可以被用来将上述外部的输入/输出外围设备耦接到处理器101和存储器103。
手机100还可以包括给各个部件供电的电源装置109(比如电池和电源管理芯片),电池可以通过电源管理芯片与处理器101逻辑相连,从而通过电源装置109实现管理充电、放电、以及功耗管理等功能。
尽管图1未示出,手机100还可以包括蓝牙装置、定位装置、闪光灯、微型投影装置、近场通信(near field communication,NFC)装置等,在此不予赘述。其中,前置摄像头可以用于捕捉人脸特征信息,处理器101可以对该人脸特征信息进行人脸识别,进而进行后续处理。
以下实施例均可以在具有上述硬件结构的电子设备(例如手机100、平板电脑等)中实现。
由于目前用户需要手动切换前置摄像头和后置摄像头,导致用户操作较为复杂,为了提高拍照时,手机100与用户之间的智能交互能力,方便用户的操作,手机100可以自动切换前置摄像头和后置摄像头。
下面以手机100的正面配置有触摸屏、手机100的背面未配置有触摸屏为例,对手机100自动切换前置摄像头和后置摄像头的方法进行具体介绍。在这种情况下,手机100正面的触摸屏即为触摸屏150。
示例的,手机100的正面配置有触摸屏时,正面的示意图可以如图4中的A所示。图4中A所示的手机100的正面包括前置摄像头410、触摸屏430和主屏幕(home)键420,该home键420用于退回主界面。在一些实施例中,还可以在手机100的正面不配置home(主屏幕)键420。例如,在手机100显示的用户界面上增加导航栏,在导航栏中设置home键图标。手机100的背面未配置触摸屏时,背面的示意图可以如图4中的B所示。图4中B所示的手机100的背面包括后置摄像头440和指纹传感器450。在一些实施例中,手机100的背面还可以不包括指纹传感器,对此不作限定。
以图4所示的手机100的正面和背面为例。如图5中的A所示,手机100的正面朝向用户。触摸屏430显示的用户界面中的应用的图标包括邮件图标、短消息图标、图库图标、微信图标、电话图标、设置图标、相机图标和日历图标。手机100若检测到用户触摸相机图标的操作,则响应于用户触摸相机图标的操作,打开后置摄像头440,以及显示图5中的B所示的手机100显示的用户界面,其中预览框460中显示的图像为后置摄像头440采集到的图像。手机100在正面朝向用户、前置摄像头410关闭、后置摄像头440开启、且预览框460显示后置摄像头440采集的图像(例如后置摄像头440采集的图像可以如图5中B所示的预览框460中显示的图像)的情况下,若检测到用户触摸图标302,则响应于用户触摸图标302,关闭后置摄像头440,打开前置摄像头410。在上述场景下,预览框460内显示前置摄像头410采集到的图像。例如前置摄像头410采集到的图像为图5中的C所示的面部图像470,则在预览框460中显示面部图像470。可以理解的是,面部图像470可以为操作手机100的用户的面部图像,也可以为除操作手机100的用户以外的用户的面部图像,对此不作限定。
以面部图像470可以为操作手机100的用户的面部图像为例,当手机100显示如图5中的C所示的用户界面时,手机100正面朝向用户、前置摄像头410开启、后置摄像头440关闭, 触摸屏460显示相机应用的用户界面,其中相机应用的用户界面包括预览框460、预览框460中显示前置摄像头采集的面部图像470。通常情况下,在上述场景中,用户在使用手机100的前置摄像头410进行自拍,其中自拍可以为拍摄照片也可以为拍摄视频,对此不作限定。若用户在使用手机100的前置摄像头410进行自拍时,想翻转手机100,使用手机100的后置摄像头410进行自拍,为了方便用户操作,手机100可以按照下列方式之一自动将前置摄像头切换到后置摄像头。
方式一:手机100在检测到旋转角度不小于预设角度后,开启后置摄像头440。在一些实施例中,为了节省功耗,手机100在检测到旋转角度不小于预设角度后,还可以关闭前置摄像头410。可以理解的是,预设角度可以根据需求进行相应的设定,例如预设角度可以为5度、10度,也可以设置为180度。在预设角度为180度的情况下,手机100检测到在从正面朝向用户翻转到背面朝向用户后,开启后置摄像头440。示例的,手机100可以通过陀螺仪和/或加速度传感器来检测手机100的旋转角度是否不小于预设角度。例如,陀螺仪检测到手机100自身的某一边为轴,旋转角度为预设角度时,则手机100确定从正面朝向用户向背面朝向用户翻转。示例的,如图6所示中A所示手机100可以以边1为轴顺时针旋转,也可以如图6中B所示手机100以边2为轴逆时针旋转,又可以如图6中C所示手机100以边3为轴顺时针旋转。
方式二:手机100在检测到手机100旋转且预览框460中不显示面部图像470,打开后置摄像头440。在一些实施例中,还可以响应于手机100旋转且预览框460中不显示面部图像470,关闭前置摄像头410。示例的,手机100可以通过陀螺仪检测手机100的旋转角度大于或者等于预设角度后,确定手机100发生旋转。手机100可以通过面部识别功能确定预览框460中是否显示有面部图像470。
此外,针对方式二,为了提高摄像头切换的准确性,在一些实施例中,手机100在检测到手机100旋转且预览框460中不显示面部图像470,打开后置摄像头440,并打开后置摄像头440预设时长内,检测到后置摄像头440采集的图像中包括面部图像470,则响应于后置摄像头440采集的图像中包括面部图像470,关闭前置摄像头410。另外,若打开后置摄像头440预设时长内,检测到后置摄像头440采集的图像中未包括面部图像470,则响应于后置摄像头440采集的图像中未包括面部图像470,关闭后置摄像头440。可以理解的是,预设时长可以根据需求进行相应的设定,例如预设时长可以为2秒、1秒或者5秒等,对此不作限定。
通过上述技术方案,使得用户在手机100从正面朝向用户翻转到背面朝向用户时,无需用户对手机100进行操作,即可在手机100翻转到背面朝向用户后,能够使用后置摄像头440进行自拍,提高了电子设备与用户之间的智能交互。
在方式一和/或方式二中,触摸屏430可以在手机100从正面朝向用户向背面朝向用户翻转的过程中、以及从正面朝向用户翻转到背面朝向用户后一直亮屏。在开启后置摄像头440、关闭前置摄像头410后,在触摸屏430上可以显示后置摄像头440采集到图像。例如,当手机100从正面翻转到背面后,采集的图像为面部图像470,则触摸屏430显示的用户界面可以如图5中的E所示,在预览框460显示面部图像470。另外,在方式二中,为了节省功耗,手机100也可以响应于手机100旋转且预览框460中不显示面部图像470,熄灭触摸屏430;或者,手机100检测到后置摄像头440采集的图像中包括面部图像470,熄灭触摸屏430。
为了便于用户使用后置摄像头440进行自拍,用户在手机100的背面朝向用户时,可以 通过点击或者双击手机100的正面配置的触摸屏430上预览框460内的任意位置,执行拍摄操作,得到拍摄的图片或视频。用户还可以通过点击手机100侧边的下音量键,执行拍摄操作,得到拍摄的图片或视频。其中在未启动相机应用时,下音量键用于对减小手机100上设置的音量。此外,还可以通过声控、设置时间延迟等方式执行拍摄操作,得到拍摄的图片或视频。本申请实施例对拍摄操作的具体实现方式不作限定。
可以理解的是,为了便于用户控制摄像头的自动切换,可以在相机应用的设置界面上增加摄像头自动切换的选项701及虚拟按钮702,虚拟按钮702用于开启或关闭自动切换前后置摄像头的功能。例如,在虚拟按钮702关闭(OFF)的情况下,手机100在触摸屏430显示图7中的A所示的用户界面时,检测到用户触摸或点击图标308的操作,则响应于用户触摸或点击图标308的操作,显示图7中B所示的相机应用的设置界面,其中图7中B所示的虚拟按钮702关闭。当虚拟按钮702开启时,手机100可以在使用前置摄像头410自拍的情况下,若从正面朝向用户向背面朝向用户翻转,才能自动从前置摄像头410自动切换到后置摄像头440。
另外,本申请实施例中,手机100还可以在预览框460显示面部图像470时,确定面部图像为目标面部图像的情况下,响应于手机100检测到手机100旋转且面部图像470不显示在预览框460,打开后置摄像头440。例如,如图8中的A所示的预览框460中显示的面部图像和图8中B所示的面部图像800相同时,则响应于手机100检测到手机100旋转且面部图像470不显示在预览框460,打开后置摄像头440。其中,图8中B所示的面部图像800为目标面部图像。通常情况下,图8中B所示的面部图像为手机100的机主的面部图像。再例如,目标面部图像还可以为手机100的相册应用所保存的图片中出现次数最多的面部图像。另外,目标面部图像还可以为用户预设的图片中显示的面部图像等,对目标面部图像不作限定。
此外,还需要说明的是,本申请实施例中,手机100若确定预览框406中显示的面部图像460为目标面部图像,还可以自动开启美颜功能(例如祛斑、祛痘、磨皮等)。
下面以手机100的正面配置有触摸屏、手机100的背面也配置有触摸屏为例,对手机100前置摄像头和后置摄像头之间相互切换的方法进行具体介绍。在这种情况下,触摸屏150包括手机100正面的触摸屏和手机100背面的触摸屏。
示例的,手机100的正面配置有触摸屏时,正面的示意图可以如图9中的A所示。图9中A所示的手机100的正面包括前置摄像头910、触摸屏930和主屏幕(home)键920,该home键920用于退回主界面。在一些实施例中,还可以在手机100的正面不配置home(主屏幕)键920。例如,在手机100显示的用户界面上增加导航栏,在导航栏中设置home键图标。手机100的背面配置触摸屏时,背面的示意图可以如图9中的B所示。图9中B所示的手机100的背面包括后置摄像头940和触摸屏950。在一些实施例中,手机100的背面还可以包括指纹传感器,对此不作限定。可以理解的是,手机100正面配置的触摸屏又可称之为主屏、或者前置触摸屏等,手机100背面配置的触摸屏又可称之为副屏、或者后置触摸屏等。本申请对触摸屏的名称不作限定。
以图9所示的手机100的正面和背面为例。如图10中的A所示,手机100的正面朝向用户,前置摄像头910、后置摄像头940和触摸屏950均关闭、触摸屏930显示主界面,主界面可以为如图10中A所示的触摸屏930所显示的用户界面,具体的,图示的主界面中包括邮件图标、短消息图标、图库图标、微信图标、电话图标、设置图标、相机图标和日历图标、且后台未运行相机应用的情况下,手机100当检测到用户触摸相机图标的操作,可以基于下述方 式响应于用户触摸相机图标的操作。
方式一:手机100响应于用户触摸相机图标的操作,打开前置摄像头910,以及在触摸屏930上显示相机应用的用户界面,其中,相机应用的用户界面上包括预览框960,且预览框960中显示的为前置摄像头910采集的图像(例如如图10中的C所示,前置摄像头910采集的图像为面部图像970,则预览框960中显示面部图像970)。需要说明的是,在方式一中,手机100响应于用户触摸相机图标的操作,打开前置摄像头910、并显示图10中C所示的用户界面的同时,可以继续关闭后置摄像头940和触摸屏950。具体的,在一些实施例中,手机100可以根据手机100的正面朝向用户,响应于用户触摸相机图标的操作,打开前置摄像头910,以及在触摸屏930上显示相机应用的用户界面。其中相机应用的用户界面上包括预览框960,在预览框960中显示前置摄像头910采集的图像。在一些实施例中,手机100可以根据传感器测量的信息(例如陀螺仪测量的角度信息),来判断手机100的正面朝向用户还是背面朝向用户。手机100还可以在用户触摸相机图标的操作之前,在点亮触摸屏930和触摸屏950中的至少一个之后,开启前置摄像头910和后置摄像头940中的一个,根据开启的摄像头采集的图像来判断手机100是否正面朝向用户。例如,手机100无论在点亮触摸屏930还是点亮触摸屏950的情况下,开启前置摄像头910,若检测到前置摄像头910采集到用户的面部图像,则确定手机100的正面朝向用户。若检测到前置摄像头910未采集到用户的面部图像,则确定手机100的正面未朝向用户。为了节省功耗,手机100若当前未打开相机应用,则在确定手机100的正面未朝向用户后,关闭前置摄像头910。
方式二:手机100响应于用户触摸相机图标的操作,打开后置摄像头940,以及在触摸屏930显示相机应用的用户界面,其中相机应用的用户界面包括预览框960,且预览框960中显示的为后置摄像头940采集的图像,例如如图10中B所示,预览框960显示的图像为后置摄像头940采集的图像。需要说明的是,方式二中,手机100响应于用户触摸相机图标的操作,打开后置摄像头940、并显示图10中B所示相机应用的用户界面的同时,可以继续关闭前置摄像头910和触摸屏950。
手机100当以方式二响应于用户触摸相机图标的操作后,用户若需要开启前置摄像910,可以通过点击图标302,来进行后置摄像头940和前置摄像头910的切换。则在手机100检测到用户点击图标302后,关闭后置摄像头940,开启前置摄像头910。例如,前置摄像头910采集到的图像为图10中C所示的面部图像970,则在预览框960内显示面部图像970。在这种情况下,为了节省功耗,在一些实施例中触摸屏950一直保持关闭。
需要说明的是,本申请实施例中前置摄像头910或者后置摄像头940可以一直打开,在这种情况下,以方式一为例,手机100响应于用户触摸相机图标的操作,在触摸屏930上显示相机应用的用户界面。
当如图10中C所示,手机100的正面朝向用户、前置摄像头910开启、且预览框960显示前置摄像头910采集的面部图像970、后置摄像头940和触摸屏950关闭的情况下,若用户想要使用后置摄像头940自拍,则用户可以通过手动的方式开启后置摄像头940和触摸屏950。例如,在图10中C所示的情况下,手机100若检测到用户点击或者触摸图标302的操作,则响应于用户点击或者触摸图标302的操作,将前置摄像头910切换到后置摄像头940。然后,用户可以将手机100从正面朝向用户翻转到背面朝向用户,并在手机100检测到用户点亮触摸屏950的操作(例如在触摸屏950上任意一个位置双击、或者其他特定的操作),则响应于用户点亮触摸屏950的操作,点亮触摸屏950。其中,本申请实施例中,响应于用户点亮 触摸屏950的操作,点亮触摸屏950后,触摸屏950可以显示后置摄像头940采集的图像(例如面部图像970),也可以显示包括应用图标的主界面。若触摸屏950显示包括应用图标的主界面,用户可以通过点击相机图标,使得触摸屏950显示后置摄像头940采集的图像。
另外,在一些实施例中,当如图10中C所示,手机100的正面朝向用户、前置摄像头910开启、且拍摄预览区域960显示前置摄像头910采集的用户的头像970、后置摄像头940和触摸屏950关闭的情况下,为了使得用户可以使用后置摄像头自拍,简化用户对手机100的操作,若手机100从正面朝向用户向背面朝向用户翻转,直至翻转到手机100的背面朝向用户为止,手机100可以按照下列方式自动将前置摄像头切换到后置摄像头。
方式A:手机100在检测到手机100旋转的角度不小于预设角度后,打开后置摄像头940。可以理解的是,预设角度可以根据需求进行相应的设定,例如预设角度可以为5度、10度、12度,也可以设置为180度。在预设角度为180度的情况下,则手机100在从正面朝向用户翻转到背面朝向用户后,打开后置摄像头940。
方式B:手机100可以在检测到手机100旋转且预览框960中不显示面部图像970时,打开后置摄像头940。在一些实施例中,若手机100在打开后置摄像头940后预设时长内检测到后置摄像头940采集到面部图像970,则确定手机100从正面朝向用户向背面朝向用户翻转,若预设时长内检测到后置摄像头940未采集到面部图像970,则关闭后置摄像头940。可以理解的是,预设时长可以根据需求进行相应的设定,例如预设时长可以为2秒、1秒或者5秒等,对此不作限定。
在方式A和方式B中,为了降低功耗,手机100可以打开后置摄像头940的同时,关闭前置摄像头910、以及熄灭触摸屏930,点亮触摸屏950,并在触摸屏950显示后置摄像头940采集的图像。为了进一步降低功耗,手机100可以在开启后置摄像头940的同时,关闭前置摄像头910、以及熄灭触摸屏930,并在后置摄像头940采集到面部图像970时点亮触摸屏950,并在触摸屏950显示后置摄像头940采集的图像。其中,如图10中的D1所示,为手机100的从正面朝向用户翻转到背面朝向用户后,正面和背面的示意图。如图10中的D1所示,手机100的正面,触摸屏930熄灭,前置摄像头910开启或者关闭。如图10中D1所示,手机100的背面,后置摄像头940开启,触摸屏950显示后置摄像头940采集的面部图像970。
此外,在方式A和方式B中,为了提高拍摄的效果,手机100还可以在开启后置摄像头940的同时,点亮触摸屏950,并继续开启前置摄像头910和点亮触摸屏930。其中触摸屏950显示后置摄像头940采集的图像、触摸屏930显示的是前置摄像头910采集的图像。如图10中的D2所示,为手机100从正面朝向用户翻转到背面朝向用户后,正面和背面的示意图。如图10中的D2所示,手机100的正面,前置摄像头910开启,触摸屏950显示前置摄像头910采集的图像。如图10中D2所示,手机100的背面,后置摄像头940开启,触摸屏950显示后置摄像头940采集的面部图像970。为了节省功耗,手机100也可以在打开后置摄像头940的同时,点亮触摸屏950,并继续开启前置摄像头910、以及熄灭触摸屏930。由于上述方式中前置摄像头910和后置摄像头940同时开启,则手机100在从正面朝向用户向背面朝向用户翻转的过程中,前置摄像头910拍摄采集到的多帧图像,后置摄像头940拍摄采集到的多帧图像,然后手机100可以响应于拍摄操作(例如拍摄操作可以为用户触摸快捷拍摄按键或图标的操作,也可以为声控操作等,对此不作限定),基于前置摄像头910拍摄的采集到的多帧图像和后置摄像头940拍摄的采集到的多帧图像,合成一张图片,并保存该图片,该合成的图片中包括了前置摄像头910拍摄的多帧图像的信息以及后置摄像头940拍摄的 多帧图像的信息。这样用户在查看照片时,不仅能看到自己的自拍,还能看到周围的环境,具有良好的用户体验。为了避免存储空间的浪费,手机100在合成图片后,可以删除前置摄像头910拍摄的采集到的多帧图像和后置摄像头940拍摄的采集到的多帧图像。
特别的,在一些实施例中,若前置摄像头910和后置摄像头940同时开启,则手机100在检测到从正面朝向用户翻转到背面朝向用户时,可以响应于拍摄操作,根据当前前置摄像头910采集的图像和后置摄像头940采集的图像,合成一张图片,其中该图片中包括当前前置摄像头910采集的图像和后置摄像头940采集的图像的信息。
需要说明的是,例如,如图10中的B所示,手机100的触摸屏930显示相机应用的用户界面,其中,相机应用的用户界面包括预览框960,预览框960中显示后置摄像头940采集的图像。在这种场景下,手机100可以响应于手机100旋转,且后置摄像头940采集的图像不显示在预览框960,点亮触摸屏950,使得触摸屏950显示相机应用的用户界面,其中相机应用的用户界面上包括预览框,在该预览框中显示后置摄像头950采集的图像,例如后值摄像头940采集的图像为面部图像970,则在触摸屏950显示目标图像970。在这种情况下,为了节省功耗,在一些实施例中,手机100还可以响应于手机100旋转、且后置摄像头940采集的图像不显示在预览框960,关闭触摸屏930。
以图9所示的手机100的正面和背面为例。如图11A所示,在手机100的背面朝向用户,触摸屏930和触摸屏950均关闭、前置摄像头910和后置摄像头940均关闭的情况下,手机100若在触摸屏950检测到用户的手势的操作,则可以基于下述方式响应于用户的手势操作。需要说明的是,用户的手势操作可以为双击、画圈、三指上滑、按压等,对此不作限定。
方式a:手机100响应于用户的手势操作,点亮触摸屏950,并在触摸屏950显示包括应用图标的主界面,例如,如图11中的B所示,触摸屏950显示的主界面包括运营商(如中国移动)、移动网络(如4G)、应用的图标(如相机的图标)、时间和电量。除此之外还可以包括其他图标,如wifi图标等。可以理解的是,触摸屏930、前置摄像头910和后置摄像头940在手机100响应于用户的手势操作后,继续保持关闭。例如,手机100响应于用户的手势操作,可以如图11B所示,手机100的正面,触摸屏930和前置摄像头910继续关闭,后置摄像头继续关闭,触摸屏950点亮,显示主界面,其中主界面包括运营商(如中国移动)、移动网络(如4G)、应用图标(如相机图标)、时间和电量。
方式b:手机100响应于用户的手势操作,开启后置摄像头940,并在触摸屏950上显示后置摄像头940采集的图像,其中触摸屏930和前置摄像头910始终保持关闭。例如,手机100响应于用户的手势操作,手机100的正面和背面如图11中的C所示。具体的,在图11中C所示的触摸屏950显示的后置摄像头940采集的面部图像970,手机100的正面,触摸屏930和前置摄像头910继续保持关闭。具体的,手机100可以根据手机100的背面朝向用户,响应于用户的手势操作,开启后置摄像头940,并在触摸屏950上显示后置摄像头940采集的图像。此外,手机100可以根据传感器测量的信息(例如陀螺仪测量的角度信息),来判断手机100的正面朝向用户还是背面朝向用户。手机100还可以在点亮触摸屏930和触摸屏950中的至少一个时,开启前置摄像头910和后置摄像头940中的一个,根据开启的摄像头采集的图像来判断手机100是否正面朝向用户。在一些实施例中,手机100无论在点亮触摸屏930还是点亮触摸屏950的情况下,开启后置摄像头940,若检测到后置摄像头940采集到面部图像,则确定手机100的背面朝向用户。若检测到后置摄像头940未采集到用户的头像,则确定手机100的背面未朝向用户。为了节省功耗,手机100若当前未打开相机应用,则关闭 后置摄像头910。
可以理解的是,当手机100以方式a响应于用户的手势操作时,若触摸屏950显示的主界面为如图11中的B中所示的主界面,则手机100当检测到用户触摸相机的图标的操作后,响应于用户触摸相机图标的操作,开启后置摄像头940,以及在触摸屏950上显示后置摄像头940采集的图像。其中前置摄像头910和触摸屏930保持关闭。例如,如图11中b所示,当后置摄像头940采集的图像为面部图像970时,则触摸屏970上显示面部图像970。
如图11中的C所示,手机100背面朝向用户,熄灭触摸屏930、关闭前置摄像头910、开启后置摄像头940、点亮触摸屏950、并在触摸屏950上显示后置摄像头940采集的面部图像970的情况下,手机100若检测到从背面朝向用户向正面朝向用户翻转,直至翻转到手机100的背面朝向用户为止,为了使得用户能够使用后置摄像头940自拍,简化用户对手机100的操作,手机100可以自动将后置摄像头940切换到前置摄像头910。其中,手机100自动将后置摄像头940切换到前置摄像头910的方式可以与手机100自动将前置摄像头910切换为后置摄像头940的方式类似,在此不再赘述
其中,图11中D1所示,为手机100在从背面朝向用户翻转到正面朝向用户后,手机100的正面和背面的示意图。图11中D1所示的手机100的正面,前置摄像头910开启,触摸屏930点亮,并在触摸屏930上显示相机应用的用户界面,其中相机应用的用户界面包括预览框960,且预览框960显示的为前置摄像头910采集的面部图像970,触摸屏950熄灭。需要说明的是,后置摄像头940可以一直保持开启,也可以为关闭,对此不作限定。图11中D2所示,为手机100在从背面朝向用户翻转到正面朝向用户后,手机100的正面和背面的示意图。图11中D2所示的手机100的正面,前置摄像头910开启,触摸屏930点亮,并在触摸屏930上显示相机应用的用户界面,相机应用的用户界面包括预览框960,其中预览框960显示的为前置摄像头910采集的面部图像970。图11中D2所示的手机100的背面,后置摄像头940开启,触摸屏950点亮,且触摸屏950显示的为后置摄像头940采集的图像。
以图9中所示的手机100的正面和背面为例。如图12中的A所示,当手机100的背面朝向用户时,在手机100的后置摄像头940关闭且触摸屏950关闭的情况下,手机100可以在检测到用户在触摸屏950上的手势操作(例如双击、上滑、下滑等),响应于用户在触摸屏950上的手势操作,打开后置摄像头940,以及点亮触摸屏950,并在触摸屏950上显示后置摄像头940采集的面部图像。也可以按照上述实施例中的方式,自动打开后置摄像头940以及点亮触摸屏950,并在触摸屏950上显示后置摄像头940采集的面部图像。如图12中的B所示,当手机100的背面朝向用户时,在后置摄像头940开启、且触摸屏950显示后置摄像头940采集的面部图像的情况下,为了便于用户拍摄,在一些实施例中,可以在显示用户的头像的界面上增加拍摄图标1202,手机100若检测到用户点击或者触摸拍摄图标1202的操作,则响应于用户点击或者触摸拍摄图标1202的操作,进行拍照,并将拍摄得到的包括面部图像的照片保存到图库中。例如,手机100响应于用户点击或者触摸拍摄图标1202的操作,可以如图12中的C所示,在触摸屏950上显示后置摄像头940采集的面部图像,和图库1203中最近一次拍摄得到的照片。再例如,手机100可以响应于用户点击或者触摸拍摄图标1202的操作,可以如图12中的D所示,在触摸屏950上显示后置摄像头940采集的面部图像,在触摸屏930显示图库1203中最近一次拍摄得到的照片。在一些实施例中,手机100可以在图库1203中最近一次拍摄得到的照片显示预设时长后,隐藏该图库1203。可以理解的是,为 了在手机100的背面朝向用户时,便于用户从触摸屏950进入图库查看拍摄的照片,手机100在触摸屏950显示后置摄像头940采集的图像、且未显示图库1203的情况下,若检测到预设的快捷手势操作,则在预设时长内在触摸屏940上显示图库1203。需要说明的是,预设时长可以根据用户的需求进行相应的设定,例如5秒、10秒等。
如图11中B所示,手机100的背面朝向用户,后置摄像头940开启,触摸屏950显示后置摄像头940采集的面部图像的情况下,手机100若检测到用户的手势操作(例如在触摸屏950任一位置长按),则响应于用户的手势操作,在触摸屏950上显示图标1201,其中图标1201显示的时长为预设时长,该预设时长可以根据实际需要进行相应的设定,例如5秒、6秒等。手机100若检测到用户触摸图标1201的操作,则响应于用户触摸图标1201的操作,熄灭触摸屏950。其中,后置摄像头940可以一直开启,也以为了节省功耗关闭。在一些实施例中,为了便于操作,手机100响应于用户触摸图标1201的操作,熄灭触摸屏950同时,关闭后置摄像头940。或者,手机100在触摸屏950熄灭第一时长后,关闭后置摄像头940。第一时长可以根据需要进行预先设置,例如10秒、60秒等。当手机100的背面朝向用户,后置摄像头940开启,触摸屏950显示后置摄像头940采集的用户的头像时,触摸屏950上可以一直显示图标1201,当用户需要关闭触摸屏950和后置摄像头940时,可以通过点击或触摸图标1201来关闭触摸屏950和后置摄像头940。在如图12中B所示的场景下,,手机100也可以在检测到用户按压开关机键或者在触摸屏950上特定的手势操作(如上滑、下滑等)时,熄灭触摸屏950以及关闭后置摄像头940。类似的,当如图11中C所示,手机100的背面朝向用户,后置摄像头940开启、触摸屏950上显示后置摄像头940采集的图像以及图库1203时,关闭后置摄像头940和触摸屏950的方式与图11中B所示的场景下,关闭后置摄像头940和触摸屏950的方式类似,在此不再赘述。
可以理解的是,为了便于用户控制摄像头的自动切换,可以在相机的设置界面上增加摄像头自动切换的选项1301及虚拟按钮1302,虚拟按钮1302用于开启或关闭自动切换前后置摄像头的功能。例如,在虚拟按钮1302关闭(OFF)的情况下,相机的设置界面可以如图13所示。具体的,用户可以通过点击或者触摸相机的用户界面上的设置图标进入相机的设置界面,也可以通过特定的操作(例如向右的滑动操作等)进入相机的设置界面。
在另一些实施例中,为了提高拍摄的显示效果,手机100还可以在前置摄像头910或者后置摄像头940采集到的面部图像970为目标面部图像时,响应于手机100检测到手机100旋转且面部图像970不显示在预览框960。具体的,目标面部图像的实施方式可以参见上述实施例中的相关介绍,在此不再赘述。此外,还需要说明的是,本申请实施例中,手机100若确定预览框406中显示的面部图像460为目标面部图像,还可以自动开启美颜功能(例如祛斑、祛痘、磨皮等)。
在本申请实施例中,以图9中B所示的手机100的背面为例,手机100背面的触摸屏950是通过显示预览框来显示后置摄像头940或者前置摄像头910采集的图像,触摸屏950显示的预览框的大小可以与触摸屏950的大小相同,也可以小于触摸屏950的大小,对此不作限定。
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。
结合上述实施例及附图,本申请实施例提供一种拍摄的方法,该方法可以在具有图1所示的硬件结构的电子设备中实现。具体的,电子设备包括第一触摸屏、第一摄像头和第二摄像头,第一触摸屏和第一摄像头位于电子设备的第一面上,第二置摄像头位于电子设 备的第二面上,第一面和第二面不同,如图14所示,本申请实施例灭屏显示的方法可以包括以下步骤:
步骤1401,第一触摸屏显示主界面,其中,主界面上包括相机图标;
步骤1402,检测用户对相机图标的第一操作;
步骤1403,响应于第一操作,在第一触摸屏上显示第一用户界面,第一用户界面包括第一预览框,第一预览框中显示第一摄像头采集的图像;
步骤1404,若面部图像显示在第一预览框,响应于电子设备检测到电子设备旋转且面部图像不显示在第一预览框,打开第二摄像头。
例如,以电子设备为手机、第一摄像头为手机的前置摄像头,第二摄像头为手机的后置摄像头为例,用户使用前置摄像头自拍的情况下,若用户旋转手机,使得用户面对后置摄像头,通过上述方案,则手机可以自动打开后置摄像头,使得用户无需对手机进行操作,即可使用后置摄像头进行自拍,因而提高了用户体验。
本申请实施例还可以应用于视频通信的场景中。例如用户在通过微信进行视频通信时,若当前正在使用前置摄像头采集面部图像,当用户将手机从正面翻转到背面时,可以采用本申请实施例的方式自动将前置摄像头切换到后置摄像头,当手机的背面包括触摸屏的情况下,进一步的可以在手机的背面的触摸屏上显示手机自身的后置摄像头采集的用户的面部图像、以及视频通信中对方的面部图像。
上述本申请提供的实施例中,从手机100作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,终端设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。
所属领域的技术人员可以清楚地了解到本申请实施例可以用硬件实现,或固件实现,或它们的组合方式来实现。当使用软件实现时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、电可擦可编程只读存储器(electrically erasable programmable read only memory,EEPROM)、只读光盘(compact disc read-Only memory,CD-ROM)或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(digital subscriber line,DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定影中。如本申请实施例所使用的,盘(disk)和碟(disc)包括压缩光碟(compact disc,CD)、激光碟、光碟、数字通用光碟(digital video disc,DVD)、软盘和蓝光光碟,其中盘通常磁性的复制数据,而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的保护范围之内。
总之,以上所述仅为本申请的实施例而已,并非用于限定本申请的保护范围。凡根据 本申请的揭露,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (14)

  1. 一种拍摄方法,应用于电子设备,所述电子设备包括第一触摸屏、第一摄像头和第二摄像头,所述第一触摸屏和所述第一摄像头位于所述电子设备的第一面上,所述第二置摄像头位于所述电子设备的第二面上,所述第一面和所述第二面不同,其特征在于,所述方法包括:
    所述第一触摸屏显示主界面,其中,所述主界面上包括相机图标;
    检测用户对所述相机图标的第一操作;
    响应于所述第一操作,在所述第一触摸屏上显示第一用户界面,所述第一用户界面包括第一预览框,所述第一预览框中显示所述第一摄像头采集的图像;
    若面部图像显示在所述第一预览框,响应于所述电子设备检测到所述电子设备旋转且所述面部图像不显示在所述第一预览框,打开所述第二摄像头。
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    响应于所述第一操作,打开所述第一摄像头。
  3. 如权利要求1或2所述的方法,其特征在于,所述电子设备还包括第二触摸屏,所述第二触摸屏位于所述第二面上;所述方法还包括:
    响应于所述电子设备检测到所述电子设备旋转且所述面部图像移出所述第一预览框,在所述第二触摸屏上显示第二用户界面;或者,
    在打开所述第二摄像头之后,响应于所述电子设备检测到所述第二摄像头采集到的图像中包括所述面部图像,在所述第二触摸屏上显示第二用户界面;
    其中,所述第二用户界面包括所述第二预览框,所述第二预览框中显示所述第二摄像头采集的图像。
  4. 如权利要求1至3任一所述的方法,其特征在于,所述方法还包括:
    响应于所述电子设备检测到所述电子设备旋转且所述面部图像移出所述第一预览框,关闭所述第一触摸屏;或者,
    响应于所述电子设备检测到所述第二摄像头采集到的图像中包括所述面部图像,关闭所述第一触摸屏。
  5. 如权利要求1至4任一所述的方法,其特征在于,打开所述第二摄像头之后,所述方法还包括:
    保存从所述电子设备旋转的过程中所述第一摄像头采集的至少一帧图像和所述第二摄像头采集的至少一帧图像;
    响应于所述电子设备检测到用户的第二操作,根据所述第一摄像头采集的至少一帧图像和所述第二摄像头采集的至少一帧图像,生成第一目标图片并保存,所述第一目标图片中显示的图像包括所述第一摄像头采集的至少一帧图像和所述第二摄像头采集的至少一帧图像。
  6. 如权利要求5所述的方法,其特征在于,生成所述第一目标图片之后,所述方法还包括:
    删除所述第一摄像头采集的至少一帧图像和所述第二摄像头采集的至少一帧图像。
  7. 如权利要求1至4任一所述的方法,其特征在于,所述方法还包括:
    响应于所述电子设备检测到所述电子设备旋转且所述面部图像移出所述第一预览框, 关闭所述第一摄像头;或者,
    响应于所述电子设备检测到所述第二摄像头采集到的图像中包括所述面部图像,关闭所述第一摄像头。
  8. 如权利要求7所述的方法,其特征在于,打开所述第二摄像头,关闭所述第一摄像头之后,还包括:
    响应于所述电子设备检测到用户的第三操作,生成第二目标图片并保存,所述第二目标图片中显示的图像为所述第二预览框中显示的图像。
  9. 如权利要求3至8任一所述的方法,其特征在于,所述方法还包括:
    响应于所述电子设备检测到用户在所述第二触摸屏上的第四操作,关闭所述第二触摸屏;所述第四操作为用户对所述第二用户界面上显示的图标的操作、或者预设的手势操作。
  10. 如权利要求9所述的方法,其特征在于,所述方法还包括:
    响应于所述电子设备检测到用户在所述第二触摸屏上的第四操作,关闭所述第二摄像头;或者,
    在关闭所述第二触摸屏预设时长后,关闭所述第二摄像头。
  11. 如权利要求1至10任一所述的方法,其特征在于,若面部图像显示在所述第一预览框,响应于所述电子设备检测到所述电子设备旋转且所述面部图像不显示在所述第一预览框,打开所述第二摄像头,包括:
    若面部图像显示在所述第一预览框,且在所述面部图像为目标面部图像时,响应于所述电子设备检测到所述电子设备旋转且所述面部图像不显示在所述第一预览框,打开所述第二摄像头。
  12. 一种电子设备,其特征在于,包括触摸屏、摄像头、处理器和存储器;
    其中,所述存储器用于存储一个或多个计算机程序;
    当所述存储器存储的一个或多个计算机程序被所述处理器执行时,使得所述电子设备能够实现如权利要求1至11任一所述的方法。
  13. 一种芯片,其特征在于,所述芯片与电子设备中的存储器耦合,执行如权利要求1至11任一所述的方法。
  14. 一种计算机存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1至11任一所述的方法。
PCT/CN2018/088677 2018-05-28 2018-05-28 一种拍摄的方法及电子设备 WO2019227281A1 (zh)

Priority Applications (12)

Application Number Priority Date Filing Date Title
PCT/CN2018/088677 WO2019227281A1 (zh) 2018-05-28 2018-05-28 一种拍摄的方法及电子设备
PCT/CN2018/092873 WO2019227553A1 (zh) 2018-05-28 2018-06-26 一种拍摄的方法及电子设备
CN201880093594.1A CN112136100A (zh) 2018-05-28 2018-06-26 一种拍摄的方法及电子设备
US17/058,804 US11811961B2 (en) 2018-05-28 2018-08-31 Dual-display electronic device operation during incoming call
CN202311855276.3A CN117880415A (zh) 2018-05-28 2018-08-31 一种电子设备的操作方法和电子设备
CN202310829423.3A CN116931666A (zh) 2018-05-28 2018-08-31 一种电子设备的操作方法和电子设备
PCT/CN2018/103662 WO2019227752A1 (zh) 2018-05-28 2018-08-31 一种电子设备的操作方法和电子设备
CN202111525871.1A CN114401336B (zh) 2018-05-28 2018-08-31 一种电子设备的操作方法、电子设备、芯片和计算机存储介质
CN201880063475.1A CN111164539A (zh) 2018-05-28 2018-08-31 一种电子设备的操作方法和电子设备
EP18920362.3A EP3779643B1 (en) 2018-05-28 2018-08-31 Method for operating electronic device and electronic device
CN202210843023.3A CN115390620B (zh) 2018-05-28 2018-08-31 一种电子设备的操作方法和电子设备
US18/312,320 US20230275985A1 (en) 2018-05-28 2023-05-04 Dual-Display Electronic Device Operation During Incoming Call

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/088677 WO2019227281A1 (zh) 2018-05-28 2018-05-28 一种拍摄的方法及电子设备

Publications (1)

Publication Number Publication Date
WO2019227281A1 true WO2019227281A1 (zh) 2019-12-05

Family

ID=68697173

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/CN2018/088677 WO2019227281A1 (zh) 2018-05-28 2018-05-28 一种拍摄的方法及电子设备
PCT/CN2018/092873 WO2019227553A1 (zh) 2018-05-28 2018-06-26 一种拍摄的方法及电子设备

Family Applications After (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/092873 WO2019227553A1 (zh) 2018-05-28 2018-06-26 一种拍摄的方法及电子设备

Country Status (4)

Country Link
US (1) US11811961B2 (zh)
EP (1) EP3779643B1 (zh)
CN (2) CN112136100A (zh)
WO (2) WO2019227281A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514871A (zh) * 2022-09-30 2022-12-23 读书郎教育科技有限公司 一种基于智能终端的翻转摄像头预览优化系统及方法

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10009536B2 (en) 2016-06-12 2018-06-26 Apple Inc. Applying a simulated optical effect based on data received from multiple camera sensors
CN108769508B (zh) * 2018-04-28 2019-06-28 Oppo广东移动通信有限公司 数据处理方法、装置、计算机可读存储介质和电子设备
US11343372B2 (en) * 2020-05-29 2022-05-24 Motorola Mobility Llc Shielding a capacitance sensor during ear-speaker mode of a mobile device
USD946018S1 (en) 2020-06-18 2022-03-15 Apple Inc. Display screen or portion thereof with graphical user interface
USD965022S1 (en) * 2020-07-24 2022-09-27 Samsung Electronics Co., Ltd. Electronic device with transitional graphical user interface
US11212449B1 (en) * 2020-09-25 2021-12-28 Apple Inc. User interfaces for media capture and management
CN114338904B (zh) * 2020-09-27 2022-12-30 华为技术有限公司 一种来电提示方法、电子设备及可读存储介质
US11720312B2 (en) 2021-03-22 2023-08-08 Motorola Mobility Llc Manage quickview content for a multi-display device
CN115150578A (zh) * 2021-03-31 2022-10-04 摩托罗拉移动有限责任公司 双显示双面相机视频呼叫系统
CN115484392B (zh) * 2021-06-16 2023-12-19 荣耀终端有限公司 一种拍摄视频的方法及电子设备
US11966659B2 (en) 2022-03-08 2024-04-23 Motorola Mobility Llc Context-based display of content on a multi-display system
CN114785958A (zh) * 2022-05-31 2022-07-22 维沃移动通信有限公司 角度测量方法及其装置
CN116048436B (zh) * 2022-06-17 2024-03-08 荣耀终端有限公司 应用界面显示方法、电子设备及存储介质

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103037083A (zh) * 2012-12-10 2013-04-10 广东欧珀移动通信有限公司 一种前后置摄像头的切换方法和装置
US20130222635A1 (en) * 2009-11-30 2013-08-29 Samsung Electronics Co., Ltd. Digital photographing apparatus and method of controlling the same
CN104539836A (zh) * 2014-11-25 2015-04-22 深圳市金立通信设备有限公司 一种终端
CN104902186A (zh) * 2015-05-29 2015-09-09 深圳市卡卓无线信息技术有限公司 一种相机程序快捷启动方法及应用该方法的移动终端
KR20160087969A (ko) * 2015-01-14 2016-07-25 엘지전자 주식회사 이동 단말기 및 그의 듀얼 lcd연동방법
CN106231087A (zh) * 2016-07-27 2016-12-14 努比亚技术有限公司 一种正反面双屏显示设备防误触的方法和装置
CN106603921A (zh) * 2016-12-22 2017-04-26 惠州Tcl移动通信有限公司 一种基于移动终端切换前后摄像头的方法及其系统
CN206542462U (zh) * 2017-03-29 2017-10-03 张厚浩 一种双屏智能手机
CN107820016A (zh) * 2017-11-29 2018-03-20 努比亚技术有限公司 双屏终端的拍摄显示方法、双屏终端和计算机存储介质

Family Cites Families (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004187182A (ja) * 2002-12-06 2004-07-02 Hitachi Ltd 携帯端末装置
KR101512768B1 (ko) * 2008-08-22 2015-04-16 엘지전자 주식회사 휴대 단말기 및 그 제어방법
WO2012044714A1 (en) * 2010-10-01 2012-04-05 Imerj LLC Pinch gesture to swap windows
KR20130135282A (ko) 2010-12-10 2013-12-10 요타 디바이시스 아이피알 리미티드 이용자 인터페이스를 갖는 모바일 디바이스
KR102099358B1 (ko) 2013-04-22 2020-04-09 엘지전자 주식회사 이동 단말기 및 그것의 제어 방법
CN105334916A (zh) 2014-08-15 2016-02-17 德斯国际公司 双面双屏智能移动终端
CN104270534A (zh) * 2014-10-29 2015-01-07 广州三星通信技术研究有限公司 终端设备控制方法和装置
CN104536559A (zh) * 2014-11-25 2015-04-22 深圳市金立通信设备有限公司 一种终端控制方法
CN104539844A (zh) 2014-12-18 2015-04-22 深圳市金立通信设备有限公司 一种终端
CN104598186B (zh) 2015-01-16 2018-09-04 广州三星通信技术研究有限公司 用于电子设备的操作的方法及电子设备
CN104717364A (zh) 2015-03-24 2015-06-17 联想(北京)有限公司 一种信息处理方法和装置
CN104954553A (zh) 2015-04-30 2015-09-30 努比亚技术有限公司 移动终端的分屏显示方法及装置
US9936138B2 (en) * 2015-07-29 2018-04-03 Samsung Electronics Co., Ltd. User terminal apparatus and control method thereof
CN105120180A (zh) * 2015-09-24 2015-12-02 广东欧珀移动通信有限公司 一种基于后置摄像头进行自拍的方法、装置及移动终端
CN105338182A (zh) * 2015-10-23 2016-02-17 李彦辰 双屏手机的第二触控显示屏控制方法及控制装置
CN105897961A (zh) 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 一种智能手机操作方法、装置及智能手机
CN107025006A (zh) * 2016-01-29 2017-08-08 联想(北京)有限公司 一种信息处理方法及电子设备
CN205430353U (zh) 2016-03-28 2016-08-03 郭亚钗 一种双显示屏手机
CN106101309A (zh) 2016-06-29 2016-11-09 努比亚技术有限公司 一种双面屏幕切换装置及方法、移动终端
KR20180003175A (ko) * 2016-06-30 2018-01-09 삼성전자주식회사 전자 장치 및 그의 동작 방법
CN106168891B (zh) * 2016-06-30 2020-06-16 努比亚技术有限公司 屏幕内容切换装置、双屏终端及屏幕内容切换方法
CN107223234A (zh) 2016-09-12 2017-09-29 深圳前海达闼云端智能科技有限公司 一种电子设备
CN106488008A (zh) * 2016-09-12 2017-03-08 努比亚技术有限公司 一种语音通话控制装置及其方法、移动终端
CN206136005U (zh) 2016-10-11 2017-04-26 珠海格力电器股份有限公司 一种双屏幕手机
CN106657460A (zh) * 2016-11-17 2017-05-10 上海斐讯数据通信技术有限公司 一种采用后置摄像头自拍的方法和装置
CN106534695B (zh) * 2016-11-28 2021-10-22 宇龙计算机通信科技(深圳)有限公司 拍摄方法、拍摄装置和终端
CN106453962B (zh) 2016-11-30 2020-01-21 珠海市魅族科技有限公司 双屏智能终端的摄像控制方法
WO2018119732A1 (zh) 2016-12-28 2018-07-05 深圳市柔宇科技有限公司 一种信息处理方法及装置
CN106657667A (zh) 2017-01-09 2017-05-10 努比亚技术有限公司 一种显示屏的点亮装置和方法
CN106843786B (zh) 2017-01-23 2022-12-20 宇龙计算机通信科技(深圳)有限公司 显示屏的开启方法、显示屏的开启装置和终端
CN106953990B (zh) * 2017-03-29 2020-06-16 青岛海信移动通信技术股份有限公司 移动终端的来电接听方法及移动终端
CN107102733A (zh) 2017-04-14 2017-08-29 宇龙计算机通信科技(深圳)有限公司 一种电子设备触摸屏控制方法及装置
CN107045421B (zh) 2017-04-27 2021-06-18 宇龙计算机通信科技(深圳)有限公司 屏幕切换方法及移动终端
CN107517349A (zh) * 2017-09-07 2017-12-26 深圳支点电子智能科技有限公司 具有拍照功能的移动终端和相关产品
CN107807772A (zh) * 2017-10-17 2018-03-16 广东欧珀移动通信有限公司 图像数据处理方法、装置及移动终端
CN108063864B (zh) 2017-11-29 2021-05-21 努比亚技术有限公司 双面屏来电提示方法、双面屏终端及计算机可读存储介质
CN107992360B (zh) * 2017-11-30 2022-02-22 努比亚技术有限公司 应用切换处理方法、移动终端及可读存储介质
CN108200229A (zh) 2017-11-30 2018-06-22 努比亚技术有限公司 柔性屏终端的拍摄方法、终端和计算机可读存储介质

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130222635A1 (en) * 2009-11-30 2013-08-29 Samsung Electronics Co., Ltd. Digital photographing apparatus and method of controlling the same
CN103037083A (zh) * 2012-12-10 2013-04-10 广东欧珀移动通信有限公司 一种前后置摄像头的切换方法和装置
CN104539836A (zh) * 2014-11-25 2015-04-22 深圳市金立通信设备有限公司 一种终端
KR20160087969A (ko) * 2015-01-14 2016-07-25 엘지전자 주식회사 이동 단말기 및 그의 듀얼 lcd연동방법
CN104902186A (zh) * 2015-05-29 2015-09-09 深圳市卡卓无线信息技术有限公司 一种相机程序快捷启动方法及应用该方法的移动终端
CN106231087A (zh) * 2016-07-27 2016-12-14 努比亚技术有限公司 一种正反面双屏显示设备防误触的方法和装置
CN106603921A (zh) * 2016-12-22 2017-04-26 惠州Tcl移动通信有限公司 一种基于移动终端切换前后摄像头的方法及其系统
CN206542462U (zh) * 2017-03-29 2017-10-03 张厚浩 一种双屏智能手机
CN107820016A (zh) * 2017-11-29 2018-03-20 努比亚技术有限公司 双屏终端的拍摄显示方法、双屏终端和计算机存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514871A (zh) * 2022-09-30 2022-12-23 读书郎教育科技有限公司 一种基于智能终端的翻转摄像头预览优化系统及方法

Also Published As

Publication number Publication date
US11811961B2 (en) 2023-11-07
EP3779643B1 (en) 2024-02-14
CN111164539A (zh) 2020-05-15
CN112136100A (zh) 2020-12-25
EP3779643A1 (en) 2021-02-17
EP3779643A4 (en) 2021-06-09
US20210208831A1 (en) 2021-07-08
WO2019227553A1 (zh) 2019-12-05

Similar Documents

Publication Publication Date Title
WO2019227281A1 (zh) 一种拍摄的方法及电子设备
US11861161B2 (en) Display method and apparatus
KR102266674B1 (ko) 촬영 방법 및 단말
US20220116444A1 (en) Method for sharing data in local area network and electronic device
US9971712B2 (en) Electronic device and operating method thereof
WO2019084827A1 (zh) 在通知栏下拉菜单中管理多个自由窗口
WO2022227623A1 (zh) 显示发布进度的方法及电子设备
CN112947823A (zh) 会话处理方法、装置、设备及存储介质
US20230129384A1 (en) Method for Browsing Application Folder and Electronic Device
AU2018414730B2 (en) Application window display method and terminal
US11144190B2 (en) Electronic device and method for sharing data thereof
WO2020215969A1 (zh) 内容输入方法及终端设备
US20230275985A1 (en) Dual-Display Electronic Device Operation During Incoming Call
US20210165953A1 (en) Email Translation Method and Electronic 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: 18921175

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

Country of ref document: EP

Kind code of ref document: A1