WO2021219141A1 - 拍照方法、图形用户界面及电子设备 - Google Patents

拍照方法、图形用户界面及电子设备 Download PDF

Info

Publication number
WO2021219141A1
WO2021219141A1 PCT/CN2021/091754 CN2021091754W WO2021219141A1 WO 2021219141 A1 WO2021219141 A1 WO 2021219141A1 CN 2021091754 W CN2021091754 W CN 2021091754W WO 2021219141 A1 WO2021219141 A1 WO 2021219141A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
electronic device
image
angle
preview
Prior art date
Application number
PCT/CN2021/091754
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 EP21797640.6A priority Critical patent/EP4135309A4/en
Priority to BR112022021773A priority patent/BR112022021773A2/pt
Priority to US17/922,252 priority patent/US12022183B2/en
Publication of WO2021219141A1 publication Critical patent/WO2021219141A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • 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
    • 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/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • 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

Definitions

  • This application relates to the field of terminal technology, in particular to a photographing method, a graphical user interface and an electronic device.
  • the purpose of this application is to provide a photographing method, a graphical user interface (GUI), and an electronic device, which can support the user to adjust the viewing angle of the photograph preview through gestures, and the user does not need to touch the screen with a finger, which is convenient for operation.
  • the photographing method can also support the user to adjust the viewing angle while adjusting the viewing angle, which can simultaneously adjust the viewing angle and the viewing angle.
  • the user can gradually change the size of the preview viewing angle while viewing the view, and allows the user to feel the size of the viewing angle.
  • the effect of changes on the viewfinder makes it easy for users to quickly obtain the desired viewing angle and viewfinder, making the shooting process more efficient.
  • the present application provides a photographing method, which is applied to an electronic device including a screen, a first camera, and a second camera, and the first camera and the screen are arranged on the same side of the electronic device.
  • the method may include: the electronic device turns on the first camera and the second camera, and displays a preview interface on the screen.
  • the preview interface may display the first image from the second camera.
  • the electronic device may detect the first gesture by the user through the first camera, and display a second image from the second camera in the preview interface, and the viewing angle of the second image is larger than the viewing angle of the first image.
  • the electronic device can save the third image from the second camera displayed in the preview interface as a picture or video.
  • the first camera can be a front camera, which can be used to collect images of the user.
  • the second camera can be a front camera or a rear camera.
  • the second camera can be used to capture images of the scene.
  • the second camera in a front camera scene, the second camera is a front camera; in a rear camera scene, the second camera is a rear camera.
  • the second camera may be a camera, for example, a common camera.
  • the second camera may also be multiple cameras with different optical angles of view, such as five cameras of an ultra-telephoto camera, a telephoto camera, a normal camera, a wide-angle camera, and an ultra-wide-angle camera.
  • the preview images from the camera displayed in the preview interface are all cropped from the images collected by the camera.
  • the electronic device can crop the image collected by the camera by a center cropping method.
  • the preview image displayed in the preview interface is the image collected by the camera.
  • the electronic device displays the first image from the second camera on the preview interface.
  • the first image may be obtained by the electronic device through the center cropping of the image collected by the second camera.
  • the center position of the first image may coincide with the center position of the image collected by the second camera.
  • the first user input may be a user operation that instructs to trigger a photo or end a video recording.
  • the electronic device may save the image currently displayed in the preview interface as a picture.
  • the image currently displayed in the preview interface is the third image from the second camera.
  • the electronic device can save the image displayed in the preview interface during the period from the start of the video recording to the end of the video recording as a video.
  • the viewing angle of displaying the second image from the second camera in the preview interface may gradually become larger.
  • the specific implementation may include: the electronic device successively displays M second images from the second camera in the preview interface, and the viewing angle of the M second images gradually becomes larger.
  • M is a positive integer greater than or equal to 2.
  • the second camera and the first camera may be the same camera, for example, a front-facing wide-angle camera or a front-facing common camera.
  • the viewing angle of the third image may be as large as the viewing angle of the second image.
  • the electronic device may first detect the first gesture by the user through the first camera, and then the electronic device may detect the second gesture by the user through the first camera.
  • the electronic device may display a fourth image from the second camera in the preview interface, and the viewing angle of the fourth image is smaller than the viewing angle of the second image.
  • the viewing angle of displaying the fourth image from the second camera in the preview interface may gradually become smaller.
  • the specific implementation may include: the electronic device successively displays the N second images from the second camera in the preview interface, and the viewing angle of the N second images gradually becomes larger.
  • N is a positive integer greater than or equal to 2.
  • the viewing angle of the third image may be as large as the viewing angle of the first image.
  • the electronic device may also only detect the user's second gesture and then detect the aforementioned first user input. At this time, the viewing angle of the third image may be smaller than the viewing angle of the first image.
  • the electronic device may also detect the second gesture and the first gesture from the user successively, and then detect the aforementioned first user input.
  • the angle of view of the third image may be the same as that of the first image. As big as the angle of view
  • the electronic device may detect the user's first gesture and the user's second gesture multiple times.
  • the detected multiple first gestures and multiple second gestures are not limited in order.
  • the first gesture may be a gesture of opening the palm and pushing forward.
  • the electronic device may collect the image and depth information of the user's hand through the first camera.
  • the image of the hand includes an image with an open palm, and the depth information indicates that the hand is close to the first camera
  • the electronic device can detect that the user indicates the first gesture.
  • the first gesture includes: the user opens his palm and the user's hand is close to the first camera.
  • the second gesture may be a gesture of making a fist and pulling back.
  • the electronic device may collect the image and depth information of the user's hand through the first camera.
  • the image of the hand includes an image of the hand making a fist
  • the depth information indicates that the hand is far away from the first camera
  • the electronic device detects that the user indicates the second gesture.
  • the second gesture includes: the user's hand is making a fist and the user's hand is away from the first camera.
  • the second camera includes H cameras with different viewing angles, and the H cameras are front cameras or rear cameras.
  • the second image displayed in the preview interface may come from the H cameras with the viewing angles from small to large.
  • H is a positive integer greater than or equal to 2.
  • H is 2, that is, the second camera includes two cameras with different viewing angles.
  • the two cameras may be the third camera and the fourth camera, respectively.
  • the angle of view of the fourth camera is larger than that of the third camera.
  • the first image can be from the third camera, and the second image can be from the fourth camera.
  • the third camera and the fourth camera may both be front cameras or both rear cameras.
  • the second camera includes H cameras with different viewing angles, and the H cameras are front cameras or rear cameras.
  • the fourth image displayed in the preview interface may come from the H cameras in descending view angles.
  • H is a positive integer greater than or equal to 2.
  • H is 2, that is, the second camera includes two cameras with different viewing angles.
  • the two cameras may be the third camera and the fourth camera, respectively.
  • the angle of view of the fourth camera is larger than that of the third camera.
  • the fourth image can be from the third camera, and the second image can be from the fourth camera.
  • the viewing angle of the second image may be as large as the first viewing angle, where, The first angle of view is the same as the angle of view of the wide-angle camera, or the angle of the first angle of view is the same as that of the ultra-wide angle camera, or the difference between the angle of view of the first angle of view and the wide angle camera is smaller than the first value, or the first angle of view and the ultra-wide angle The difference between the viewing angles of the cameras is smaller than the second value.
  • the difference between the first angle of view and the angle of view of the wide-angle camera is smaller than the first value means that the first angle of view is very close to the angle of view of the wide-angle camera, and the difference between the angle of view of the first angle of view and the ultra-wide angle camera is smaller than the second value. Refers to the first viewing angle very close to the viewing angle of the ultra-wide-angle camera.
  • the first angle of view may be the angle of view of a wide-angle camera.
  • the electronic device can collect the depth information of the user's hand through the first camera.
  • the depth information may indicate that the user's hand is close to the first camera.
  • the electronic device can calculate the speed at which the user's hand approaching the first camera when the user signals the first gesture.
  • the electronic device can switch to the angle of view of the wide-angle camera in one step in the preview interface (ie, the first angle of view).
  • the user can open the palm of the user to push forward quickly, and when the speed of pushing forward exceeds the first speed, it can switch to a larger viewing angle in one step, such as the viewing angle of a wide-angle camera, to achieve rapid switching of viewing angles.
  • the angle of view of the fourth image can be as large as the angle of view of the first image .
  • the electronic device 100 may collect the depth information of the user's hand through the first camera.
  • the depth information may indicate that the user's hand is far away from the first camera.
  • the electronic device 100 may calculate the speed at which the user's hand is away from the first camera when the user signals the second gesture.
  • the electronic device 100 can switch to the angle of view of the normal camera in one step in the preview interface.
  • the user can make a fist and quickly pull forward, and when the speed of pulling backward exceeds the second speed, it can switch to a smaller angle of view in one step, such as the angle of view of a normal camera, to achieve rapid switching of angle of view.
  • this application provides a photographing method, which is applied to an electronic device including a screen and a camera.
  • the method may include: the electronic device turns on the camera, and may display a preview interface on the screen.
  • the first image from the camera is displayed in the preview interface.
  • the electronic device detects that the electronic device is making a first movement, and the first movement is that the electronic device is moving away from the photographed object and the moving speed of the electronic device exceeds the first speed.
  • the electronic device may display a second image from the camera in the preview interface, and the viewing angle of the second image is larger than the viewing angle of the first image.
  • the electronic device may save the third image from the camera displayed in the preview interface as a picture or video.
  • the second image from the camera displayed in the preview interface may gradually become larger.
  • the specific implementation may include: the electronic device may successively display K second images from the camera in the preview interface, the angle of view of the K second images gradually becomes larger, and the first displayed first image among the K second images
  • the viewing angle of the second image can be as large as the viewing angle of the first image.
  • K is a positive integer greater than or equal to 2.
  • the viewing angle of the third image may be as large as the viewing angle of the second image.
  • the electronic device detects that the electronic device is making the first movement, which specifically includes: when detecting that the image of the photographed object becomes smaller, the electronic device can determine that the electronic device is moving away from the photographed object. Moving; if the extent of the image of the photographed object becomes smaller than the first value per unit time, it is determined that the moving speed of the electronic device exceeds the first speed.
  • the electronic device detects that the electronic device is making the first movement, which specifically includes: the electronic device can detect through the motion sensor that the electronic device is moving away from the subject and the movement speed of the electronic device Exceed the first speed.
  • the electronic device can detect that the electronic device is making a second movement, and the second movement is that the electronic device is moving close to the subject and the movement speed of the electronic device exceeds the second speed.
  • the electronic device may display a fourth image from the camera in the preview interface, and the viewing angle of the fourth image is smaller than the viewing angle of the second image.
  • the fourth image from the camera displayed in the preview interface may gradually become smaller.
  • the specific implementation may include: the electronic device can successively display J fourth images from the camera in the preview interface, the viewing angle of the J fourth images gradually becomes smaller, and the first displayed first among the J fourth images The viewing angle of the fourth image is the same as the viewing angle of the first image.
  • J is a positive integer greater than or equal to 2.
  • the viewing angle of the third image may be as large as the viewing angle of the fourth image.
  • the electronic device detects that the electronic device is making the second movement, which specifically includes: when detecting that the image of the photographed object becomes larger, the electronic device can determine that the electronic device is moving close to the photographed object If the degree of increase in the image of the subject per unit time exceeds the first value, it is determined that the moving speed of the electronic device exceeds the second speed.
  • the electronic device detects that the electronic device is making the second movement, which specifically includes: the electronic device can detect through the motion sensor that the electronic device is moving close to the subject and the movement speed of the electronic device Exceed the second speed.
  • this application provides a photographing method.
  • the method is applied to electronic equipment including screens and cameras.
  • the method includes: the electronic device can turn on the camera and display a preview interface on the screen, and the preview interface can display the first image from the camera.
  • the electronic device can detect that the number N1 of human faces contained in the first image is greater than the number N2 of human faces contained in the first image; N1 and N2 are positive integers.
  • the electronic device may display a second image from the camera in the preview interface, and the viewing angle of the second image is larger than the viewing angle of the first image.
  • the electronic device can save the third image from the camera displayed in the preview interface as a picture or video.
  • the viewing angle of sequentially displaying the second image from the camera in the preview interface may gradually become larger.
  • the specific implementation may include: the electronic device may successively display S second images from the camera in the preview interface, the viewing angle of the S second images gradually becomes larger, and the first display of the S second images The viewing angle of the second image is the same as the viewing angle of the first image.
  • S is a positive integer greater than or equal to 2.
  • the viewing angle of the third image may be as large as the viewing angle of the second image.
  • this application provides an electronic device.
  • the electronic device may include a screen, a first camera, a second camera, a memory, one or more processors, multiple applications, and one or more programs, one or more Multiple processors are used to execute one or more computer programs stored in the memory, where:
  • the first camera can be a front camera, which can be used to collect images of the user.
  • the second camera can be a front camera or a rear camera.
  • the second camera can be used to capture images of the scene.
  • the second camera may be a camera, for example, a common camera.
  • the second camera may also be multiple cameras with different optical angles of view, such as five cameras of an ultra-telephoto camera, a telephoto camera, a normal camera, a wide-angle camera, and an ultra-wide-angle camera.
  • the screen can be used to display the preview interface.
  • the preview interface can be used to display the images collected by the second camera, and can also be used to display the images collected by the first camera.
  • this application provides an electronic device, which may include a device that can implement any possible implementation manner in the first aspect, or any possible implementation manner in the second aspect, or Such as any possible implementation in the third aspect.
  • the present application also provides a photographing device, which has the function of realizing the behavior of the electronic device in the actual method.
  • the function can be realized by hardware, or the corresponding software can be executed by hardware.
  • the hardware or software includes one or more modules corresponding to functions.
  • the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. Any possible implementation manner in the aspect, or as any possible implementation manner in the second aspect, or as any possible implementation manner in the third aspect.
  • a computer program product containing instructions is characterized in that when the computer program product runs on an electronic device, the electronic device executes any possible implementation manner as in the first aspect, or as in the second aspect Any possible implementation manner, or any possible implementation manner as in the third aspect.
  • a computer-readable storage medium including instructions, characterized in that, when the instructions are executed on an electronic device, the electronic device is caused to execute any possible implementation manner as in the first aspect, or as in the second aspect Any possible implementation manner in the third aspect, or any possible implementation manner in the third aspect.
  • FIG. 1 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application
  • FIGS. 2A and 2B show schematic diagrams of the external structure of an electronic device provided by an embodiment of the present application
  • Figure 2C shows a user interface for application menus provided by an embodiment of the present application
  • 3A-3B show a user interface of a typical shooting scene provided by an embodiment of the present application
  • 3C-3H show a user interface for adjusting the preview angle of view presented by the image displayed in the preview box when the front camera of the electronic device takes a photo according to an embodiment of the present application;
  • 4A and 4B show an implementation manner of adjusting the preview angle of view presented by the image displayed in the preview frame when the front camera of the electronic device is provided in an embodiment of the present application;
  • 5A-5O show a user interface for adjusting the preview angle of view presented by the image displayed in the preview frame when the front camera of the electronic device is recording video according to an embodiment of the present application;
  • 6A and 6B show a user interface for enabling aerial photography provided by an embodiment of the present application
  • 6C-FIG. 6I show a user interface for adjusting the preview angle of view presented by the image displayed in the preview box when the rear camera of the electronic device takes a photo according to an embodiment of the present application;
  • Figures 7A and 7C show some user interfaces for taking pictures of an electronic device provided by embodiments of the present application.
  • FIG. 7B shows a schematic diagram of an application scenario of photographing by an electronic device according to an embodiment of the present application
  • 8A and 8B show other user interfaces for taking pictures of an electronic device according to an embodiment of the present application
  • FIG. 9 shows the overall flow of the photographing method provided by the embodiment of the present application.
  • the embodiment of the present application provides a photographing method, which can support the user to adjust the viewing angle during the photographing preview through gestures without touching the screen, which is convenient for the user to operate.
  • the photographing method can also support the user to adjust the size of the preview perspective while framing, which can adjust the preview perspective and framing at the same time, the user can gradually adjust the size of the preview perspective while framing, and allows the user to feel the preview
  • the effect of the change in the angle of view on the viewfinder is convenient for the user to quickly obtain the desired view angle and viewfinder, making the shooting process more efficient.
  • the user wants to adjust the size of the preview viewing angle the user needs to hold the electronic device close to him and touch the screen with his finger to select the zoom magnification.
  • the framing at this time is generally not what the user wants. For example, the framing faces the ground.
  • the user often needs to adjust the shooting posture to re-framing after adjusting the size of the preview angle of view, for example, lifting the mobile phone toward the scene. That is to say, in the prior art, it is difficult for the user to adjust the size of the preview viewing angle and the user to view the view at the same time.
  • the photographing method provided in the embodiments of the present application can be applied to an electronic device including multiple cameras.
  • the electronic device can recognize the user's gesture through the front camera.
  • the electronic device sequentially displays a series of images in the preview box, and the preview angle of view presented by the series of images is gradual.
  • Gradient includes gradually becoming larger and gradually becoming smaller.
  • the front camera recognizes the gesture of opening the palm and pushing forward
  • the preview angle of the series of images displayed in the preview box by the electronic device is gradually enlarged, allowing more scenes to be displayed in the preview box.
  • the front camera recognizes the gesture of making a fist and pulling back
  • the electronic device successively displays a series of images in the preview box.
  • the preview angle of view presented by the series of images becomes gradually smaller, which can gradually reduce the scene presented in the preview box.
  • the forward direction of the open palm pushing forward means that the user's palm is close to the electronic device
  • the backward direction of making a fist and pulling backward means that the user makes a fist away from the electronic device.
  • the preview perspective presented by a series of images in the preview box gradually becomes larger, and more and more scenes can be included in the preview box;
  • the preview angle of view presented by a series of images in the preview box gradually becomes smaller, and fewer and fewer scenes can be included in the preview box.
  • the embodiment of the present application does not limit the gesture used to change the preview perspective presented by the series of images displayed in the preview box.
  • the electronic device can also recognize the user's gesture through any one of the rear cameras.
  • the user can adjust the size of the preview angle of view presented by the image displayed in the preview box through a gesture with one hand in the air.
  • the photographing method of this solution allows the user to conveniently adjust the preview angle of view presented by the image displayed in the preview box. In this way, the user does not need to repeatedly bring the electronic device close and adjust the preview angle of view presented by the image displayed in the preview box by touching the screen of the electronic device with a finger.
  • the scene displayed in the preview box is generally not what the user wants to shoot.
  • the shooting method of this solution allows the user to feel the change of the scene displayed in the preview frame while adjusting the preview angle of view presented by the image displayed in the preview frame.
  • the change of the scene displayed in the preview frame is generally what the user wants to shoot. In this way, the user can quickly obtain the desired view while adjusting the preview angle of view presented by the image displayed in the preview box.
  • the electronic device can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR)/virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer, UMPC), netbooks, personal digital assistants (personal digital assistants, PDAs), or special cameras (such as single-lens reflex cameras, card cameras), etc.
  • AR augmented reality
  • VR virtual reality
  • PDA personal digital assistants
  • special cameras such as single-lens reflex cameras, card cameras
  • Fig. 1 exemplarily shows the structure of the electronic device.
  • the electronic device 100 may have multiple cameras 193, such as a normal camera, a wide-angle camera, an ultra-wide-angle camera, a telephoto camera, an ultra-telephoto camera, and the like.
  • the multiple cameras 193 can be respectively arranged on both sides of the electronic device.
  • the camera provided on the side of the display screen 194 of the electronic device 100 may be referred to as a front camera, and the camera provided on the side of the back cover of the electronic device 100 may be referred to as a rear camera.
  • the front camera may be used to capture images of the scene facing the display screen 194, and the rear camera may be used to capture images of the scene facing the back cover of the electronic device 100.
  • the angle of view can also be referred to as the field of view (field of view, FOV), which refers to the range of angles that can be imaged by the optical system of the camera.
  • the focal length of an ultra-wide-angle camera is generally about 12mm (millimeter, mm)-24mm, and the viewing angle of an ultra-wide-angle camera is generally 84°-120°;
  • the focal length of a wide-angle camera is generally about 24mm-35mm, and the viewing angle of a wide-angle camera is generally 63°-84°;
  • the focal length of an ordinary camera is generally about 50mm, and the angle of view of an ordinary camera is generally about 46°;
  • the focal length of a telephoto camera is generally about 135mm-500mm, and the angle of view of a telephoto camera is generally 5°-18°;
  • the focal length of an ultra-telephoto camera generally exceeds 500mm, and the viewing angle of an ultra-telephoto camera is generally 0°-5°.
  • the performance of these three cameras in terms of viewing angles is: ultra-wide-angle cameras are better than wide-angle cameras, and wide-angle cameras are better than ordinary cameras.
  • the electronic device 100 may also include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, and an antenna 1. , Antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor ( image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • a processor 110 such as a controller or GPU can be used to combine multiple frames of images simultaneously collected by multiple cameras 193 in a multi-channel shooting scene and display them in the viewfinder frame by stitching or partial superposition. Preview images in the image, so that the electronic device 100 can display the images collected by the multiple cameras 193 at the same time.
  • the processor 110 such as a controller or GPU, can also be used to perform anti-shake processing on the images collected by each camera 193 in a multi-channel shooting scene, and then combine multiple cameras 193 corresponding to The images after anti-shake processing are combined.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface can include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous receiver /transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and/or Universal serial bus (USB) interface, etc.
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal serial bus
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • Wireless communication technologies can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), and broadband code division multiple access. Address (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / Or IR technology, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • CDMA code division multiple access
  • CDMA broadband code division multiple access
  • Address wideband code division multiple access
  • TD-SCDMA time-division code division multiple access
  • LTE long term evolution
  • BT long term evolution
  • BT long term evolution
  • BT long term evolution
  • BT long term evolution
  • BT long term evolution
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, and the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • UFS universal flash storage
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as unlocking the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, and so on.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, pocket mode unlocking and screen lock.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human image sound part.
  • the bone conduction sensor 180M can also contact the human body image pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support one or more SIM card interfaces.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, which is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. It is not limited to being integrated in the processor 110, and the ISP may also be provided in the camera 193.
  • the camera 193 includes a lens and a photosensitive element (also referred to as an image sensor) for capturing still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal, such as standard RGB, YUV and other format image signals.
  • the camera 193 may be used to collect depth data.
  • the camera 193 may have a (time of flight, TOF) 3D sensing module or a structured light (structured light) 3D sensing module for acquiring depth information.
  • the camera used to collect depth data can be a front camera or a rear camera.
  • Video codecs are used to compress or decompress digital images.
  • the electronic device 100 may support one or more image codecs. In this way, the electronic device 100 can open or save pictures or videos in multiple encoding formats.
  • the electronic device 100 can implement a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can use liquid crystal display (LCD), organic light-emitting diode (organic light-emitting diode, OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or more display screens 194.
  • FIG. 2A and FIG. 2B show schematic diagrams of the external structure of an electronic device 100.
  • FIG. 2A shows the side where the display screen 194 of the electronic device 100 is located.
  • FIG. 2B shows the side where the back cover of the electric electronic device 100 is located.
  • the electronic device 100 may have multiple cameras 193.
  • the electronic device 100 may include multiple front cameras.
  • the front camera 193-1 may be an ordinary camera.
  • the front camera 193-2 can be a wide-angle camera.
  • the front camera 193-1 and the front camera 193-2 may be disposed on the top of the electronic device 100, such as the "bangs" position of the electronic device 100 (ie, the area AA shown in FIG. 2A).
  • the area AA may also include a speaker 170A and the like. As shown in FIG.
  • the electronic device 100 may include multiple rear cameras, such as a rear camera 193-3, a rear camera 193-4, and a rear camera 193-5.
  • the rear camera 193-3, the rear camera 193-4, and the rear camera 193-5 may be a normal camera, a wide-angle camera, and a telephoto camera, respectively.
  • the side where the back cover of the electronic device 100 is located may also have a flash 196 and the like.
  • the camera 193 can change the viewing angle of the preview image in the preview box through digital zoom, or change the viewing angle of the preview image in the preview box through optical zoom, and it can also use a combination of optical zoom and digital zoom (also known as hybrid Zoom) to change the viewing angle of the preview image.
  • zoom can include digital zoom, optical zoom, or hybrid zoom.
  • hybrid zoom is an example of hybrid zoom.
  • the electronic device 100 may change the cameras used for shooting among the plurality of cameras 193 and combine with digital zoom to realize that the size of the preview angle of view presented by a series of images displayed in the preview box is gradual.
  • the aforementioned camera used for shooting may refer to a camera whose collected image is displayed in the preview box.
  • the above-mentioned digital zoom can enable the electronic device 100 to increase the area of each pixel in the image captured by the camera 193 to achieve the purpose of changing the focal length. This is equivalent to that the electronic device 100 performs cropping processing on an image collected by a camera, and then enlarges the cropped image, that is, adjusting the resolution of the cropped image to be the same as the resolution of the image before cropping.
  • the current preview box displays the image collected by the normal camera 193-1 in the front camera, and the current zoom magnification is 1x magnification (1X).
  • the electronic device 100 recognizes the gesture of pushing forward with the open palm through the image collected by the ordinary camera 193-1, the electronic device 100 first displays the image collected by the ordinary camera 193-1 in the preview box, and then the wide-angle camera The image collected by 193-2 is cropped, and the cropped image is displayed in the preview box.
  • the electronic device 100 may crop the images successively collected by the wide-angle camera 193-2 multiple times, and the cropping area of the multiple cropping becomes larger and larger, that is, the electronic device 100 performs multiple digital zooming processes.
  • the image display may include two stages: the stage of using the ordinary camera 193-1 to capture images, and the stage of using the wide-angle camera 193-2 to capture images.
  • the zoom magnification is one magnification 1X.
  • the zoom magnification is gradually reduced from 1X, for example, the zoom magnification is reduced from 0.9 magnification (0.9X) to 0.8 magnification (0.8X), and from 0.8X to 0.7 magnification ( 0.7X) etc. In this way, when the gesture of pushing forward with the open palm occurs, the preview angle of view presented by the series of images displayed in the preview box becomes larger and larger.
  • the current preview box displays the image captured by the wide-angle camera 193-2
  • the current zoom magnification is the wide-angle magnification (Wide).
  • the electronic device 100 recognizes the gesture of making a fist and pulling back through the image collected by the wide-angle camera 193-2, the electronic device 100 first displays the image collected by the wide-angle camera 193-2 in the preview box, and then the wide-angle camera 193- 2Crop the captured image, and display the cropped image in the preview box.
  • the electronic device 100 may crop the images successively collected by the wide-angle camera 193-2 multiple times, and the cropping area of the multiple cropping becomes smaller and smaller, that is, the electronic device 100 performs multiple digital zooming processes.
  • the zoom magnification is gradually increased from Wide, for example, the zoom magnification is increased from Wide to 0.7X, from 0.7X to 0.8X, and so on.
  • the electronic device 100 displays the image collected by the ordinary camera 193-1 in the preview frame. If the electronic device 100 still recognizes the gesture of making a fist and pulling back through the image collected by the ordinary camera 193-1, the electronic device 100 can crop the image collected by the ordinary camera 193-1 and display the cropped image in the preview box . Specifically, the electronic device 100 may perform multiple cropping on the images successively collected by the ordinary camera 193-1, and the cropping area of the multiple cropping becomes smaller and smaller.
  • the zoom magnification is gradually increased from 1X, for example, the zoom magnification is increased from 1X to 1.1 magnification (1.1X), and from 1.1X to 1.2 magnification (1.2X) Wait.
  • the zoom magnification is increased from 1X to 1.1 magnification (1.1X), and from 1.1X to 1.2 magnification (1.2X) Wait.
  • the preview angle of view presented by the image from the camera displayed in the preview box may generally be smaller than the angle of view of the camera.
  • the image in the preview box is cropped from the image collected by the camera.
  • the zoom magnification is changed to a specific magnification, the preview angle of view presented by the image displayed in the preview frame can be as large as the angle of view of this camera.
  • the preview angle of view presented by the image displayed in the preview frame is generally smaller than the angle of view of the wide-angle camera 193-2.
  • the zoom magnification is a Wide magnification (such as 0.6X)
  • the preview angle of view presented by the image displayed in the preview frame can be as large as the angle of view of the wide-angle camera 193-2.
  • the electronic device 100 may also include more or fewer components.
  • the electronic device 100 may be a large-screen device such as a smart TV or a smart screen, and such a large-screen device may be equipped with a camera 193.
  • this large-screen device can recognize the aforementioned specific gestures through the images collected by the front camera 193, and then adjust the preview viewing angle during photo preview, video preview, and video recording (including video calls).
  • this large-screen device can recognize the aforementioned specific gestures through the images collected by the front camera 193, and then adjust the preview viewing angle during photo preview, video preview, and video recording (including video calls).
  • how to adjust the viewing angle of the preview it will be described in detail in subsequent embodiments, and will not be expanded here.
  • the following describes an exemplary user interface for application menus on the electronic device 100.
  • FIG. 2C exemplarily shows an exemplary user interface 210 for an application menu on the electronic device 100.
  • the user interface 210 may include: a status bar 211, a tray 215 with a list of commonly used applications, a calendar indicator 212, a weather indicator 213, a navigation bar 216, and other application icons 214. in:
  • the status bar 211 may include one or more signal strength indicators of a mobile communication signal, one or more signal strength indicators of a wireless fidelity (WiFi) signal, a battery status indicator, and a time indicator.
  • WiFi wireless fidelity
  • the calendar indicator 212 can be used to indicate the current time, such as date, day of the week, hour and minute information, and so on.
  • the weather indicator 213 can be used to indicate the type of weather, such as cloudy to clear, light rain, etc., and can also be used to indicate information such as temperature.
  • the tray 215 with icons of commonly used application programs may display: a dial icon 215A, an information icon 215B, a contact icon 215C, and a camera icon 215D.
  • the camera icon 215D can be used to start the camera application. For example, in response to a user operation on the camera icon 215D, such as a touch operation, the electronic device 100 can start a camera application to perform functions such as photographing and video recording.
  • the navigation bar 216 may include system navigation keys such as a return button 216C, a home screen button 216B, and a call out task history button 216C.
  • system navigation keys such as a return button 216C, a home screen button 216B, and a call out task history button 216C.
  • the electronic device 100 may display the previous page of the current page.
  • the main interface button 216B the electronic device 100 may display the main interface.
  • the outgoing task history button 216C the electronic device 100 may display the task recently opened by the user.
  • the naming of each navigation key can also be other, which is not limited in this application. Not limited to virtual keys, each navigation key in the navigation bar 216 can also be implemented as a physical key.
  • the other application icons 214 may include a mail icon 214A, a gallery icon 214B, a WeChat icon 214C, and a sports health icon 214D.
  • the gallery icon 214B can be used to open a gallery application.
  • the electronic device 100 in response to a user operation on the gallery icon 214B, such as a touch operation, the electronic device 100 can open a gallery application to display information such as pictures and videos stored in the electronic device 100.
  • the pictures and videos stored in the electronic device 100 include photos and videos taken by the electronic device 100 through a camera application.
  • the other application icons 214 may also include more application icons, which are not limited in the embodiment of the present application.
  • the user interface 210 may also include a page indicator 217.
  • Other application icons may be distributed on multiple pages, and the page indicator 217 may be used to indicate which application in which page the user is currently browsing.
  • the user can swipe the area of other application icons left and right to browse application icons in other pages.
  • the electronic device 100 may display the user interface of the application.
  • the user interface 210 exemplarily shown in FIG. 2C may be a home screen.
  • the electronic device 100 may also include a home button.
  • the main screen key can be a physical key or a virtual key (such as the key 216B).
  • the home screen key can be used to receive instructions from the user and return the currently displayed UI to the home interface, so that it is convenient for the user to view the home screen at any time.
  • FIG. 2C only exemplarily shows the user interface on the electronic device 100, and should not constitute a limitation to the embodiment of the present application.
  • the electronic device may detect a touch operation (such as a click operation on the camera icon 215D) acting on the camera icon 215D, and in response to the operation, may display the user interface 310 exemplarily shown in FIG. 3A.
  • the user interface 310 may be a user interface of a default photographing mode of a camera application, and may be used for the user to take a photograph through the default rear camera.
  • the camera application is an image shooting application on electronic devices such as smart phones and tablet computers. This application does not restrict the name of the application. In other words, the user can click the camera icon 215D to open the user interface 310 of the camera application.
  • the user can also open the user interface 310 in other applications, for example, the user clicks the shooting control in "WeChat” to open the user interface 310.
  • "WeChat” is a social application that allows users to share photos taken with others.
  • the default camera is not limited to the rear camera, and the electronic device 100 may also set the front camera as the default camera. That is to say, when the dependent application is started, the electronic device 100 can display the image collected by the front camera in the preview box 314, which can be used by the user to take photos with the default front camera.
  • FIG. 3A exemplarily shows a user interface 310 of a camera application on an electronic device such as a smart phone.
  • the user interface 310 may include: a setting control 311, a flash control 312, a zoom magnification 313, a preview box 314, a camera mode option 315, a gallery shortcut control 316, a shutter control 317, and a camera flip control 318. in:
  • the setting control 311 can be used to adjust the parameters of taking photos (such as resolution, filters, etc.) and to turn on or off some methods for taking pictures (such as timed taking pictures, smiling pictures, voice control taking pictures, etc.).
  • the setting control 311 can be used to set more other shooting functions, which is not limited in the embodiment of the present application.
  • the flash control 312 can be used to turn the flash on or off.
  • the zoom magnification 313 may be used to indicate the ratio of the preview view angle transformation presented by the image displayed in the preview frame 314. Among them, the larger the zoom magnification 313 is, the smaller the preview angle of view presented by the image displayed in the preview frame 314 is. Conversely, the smaller the zoom magnification 313 is, the larger the preview angle of view presented by the image displayed in the preview frame 314 is. As shown in Figure 3A, 1X can be the default zoom ratio of the camera application. When the zoom magnification 313 is one magnification 1X, the preview angle of view presented by the image displayed in the preview frame 314 is the same as the shooting angle of view of the ordinary camera 193-1.
  • the electronic device 100 can display the image collected by the ordinary camera 193-1 in the preview frame 314, and the preview angle presented by the image is the same as the shooting angle of the ordinary camera 193-1.
  • the embodiment of the present application does not limit the foregoing default zoom magnification.
  • the preview frame 314 can be used to display the images collected by the camera 193 in real time.
  • the electronic device can refresh the displayed content in it in real time, so that the user can preview the image currently collected by the camera 193.
  • One or more shooting mode options may be displayed in the camera mode option 315.
  • the one or more shooting mode options may include: large aperture mode option 315A, video mode option 315B, photographing mode option 315C, portrait mode option 315D, and more options 315E.
  • the one or more shooting mode options can be expressed as text information on the interface, such as "large aperture”, “video”, “photograph”, “portrait”, and “more”. Not limited to this, the one or more camera options may also be represented as icons or other forms of interactive elements (IE) on the interface.
  • IE interactive elements
  • the electronic device 100 may further display more other shooting mode options, such as slow motion shooting mode options, etc., to show the user a richer camera function.
  • more options 315E may not be displayed in the camera mode option 315, and the user can browse other shooting mode options by sliding left/right in the camera mode option 315.
  • the gallery shortcut key 316 can be used to open the gallery application.
  • the electronic device 100 can open the gallery application.
  • the gallery application is a picture management application on electronic devices such as smart phones, tablet computers, etc., and can also be referred to as "album".
  • the name of the application is not limited in this embodiment.
  • the gallery application can support the user to perform various operations on the pictures stored on the electronic device 100, such as browsing, editing, deleting, and selecting operations.
  • the shutter control 317 can be used to monitor user operations that trigger a photo.
  • the electronic device 100 can detect a user operation on the shutter control 317, and in response to the operation, the electronic device 100 can save the image in the preview box 314 as a picture in a gallery application.
  • the electronic device 100 may also display thumbnails of the saved images in the gallery shortcut key 316.
  • the user can click the shutter control 317 to trigger a photo.
  • the shutter control 317 may be a button or other forms of controls.
  • the camera flip control 318 can be used to monitor the user operation that triggers the camera flip.
  • the electronic device 100 can detect a user operation that acts on the camera flip control 318, such as a click operation, and in response to the operation, the electronic device 100 can flip the camera, for example, switch the rear camera to the front camera. At this time, as shown in FIG. 3B, the image collected by the front camera is displayed in the preview frame 314.
  • UI user interfaces
  • Figures 3B to 3H exemplarily show a user interface for adjusting the size of the preview viewing angle in a front camera scene.
  • the front camera scene may be a scene where the user holds the electronic device 100 while holding a selfie stick to take a picture.
  • Figures 3B to 3D exemplarily show the user interface of the zoomed-in preview view in the front-facing camera scene.
  • the electronic device 100 can recognize the user's gesture through the image collected by the front camera, and respond to a specific gesture (such as a gesture of opening a palm and pushing forward) to enlarge the preview perspective.
  • a specific gesture such as a gesture of opening a palm and pushing forward
  • the electronic device 100 can gradually enlarge the preview view angle presented by the image displayed in the preview frame 314. At the same time, the zoom magnification 313 displayed in the front camera preview interface 310 will gradually decrease.
  • the initial zoom magnification 313 may be one magnification 1X, and the image displayed in the preview frame 314 comes from a common front camera. Thereafter, the electronic device 100 can recognize the gesture of opening the palm and pushing forward, the preview angle of view presented by the image displayed in the preview frame 314 can gradually increase, and the zoom magnification 313 can gradually decrease. For example, the zoom magnification is reduced from 1X to 0.9X, from 0.9X to 0.8X, and so on.
  • the electronic device 100 can recognize the gesture of opening the palm and continuing to push forward. 313 reduced to 0.7X.
  • the electronic device 100 recognizes the gesture of opening the palm to further push forward, the preview angle of view presented by the image displayed in the preview frame 314 is further enlarged, and the zoom The magnification 313 is reduced to 0.6X, for example, the Wide magnification.
  • the zoom magnification 313 can be reduced from 1X to 0.9X, increased from 0.9X to 0.7X,..., gradually reduced to Wide magnification, and displayed in the preview frame 314
  • the preview angle of view presented by the image gradually becomes larger.
  • the user in the process of pre-photographing and previewing, the user can enlarge the preview perspective by opening the palm and pushing forward.
  • the electronic device 100 can adjust the speed at which the preview viewing angle becomes larger according to the speed at which the hand is pushed forward. The faster the hand is pushed forward, the faster the preview viewing angle becomes larger. In particular, when it is recognized within a short time T (such as 0.5 seconds) that the open palm is pushed forward at a speed greater than the preset speed, the electronic device 100 can directly change the preview viewing angle from a smaller preview viewing angle (such as a double zoom magnification). The preview viewing angle under magnification) is switched to the maximum preview viewing angle, such as the viewing angle of the wide-angle camera 193-2. In this way, the user can be supported to quickly switch to a larger preview perspective.
  • T such as 0.5 seconds
  • the electronic device 100 can stop zooming in on the preview viewing angle. In this way, the user can open his palm and push forward while feeling the effect of zooming in the preview angle on the viewfinder.
  • the user believes that the current viewfinder in the preview frame 314 is appropriate, the user can put his hand down or no longer push the palm forward. At this time, the shooting angle of view presented by the image displayed in the preview frame 314 no longer changes.
  • Figures 3E to 3G exemplarily show the user interface of the reduced preview viewing angle in the front camera scene.
  • the electronic device 100 can recognize the user's gesture through the image collected by the front camera, and respond to a specific gesture (such as a gesture of making a fist and pulling back) to reduce the preview perspective.
  • a specific gesture such as a gesture of making a fist and pulling back
  • the electronic device 100 can gradually reduce the preview angle of view presented by the image displayed in the preview frame 314.
  • the zoom magnification 313 displayed in the front camera preview interface 310 will gradually increase.
  • the initial zoom magnification 313 may be a wide magnification. Thereafter, the electronic device 100 can recognize the gesture of making a fist and pulling back, the preview angle of view presented by the image displayed in the preview frame 314 becomes smaller, and the zoom magnification 313 is increased to 0.8X.
  • the electronic device 100 can recognize the gesture of making a fist and continuing to pull back, the preview angle of view presented by the image displayed in the preview frame 314 is further reduced, and the zoom magnification 313 is increased As large as 1X.
  • the electronic device 100 recognizes the gesture of making a fist and continuing to pull back, the preview angle of view presented by the image displayed in the preview frame 314 is further reduced, and the zoom magnification is 313. Increase to 2X.
  • the zoom magnification 313 can be increased from 1X to 1.1X, from 1.1X to 1.2X,..., gradually increased to 2X, and displayed in the preview box 314
  • the preview viewing angle presented by the image gradually becomes smaller.
  • the user in the process of pre-photographing and previewing, the user can narrow the viewing angle of the preview by making a fist and pulling it back.
  • the electronic device 100 can adjust the speed at which the preview viewing angle becomes smaller according to the speed at which the fist is pulled back. The faster the fist is pulled back, the faster the preview viewing angle becomes smaller. In particular, when it is recognized within a short time T (such as 0.5 seconds) that the speed of pulling the fist backward is greater than the preset speed, the electronic device 100 can directly change the preview viewing angle from a larger preview viewing angle (such as zoom magnification at a wide magnification). Preview Angle) Switch to the minimum preview angle, such as that of a normal camera. In this way, the user can be supported to quickly switch to a smaller preview angle.
  • T such as 0.5 seconds
  • the electronic device 100 can stop zooming in on the preview viewing angle. In this way, the user can pull back while making a fist while feeling the impact of the viewing angle of the preview reduced on the viewfinder.
  • the user believes that the current viewfinder in the preview frame 314 is appropriate, the user can put his hand down or no longer push the palm forward. At this time, the shooting angle of view presented by the image displayed in the preview frame 314 no longer changes.
  • the user can adjust the size of the preview angle of view presented by the image displayed in the preview box through a gesture of space and one hand.
  • the photographing method of this solution allows the user to conveniently adjust the preview angle of view presented by the image displayed in the preview box. In this way, the user does not need to repeatedly bring the electronic device close and adjust the preview angle of view presented by the image displayed in the preview box by touching the screen of the electronic device with a finger.
  • the user since the user does not need to touch the screen of the electronic device with a finger, the user can feel the influence of the change of the preview angle on the shooting picture while adjusting the preview angle of view.
  • the scene displayed in the preview box is generally not what the user wants to shoot. Therefore, the user needs to adjust the shooting posture (such as lifting the electronic device, etc.) after adjusting the viewing angle of the preview to include the scene to be shot into the preview frame. In this way, it is difficult for the user to adjust the viewing angle of the preview and perform the shooting and framing at the same time.
  • the photographing method in this solution can support the user to adjust the preview angle of view while shooting and framing, and bring a good shooting experience to the user.
  • the electronic device 100 may prompt the user in the preview box 314 to use which gesture to adjust the preview viewing angle.
  • the electronic device 100 may display prompts 314A and 314B in the preview box 314 in a manner similar to picture-in-picture, wherein the prompt 314B may be a part of the preview image displayed in the preview box.
  • the prompt 314A is a thumbnail of the image actually collected by the camera with the largest viewing angle.
  • the preview angle of view is the same as the angle of view of the ordinary camera 193-1.
  • the preview viewing angle gradually increases, and the proportion of 314B in 314A also gradually increases.
  • the preview viewing angle is gradually reduced, and the proportion of 314B in 314A is also gradually reduced. In this way, the user can intuitively feel the gap between the preview angle of view presented by the preview image and the maximum angle of view, which is convenient for the user to perform better shooting.
  • the electronic device 100 may detect a user operation for triggering a photo, such as a click operation on the control 317, and save the image displayed in the preview box 314 as a photo in a gallery application.
  • a user operation for triggering a photo such as a click operation on the control 317
  • the electronic device 100 can trigger a photo taking when a smiling face is recognized in the image displayed in the preview box 314.
  • the voice-activated photographing mode is turned on, the electronic device 100 may trigger the photographing when a voice instruction instructing to take a photograph is detected. In this way, the user can trigger a photo without touching the screen.
  • the posture of the electronic device 100 may not change, or the relative distance between the electronic device 100 and the scene may not change.
  • no change may mean that the posture of the electronic device 100 changes very little or the relative distance between the electronic device 100 and the scene changes very little, which is not enough to have a significant impact on the preview viewing angle presented by the image displayed in the preview frame 314.
  • the following describes the specific implementation method of adjusting the preview angle of view in the front camera scene.
  • the electronic device 100 has multiple front-facing cameras, for example, two front-facing cameras.
  • the two front cameras may include a normal camera 193-1 and a wide-angle camera 193-2.
  • Stage 1 Increase the viewing angle during photo preview
  • FIG. 4A exemplarily shows a process in which the electronic device 100 gradually increases the preview angle of view presented by the image displayed in the preview frame 314.
  • the electronic device 100 may gradually increase the preview angle of view presented by the image displayed in the preview frame 314. Specifically, the electronic device 100 may first use the image collected by the ordinary camera 193-1, and then use the image collected by the wide-angle camera 193-2. in:
  • the electronic device 100 may first crop the image collected by the ordinary camera 193-1, and display the cropped image in the preview frame 314. Wherein, the electronic device 100 may crop images successively collected by the ordinary camera 193-1 for multiple times, until the preview angle of view presented by the image in the cropped area is the same as the angle of view of the ordinary camera 193-1. The cropping area of this multiple cropping is getting larger and larger.
  • the above-mentioned multiple cropping process is a process in which the electronic device 100 performs multiple digital zooming.
  • the first frame image displayed in the preview frame 314 of the electronic device 100 is the image shown in the first area.
  • the image shown in the first area may be an image collected by a common camera 193-1, and its size may be a1*b1. That is to say, the preview angle of view presented by the image displayed in the preview frame 314 is the same as the angle of view of the ordinary camera 193-1, and the zoom magnification is 1X at this time.
  • the electronic device 100 can increase the viewing angle of the photo preview. That is, the electronic device 100 can adjust from the image collected by the normal camera 193-1 to the image collected by the wide-angle camera 193-2.
  • the electronic device 100 may first crop the image collected by the wide-angle camera 193-2, and display the cropped image in the preview frame 314.
  • the electronic device 100 may crop the images successively collected by the wide-angle camera 193-2 for multiple times, until the preview angle of view presented by the image in the cropped area is the same as the angle of view of the wide-angle camera 193-2.
  • the cropping area of this multiple cropping is getting larger and larger.
  • the above-mentioned multiple cropping process is a process in which the electronic device 100 performs multiple digital zooming.
  • the electronic device 100 first crops the image collected by the wide-angle camera 193-2 to obtain the second area exemplarily shown in FIG. 4A.
  • the second frame image displayed by the electronic device 100 in the preview frame 314 may be the image shown in the second area, and at this time, the zoom magnification is 0.9X.
  • the size of the image shown in the second area may be a2*b2. Among them, a2 is greater than a1, and b2 is greater than b1.
  • the preview angle of view presented by the image shown in the second area is larger than the preview angle of view presented by the image shown in the first area.
  • the electronic device 100 can still recognize the gesture of opening the palm and pushing forward, the electronic device 100 can continue to crop the image collected by the wide-angle camera 193-2 to obtain the image shown in the third area.
  • the third frame image displayed in the preview frame of the electronic device 100 may be the image shown in the third area, and the zoom magnification is 0.8X at this time.
  • the size of the image shown in the third area may be a3*b3, where a3 is greater than a2, and b3 is greater than b2.
  • the preview angle of view presented by the image shown in the third area is larger than the preview angle of view presented by the image shown in the second area.
  • the electronic device 100 can continue to crop the image collected by the wide-angle camera 193-2 to obtain the image shown in the fourth area, etc., until the electronic device 100
  • the m-th frame image displayed by the device 100 in the preview frame 314 is the image shown in the m-th area.
  • the zoom magnification is Wide.
  • the preview angle of view presented by the image shown in the m-th area is as large as the angle of view of the wide-angle camera 193-2. In other words, the electronic device 100 increases the preview viewing angle presented by the image displayed in the preview frame 314 to the maximum.
  • the electronic device 100 displays the image from the first frame to the m-th frame in the preview frame 314, if it fails to recognize the gesture of opening the palm and pushing forward, the electronic device 100 can stop the increase.
  • the third frame image may be the image shown in the third area. Image, and the zoom magnification is 0.8X.
  • the preview angle of view presented by the fourth frame image may be as large as the preview angle presented by the third frame image, and the zoom magnification is still 0.8X. In other words, the preview angle of view presented by the image displayed in the preview frame 314 stops increasing.
  • the electronic device 100 also has a camera with a larger viewing angle than that of the wide-angle camera 193-2 (for example, an ultra-wide-angle camera), after the preview frame 314 displays the image shown in the m-th area in FIG. 4A, the electronic device 100 also The preview angle of view presented by the image displayed in the preview frame 314 can be continuously increased according to the recognized gesture of pushing forward with the open palm.
  • the electronic device 100 may crop the image collected by the ultra-wide-angle camera, and display the cropped image in the preview frame 314.
  • the electronic device 100 may crop images successively collected by the ultra-wide-angle camera multiple times, and the cropping area of the multiple cropping becomes larger and larger.
  • the sizes of the images shown in the first area to the m-th area are not the same.
  • the size of the preview frame 314 may be adjusted first. , Perform adaptation processing on these images. For example, if the size of the image is smaller than the size of the preview frame 314, the electronic device 100 may enlarge the length and width of the image so that the size of the image is the same as the size of the preview frame 314.
  • the embodiment of the present application does not limit the manner in which the foregoing image and the preview frame 314 are adapted to be processed.
  • the electronic device 100 crops the images collected by the camera 193 (for example, a normal camera 193-1, a wide-angle camera 193-2), all crops are cropped in the center.
  • the center positions of the images shown in the first area to the m-th area exemplarily shown in FIG. 4A overlap.
  • FIG. 4B exemplarily shows a process in which the electronic device 100 gradually reduces the preview viewing angle presented by the image displayed in the preview frame 314.
  • the electronic device 100 may gradually reduce the preview angle of view presented by the image displayed in the preview frame 314. Specifically, the electronic device 100 may first use the image collected by the wide-angle camera 193-2, and then use the image collected by the ordinary camera 193-1. in:
  • the electronic device 100 may first display the image collected by the wide-angle camera 193-2 in the preview box 314, and then crop the image collected by the wide-angle camera 193-2, and The cropped image is displayed in the preview box 314.
  • the electronic device 100 may crop the images successively collected by the wide-angle camera 193-2 for multiple times, until the preview angle of view presented by the image in the cropped area is slightly larger than that of the ordinary camera 193-1.
  • the cropping area of this multiple cropping is getting smaller and smaller.
  • the above-mentioned multiple cropping process is a process in which the electronic device 100 performs multiple digital zooming.
  • the first frame image displayed in the preview frame 314 of the electronic device 100 is the image shown in the first area.
  • the image shown in the first area may be an image collected by the wide-angle camera 193-2, and its size may be a5*b5.
  • the preview angle of view presented by the image displayed in the preview frame 314 is the same as the angle of view of the wide-angle camera 193-2, and the zoom magnification is Wide at this time.
  • the electronic device 100 can gradually reduce the preview angle of view presented by the image displayed in the preview frame 314.
  • the process of the electronic device 100 increasing the zoom magnification from Wide to 0.9X may be the reverse process of the electronic device 100 reducing the zoom magnification from 0.9X to Wide as shown in FIG. 4A, which will not be repeated here.
  • the image of the n+1th frame displayed in the preview frame 314 by the electronic device 100 is the image shown in the n+1th area, and the zoom magnification is 0.9 at this time.
  • the preview viewing angle presented by the image shown in the n+1th area is slightly larger than the viewing angle of the ordinary camera 193-1. If the gesture of making a fist and pulling back can still be recognized, the electronic device 100 can adjust from the image captured by the wide-angle camera 193-2 to the image captured by the ordinary camera 193-1.
  • the electronic device 100 may first display the image collected by the ordinary camera 193-1 in the preview frame 314, and then crop the image collected by the ordinary camera 193-1, and The cropped image is displayed in the preview box 314. Among them, the electronic device 100 may crop the images successively collected by the ordinary camera 193-1 for multiple times, and the cropping area of the multiple cropping becomes smaller and smaller.
  • the above-mentioned multiple cropping process is a process in which the electronic device 100 performs multiple digital zooming.
  • the n+2th frame image displayed in the preview frame 314 by the electronic device 100 is the image shown in the n+2th area, and the zoom magnification is 1X at this time.
  • the preview angle of view presented by the image shown in the n+2th area may be as large as the angle of view of the ordinary camera 193-1.
  • the electronic device 100 can crop the image collected by the ordinary camera 193-1 to obtain the n+3th image.
  • the n+3th frame image displayed in the preview frame 314 by the electronic device 100 may be the image shown in the n+3th area, and the zoom magnification is 1.1X at this time.
  • the size of the image shown in the n+2th area is a1*b1
  • the size of the image shown in the n+3th area is a6*b6.
  • a6 is smaller than a1
  • b6 is smaller than b1.
  • the preview angle of view presented by the image shown in the n+3th area is smaller than the preview angle of view presented by the image shown in the n+2th area.
  • the electronic device 100 may continue to crop the image collected by the ordinary camera 193-1, and display the cropped image in the preview box 314.
  • the electronic device 100 can crop the images successively collected by the ordinary camera 193-1 for multiple times, and the cropping area of the multiple cropping becomes smaller and smaller.
  • the image of the n+kth frame displayed in the preview frame 314 by the electronic device 100 is the image shown in the n+kth area, and at this time, the zoom magnification may be 2X.
  • the size of the image shown in the n+k region is a7*b7. a7 is smaller than a6, and b7 is smaller than b6.
  • the electronic device 100 displays the image from the 1st frame to the n+kth frame as shown in FIG. Stop reducing the preview angle of view presented by the image displayed in the preview box 314.
  • the nth frame image may be the image shown in the nth area.
  • Image, and the zoom magnification is 0.8X.
  • the preview angle of view presented by the image of the n+1th frame is as large as the preview angle of view presented by the image of the nth frame, and the zoom magnification is still 0.8X. In other words, the preview viewing angle presented by the image displayed in the preview frame 314 stops decreasing.
  • the electronic device 100 can gradually increase or decrease the angle of view by adjusting the camera used for shooting and the method of digital zoom.
  • the electronic device 100 has only one front camera.
  • This front camera can be a fixed focus camera or a zoom camera.
  • a fixed-focus camera refers to a camera with a fixed focal length.
  • a zoom camera refers to a camera that can perform optical zoom, and its focal length can be changed.
  • the specific implementation of adjusting the preview viewing angle can be as follows:
  • the electronic device 100 has a front fixed focus camera.
  • the electronic device 100 can adjust to increase or decrease the preview angle of view presented by the image displayed in the preview frame 314 by means of digital zoom.
  • the front fixed-focus camera may be a normal camera, a wide-angle camera, or an ultra-wide-angle camera.
  • the electronic device 100 has a front zoom camera.
  • the front zoom camera may include multiple lenses, and the electronic device 100 can change the focal length of the front zoom camera by adjusting the distance between the multiple lenses, thereby adjusting the preview angle of view presented by the image displayed in the preview frame 314.
  • the electronic device 100 may adjust the distance between the multiple lenses to gradually increase the focal length of the front zoom camera. In this way, the viewing angle of the front zoom camera gradually decreases, and the preview viewing angle presented by the image displayed in the preview frame 314 also gradually decreases.
  • the electronic device can adjust the distance between the multiple lenses to gradually reduce the focal length of the front zoom camera. In this way, the viewing angle of the front zoom camera gradually increases, and the preview viewing angle presented by the image displayed in the preview frame 314 also gradually increases.
  • FIGS. 5A to 5O exemplarily show a user interface for adjusting the size of the preview angle of view in a pre-recording scene.
  • Figures 5A to 5D exemplarily show the process of opening the front video recording interface.
  • the electronic device 100 may display a user interface 310, which may be the user interface of the default photographing mode of the camera application.
  • the preview box of the user interface displays the normal rear camera 193-3 for taking pictures.
  • the electronic device 100 may display the recording preview interface 320 shown in FIG. 5B.
  • the controls included in the video preview interface 320 are basically the same as those included in the user interface 310 for taking pictures.
  • the video preview interface 320 may include a start video control 321.
  • the electronic device 100 may display the video preview interface 320 shown in FIG. 5C.
  • the preview box in the video preview interface 320 displays the front-facing common camera 193-1.
  • the zoom magnification 313 is a one-fold magnification of 1X
  • the preview angle of view presented by the image displayed in the preview frame 314 may be the same as the angle of view of the ordinary camera 193-1.
  • the electronic device 100 can start recording a video and display the recording interface 330 shown in FIG. 5D.
  • the controls in the video recording interface 330 are basically the same as the controls in the user interface 310 for taking pictures. The difference is that there is no camera mode option 315 in the recording interface 330, and a shutter control 322, an end recording control 323, a pause recording control 324, and a recording time control 325 can be displayed in the recording interface 330.
  • the shutter control 322 can be used to trigger a photo, that is, the user can click the shutter control 322 to take a photo during the video recording process.
  • the end video control 323 can be used to end video recording.
  • the video recording pause control 324 can be used to temporarily stop recording video.
  • the recording time control 325 may indicate the length of time of the currently recorded video. As shown in Fig. 5D, 00:05 is displayed in the recording time control 325, which means that 5 seconds of video has been recorded.
  • 00:05 is displayed in the recording time control 325, which means that 5 seconds of video has been recorded.
  • Figures 5D to 5F exemplarily show the user interface of the zoomed preview perspective in the front video recording scene.
  • the electronic device 100 can recognize the user's gesture through the image collected by the front camera, and respond to a specific gesture (such as a gesture of opening a palm and pushing forward) to enlarge the preview perspective.
  • a specific gesture such as a gesture of opening a palm and pushing forward
  • the electronic device 100 may gradually enlarge the preview angle of view presented by the image displayed in the preview frame 314. At the same time, the zoom magnification 313 displayed in the video interface 330 will gradually decrease.
  • the zoom magnification 313 is one magnification 1X.
  • the electronic device 100 recognizes the gesture of opening the palm and pushing forward, the preview angle of view presented by the image displayed in the preview frame 314 gradually increases, and the zoom magnification 313 gradually decreases.
  • the zoom magnification is reduced from 1X to 0.9X, from 0.9X to 0.8X, and so on.
  • the electronic device 100 recognizes the gesture of opening the palm and continuing to push forward, and the image displayed in the preview box 314 shows The preview angle of view is further enlarged, and the zoom magnification 313 is reduced to 0.7X.
  • the electronic device 100 recognizes the gesture of opening the palm to further push forward, and the image displayed in the preview box 314 is shown
  • the preview angle of view is further enlarged, and the zoom magnification 313 is reduced to 0.6X, for example, the Wide magnification.
  • the zoom magnification 313 can be reduced from 1X to 0.9X, increased from 0.9X to 0.7X,..., gradually reduced to Wide magnification, and the image displayed in the preview frame 314
  • the preview viewing angle presented gradually becomes larger.
  • the user in the process of recording a video, the user can enlarge the preview perspective by opening the palm and pushing forward.
  • Figs. 5G to 5I exemplarily show the user interface of the zoomed-in preview perspective in the front video recording scene.
  • the electronic device 100 can recognize the user's gesture through the image collected by the front camera, and respond to a specific gesture (such as a gesture of making a fist and pulling back) to reduce the preview perspective.
  • a specific gesture such as a gesture of making a fist and pulling back
  • the electronic device 100 may gradually reduce the preview angle of view presented by the image displayed in the preview frame 314. At the same time, the zoom magnification 313 displayed in the video interface 330 will gradually increase.
  • the electronic device 100 recognizes the gesture of making a fist and pulling back, and the preview angle of view presented by the image displayed in the preview box 314 changes. Small, the zoom magnification 313 is increased to 0.8X.
  • the electronic device 100 recognizes the gesture of making a fist and continuing to pull back, the preview angle of view presented by the image displayed in the preview frame 314 is further reduced, and the zoom magnification 313 is increased to 1X.
  • the electronic device 100 recognizes the gesture of making a fist and continuing to pull back, the preview angle of view presented by the image displayed in the preview frame 314 is further reduced, and the zoom magnification 313 is increased. As large as 2X.
  • the zoom magnification 313 can be increased from 1X to 1.1X, from 1.1X to 1.2X,..., gradually increased to 2X, and displayed in the preview box 314
  • the preview angle of view presented by the image in the image gradually becomes smaller.
  • the user in the process of recording a video, the user can narrow the preview perspective by making a fist and pulling it back.
  • the electronic device 100 may determine the speed of adjusting the preview angle of view presented by the image displayed in the preview frame 314 according to the speed of pushing forward or pulling backward in the recognized gesture.
  • the manner of determining the speed of adjusting the shooting angle of view presented by the image displayed in the preview frame 314 can refer to the description of adjusting the preview angle of view presented by the image displayed in the preview frame 314 when taking a photo, which will not be repeated here.
  • Figures 5J to 50 show some user interfaces for playing recorded videos.
  • the electronic device 100 can detect a user operation for ending video recording, for example, clicking on the ending video control 323, and saves a series of images successively displayed in the preview box 314 during the video recording as a video.
  • the electronic device 100 may display a video playing interface 340 as shown in FIGS. 5J to 50.
  • the video playback interface 340 may include an image display area 331, a time control 332, a pause control 333, a playback progress bar 334, a video playback time 335, and a total video duration 336. in:
  • the image display area 331 can be used to display one frame of images included in the video.
  • the time control 332 may indicate the recording time of the video. For example, February 9, 2020.
  • the pause control 333 can be used to pause the playing of the video.
  • the playback progress bar 334 can be used to compare the played time of the video with the total duration of the video, and indicate the progress of the video playback.
  • the video elapsed time 335 may be used to indicate the elapsed time of the video.
  • the total video duration 336 may be used to indicate the total duration of the video.
  • the method provided in the embodiment of the present application can support the user to adjust the preview angle of view during the video recording process, so that the captured video image presents richer changes and enhances the shooting experience.
  • 6A-6I exemplarily show a user interface for adjusting the size of the preview viewing angle in a rear camera scene.
  • the electronic device 100 may use a rear camera to photograph a scene, but does not recognize the user's gesture without using the rear camera.
  • the image displayed in the preview frame 314 comes from the rear camera.
  • the electronic device 100 can turn on the front camera, use the images collected by the front camera to recognize the user's gesture, and respond to a specific gesture (such as a gesture of opening the palm and pushing forward) to enlarge the preview perspective.
  • the electronic device 100 can detect the user's operation of turning on the “air camera” function, turn on the front camera, and recognize the aforementioned specific gesture through the image collected by the front camera.
  • the function of “photographing in the air” means that the electronic device can turn on the front camera and recognize the aforementioned specific gestures through the images collected by the front camera, and adjust the size of the preview viewing angle once the aforementioned specific gestures are recognized.
  • the embodiment of the present application has already explained in detail, and will not be repeated here.
  • the electronic device 100 may display the user interface 350 as shown in FIGS. 6A-6B.
  • the user interface 350 may include a return control 351, a resolution control 352, a geographic location control 353, a reference line control 354, a shooting mute control 355, a timer shooting control 356, a voice control shooting control 357, a touch camera control 358, a smiley face capture control 359, and Take a picture from the air" control 3510 and so on.
  • the "air-to-air photography" control 3510 can be used for the user to turn on or off the "air-to-air photography" function.
  • the controls for enabling functions such as “airborne photography” and “airborne video recording” may also be the shooting mode options displayed in the user interface 310, such as the “airborne photography” option , "Space Video” option.
  • the electronic device 100 may display a user interface 310 as shown in FIG. 6C.
  • the user interface 310 may include a prompt 341 and a prompt 342.
  • the prompt 341 can be used to prompt the user which gesture can adjust the size of the preview viewing angle
  • the prompt 342 can be a thumbnail of the image collected by the front camera.
  • the embodiment of the present application does not limit the display timing of the prompt 341 and the prompt 342 of the electronic device 100, and the UI performance of the prompt 341.
  • the function of “photographing in the air” can also be applied to the front camera scene, that is, after the function of “photographing in the air” is turned on, the electronic device will recognize the aforementioned specific gestures through the images collected by the front camera. Otherwise, even if the user is in the front When the aforementioned specific gesture is made during the photo preview, the electronic device will not respond to the gesture, that is, it will not adjust the size of the preview viewing angle.
  • Figures 6C to 6E exemplarily show the user interface of a zoomed-in preview perspective in a rear camera scene.
  • the electronic device 100 can recognize the user's gesture through the image collected by the front camera, and respond to a specific gesture (such as a gesture of opening a palm and pushing forward) to enlarge the preview perspective.
  • a specific gesture such as a gesture of opening a palm and pushing forward
  • the electronic device 100 may gradually enlarge the preview view angle presented by the image displayed in the preview frame 314.
  • the image in the preview box 314 comes from the rear camera.
  • the zoom magnification 313 displayed in the rear camera preview interface 310 will gradually decrease.
  • the initial zoom magnification 313 may be one magnification 1X, and the image displayed in the preview frame 314 comes from a normal rear camera. Thereafter, the electronic device 100 can recognize the gesture of opening the palm and pushing forward through the front camera, the preview angle of view presented by the image displayed in the preview frame 314 can gradually increase, and the zoom magnification 313 can gradually decrease. For example, the zoom magnification is reduced from 1X to 0.9X, from 0.9X to 0.8X, and so on.
  • the electronic device 100 can recognize the gesture of opening the palm and continuing to push forward through the front camera, and the preview angle of view presented by the image displayed in the preview frame 314 is further changed.
  • the zoom ratio 313 is reduced to 0.7X.
  • the electronic device 100 can recognize the gesture of opening the palm to further push forward through the front camera, and the preview perspective of the image displayed in the preview frame 314 is then When it becomes larger, the zoom magnification 313 is reduced to 0.6X, for example, the Wide magnification.
  • the zoom magnification 313 can be reduced from 1X to 0.9X, increased from 0.9X to 0.7X,..., gradually reduced to Wide magnification, and
  • the preview viewing angle presented by the image displayed in the preview frame 314 gradually becomes larger.
  • the user in the process of pre-photographing and previewing, the user can enlarge the preview perspective by opening the palm and pushing forward.
  • FIGS. 6F to 6I exemplarily show the user interface of the zoomed-out preview viewing angle in the rear camera scene.
  • the electronic device 100 can recognize the user's gesture through the image collected by the front camera, and respond to a specific gesture (such as a gesture of making a fist and pulling it back) to reduce the preview viewing angle.
  • a specific gesture such as a gesture of making a fist and pulling it back
  • the electronic device 100 may gradually reduce the preview angle of view presented by the image displayed in the preview frame 314.
  • the image in the preview box 314 comes from the rear camera.
  • the zoom magnification 313 displayed in the rear camera preview interface 310 will gradually increase.
  • the initial zoom magnification 313 may be a wide magnification. Thereafter, the electronic device 100 can recognize the gesture of making a fist and pulling back through the front camera, the preview angle of view presented by the image displayed in the preview frame 314 becomes smaller, and the zoom magnification 313 is increased to 0.8X.
  • the electronic device 100 can recognize the gesture of making a fist and continuing to pull back through the front camera, and the preview angle of view presented by the image displayed in the preview frame 314 is further reduced.
  • the zoom magnification 313 is increased to 1X.
  • the electronic device 100 can recognize the gesture of making a fist and continuing to pull back through the front camera, and the preview angle of view presented by the image displayed in the preview box 314 is further changed. Small, the zoom magnification 313 is increased to 2X.
  • the electronic device 100 can recognize the gesture of making a fist through the front camera and then continue to pull it back, and the preview angle of view presented by the image displayed in the preview box 314 is further If it becomes smaller, the zoom magnification 313 is increased to 3X. At this time, the image displayed in the preview box 314 may come from the rear telephoto camera.
  • the zoom magnification 313 can be increased from 1X to 1.1X, from 1.1X to 1.2X,..., gradually increased to 2X, and even further increased to 3X,
  • the preview viewing angle presented by the image displayed in the preview frame 314 gradually becomes smaller.
  • the user in the process of front camera preview, the user can narrow the viewing angle of the preview by making a fist and pulling it back, and can switch to the viewing angle of the rear telephoto camera to obtain a smaller viewing angle and clear images .
  • the user can adjust the size of the preview angle of view presented by the image displayed in the preview box through a spaced and one-handed gesture.
  • the photographing method of this solution allows the user to conveniently adjust the preview angle of view presented by the image displayed in the preview box.
  • the user does not need to repeatedly bring the electronic device close and adjust the preview angle of view presented by the image displayed in the preview box by touching the screen of the electronic device with a finger.
  • the user since the user does not need to touch the screen of the electronic device with a finger, the user can adjust the shooting angle of view displayed in the preview frame while feeling the impact of the change of the shooting angle of view in the preview frame on the shooting picture.
  • the following describes a specific implementation manner of adjusting the preview angle of view when the electronic device 100 is rear-mounted to take pictures.
  • the electronic device 100 has multiple rear cameras, for example, three front cameras.
  • the three front cameras may include a normal camera 193-3, a wide-angle camera 193-4, and a telephoto camera 193-5.
  • Stage 1 Increase the viewing angle during photo preview
  • the electronic device 100 may gradually increase the preview angle of view presented by the image displayed in the preview frame 314. Specifically, the electronic device 100 may first use the image collected by the ordinary camera 193-3, and then use the image collected by the wide-angle camera 193-4.
  • the foregoing implementation process reference may be made to the foregoing embodiment of FIG. 4A and the previous embodiment of increasing the viewing angle during the photo preview during the pre-photographing, which will not be repeated here.
  • the electronic device 100 may gradually reduce the preview angle of view presented by the image displayed in the preview frame 314. Specifically, the electronic device 100 may first use the image collected by the wide-angle camera 193-4, and then use the image collected by the ordinary camera 193-3. For the specific implementation of the image captured by the wide-angle camera 193-4 and the image captured by the ordinary camera 193-3, refer to the foregoing embodiment of FIG. 4B and reducing the viewing angle during the photo preview during the front photo, which will not be omitted here. Go into details.
  • the rear camera also includes a telephoto camera 193-5.
  • the electronic device 100 can reduce the preview angle of view presented by the image displayed in the preview frame 314 to be smaller and farther.
  • the electronic device 100 can perform colorful cropping on the image collected by the ordinary camera 193-3 first, and the cropping area of the multiple cropping becomes smaller and smaller.
  • the electronic device 100 can adjust the image captured by the ordinary camera 193-3 to Images captured using the telephoto camera 193-5.
  • the electronic device 100 may first display the image collected by the telephoto camera 193-5 in the preview frame 314, and then crop the image collected by the telephoto camera 193-5 , And display the cropped image in the preview box 314. Among them, the electronic device 100 may crop the images successively collected by the telephoto camera 193-5 multiple times, and the cropping area of the multiple cropping becomes smaller and smaller.
  • the electronic device 100 when the electronic device 100 is in The image of the n+kth frame displayed in the preview box 314 is the image shown in the n+kth area, the current zoom magnification is 2X, and the gesture of making a fist to pull back is recognized, and the electronic device 100 displays the image in the preview box 314
  • the n+k+1 frame image can be the image collected by the telephoto camera 193-5, and the zoom magnification can be increased to 2.1X.
  • the electronic device When using the image captured by the telephoto camera 193-5, the electronic device first displays the image captured by the telephoto camera 193-5 in the preview frame 314, and then crops the image captured by the telephoto camera 193-5, and The cropped image is displayed in the preview box 314. Among them, the electronic device 100 may crop the images successively collected by the telephoto camera 193-5 multiple times, and the cropping area of the multiple cropping becomes smaller and smaller.
  • the above-mentioned multiple cropping process is a process in which the electronic device 100 performs multiple digital zooming.
  • the zoom magnification is gradually increased from 2.1X, for example, the zoom magnification can be increased from 2.1X to 2.2X,..., from 2.9X to 3X,....
  • the user interface for adjusting the size of the preview angle in the rear video scene can refer to the user interface for adjusting the size of the preview angle in the front video scene, which will not be repeated here.
  • the electronic device 100 can zoom in on the preview viewing angle, so that more The scene is included in the preview box.
  • zooming in and previewing the viewing angle reference may be made to the foregoing embodiment, which will not be repeated here.
  • the electronic device 100 may display the user interface 310 shown in FIG. 7A.
  • the image displayed in the preview box in the user interface 310 comes from a common camera 193-1, and the preview angle of view is small.
  • the image displayed in the preview box contains the image of the photographed subject, such as the face image of the photographed user.
  • FIG. 7B when the user turns on the front camera to take a selfie, the user can extend his arm so that the user and the surrounding scenery can be included in the preview frame 314.
  • the accelerometer in the electronic device 100 can detect the acceleration of the movement of the electronic device 100, and according to whether the image of the photographed object (for example, the photographed user's face image) is reduced within time t, It is determined whether the electronic device 100 is moving away from the user. If the image of the subject becomes smaller, it can be determined that the electronic device 100 is moving away from the user. Not limited to this, the electronic device 100 may only determine whether the electronic device 100 is far away from the user and the acceleration of the movement based on the motion data collected by the accelerometer.
  • the electronic device 100 can also determine whether the electronic device 100 is far away from the user only according to whether the image of the subject becomes smaller or larger during the time t, and according to the degree to which the image of the subject becomes smaller or larger during the time t
  • the acceleration of the movement of the electronic device 100 is determined. If the image of the subject is reduced within the time t, it is determined that the electronic device 100 is far away from the user. If the image of the subject becomes larger in time t, it is determined that the electronic device 100 is approaching the user. If the subject is a person, then: when the face image becomes smaller, the face recognition frame 343 displayed in the preview box will become smaller; conversely, when the face image becomes larger, the face recognition frame 343 displayed in the preview box becomes smaller. Will become larger accordingly.
  • the electronic device 100 can enlarge the preview viewing angle, for example, the preview viewing angle presented by the image displayed in the preview frame 314 can gradually become larger The angle of view to the wide-angle camera 193-2.
  • the user can zoom in the preview angle of view presented by the image displayed in the preview frame 314 to the angle of view of the wide-angle camera 193-2 by quickly extending the arm.
  • the electronic device 100 can reduce the preview viewing angle.
  • reducing the preview viewing angle reference may be made to the foregoing embodiment, which will not be repeated here.
  • the electronic device 100 may display the user interface 310 shown in FIG. 7C.
  • the image displayed in the preview box in the user interface 310 comes from the wide-angle camera 193-2, and the preview angle of view is relatively large.
  • the accelerometer in the electronic device 100 can detect the acceleration of the movement of the electronic device 100, and determine whether the electronic device 100 is moving away from the user according to whether the image of the subject is reduced within time t, If the image of the subject becomes larger, it can be determined that the electronic device 100 is moving close to the user.
  • the electronic device 100 may also determine whether the electronic device 100 is close to the user only according to whether the image of the photographed object is reduced or enlarged within the time t, and the electronic device 100 may be determined according to the degree to which the image of the photographed object is reduced or enlarged within the time t. The acceleration of the movement. If the image of the subject becomes larger in time t, it is determined that the electronic device 100 is approaching the user. If the image of the subject is reduced within the time t, it is determined that the electronic device 100 is far away from the user.
  • the electronic device 100 can reduce the preview viewing angle.
  • the preview viewing angle presented by the image displayed in the preview frame 314 can be gradually reduced to The viewing angle of the ordinary camera 193-1.
  • front camera preview front video preview, or front video scene.
  • the conditions mentioned in the above content that trigger the zoom in or zoom out of the preview view angle can also be applied to the rear camera preview, rear Set video preview or post video scene.
  • the embodiment of the present application does not limit the manner of triggering the mobile electronic device 100 to zoom in or zoom out the preview viewing angle.
  • the user can trigger the zoom in or zoom out of the preview viewing angle by a specific shaking gesture of shaking the electronic device.
  • the electronic device 100 can recognize the number N1 of human faces included in the image displayed in the preview frame 314 as shown in FIG. 8A, and recognize the number N2 of human faces included in the image.
  • the electronic device 100 can compare the sizes of N1 and N2. Where N1 is greater than N2, it may indicate that the preview angle presented by the image currently displayed in the preview frame 314 is small, and it is impossible to include both the face and the human body of the subject in the preview frame 314. At this time, the electronic device 100 can enlarge the preview angle of view, so that the face and the human body of the subject are included in the preview frame 314, that is, the subject can be better captured.
  • the human body may be all of the human body, for example, including the upper body and the lower body, or it may be a range of the human body, such as the upper body.
  • the electronic device 100 can recognize the human face and the human body included in the image in the preview frame 314 by means of machine learning.
  • the embodiment of the present application does not limit the way of recognizing the face and recognizing the human body.
  • the electronic device 100 may compare the size of the recognized face in the preview image with a preset threshold (for example, a pixel area of 30 ⁇ 40), and only count the faces larger than the preset threshold into the number of faces N1. In this way, the electronic device 100 can reduce the probability of zooming in the shooting angle of view due to the recognition of a passerby.
  • a preset threshold for example, a pixel area of 30 ⁇ 40
  • the electronic device 100 may display the user interface 310 as shown in FIG. 8A, and display the image collected by the normal-view camera 193-1 in the preview box 314.
  • the user interface 310 may include a zoom magnification 313, a preview frame 314, and multiple face images.
  • zoom magnification 313, the preview frame 314, and the face image reference may be made to the introduction of these controls in the foregoing embodiment, which will not be repeated here.
  • the user interface 310 may also include more or fewer controls.
  • the electronic device 100 can determine that the number of human faces N1 in the image is 3, and the number of human bodies N2 is 2. The sizes of these three faces are greater than the preset threshold. Since N1 is greater than N2, the electronic device 100 can gradually enlarge the preview presented by the image displayed in the preview frame 314 based on the preview angle of view presented by the image currently displayed in the preview frame 314 (such as the angle of view of the ordinary camera 193-1) Viewing angle, until the electronic device 100 recognizes that the number of faces N1 in the image displayed in the preview frame 314 after being enlarged is equal to the number of human bodies N2, or the preview view angle presented by the image displayed in the preview frame 314 has been enlarged to Maximum (such as the angle of view of the wide-angle camera 193-2).
  • the electronic device 100 can enlarge the preview angle of view presented by the image displayed in the preview frame 314 to the angle of view of the wide-angle camera 193-2 .
  • the electronic device 100 can recognize that the number N1 of human faces is 3, and the number N2 of human bodies is 3.
  • the user interface 310 as shown in FIG. 8B may include multiple face images and a prompt 344 of the current perspective.
  • the current viewing angle prompt 344 may be used to prompt the user that the viewing angle of the current wide-angle camera 193-2 has been changed to a wide-angle viewing angle.
  • the current viewing angle prompt 344 may include a cancel control 344A.
  • the electronic device 100 may adjust the preview angle of view presented by the image displayed in the preview frame 314 to the angle of view of the ordinary camera 193-1 shown in FIG. 8A.
  • the electronic device can In response to a user operation on the cancel control 344A, the adjustment of the preview angle of view presented by the image displayed in the preview box 314 is canceled.
  • the electronic device can zoom in the preview viewing angle, which provides convenience for the user to zoom in or zoom out the preview viewing angle, and the shooting is more efficient.
  • the electronic device can enlarge the preview viewing angle, so that the image of the entire Statue of Liberty is included in the image in the preview frame.
  • the following embodiments introduce the photographing method provided in the present application. As shown in Figure 9, the method may include:
  • Phase 1 Open the photo preview interface
  • the electronic device 100 starts a camera application.
  • the electronic device 100 may detect a touch operation (such as a click operation on the icon 215D) acting on the camera icon 215D as shown in FIG. 2C, and start the camera application in response to the operation.
  • a touch operation such as a click operation on the icon 215D
  • the electronic device 100 may detect a touch operation (such as a click operation on the icon 215D) acting on the camera icon 215D as shown in FIG. 2C, and start the camera application in response to the operation.
  • S102 The electronic device 100 activates the first camera and the second camera.
  • the first camera may be a front camera, which may be used to collect images of the user.
  • the second camera can be a front camera or a rear camera.
  • the second camera can be used to capture images of the scene.
  • the second camera may be a front camera or a rear camera.
  • the second camera in a front camera scene, the second camera is a front camera; in a rear camera scene, the second camera is a rear camera.
  • the second camera may be a camera, for example, a common camera.
  • the second camera may also be multiple cameras with different optical angles of view, such as five cameras of an ultra-telephoto camera, a telephoto camera, a normal camera, a wide-angle camera, and an ultra-wide-angle camera.
  • the second camera and the first camera may be the same camera, for example, a front wide-angle camera or a front common camera.
  • the electronic device 100 displays a preview interface, and the first image from the second camera is displayed in the preview interface.
  • the first image is cropped from the image collected by the second camera.
  • the preview interface includes multiple controls such as a zoom ratio 313, a preview frame 314, a camera mode option 315, a shutter control 317, and a camera flip control 318.
  • controls such as a zoom ratio 313, a preview frame 314, a camera mode option 315, a shutter control 317, and a camera flip control 318.
  • the functions of these controls can be referred to the description in the foregoing UI embodiment, which will not be repeated here.
  • the first image displayed in the preview frame 314 may be cropped by the electronic device from the image collected by the second camera.
  • the center position of the preview image displayed in the preview frame 314 may coincide with the center position of the image collected by the second camera.
  • the first image displayed in the preview box 314 is obtained by a center cropping method.
  • the preview image displayed in the preview frame 314 may be the image collected by the second camera.
  • preview images from the camera displayed in the preview interface mentioned in this method are all cropped from the images collected by the camera.
  • Phase 2 (S104-S105): Increase the viewing angle during photo preview
  • the electronic device 100 detects the first gesture by the user through the first camera.
  • the electronic device 100 may detect that the user indicates the first gesture. Specifically, the electronic device 100 may collect the image and depth information of the user's hand through the first camera. When the image of the hand includes an image with an open palm, and the depth information indicates that the hand is close to the first camera, the electronic device 100 can determine that the user indicates the first gesture.
  • the above-mentioned first gesture is the gesture of opening the palm and pushing forward mentioned in the above-mentioned embodiment.
  • the electronic device 100 may display a second image from the second camera in the preview interface, where the viewing angle of the second image is larger than the viewing angle of the first image.
  • the viewing angle of the second image displayed in the preview interface may gradually become larger.
  • the specific implementation may include: the electronic device successively displays M second images from the second camera in the preview interface, and the viewing angle of the M second images gradually becomes larger.
  • M is a positive integer greater than or equal to 2.
  • the second camera may include H cameras with different viewing angles, and the H cameras are front cameras or rear cameras.
  • the second image displayed in the preview interface may come from the H cameras with the viewing angles from small to large.
  • H is a positive integer greater than or equal to 2.
  • H is 2, that is, the second camera includes two cameras with different viewing angles.
  • the two cameras may be the third camera and the fourth camera, respectively.
  • the angle of view of the fourth camera is larger than that of the third camera.
  • the first image may be from the third camera, and the second image may be from the fourth camera.
  • the third camera and the fourth camera may both be front cameras or both rear cameras.
  • the electronic device 100 may successively display multiple preview images from a common camera on the preview interface, and then continue to successively display multiple preview images from the wide-angle camera on the preview interface.
  • the preview angle of view presented by each of the multiple preview images from the ordinary camera may gradually become larger.
  • the preview angle of view presented by each of the multiple preview images from the wide-angle camera may gradually become larger.
  • the multiple preview images from the ordinary camera and the multiple preview images from the wide-angle camera may constitute M preview images of the second camera.
  • the preview angle presented by the last image displayed among the multiple preview images from the ordinary camera is smaller than the preview angle presented by the first image displayed among the multiple preview images from the wide-angle camera.
  • the image displayed first among the multiple preview images from the ordinary camera may be the same as the image displayed first among the M preview images of the second camera.
  • the last image displayed in the multiple preview images from the wide-angle camera is the same as the last image displayed in the M preview images of the second camera.
  • the electronic device 100 can increase the viewing angle of the photo preview.
  • the electronic device 100 can increase the viewing angle of the photo preview.
  • Stage 3 Reduce the viewing angle during photo preview
  • the electronic device 100 detects the second gesture by the user through the first camera.
  • the electronic device 100 may detect that the user indicates the second gesture. Specifically, the electronic device 100 may collect the image and depth information of the user's hand through the first camera. When the image of the hand includes an image of a fisted hand, and the depth information indicates that the hand is far away from the first camera, the electronic device 100 can determine that the user indicates the second gesture.
  • the aforementioned first gesture is that the user's hand is making a fist and the user's hand is away from the first camera.
  • the electronic device 100 displays the fourth image from the second camera in the preview interface during the second gesture by the user, and the angle of view of the fourth image is smaller than the angle of view of the second image.
  • the viewing angle of the second image displayed in the preview interface may gradually become smaller.
  • the specific implementation may include: the electronic device successively displays N fourth images from the second camera in the preview interface, and the angle of view of the N fourth images gradually becomes smaller.
  • N is a positive integer greater than or equal to 2.
  • the second camera may include H cameras with different viewing angles, and the H cameras are front cameras or rear cameras.
  • the fourth image displayed in the preview interface may come from the H cameras in descending view angles.
  • H is a positive integer greater than or equal to 2.
  • H is 2, that is, the second camera includes two cameras with different viewing angles.
  • the two cameras may be the third camera and the fourth camera, respectively.
  • the angle of view of the fourth camera is larger than that of the third camera.
  • the fourth image may be from the third camera, and the second image may be from the fourth camera.
  • the electronic device 100 may successively display multiple preview images from the wide-angle camera on the preview interface, and then continue to successively display multiple preview images from the normal camera on the preview interface.
  • the preview angle of view presented by each of the multiple preview images from the ordinary camera may gradually become smaller.
  • the preview angle of view presented by each of the multiple preview images from the wide-angle camera may gradually become smaller.
  • the multiple preview images from the wide-angle camera and the multiple preview images from the ordinary camera may constitute N preview images of the second camera.
  • the preview angle presented by the last image displayed among the multiple preview images from the wide-angle camera is greater than the preview angle presented by the first image displayed among the multiple preview images from the ordinary camera.
  • the first image displayed among the plurality of preview images from the wide-angle camera is the same as the first image displayed among the N preview images of the second camera.
  • the last image displayed among the plurality of preview images from the ordinary camera is the same as the last image displayed among the N preview images of the second camera.
  • the electronic device 100 can reduce the viewing angle of the photo preview.
  • the electronic device 100 can reduce the viewing angle of the photo preview.
  • Phase 4 (S108-S109): Trigger to take a picture, save the picture
  • the electronic device 100 detects a user operation indicating that a photo is triggered.
  • the above-mentioned user operation for instructing to trigger a photo may be a click operation acting on the shutter control 317 as shown in FIG. 3A.
  • the user operation that instructs to trigger a photo may be a smiling face recognized by the electronic device 100 in the preview image displayed on the preview interface. Even if it is said, the user can trigger a photo by smiling.
  • the embodiment of the present application does not limit the time when the electronic device 100 detects the user operation that instructs to trigger the photographing.
  • the electronic device 100 may detect a user operation indicating that a photo is triggered after the above-mentioned stage 2, that is, after the viewing angle of the photo preview is increased.
  • the electronic device 100 may detect a user operation indicating triggering of a photo after the above-mentioned stage 3, that is, after the viewing angle during the photo preview is reduced.
  • the electronic device 100 may first go through the above-mentioned stage 2 and then after the above-mentioned stage 3, that is, first increase the viewing angle during the photo preview, and then reduce the viewing angle during the photo preview, and then detect a user operation instructing to trigger the photo.
  • the electronic device 100 may also detect a user operation indicating triggering of a photograph after first passing through the aforementioned stage 3 and then after passing through the aforementioned stage 2, that is, after the viewing angle during the photo preview is reduced, and then the viewing angle during the photo preview is increased.
  • the electronic device 100 saves the third image from the second camera displayed on the preview interface as a picture.
  • the electronic device 100 only performs the above-mentioned stage 2, and after performing the above-mentioned stage 2, a user operation that instructs to trigger a photograph is detected.
  • the angle of view of the third image may be as large as the angle of view of the second image.
  • the electronic device 100 detects a user operation that instructs to trigger a photograph after performing the above-mentioned stage 2 and stage 3 successively.
  • the angle of view of the third image may be the same as the angle of view of the fourth image.
  • the electronic device 100 only performs the above-mentioned stage 3, and after performing the above-mentioned stage 3, a user operation that instructs to trigger a photo is detected.
  • the angle of view of the third image may be smaller than that of the first image.
  • the electronic device 100 detects a user operation that instructs to trigger a photograph after performing the above-mentioned stage 3 and stage 2 successively.
  • the angle of view of the third image may be the same as the angle of view of the first image.
  • the photographing method provided by the embodiment of the present application can allow the user to adjust the size of the preview angle of view presented by the image displayed in the preview box through a gesture with one hand in the air.
  • the photographing method of this solution allows the user to conveniently adjust the preview angle of view presented by the image displayed in the preview box. In this way, the user does not need to repeatedly bring the electronic device close and adjust the preview angle of view presented by the image displayed in the preview box by touching the screen of the electronic device with a finger.
  • the scene displayed in the preview box is generally not what the user wants to take.
  • the shooting method of this solution allows the user to feel the change of the scene displayed in the preview frame while adjusting the preview angle of view presented by the image displayed in the preview frame.
  • the change of the scene displayed in the preview frame is generally what the user wants to shoot. In this way, the user can quickly obtain the desired view while adjusting the preview angle of view presented by the image displayed in the preview box.
  • the methods for increasing or reducing the viewing angle during photo preview in the above steps S101-S107 are also applicable to increasing or reducing the viewing angle during video preview, and increasing or reducing the viewing angle during video recording.
  • the electronic device 100 may save the preview image displayed on the preview interface during the recording process as a video.
  • the electronic device 100 can detect the first gesture and the second gesture during the recording process, thereby increasing or reducing the viewing angle during the recording process.
  • the electronic device 100 can detect the first gesture and the second gesture during the recording process, thereby increasing or reducing the viewing angle during the recording process.
  • the electronic device 100 can play a video that is saved after the recording is finished. It can be seen from the video playback interface shown in FIGS. 5J to 50 that the preview angle of view presented by the preview image gradually increases during the user's first gesture, and gradually decreases during the user's second gesture. For a specific implementation manner, reference may be made to the aforementioned UI embodiments in FIG. 5J to FIG. 50.
  • the photographing method provided in the embodiment of the present application can also realize the function of switching to a larger viewing angle (such as the viewing angle of a wide-angle camera) in one step.
  • the viewing angle of the second image may be as large as the first viewing angle, wherein the first viewing angle
  • the angle of view is the same as that of the wide-angle camera, or the first angle of view is the same as the angle of view of the ultra-wide-angle camera, or the difference between the first angle of view and the angle of view of the wide-angle camera is smaller than the first value, or the first angle of view and the ultra-wide
  • the difference between the viewing angles of the wide-angle camera is smaller than the second value.
  • the difference between the first angle of view and the angle of view of the wide-angle camera is smaller than the first value means that the first angle of view is very close to the angle of view of the wide-angle camera, and the difference between the angle of view of the first angle of view and the ultra-wide angle camera is smaller than the second value. Refers to the first viewing angle very close to the viewing angle of the ultra-wide-angle camera.
  • the above-mentioned first angle of view may be the angle of view of a wide-angle camera.
  • the electronic device can collect the depth information of the user's hand through the first camera.
  • the depth information may indicate that the user's hand is close to the first camera.
  • the electronic device can calculate the speed at which the user's hand approaching the first camera when the user signals the first gesture.
  • the electronic device can switch to the angle of view of the wide-angle camera in one step in the preview interface (ie, the first angle of view).
  • the user can open the palm of the user to push forward quickly, and when the speed of pushing forward exceeds the above-mentioned first speed, it can switch to a larger viewing angle in one step, such as the viewing angle of a wide-angle camera, to achieve rapid switching of viewing angles.
  • the photographing method provided by the embodiment of the present application can also be switched to a function of a smaller angle of view (such as the angle of view of a normal camera) in one step.
  • the angle of view of the fourth image may be as large as the angle of view of the first image.
  • the electronic device 100 may collect the depth information of the user's hand through the first camera.
  • the depth information may indicate that the user's hand is far away from the first camera.
  • the electronic device 100 may calculate the speed at which the user's hand is away from the first camera when the user signals the second gesture.
  • the speed of the user's hand moving away from the first camera exceeds the second speed, and the electronic device 100 can switch to the view angle of the normal camera in one step in the preview interface.
  • the user can make a fist and quickly pull forward.
  • the speed of pulling backward exceeds the second speed, it can switch to a smaller angle of view in one step, such as the angle of view of a normal camera, to achieve rapid switching of angle of view.
  • the term “when” can be interpreted as meaning “if" or “after” or “in response to determining" or “in response to detecting".
  • the phrase “when determining" or “if detected (statement or event)” can be interpreted as meaning “if determined" or “in response to determining" or “when detected (Condition or event stated)” or “in response to detection of (condition or event stated)”.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium, (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state hard disk).
  • the process can be completed by a computer program instructing relevant hardware.
  • the program can be stored in a computer readable storage medium. , May include the processes of the above-mentioned method embodiments.
  • the aforementioned storage media include: ROM or random storage RAM, magnetic disks or optical disks and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Abstract

本申请实施例提供了一种拍照方法,电子设备可以通过前置摄像头识别用户的手势,在识别到特定手势时,在预览框中先后显示一系列图像,这一系列图像所呈现的预览视角的大小是渐变的。例如,当前置摄像头识别到张开手掌向前推的手势时,电子设备先后显示在预览框中的一系列图像所呈现的预览视角是逐渐变大的,可以让更多景物呈现在预览框中。这样,可支持用户兼顾调整预览视角和取景,操作便利,拍摄过程更加高效。

Description

拍照方法、图形用户界面及电子设备
本申请要求于2020年04月30日提交中国专利局、申请号为202010371511.X、申请名称为“拍照方法、图形用户界面及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及拍照方法、图形用户界面及电子设备。
背景技术
随着电子技术的发展,用户可以通过手机、平板电脑等电子设备的摄像头,拍摄各种各样的照片和视频,从而记录精彩时刻、感人场景等美好画面。
发明内容
本申请的目的在于提供一种拍照方法、图形用户界面(graphic user interface,GUI)及电子设备,可支持用户通过手势来调整拍照预览时的视角大小,用户无需通过手指触摸屏幕,操作便利。而且,该拍照方法还可支持用户在调整视角大小的同时调整取景,即可同时兼顾视角和取景的调整,用户能够在取景的同时逐渐改变预览视角的大小,并能让用户感受到视角大小的变化对取景的影响,便于用户快速获得想要的视角和取景,使得拍摄过程更加高效。
目标和其他目标将通过独立权利要求中的特征来达成。进一步的实现方式在从属权利要求、说明书和附图中体现。
第一方面,本申请提供了一种拍照方法,该方法应用于包括屏幕、第一摄像头和第二摄像头的电子设备,该第一摄像头和该屏幕设置于电子设备的同一面。该方法可包括:电子设备开启第一摄像头和第二摄像头,并在屏幕中显示预览界面。该预览界面中可显示有来自第二摄像头的第一图像。电子设备可通过第一摄像头检测到用户示意第一手势,并在预览界面中显示来自第二摄像头的第二图像,第二图像的视角大于第一图像的视角。当检测到第一用户输入,电子设备可以将预览界面中显示的来自第二摄像头的第三图像保存为图片或视频。
在本申请中,第一摄像头可以是前置摄像头,可用来采集用户的图像。第二摄像头可以是前置摄像头,也可以是后置摄像头。第二摄像头可用来采集景物的图像。例如,在前置拍照场景中,第二摄像头是前置摄像头;在后置拍照场景中,第二摄像头是后置摄像头。第二摄像头可以是一个摄像头,例如一个普通摄像头。第二摄像头也可以是光学视角不同的多个摄像头,例如超长焦摄像头、长焦摄像头、普通摄像头、广角摄像头和超广角摄像头这五个摄像头。
在本申请中,在预览界面中显示的来自摄像头的预览图像,均为从该摄像头采集的图像中裁剪得到的。其中电子设备可以通过居中裁剪的方式对摄像头采集的图像进行裁剪。 当裁剪区域的图像所呈现的视角和摄像头采集的图像所呈现的视角一样大,在预览界面中显示的预览图像即为该摄像头采集的图像。例如,电子设备在预览界面显示来自第二摄像头的第一图像。第一图像可以为电子设备对第二摄像头采集的图像通过居中裁剪的方式得到的。第一图像的中心位置可以和第二摄像头采集的图像的中心位置重合。
在本申请中,第一用户输入可以为指示触发拍照或结束录像的用户操作。具体的,当检测到指示触发拍照的用户操作,电子设备可以将当前显示在预览界面中的图像保存为图片。该当前显示在预览界面中的图像即为来自第二摄像头的第三图像。当检测到指示结束录像的用户操作,电子设备可以将从开始录像到结束录像期间内显示在预览界面中的图像保存为视频。
结合第一方面,在一些实施例中,在预览界面中显示来自第二摄像头的第二图像的视角可以逐渐变大。其具体实现可以包括:电子设备在预览界面中先后显示来自第二摄像头的M幅第二图像,这M幅第二图像的视角逐渐变大。M是大于等于2的正整数。
结合第一方面,在一些实施例中,在前置拍照场景中,第二摄像头和第一摄像头可以是同一个摄像头,例如前置广角摄像头或前置普通摄像头。
结合第一方面,在一些实施例中,第三图像的视角可以和第二图像的视角一样大。
结合第一方面,在一些实施例中,电子设备可先通过第一摄像头检测到用户示意第一手势,然后,电子设备可通过第一摄像头检测到用户示意第二手势。响应于该第二手势,电子设备可以在预览界面中显示来自第二摄像头的第四图像,第四图像的视角小于第二图像的视角。其中,在预览界面中显示来自第二摄像头的第四图像的视角可以逐渐变小。其具体实现可以包括:电子设备在预览界面中先后显示来自第二摄像头的N幅第二图像,这N幅第二图像的视角逐渐变大。N是大于等于2的正整数。
结合第一方面,在一些实施例中,第三图像的视角可以与第一图像的视角一样大。
在一种可能的实现方式中,电子设备也可以仅检测到用户示意第二手势,再检测到前述第一用户输入,此时,第三图像的视角可以小于第一图像的视角。
在另一种可能的实现方式中,电子设备也可以先后检测到用户示意第二手势、第一手势,再检测到前述第一用户输入,此时,第三图像的视角可以与第一图像的视角一样大
在本申请中,根据第一摄像头采集的图像,电子设备可以多次检测到用户示意第一手势以及多次检测到用户示意第二手势。其中,检测到的多次第一手势和多次第二手势没有顺序的限定。
结合第一方面,在一些实施例中,第一手势可以为张开手掌向前推的手势。
具体的,电子设备可通过第一摄像头采集用户的手部的图像和深度信息。当手部的图像中包含手掌张开的图像,且深度信息指示出手部在靠近第一摄像头,则电子设备可以检测到用户示意第一手势。该第一手势包括:用户张开手掌并且用户的手部靠近第一摄像头。
结合第一方面,在一些实施例中,第二手势可以为握拳向后拉的手势。
具体的,电子设备可通过第一摄像头采集用户的手部的图像和深度信息。当手部的图像中包含手部握拳的图像,且深度信息指示出手部在远离第一摄像头,则电子设备检测到用户示意第二手势。该第二手势包括:用户的手部握拳并且用户的手部远离第一摄像头。
结合第一方面,在一些实施例中,第二摄像头包括视角大小不同的H个摄像头,这H 个摄像头为前置摄像头或后置摄像头。在预览界面中显示的第二图像可先后来自视角从小到大的这H个摄像头。其中,H是大于等于2正整数。
例如,H为2,即第二摄像头包括视角大小不同的两个摄像头。这两个摄像头可以分别为第三摄像头和第四摄像头。其中第四摄像头的视角大于第三摄像头的视角。第一图像可来自第三摄像头,第二图像可来自第四摄像头。第三摄像头和第四摄像头可以均为前置摄像头或者均为后置摄像头。
结合第一方面,在一些实施例中,第二摄像头包括视角大小不同的H个摄像头,这H个摄像头为前置摄像头或后置摄像头。在预览界面中显示的第四图像可先后来自视角从大到小的这H个摄像头。其中,H是大于等于2正整数。
例如,H为2,即第二摄像头包括视角大小不同的两个摄像头。这两个摄像头可以分别为第三摄像头和第四摄像头。其中第四摄像头的视角大于第三摄像头的视角。第四图像可来自第三摄像头,第二图像可来自第四摄像头。
结合第一方面,在一些实施例中,如果用户在做第一手势时用户的手部靠近第一摄像头的速度超过第一速度,则第二图像的视角可以和第一视角一样大,其中,第一视角和广角摄像头的视角一样大,或者第一视角和超广角摄像头的视角一样大,或者第一视角和广角摄像头的视角之间的差值小于第一值,或者第一视角和超广角摄像头的视角之间的差值小于第二值。
其中,第一视角和广角摄像头的视角之间的差值小于第一值是指第一视角非常接近广角摄像头的视角,第一视角和超广角摄像头的视角之间的差值小于第二值是指第一视角非常接近超广角摄像头的视角。
例如,第一视角可以为广角摄像头的视角。电子设备可以通过第一摄像头采集用户的手部的深度信息。该深度信息可以指示用户的手部在靠近第一摄像头。根据时间t内,用户的手部靠近第一摄像头的距离,电子设备可以计算用户示意第一手势时,其手部靠近第一摄像头的速度。当检测到用户的手部在做第一手势时,其手部靠近第一摄像头的速度超过第一速度,电子设备可以在预览界面中一步切换到广角摄像头的视角(即第一视角)。
也即是说,用户可以用户可以张开手掌快速向前推,当向前推的速度超过第一速度,可以实现一步切换到更大的视角,例如广角摄像头的视角,实现视角快速切换。
结合第一方面,在一些实施例中,如果用户在做第二手势时用户的手部远离第一摄像头的速度超过第二速度,则第四图像的视角可以和第一图像的视角一样大。
例如,电子设备100可以通过第一摄像头采集用户的手部的深度信息。该深度信息可以指示用户的手部在远离第一摄像头。根据时间t内,用户的手部远离第一摄像头的距离,电子设备100可以计算用户示意第二手势时,其手部远离第一摄像头的速度。当检测到用户的手部在做第二手势时,其手部远离第一摄像头的速度超过第二速度,电子设备100可以在预览界面中一步切换为普通摄像头的视角。
也即是说,用户可以握拳快速向前拉,当向后拉的速度超过第二速度,可以实现一步切换到更小的视角,例如普通摄像头的视角,实现视角快速切换。
第二方面,本申请提供了一种拍照方法,该方法应用于包括屏幕、摄像头的电子设备。该方法可包括:电子设备开启摄像头,并可在屏幕中显示预览界面。该预览界面中显示有 来自摄像头的第一图像。电子设备检测到电子设备在做第一移动,该第一移动为电子设备在做远离被拍摄对象的移动且在电子设备的移动速度超过第一速度。电子设备可以在该预览界面中显示来自该摄像头的第二图像,第二图像的视角大于第一图像的视角。当检测到第二用户输入,电子设备可将该预览界面中显示的来自该摄像头的第三图像保存为图片或视频。
结合第二方面,在一些实施例中,在该预览界面中显示的来自该摄像头的第二图像可逐渐变大。其具体实现可包括:电子设备可以在该预览界面中先后显示来自该摄像头的K幅第二图像,该K幅第二图像的视角逐渐变大,该K幅第二图像中最先显示的第二图像的视角可以和第一图像的视角一样大。其中,K是大于等于2的正整数。
结合第二方面,在一些实施例中,第三图像的视角可以和第二图像的视角一样大。
结合第二方面,在一些实施例中,电子设备检测到电子设备在做第一移动,具体包括:当检测到被拍摄对象图像变小时,电子设备可以确定电子设备在做远离该被拍摄对象的移动;如果单位时间内该被拍摄对象图像变小的程度超过第一值时,则确定电子设备的移动速度超过第一速度。
在另一种可能的实现方式中,电子设备检测到电子设备在做第一移动,具体包括:电子设备可通过运动传感器检测到电子设备在做远离该被拍摄对象的移动且电子设备的移动速度超过第一速度。
结合第二方面,在一些实施例中,电子设备可以检测到电子设备在做第二移动,该第二移动为电子设备在做靠近被拍摄对象的移动且在电子设备的移动速度超过第二速度。电子设备可以在预览界面中显示来自摄像头的第四图像,第四图像的视角小于第二图像的视角。
结合第二方面,在一些实施例中,在该预览界面中显示的来自该摄像头的第四图像可逐渐变小。其具体实现可包括:电子设备可以在该预览界面中先后显示来自该摄像头的J幅第四图像,该J幅第四图像的视角逐渐变小,该J幅第四图像中最先显示的第四图像的视角和第一图像的视角一样大。其中,J是大于等于2的正整数。
结合第二方面,在一些实施例中,第三图像的视角可以和第四图像的视角一样大。结合第二方面,在一些实施例中,电子设备检测到电子设备在做第二移动,具体包括:当检测到被拍摄对象图像变大时,电子设备可以确定电子设备在做靠近该被拍摄对象的移动;如果单位时间内该被拍摄对象图像变大的程度超过第一值时,则确定电子设备的移动速度超过第二速度。
在另一种可能的实现方式中,电子设备检测到电子设备在做第二移动,具体包括:电子设备可通过运动传感器检测到电子设备在做靠近该被拍摄对象的移动且电子设备的移动速度超过第二速度。
第三方面,本申请提供了一种拍照方法。该方法应用于包括屏幕、摄像头的电子设备。该方法包括:电子设备可开启该摄像头,并在该屏幕中显示预览界面,该预览界面中可显示有来自该摄像头的第一图像。电子设备可检测到第一图像中包含的人脸个数N1大于第一图像中包含的人体个数N2;N1、N2是正整数。电子设备可以在该预览界面中显示来自该摄像头的第二图像,第二图像的视角大于第一图像的视角。当检测到第二用户输入,电子设 备可以将该预览界面中显示的来自该摄像头的第三图像保存为图片或视频。
结合第三方面,在一些实施例中,在该预览界面中先后显示来自该摄像头的第二图像的视角可以逐渐变大。其具体实现可包括:电子设备可以在该预览界面中先后显示来自该摄像头的S幅第二图像,该S幅第二图像的视角逐渐变大,该S幅第二图像中最先显示的该第二图像的视角和该第一图像的视角一样大。其中,S是大于等于2的正整数。
结合第三方面,在一些实施例中,第三图像的视角可以和第二图像的视角一样大。
第四方面,本申请提供了一种电子设备,电子设备可包括屏幕、第一摄像头、第二摄像头、存储器、一个或多个处理器、多个应用程序、以及一个或多个程序,一个或多个处理器用于执行存储在存储器中的一个或多个计算机程序,其中:
第一摄像头可以是前置摄像头,可用来采集用户的图像。第二摄像头可以是前置摄像头,也可以是后置摄像头。第二摄像头可用来采集景物的图像。第二摄像头可以是一个摄像头,例如一个普通摄像头。第二摄像头也可以是光学视角不同的多个摄像头,例如超长焦摄像头、长焦摄像头、普通摄像头、广角摄像头和超广角摄像头这五个摄像头。
屏幕可用于显示预览界面。该预览界面可用于显示第二摄像头采集的图像,还可以用于显示第一摄像头采集的图像。
第四方面中电子设备包括的各个部件的具体实现方式可以参考第一方面描述的拍照预览方法,这里不再赘述。
第五方面,本申请提供一种电子设备,电子设备可包括一种装置,该装置可实现如第一方面中任一可能的实现方式,或如第二方面中任一可能的实现方式,或如第三方面中任一可能的实现方式。
第六方面,本申请还提供一种拍照装置,该装置具有实现方法实际中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与功能相对应的模块。
第七方面,本申请提供一种计算机设备,包括存储器,处理器以及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,处理器执行计算机程序时使得计算机设备实现如第一方面中任一可能的实现方式,或如第二方面中任一可能的实现方式,或如第三方面中任一可能的实现方式。
第八方面,一种包含指令的计算机程序产品,其特征在于,当计算机程序产品在电子设备上运行时,使得电子设备执行如第一方面中任一可能的实现方式,或如第二方面中任一可能的实现方式,或如第三方面中任一可能的实现方式。
第九方面,提供一种计算机可读存储介质,包括指令,其特征在于,当指令在电子设备上运行时,使得电子设备执行如第一方面中任一可能的实现方式,或如第二方面中任一可能的实现方式,或如第三方面中任一可能的实现方式。
附图说明
图1示出了本申请实施例提供的一种电子设备的结构示意图;
图2A和图2B示出了本申请实施例提供的一种电子设备的外形结构示意图;
图2C示出了本申请实施例提供的一种用于应用程序菜单的用户界面;
图3A-图3B示出了本申请实施例提供的一种典型的拍摄场景的用户界面;
图3C-图3H示出了本申请实施例提供的电子设备前置摄像头拍照时调整显示在预览框中的图像所呈现的预览视角的用户界面;
图4A和图4B示出了本申请实施例提供电子设备前置摄像头拍照时调整显示在预览框中的图像所呈现的预览视角的实现方式;
图5A-图5O示出了本申请实施例提供的电子设备前置摄像头录像时调整显示在预览框中的图像所呈现的预览视角的用户界面;
图6A和图6B示出了本申请实施例提供的开启隔空拍照的用户界面;
图6C-图6I示出了本申请实施例提供的电子设备后置摄像头拍照时调整显示在预览框中的图像所呈现的预览视角的用户界面;
图7A和图7C示出了本申请实施例提供的电子设备拍照的一些用户界面;
图7B示出了本申请实施例提供的一种电子设备拍照的应用场景示意图;
图8A和图8B示出了本申请实施例提供的电子设备拍照的另一些用户界面;
图9示出了本申请实施例提供的拍照方法的总体流程。
具体实施方式
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。
本申请实施例提供了一种拍照方法,该拍照方法可支持用户通过手势来调整拍照预览时的视角大小,而无需触摸屏幕,用户操作便利。而且,该拍照方法还可支持用户在调整预览视角的大小的同时进行取景,即可同时兼顾调整预览视角和取景,用户能够在取景的同时逐渐调整预览视角的大小,并能让用户感受到预览视角的大小变化对取景的影响,便于用户快速获得想要的视角和取景,使得拍摄过程更加高效。而现有技术中,当用户想要调整预览视角的大小时,用户需要将电子设备拿近身旁并用手指触摸屏幕来选择变焦倍率。此时的取景一般不是用户想要的,例如取景朝向地面,用户往往需要在调整预览视角的大小后再调整拍摄姿势来重新取景,例如朝向景物举起手机。也即是说,现有技术中,用户调整预览视角的大小和用户进行取景是很难同时兼顾的。
本申请实施例提供的拍照方法可以应用于包括多个摄像头的电子设备。该电子设备可以通过前置摄像头识别用户的手势,在识别到到特定手势时,电子设备在预览框中先后显示一系列图像,这一系列图像所呈现的预览视角的大小是渐变的。渐变包括逐渐变大、逐渐变小。例如,当前置摄像头识别到张开手掌向前推的手势时,电子设备先后显示在预览框中的一系列图像所呈现的预览视角是逐渐变大的,可以让更多景物呈现在预览框中。又例如,当前置摄像头识别到握拳向后拉的手势时,电子设备先后显示在预览框中一系列图像所呈现的预览视角是逐渐变小的,可逐渐减少预览框中呈现的景物。其中,张开手掌向 前推中的向前是指用户手掌靠近电子设备,握拳向后拉中的向后是指用户握拳远离电子设备。
对于用户而言,当用户在执行张开手掌向前推的手势时,预览框中的一系列图像所呈现的预览视角在逐渐变大,预览框中可纳入越来越多的景物;当用户在执行握拳向后拉的手势时,预览框中的一系列图像所呈现的预览视角在逐渐变小,预览框中可纳入越来越少的景物。
本申请实施例对用于变换预览框中显示的一系列图像所呈现的预览视角的手势不作限定。
除了通过前置摄像头中任意一个摄像头识别用户的手势,电子设备还可以通过后置摄像头中任意一个摄像头识别用户的手势。
由上述拍照方法可以看出,用户可以通过隔空且单手的手势来调整显示在预览框中图像所呈现的预览视角的大小。尤其对于利用前置摄像头进行拍摄的场景,用户一般会伸直手臂或者使用自拍杆进行拍摄。而本方案的拍照方法可以让用户便捷地调整显示在预览框中图像所呈现的预览视角。这样,用户就无须反复将电子设备拿近后,通过手指触摸电子设备的屏幕来调整显示在预览框中图像所呈现的预览视角。
并且,当用户将电子设备拿近来调整显示在预览框中图像所呈现的预览视角时,显示在预览框中的景物一般不是用户想进行拍摄的。但本方案的拍摄方法可以让用户在调整显示在预览框中图像所呈现的预览视角的同时,感受到显示在预览框中的景物的变化。此时,显示在预览框中的景物的变化一般是用户想进行拍摄的。这样,用户可以在调整显示在预览框中图像所呈现的预览视角的同时,快速地获得想要的取景。
该电子设备可以是手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personaldigital assistant,PDA)或专门的照相机(例如单反相机、卡片式相机)等,本申请对该电子设备的具体类型不作任何限制。
图1示例性示出了该电子设备的结构。如图1所示,电子设备100可具有多个摄像头193,例如普通摄像头、广角摄像头、超广角摄像头、长焦摄像头、超长焦摄像头等。这多个摄像头193可以分别设置于电子设备的两面。设置在电子设备100的显示屏194那一面的摄像头可以称为前置摄像头,设置在电子设备100的后盖那一面的摄像头可以称为后置摄像头。前置摄像头可用于采集面对显示屏194的景物的图像,后置摄像头可用于采集用面对电子设备100的后盖的景物的图像。
摄像头193的焦距越小,其视角越大,取景范围就越大,可以拍摄到更多的景物。反之,摄像头193的焦距越大,其视角越小,取景范围就越小,可以拍摄到更少但更远的景物。这里,视角又可以称为视场角(field of view,FOV),视场角是指摄像头的光学系统所能够成像的角度范围。例如,超广角摄像头的焦距一般约为12毫米(millimeter,mm)-24mm,超广角摄像头的视角一般为84°-120°;广角摄像头的焦距一般约为24mm-35mm,广角摄像头的视角一般为63°-84°;普通摄像头的焦距一般在50mm左右,普通摄像头的 视角一般为46°左右;长焦摄像头的焦距一般约为135mm-500mm,长焦摄像头的视角一般为5°-18°;超长焦摄像头的焦距一般超过500mm,超长焦摄像头的视角一般为0°-5°。这三种摄像头在视角方面的表现为:超广角摄像头优于广角摄像头,广角摄像头优于普通摄像头。
此外,电子设备100还可包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
在一些实施例中,控制器或GPU等处理器110,可以用于在多路拍摄场景下,将多个摄像头193同时采集到的多帧图像,通过拼接或局部叠加等方式合成显示于取景框中的预览图像,以便电子设备100可以同时显示这多个摄像头193采集到的图像。
在另一些实施例中,控制器或GPU等处理器110,还可以用于在多路拍摄场景下,对每个摄像头193采集到的图像进行防抖处理后,再将多个摄像头193对应的防抖处理后的图像进行合成。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步 收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。
在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。无 线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体图像声部振动骨块的振动信号。骨传导传感器180M也可以接触人体图像脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持一个或多个SIM卡接口。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。不限于集成于处理器110中,ISP也可以设置在摄像头193中。
摄像头193包括镜头和感光元件(又可称为图像传感器),用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号,如标准的RGB,YUV等格式的图像信号。
在一些实施例中,摄像头193可以用于采集深度数据。例如,摄像头193可以具有(time of flight,TOF)3D感测模块或结构光(structured light)3D感测模块,用于获取深度信息。用于采集深度数据的摄像头可以为前置摄像头,也可为后置摄像头。
视频编解码器用于对数字图像压缩或解压缩。电子设备100可以支持一种或多种图像编解码器。这样,电子设备100可以打开或保存多种编码格式的图片或视频。
电子设备100可以通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液 晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括一个或多个显示屏194。
图2A和图2B示出了一种电子设备100外形结构示意图。其中,图2A示出了电子设备100的显示屏194所在的一面。图2B示出了电电子设备100的后盖所在的一面。
电子设备100可以具有多个摄像头193。其中,电子设备100可以包括多个前置摄像头。例如前置摄像头193-1、前置摄像头193-2。前置摄像头193-1可以为普通摄像头。前置摄像头193-2可以为广角摄像头。如图2A所示,前置摄像头193-1和前置摄像头193-2可设置于电子设备100顶端,如电子设备100的“刘海”位置(即图2A中示出的区域AA)。区域AA中除了包括摄像头193之外,还可以包括扬声器170A等。如图2B所示,电子设备100可以包括多个后置摄像头,例如后置摄像头193-3、后置摄像头193-4以及后置摄像头193-5。后置摄像头193-3、后置摄像头193-4以及后置摄像头193-5可以分别为普通摄像头、广角摄像头以及长焦摄像头。电子设备100后盖所在的一面还可以具有闪光灯196等。
摄像头193可以通过数字变焦来改变预览框中的预览图像的视角,也可以通过光学变焦来改变预览框中的预览图像的视角,还可以通过光学变焦和数字变焦相结合的方式(又称为混合变焦)来改变预览图像的视角。也即是说,变焦可以包括数字变焦、光学变焦或混合变焦。下面以混合变焦举例。
电子设备100可以通过变换这多个摄像头193中用于拍摄的摄像头并结合数码变焦来实现显示在预览框中一系列图像所呈现的预览视角的大小是渐变的。上述用于拍摄的摄像头可以指采集的图像显示在预览框中的摄像头。上述数码变焦可以为电子设备100将摄像头193采集的图像中每个像素面积变大,来实现改变焦距的目的。这相当于电子设备100将一个摄像头采集的图像进行了裁剪处理,然后将经过裁剪处理的图像放大,即将经过裁剪处理的图像的分辨率调整至和裁剪之前的图像的分辨率相同。这样,相比于裁剪之前的图像,经过裁剪处理并放大的图像中每个像素的面积变大。且部分视角内的图像被裁剪掉,使得经过裁剪处理并放大的图像所呈现的预览视角变小,类似于增大焦距的效果。但实际上,上述数码变焦并未改变上述一个摄像头的焦距。
假设当前预览框中显示的是前置摄像头中普通摄像头193-1采集的图像,且当前变焦倍率为1倍倍率(1X)。当电子设备100通过普通摄像头193-1采集的图像识别到张开手掌向前推的手势时,电子设备100先将普通摄像头193-1采集的图像显示在预览框中,然后,再将广角摄像头193-2采集的图像进行裁剪,并将裁剪后的图像显示在预览框中。具体的,电子设备100可对广角摄像头193-2先后采集的图像进行多次裁剪,这多次裁剪的裁剪区域越来越大,即电子设备100进行多次数码变焦的过程。也即是说,在该手势发生时,图像显示可包括先后两个阶段:使用普通摄像头193-1采集图像的阶段、使用广角摄像头193-2采集图像的阶段。在使用普通摄像头193-1采集的图像的阶段,变焦倍率为一倍倍率1X。在使用广角摄像头193-2采集的图像的阶段,变焦倍率从1X逐渐降低,例如变焦 倍率从0.9倍倍率(0.9X)降低至0.8倍倍率(0.8X)、从0.8X降低至0.7倍倍率(0.7X)等。这样,在张开手掌向前推的手势发生时,预览框中显示的一系列图像所呈现的预览视角也越来越大。
假设当前预览框中显示的是广角摄像头193-2采集的图像,且当前变焦倍率为广角倍率(Wide)。当电子设备100通过广角摄像头193-2采集的图像识别到握拳向后拉的手势时,电子设备100先将广角摄像头193-2采集的图像显示在预览框中,然后,再将广角摄像头193-2采集的图像进行裁剪,并将裁剪后的图像显示在预览框中。具体的,电子设备100可对广角摄像头193-2先后采集的图像进行多次裁剪,这多次裁剪的裁剪区域越来越小,即电子设备100进行多次数码变焦的过程。在使用广角摄像头193-2采集的图像的阶段,变焦倍率从Wide逐渐增大,例如变焦倍率从Wide增大至0.7X,从0.7X增大至0.8X等。当变焦倍率增大至1X,电子设备100将普通摄像头193-1采集的图像显示在预览框中。若电子设备100通过普通摄像头193-1采集的图像仍识别到握拳向后拉的手势,电子设备100可以对普通摄像头193-1采集的图像进行裁剪,并将裁剪后的图像显示在预览框中。具体的,电子设备100可对普通摄像头193-1先后采集的图像进行多次裁剪,这多次裁剪的裁剪区域越来越小。在使用普通摄像头193-1采集的图像的阶段,变焦倍率从1X逐渐增大,例如变焦倍率从1X增大至1.1倍倍率(1.1X),从1.1X增大至1.2倍倍率(1.2X)等。这样,在握拳向后拉的手势发生时,预览框中显示的一系列图像所呈现的预览视角也越来越小。
在使用一个摄像头采集的图像时,显示在预览框中的来自该摄像头的图像所呈现的预览视角一般可能小于这个摄像头的视角。此时,预览框中的图像是从该摄像头采集的图像中裁剪出来的。当变焦倍率变换至一个特定倍率时,显示在预览框中的图像所呈现的预览视角可以与这一个摄像头的视角一样大。例如,上述在使用广角摄像头193-2采集的图像的阶段(即0.9X~Wide),显示在预览框中的图像所呈现的预览视角一般小于广角摄像头193-2的视角。当变焦倍率为Wide倍率(如0.6X)时,显示在预览框中的图像所呈现的预览视角可以与广角摄像头193-2的视角一样大。
不限于图1所示,电子设备100还可以包括更多或更少部件。例如电子设备100可以为智慧电视、智慧屏等大屏设备,这种大屏设备可配置有摄像头193。在视屏通话场景或者前置拍摄场景中,这种大屏设备可以通过前置摄像头193采集的图像识别出前述特定手势,进而调整拍照预览、录像预览、录像(包括视频通话)时的预览视角。关于如何调整预览视角,后续实施例中会详细说明,这里先不展开。
下面介绍电子设备100上的用于应用程序菜单的示例性用户界面。
图2C示例性示出了电子设备100上的用于应用程序菜单的示例性用户界面210。
如图2C所示,用户界面210可包括:状态栏211,具有常用应用程序表的托盘215、日历指示符212、天气指示符213、导航栏216以及其他应用程序图标214。其中:
状态栏211可包括移动通信信号的一个或多个信号强度指示符、无线高保真(wirelessfidelity,WiFi)信号的一个或多个信号强度指示符、电池状态指示符以及时间指示符。
日历指示符212可用于指示当前时间,例如日期、星期几、时分信息等。
天气指示符213可用于指示天气类型,例如多云转晴、小雨等,还可以用于指示气温等信息。
具有常用应用程序图标的托盘215可展示:拨号图标215A、信息图标215B、联系人图标215C和相机图标215D。其中相机图标215D可用于开启相机应用程序。例如,响应于作用在相机图标215D上的用户操作,如触摸操作,电子设备100可以开启相机应用程序,从而进行拍照以及录像等功能。
导航栏216可包括:返回按键216C、主界面(Home screen)按键216B、呼出任务历史按键216C等系统导航键。当检测到用户点击返回按键216C时,电子设备100可显示当前页面的上一个页面。当检测到用户点击主界面按键216B时,电子设备100可显示主界面。当检测到用户点击呼出任务历史按键216C时,电子设备100可显示用户最近打开的任务。各导航键的命名还可以为其他,本申请对此不做限制。不限于虚拟按键,导航栏216中的各导航键也可以实现为物理按键。
其他应用程序图标214可包括邮件图标214A、图库图标214B、微信图标214C和运动健康图标214D。其中,图库图标214B可用于开启图库应用程序。例如,响应于作用在图库图标214B上的用户操作,如触摸操作,电子设备100可以开启图库应用程序,从而显示电子设备100中存储的图片和视频等信息。电子设备100中存储的图片和视频中包括电子设备100通过相机应用程序拍摄的照片和视频。其他应用程序图标214还可以包括更多的应用程序图标,本申请实施例对此不作限定。
用户界面210还可包括页面指示符217。其他应用程序图标可分布在多个页面,页面指示符217可用于指示用户当前浏览的是哪一个页面中的应用程序。用户可以左右滑动其他应用程序图标的区域,来浏览其他页面中的应用程序图标。当检测到用户点击这些应用程序图标时,电子设备100可显示该应用程序的用户界面。
在一些实施例中,图2C示例性所示的用户界面210可以为主界面(Home screen)。
在其他一些实施例中,电子设备100还可以包括主屏幕键。该主屏幕键可以是实体按键,也可以是虚拟按键(如按键216B)。该主屏幕键可用于接收用户的指令,将当前显示的UI返回到主界面,这样可以方便用户随时查看主屏幕。
可以理解的是,图2C仅仅示例性示出了电子设备100上的用户界面,不应构成对本申请实施例的限定。
下面描述本申请涉及的一种典型拍摄场景。
如图2C所示,电子设备可以检测到作用于相机图标215D的触控操作(如在相机图标215D上的点击操作),响应于该操作,可以显示图3A示例性所示的用户界面310。用户界面310可以是相机应用程序的默认拍照模式的用户界面,可用于用户通过默认后置摄像头进行拍照。相机应用程序是智能手机、平板电脑等电子设备上的一款图像拍摄的应用程序,本申请对该应用程序的名称不做限制。也即是说,用户可以点击相机图标215D来打开相机应用程序的用户界面310。不限于此,用户还可以在其他应用程序中打开用户界面310,例如用户在“微信”中点击拍摄控件来打开用户界面310。“微信”是一款社交类应用程序, 可支持用户向他人分享所拍摄的照片等。默认摄像头不限于为后置摄像头,电子设备100也可以将前置摄像头设置为默认摄像头。也即是说,当开启相依应用程序,电子设备100可以在预览框314中显示前置摄像头采集的图像,可用于用户通过默认前置摄像头进行拍照。
图3A示例性示出了智能手机等电子设备上的相机应用程序的一个用户界面310。如图3A所示,用户界面310可包括:设置控件311、闪光灯控件312、变焦倍率313、预览框314、相机模式选项315、图库快捷控件316、快门控件317、摄像头翻转控件318。其中:
设置控件311可用于调整拍摄照片的参数(如分辨率、滤镜等)以及开启或关闭一些用于拍照的方式(如定时拍照、微笑抓拍、声控拍照等)等。设置控件311可用于设置更多其他拍摄的功能,本申请实施例对此不作限定。
闪光灯控件312可用于开启或者关闭闪光灯。
变焦倍率313可用于指示显示在预览框314中的图像所呈现的预览视角变换的比例。其中,变焦倍率313越大,显示在预览框314中的图像所呈现的预览视角越小。反之,变焦倍率313越小,显示在预览框314中的图像所呈现的预览视角越大。如图3A所示,1X可以为相机应用程序的默认变焦倍率。当变焦倍率313为一倍倍率1X,显示在预览框314中的图像所呈现的预览视角与普通摄像头193-1的拍摄视角一样大。也即是说,当开启相机应用程序,电子设备100可以在预览框314中显示普通摄像头193-1采集的图像,该图像所呈现的预览视角与普通摄像头193-1的拍摄视角一样大。本申请实施例对上述默认变焦倍率不作限定。
预览框314可用于显示摄像头193实时采集的图像。电子设备可以实时刷新其中的显示内容,以便于用户预览摄像头193当前的采集的图像。
相机模式选项315中可以显示有一个或多个拍摄模式选项。这一个或多个拍摄模式选项可以包括:大光圈模式选项315A、录像模式选项315B、拍照模式选项315C、人像模式选项315D和更多选项315E。这一个或多个拍摄模式选项在界面上可以表现为文字信息,例如“大光圈”、“录像”、“拍照”、“人像”、“更多”。不限于此,这一个或多个摄像选项在界面上还可以表现为图标或者其他形式的交互元素(interactive element,IE)。当检测到作用于拍摄模式选项上的用户操作,电子设备100可以开启用户选择的拍摄模式。特别的,当检测到作用于更多选项315E的用户操作,电子设备100可以进一步显示更多的其他拍摄模式选项,如慢动作拍摄模式选项等等,可以向用户展示更丰富的摄像功能。不限于图3A所示,相机模式选项315中可以不显示更多选项315E,用户可以通过在相机模式选项315中向左/右滑动来浏览其他拍摄模式选项。
图库快捷键316可用于开启图库应用程序。响应于作用在图库快捷键316上的用户操作,例如点击操作,电子设备100可以开启图库应用程序。这样,用户可以便捷地查看拍摄的照片和视频,而无需先退出相机应用程序,再开启图库应用程序。图库应用程序是智能手机、平板电脑等电子设备上的一款图片管理的应用程序,又可以称为“相册”,本实施例对该应用程序的名称不做限制。图库应用程序可以支持用户对存储于电子设备100上的图片进行各种操作,例如浏览、编辑、删除、选择等操作。
快门控件317可用于监听触发拍照的用户操作。电子设备100可以检测到作用于快门 控件317的用户操作,响应于该操作,电子设备100可以将预览框314中的图像保存为图库应用程序中的图片。另外,电子设备100还可以在图库快捷键316中显示所保存的图像的缩略图。也即是说,用户可以点击快门控件317来触发拍照。其中,快门控件317可以是按钮或者其他形式的控件。
摄像头翻转控件318可用于监听触发翻转摄像头的用户操作。电子设备100可以检测到作用于摄像头翻转控件318的用户操作,例如点击操作,响应于该操作,电子设备100可以翻转摄像头,例如将后置摄像头切换为前置摄像头。此时,如图3B所示,预览框314中显示前置摄像头采集的图像。
基于上述拍摄场景,下面介绍在电子设备100上实现的一些用户界面(user interface,UI)。
图3B~图3H示例性示出了前置拍照场景下调整预览视角的大小的用户界面。该前置拍照场景可以是用户举着自拍杆架持电子设备100拍照的场景。
(1)图3B~图3D示例性示出了前置拍照场景下放大预览视角的用户界面。
电子设备100可以通过前置摄像头采集的图像识别用户的手势,并响应特定手势(如张开手掌向前推的手势)来放大预览视角。
如图3B~图3D所示,在显示前置拍照预览界面时,若检测到张开手掌向前推的手势,电子设备100可以逐渐放大显示在预览框314中的图像所呈现的预览视角。同时,前置拍照预览界面310中显示的变焦倍率313会逐渐降低。
如图3B所示,初始的变焦倍率313可以为一倍倍率1X,显示在预览框314中的图像来自普通前置摄像头。此后,电子设备100可以识别到张开手掌向前推的手势,显示在预览框314中的图像所呈现的预览视角可逐渐变大,变焦倍率313逐渐降低。例如,变焦倍率从1X降低至0.9X,从0.9X降低至0.8X等。
如图3C所示,相比于图3B所示场景,电子设备100可识别到张开手掌继续向前推的手势,显示在预览框314中的图像所呈现的预览视角进一步变大,变焦倍率313降低至0.7X。
如图3D所示,相比于图3C所示场景,电子设备100识别到张开手掌进一步继续向前推的手势,显示在预览框314中的图像所呈现的预览视角再进一步变大,变焦倍率313降低至0.6X,例如Wide倍率。
在上述图3B-图3D所示的场景中,变焦倍率313可以从1X降低至0.9X,从0.9X增大至0.7X,……,逐渐降低至Wide倍率,并且显示在预览框314中的图像所呈现的预览视角逐渐变大。也即是说,在前置拍照预览的过程中,用户可以通过张开手掌向前推的手势来放大预览视角。
电子设备100可以根据手部向前推的速度,来调整预览视角变大的速度。手部向前推的速度越大,预览视角变大越快。特别的,当在短时间T(如0.5秒)内识别到张开手掌向前推的速度大于预设速度时,电子设备100可以直接将预览视角从较小预览视角(如变焦倍率为一倍倍率下的预览视角)切换到最大预览视角,例如广角摄像头193-2的视角。这样,可支持用户快速切换到更大预览视角。
当检测到手部停止向前推时,即手部和电子设备100之间的距离不再变化或者变化很 小时,电子设备100可以停止放大预览视角。这样,用户可以一边张开手掌向前推,一边感受预览视角放大对取景影响。当用户认为当前预览框314中的取景是合适的,用户可以将手放下或者不再将手掌向前推,此时显示在预览框314中的图像所呈现拍摄视角不再变化。
(2)图3E~图3G示例性示出了前置拍照场景下缩小预览视角的用户界面。
电子设备100可以通过前置摄像头采集的图像识别用户的手势,并响应特定手势(如握拳向后拉的手势)来缩小预览视角。
如图3E~图3G所示,在显示前置拍照预览界面时,若检测到握拳向后拉的手势,电子设备100可以逐渐缩小显示在预览框314中的图像所呈现的预览视角。同时,前置拍照预览界面310中显示的变焦倍率313会逐渐变大。
如图3E所示,初始的变焦倍率313可以为wide倍率。此后,电子设备100可以识别到握拳向后拉的手势,显示在预览框314中的图像所呈现的预览视角变小,变焦倍率313增加至0.8X。
如图3F所示,相比于图3E所示场景,电子设备100可识别到握拳继续向后拉的手势,显示在预览框314中的图像所呈现的预览视角进一步变小,变焦倍率313增大至1X。
如图3G所示,相比于图3F所示场景,电子设备100识别到握拳进一步继续向后拉的手势,显示在预览框314中的图像所呈现的预览视角再进一步变小,变焦倍率313增大至2X。
在上述图3E-图3G所示的场景中,变焦倍率313可以从1X增大至1.1X,从1.1X增大至1.2X,……,逐渐增大至2X,并且显示在预览框314中的图像所呈现的预览视角逐渐变小。也即是说,在前置拍照预览的过程中,用户可以通过握拳向后拉的手势来缩小预览视角。
电子设备100可以根据握拳向后拉的速度,来调整预览视角变小的速度。握拳向后拉的速度越大,预览视角变小越快。特别的,当在短时间T(如0.5秒)内识别到握拳向后拉的速度大于预设速度时,电子设备100可以直接将预览视角从较大预览视角(如变焦倍率为wide倍率下的预览视角)切换到最小预览视角,例如普通摄像头的视角。这样,可支持用户快速切换到更小预览视角。
当检测到握拳停止向后拉时,即手部和电子设备100之间的距离不再变化或者变化很小时,电子设备100可以停止缩小预览视角。这样,用户可以一边握拳向后拉,一边感受预览视角变小对取景影响。当用户认为当前预览框314中的取景是合适的,用户可以将手放下或者不再将手掌向前推,此时显示在预览框314中的图像所呈现拍摄视角不再变化。
综合上述(1)和(2)可以看出,用户可以通过隔空且单手的手势来调整显示在预览框中图像所呈现的预览视角的大小。尤其对于利用前置摄像头进行拍摄的场景,用户一般会伸直手臂或者使用自拍杆进行拍摄。而本方案的拍照方法可以让用户便捷地调整显示在预览框中图像所呈现的预览视角。这样,用户就无须反复将电子设备拿近后,通过手指触摸电子设备的屏幕来调整显示在预览框中图像所呈现的预览视角。
并且,由于不需要用户用手指触摸电子设备屏幕,用户可以在调整预览视角的同时,感受到预览视角的变化对拍摄画面的影响。在现有技术中,用户通过手势触摸电子设备的 屏幕来调整显示在预览框中的图像所呈现的预览视角时,显示在预览框中的景物一般不是用户想进行拍摄的。因此用户需要在调整预览视角后,再调整拍摄姿势(如举起电子设备等)将想要进行拍摄的景物纳入预览框中。这样,用户调整预览视角与进行拍摄取景就难以同时兼顾。而本方案中的拍照方法可以支持用户在进行拍摄取景的同时,调整预览视角,给用户带来良好的拍摄体验。
在一些实施例中,当识别到与前述特定手势不相符的手势时,例如张开手掌向后拉、握拳向后推等手势,显示在预览框314中图像所呈现的预览视角的大小不会变化。这种情况下,电子设备100可以在预览框314中提示用户使用那种手势来调整预览视角。
在一些实施例中,如图3H所示,电子设备100可以在预览框314中以类似画中画的方式显示提示符314A和314B,其中,提示符314B可以为预览框中显示的预览图像的缩略图,提示符314A为最大视角的摄像头实际所采集到的图像的缩略图。具体的,当变焦倍率为一倍倍率1X时,预览视角与普通摄像头193-1的视角一样大。当识别到张开手掌向前推的手势时,预览视角逐渐变大,314B在314A中的占比也逐渐变大。当识别到握拳向后拉的手势,预览视角逐渐缩小,314B在314A中的占比也逐渐缩小。这样,用户便可以直观感受到预览图像所呈现的预览视角和最大视角之间的差距,便于用户更好的执行拍摄。
在一些实施例中,电子设备100可以检测到用于触发拍照的用户操作,例如在控件317上的点击操作,将显示在预览框314中的图像保存为图库应用程序中的照片。不限于在控件317上的点击操作,当开启笑脸抓拍模式时,电子设备100可以在显示在预览框314中的图像中识别到笑脸时,触发拍照。或者,当开启声控拍照模式时,电子设备100可以在检测到指示拍照的语音指令时,触发拍照。这样,用户可以不用触摸屏幕也能触发拍照。
在放大或缩小显示在预览框314中的图像所呈现的预览视角时,电子设备100的姿态可以不改变,或者电子设备100与景物之间的相对距离不改变。这里,不改变可以指电子设备100姿态的变化幅度很小或者电子设备100与景物之间的相对距离变化很小,不足以对显示在预览框314中的图像所呈现的预览视角产生明显影响。
下面介绍前置拍照场景下调整预览视角的具体实现方式。
在一些实施例中,电子设备100具有多个前置摄像头,例如两个前置摄像头。这两个前置摄像头中可包括一个普通摄像头193-1和一个广角摄像头193-2。
阶段1:增大拍照预览时的视角
图4A示例性示出了电子设备100将显示在预览框314中的图像所呈现的预览视角逐渐增大的过程。
在一种可能的情况中,当识别到张开手掌向前推的手势,电子设备100可以逐渐增大显示在预览框314中的图像所呈现的预览视角。具体的,电子设备100可以先使用普通摄像头193-1采集的图像,再使用广角摄像头193-2采集的图像。其中:
(1)使用普通摄像头193-1采集的图像
在使用普通摄像头193-1采集的图像时,电子设备100可以先将普通摄像头193-1采集的图像进行裁剪,并将裁剪后的图像显示在预览框314中。其中,电子设备100可对普通摄像头193-1先后采集的图像进行多次裁剪,直到裁剪区域的图像所呈现的预览视角与 普通摄像头193-1的视角一样大。这多次裁剪的裁剪区域越来越大。上述多次裁剪的过程即为电子设备100进行多次数码变焦的过程。
如图4A所示,假设电子设备100在预览框314中显示的第1帧图像为第1区域所示的图像。其中,第1区域所示的图像可以为普通摄像头193-1采集的图像,其大小可以为a1*b1。也即是说,显示在预览框314中的图像所呈现的预览视角与普通摄像头193-1的视角一样大,且此时变焦倍率为1X。
若识别到张开手掌向前推的手势,电子设备100可以增大拍照预览时的视角。即电子设备100可以从使用普通摄像头193-1采集的图像调整为使用广角摄像头193-2采集的图像。
(2)使用广角摄像头193-2采集的图像
在使用广角摄像头193-2采集的图像时,电子设备100可以先将广角摄像头193-2采集的图像进行裁剪,并将裁剪后的图像显示在预览框314中。其中,电子设备100可对广角摄像头193-2先后采集的图像进行多次裁剪,直到裁剪区域的图像所呈现的预览视角与广角摄像头193-2的视角一样大。这多次裁剪的裁剪区域越来越大。上述多次裁剪的过程即为电子设备100进行多次数码变焦的过程。
电子设备100先将广角摄像头193-2采集的图像进行裁剪,得到图4A示例性示出的第2区域。电子设备100在预览框314中显示的第2帧图像可以为第2区域所示的图像,此时,变焦倍率为0.9X。第2区域所示的图像的大小可以为a2*b2。其中a2大于a1,b2大于b1。第2区域所示的图像所呈现的预览视角大于第1区域所示的图像所呈现的预览视角。
若电子设备100仍能识别到张开手掌向前推的手势,电子设备100可以继续将广角摄像头193-2采集的图像进行裁剪,得到第3区域所示的图像。电子设备100在预览框中显示的第3帧图像可以为第3区域所示的图像,此时变焦倍率为0.8X。第3区域所示的图像的大小可以为a3*b3,其中a3大于a2,b3大于b2。第3区域所示的图像所呈现的预览视角大于第2区域所示的图像所呈现的预览视角。
同样的,若电子设备100仍能识别到张开手掌向前推的手势,电子设备100可以继续对广角摄像头193-2采集的图像进行裁剪,得到第4区域所示的图像等等,直到电子设备100在预览框314中显示的第m帧图像为第m区域所示的图像,此时,变焦倍率为Wide。该第m区域所示的图像所呈现的预览视角与广角摄像头193-2的视角一样大。也即是说,电子设备100将显示在预览框314中的图像所呈现的预览视角增大至最大。
需要进行说明的是,电子设备100在预览框314显示上述第1帧图像至第m帧图像的过程中,若未能识别到张开手掌向前推的手势,电子设备100可以执行停止增大显示在预览框314中的图像所呈现的预览视角。例如,若电子设备100在预览框314中显示第3帧图像和第4帧图像之间,未能识别到张开手掌向前推的手势,则第3帧图像可以为第3区域所示的图像,且变焦倍率为0.8X。第4帧图像所呈现的预览视角可与第3帧图像所呈现的预览视角的一样大,变焦倍率仍为0.8X。也即是说,显示在预览框314中的图像所呈现的预览视角停止增大。
另外,若电子设备100还具有视角比广角摄像头193-2的视角大的摄像头(如,超广角摄像头),则在预览框314显示图4A中第m区域所示的图像之后,电子设备100还可以 根据识别到的张开手掌向前推的手势,继续增大显示在预览框314中的图像所呈现的预览视角。具体的,电子设备100可以将超广角摄像头采集的图像进行裁剪,并将裁剪后的图像显示在预览框314中。其中,电子设备100可以对超广角摄像头先后采集的图像进行多次裁剪,这多次裁剪的裁剪区域越来越大。
上述第1区域~第m区域所示的图像的大小均不相同,电子设备100将上述第一区域~第m区域所示的图像显示在预览框314中时,可以先根据预览框314的大小,对这些图像进行适配处理。例如,若图像的大小小于预览框314的大小,电子设备100可以将图像的长和宽拉大,使得图像的大小与预览框314的大小相同。本申请实施例对上述图像与预览框314进行适配处理的方式不作限定。
在本申请中,电子设备100对摄像头193(如,普通摄像头193-1,广角摄像头193-2)采集的图像进行裁剪时,均是通过居中裁剪的方式进行裁剪。也即是说,图4A中示例性示出的第1区域~第m区域所示的图像的中心位置重合。
阶段2:减小拍照预览时的视角
图4B示例性示出了电子设备100将显示在预览框314中的图像所呈现的预览视角逐渐减小的过程。
在一种可能的情况中,当识别到握拳向后拉的手势,电子设备100可以逐渐减小显示在预览框314中的图像所呈现的预览视角。具体的,电子设备100可以先使用广角摄像头193-2采集的图像,再使用普通摄像头193-1采集的图像。其中:
(1)使用广角摄像头193-2采集的图像
在使用广角摄像头193-2采集的图像时,电子设备100可以先将广角摄像头193-2采集的图像显示在预览框314中,然后,再对广角摄像头193-2采集的图像进行裁剪,并将裁剪后的图像显示在预览框314中。其中,电子设备100可对广角摄像头193-2先后采集的图像进行多次裁剪,直到裁剪区域的图像所呈现的预览视角略大于与普通摄像头193-1的视角。这多次裁剪的裁剪区域越来越小。上述多次裁剪的过程即为电子设备100进行多次数码变焦的过程。
如图4B所示,假设电子设备100在预览框314中显示的第1帧图像为第1区域所示的图像。其中,第1区域所示的图像可以为广角摄像头193-2采集的图像,其大小可以为a5*b5。也即是说,显示在预览框314中的图像所呈现的预览视角与广角摄像头193-2的视角一样大,且此时变焦倍率为Wide。
若识别到握拳向后拉的手势,电子设备100可以逐渐减小显示在预览框314中的图像所呈现的预览视角。其中,电子设备100将变焦倍率从Wide增大至0.9X的过程可以为图4A所示的电子设备100将变焦倍率从0.9X降低至Wide的逆过程,这里不再赘述。
电子设备100在预览框314中显示的第n+1帧图像为第n+1区域所示的图像,此时变焦倍率为0.9。第n+1区域所示的图像所呈现的预览视角略大于普通摄像头193-1的视角。若仍能识别到握拳向后拉的手势,电子设备100可以从使用广角摄像头193-2采集的图像调整为使用普通摄像头193-1采集的图像。
(2)使用普通摄像头193-1采集的图像
在使用普通摄像头193-1采集的图像时,电子设备100可以先将普通摄像头193-1采 集的图像显示在预览框314中,然后,再对普通摄像头193-1采集的图像进行裁剪,并将裁剪后的图像显示在预览框314中。其中,电子设备100可对普通摄像头193-1先后采集的图像进行多次裁剪,这多次裁剪的裁剪区域越来越小。上述多次裁剪的过程即为电子设备100进行多次数码变焦的过程。
如图4B所示,电子设备100在预览框314中显示的第n+2帧图像为第n+2区域所示的图像,此时变焦倍率为1X。上述第n+2区域所示的图像所呈现的预览视角可与普通摄像头193-1的视角一样大。
当电子设备100在预览框314中显示为第n+2区域所示的图像之后仍识别到握拳向后拉的手势,电子设备100可以裁剪普通摄像头193-1采集的图像,得到第n+3区域所示的图像。然后电子设备100在预览框314中显示的第n+3帧图像可以为第n+3区域所示的图像,此时变焦倍率为1.1X。其中,第n+2区域所示的图像的大小为a1*b1,第n+3区域所示的图像的大小为a6*b6。a6小于a1,且b6小于b1。也即是说,第n+3区域所示的图像所呈现的预览视角小于第n+2区域所示的图像所呈现的预览视角。
进一步的,若电子设备100仍识别到握拳向后拉的手势,电子设备100可以继续裁剪普通摄像头193-1采集的图像,并将裁剪后的图像显示在预览框314中。其中电子设备100可以对普通摄像头193-1先后采集的图像进行多次裁剪,这多次裁剪的裁剪区域越来越小。例如,电子设备100在预览框314中显示的第n+k帧图像为第n+k区域所示的图像,此时,变焦倍率可以为2X。第n+k区域所示的图像的大小为a7*b7。a7小于a6,且b7小于b6。
需要进行说明的,电子设备100在预览框314显示如图4B所示的第1帧图像~第n+k帧图像的过程中,若未能识别到握拳向后拉的手势,电子设备100可以停止减小显示在预览框314中的图像所呈现的预览视角。例如,若电子设备100在预览框314中显示第n帧图像和第n+1帧图像之间,未能识别到握拳向后拉的手势,则第n帧图像可以为第n区域所示的图像,且变焦倍率为0.8X。第n+1帧图像所呈现的预览视角与第n帧图像所呈现的预览视角的一样大,变焦倍率仍为0.8X。也即是说,显示在预览框314中的图像所呈现的预览视角停止减小。
由上述阶段1和阶段2可以看出,在增大或减小拍照预览使得视角的过程中,电子设备100可以通过调整用于拍摄的摄像头以及数码变焦的方式,来实现逐渐增大或减小显示在预览框中的图像所呈现的预览视角。
不限于上述多个摄像头切换和数字变焦相结合的实现方式,在一种可能的情况中,电子设备100只有一个前置摄像头。这一个前置摄像头可以是一个定焦摄像头,也可以是一个变焦摄像头。定焦摄像头是指焦距固定的摄像头。变焦摄像头是指可以进行光学变焦的摄像头,其焦距是可以改变的。针对这种情况,调整预览视角的具体实现可如下:
情况1.电子设备100具备一个前置定焦摄像头。
当识别到张开手掌向前推或者握拳向后拉的手势,电子设备100可以通过数码变焦的方式来调整增大或者减小显示在预览框314中的图像所呈现的预览视角。该前置定焦摄像头可以为普通摄像头、广角摄像头或者超广角摄像头等。
情况2.电子设备100具备一个前置变焦摄像头。
前置变焦摄像头中可包括多个镜片,电子设备100可以通过调节这多个镜片之间的距离来改变前置变焦摄像头的焦距,从而调整显示在预览框314中的图像所呈现的预览视角。
示例性的,当识别到握拳向后拉的手势,电子设备100可以调节这多个镜片之间的距离,来逐渐增大前置变焦摄像头的焦距。这样,前置变焦摄像头的视角就逐渐减小,显示在预览框314中的图像所呈现的预览视角也逐渐增小。当识别到张开手掌向前推的手势,电子设备可以调节这多个镜片之间的距离,来逐渐减小前置变焦摄像头的焦距。这样,前置变焦摄像头的视角就逐渐增大,显示在预览框314中的图像所呈现的预览视角也逐渐增大。
图5A~图5O示例性示出了前置录像场景下调整预览视角的大小的用户界面。
(1)图5A~图5D示例性示出了打开前置录像界面的过程。
如图5A所示,在开启相机应用程序后,电子设备100可以显示用户界面310,用户界面310可以是相机应用程序的默认拍照模式的用户界面。该用户界面的预览框中默认显示来自后置普通摄像头193-3进行拍照。
当检测到选择录像模式的用户操作,例如在录像模式选项315B上的点击操作,电子设备100可以显示图5B所示的录像预览界面320。录像预览界面320包含的控件基本与用于拍照的用户界面310包含的控件相同。另外,录像预览界面320中可包含开始录像控件321。
如图5B所示,当检测到在镜头翻转控件318上的点击操作时,电子设备100可以显示图5C所示的录像预览界面320。录像预览界面320中的预览框中显示来自前置普通摄像头193-1。此时,变焦倍率313为一倍倍率1X,显示在预览框314中的图像所呈现的预览视角和普通摄像头193-1的视角可以一样大。
当检测到作用于开始录像控件321的用户操作时,例如点击操作,电子设备100可以开始录制视频,并显示图5D所示的录像界面330。录像界面330中的控件与用于拍照的用户界面310中的控件基本相同。不同的是,录像界面330中没有相机模式选项315,录像界面330中可显示有快门控件322、结束录像控件323、暂停录像控件324以及录像时间控件325。其中:快门控件322可用于触发拍照,即用户可以在录像的过程中点击快门控件322来拍照。结束录像控件323可用于结束录制视频。暂停录像控件324可用于暂时停止录制视频。录像时间控件325可以指示当前录制视频的时间长度。如图5D所示,录像时间控件325中显示00:05,这表示当前已录制视频5秒。录像界面330中其他控件的作用可参考对图3A所示的用户界面310的介绍,这里不再赘述。
(2)图5D~图5F示例性示出了前置录像场景下放大预览视角的用户界面。
电子设备100可以通过前置摄像头采集的图像识别用户的手势,并响应特定手势(如张开手掌向前推的手势)来放大预览视角。
如图5D~图5F所示,在录制视频的过程中,若检测到张开手掌向前推的手势,电子设备100可以逐渐放大显示在预览框314中的图像所呈现的预览视角。同时,录像界面330中显示的变焦倍率313会逐渐降低。
如图5D所示,在录制视频的第5秒,变焦倍率313为一倍倍率1X。在录制视频的第5秒至第7秒内,电子设备100识别到张开手掌向前推的手势,显示在预览框314中的图像 所呈现的预览视角逐渐变大,变焦倍率313逐渐降低。例如,变焦倍率从1X降低至0.9X,从0.9X降低至0.8X等。
如图5E所示,相比于录制视频的第5秒,在录制视频的第7秒,电子设备100识别到张开手掌继续向前推的手势,显示在预览框314中的图像所呈现的预览视角进一步变大,变焦倍率313降低至0.7X。
如图5F所示,相比于录制视频的第7秒,在录制视频的第10秒,电子设备100识别到张开手掌进一步继续向前推的手势,显示在预览框314中的图像所呈现的预览视角再进一步变大,变焦倍率313降低至0.6X,例如Wide倍率。
在上述录制视频的开始到第10秒内,变焦倍率313可以从1X降低至0.9X,从0.9X增大至0.7X,……,逐渐降低至Wide倍率,并且显示在预览框314中的图像所呈现的预览视角逐渐变大。也即是说,在录制视频的过程中,用户可以通过张开手掌向前推的手势来放大预览视角。
(3)图5G~图5I示例性示出了前置录像场景下放大预览视角的用户界面。
电子设备100可以通过前置摄像头采集的图像识别用户的手势,并响应特定手势(如握拳向后拉的手势)来缩小预览视角。
如图5G~图5I所示,在录制视频的过程中,若检测到握拳向后拉的手势,电子设备100可以逐渐缩小显示在预览框314中的图像所呈现的预览视角。同时,录像界面330中显示的变焦倍率313会逐渐变大。
如图5G所示,相比于录制视频的第10秒,在录制视频的第15秒,电子设备100识别到握拳向后拉的手势,显示在预览框314中的图像所呈现的预览视角变小,变焦倍率313增加至0.8X。
如图5H所示,在录制视频的第20秒,电子设备100识别到握拳继续向后拉的手势,显示在预览框314中的图像所呈现的预览视角进一步变小,变焦倍率313增大至1X。
如图5I所示,在录制视频的第25秒,电子设备100识别到握拳进一步继续向后拉的手势,显示在预览框314中的图像所呈现的预览视角再进一步变小,变焦倍率313增大至2X。
在上述录制视频的第20秒至第25秒内,变焦倍率313可以从1X增大至1.1X,从1.1X增大至1.2X,……,逐渐增大至2X,并且显示在预览框314中的图像所呈现的预览视角逐渐变小。也即是说,在录制视频的过程中,用户可以通过握拳向后拉的手势来缩小预览视角。
在录制视频时,电子设备100可以根据识别到的手势中向前推或者向后拉的速度,来确定调整显示在预览框314中的图像所呈现的预览视角的速度。确定调整显示在预览框314中的图像所呈现拍摄视角的速度的方式可以参考对拍照时调整显示在预览框314中的图像所呈现的预览视角的说明,这里不再赘述。
前置录像场景下调整预览视角的具体实现,可以参考前置拍照场景下调整预览视角的具体实现,这里不再赘述。
(4)图5J~图5O示出了播放已录制的视频的一些用户界面。
电子设备100可以检测到的用于结束录制视频的用户操作,例如在结束录像控件323 的点击操作,并将录像过程中先后显示在预览框314中的一系列图像保存为视频。
在播放已录制的视频时,电子设备100可以显示如图5J~图5O所示的视频播放界面340。该视频播放界面340可包括图像显示区域331、时间控件332、暂停控件333、播放进度条334、视频已播放时间335以及视频总时长336。其中:
图像显示区域331可用于显示视频中包含的一帧帧图像。
时间控件332可以指示视频的录制时间。例如2020年2月9日。
暂停控件333可用于暂停播放视频。
播放进度条334可用于对比视频已播放时间和视频总时长,指示视频播放的进度。
视频已播放时间335可用于指示视频已播放的时间。
视频总时长336可用于指示视频的总时长。
在播放已录制的视频时,如图5J~图5L所示,在视频的第5秒至第10秒内,显示区域331中的图像所呈现的预览视角在逐渐变大,画面中包含越来越多的景物。
在播放已录制的视频时,如图5M~图5O所示,在视频的第10秒至第25秒内,显示区域331中的图像所呈现的预览视角在逐渐变小,画面中包含越来越少的景物。
可以看出,本申请实施例提供的方法,可支持用户在录像过程中调整预览视角,使拍摄到的视频画面呈现出更丰富的变化,提升拍摄体验。
图6A-图6I示例性示出了后置拍照场景下调整预览视角的大小的用户界面。
(1)后置拍照场景下开启“隔空拍照”功能。
电子设备100可以利用后置摄像头拍摄景物,但不通过后置摄像头不识别用户的手势。在利用后置摄像头进行拍摄时,显示在预览框314中的图像来自后置摄像头。电子设备100可以开启前置摄像头,利用前置摄像头采集的图像来识别用户的手势,并响应特定手势(如张开手掌向前推的手势)来放大预览视角。
在后置拍照场景下,电子设备100可以检测到开启“隔空拍照”功能的用户操作,开启前置摄像头并通过前置摄像头采集的图像识别前述特定手势。“隔空拍照”功能是指,电子设备可开启前置摄像头并通过该前置摄像头采集的图像识别前述特定手势,一旦识别到前述特定手势,就调整预览视角的大小。关于如何根据前述特定手势调整预览视角的大小,本申请实施例已作出详细解释,这里不再赘述。
例如,当检测到在图3A所示的用户界面310中的设置控件311上的点击操作时,电子设备100可以显示如图6A-图6B所示的用户界面350。用户界面350可以包括返回控件351、分辨率控件352、地理位置控件353、参考线控件354、拍摄静音控件355、定时拍照控件356、声控拍照控件357、触摸拍照控件358、笑脸抓拍控件359以及“隔空拍照”控件3510等。其中,“隔空拍照”控件3510可用于用户开启或者关闭“隔空拍照”功能。不限于图6A-图6B所示的用户界面,开启“隔空拍照”、“隔空录像”等功能的控件也可以是显示在用户界面310中的拍摄模式选项,例如“隔空拍照”选项、“隔空录像”选项。
在开启“隔空拍照”功能后,电子设备100可以显示如图6C所示的用户界面310。用户界面310中可包含提示341以及提示342。其中,提示341可用于提示用户哪种手势能够调整预览视角的大小,提示342可为前置摄像头采集的图像的缩略图。本申请实施例对 电子设备100提示341、提示342的显示时机以及提示341的UI表现均不作限定。
“隔空拍照”功能也可适用于前置拍照场景,即:在“隔空拍照”功能开启后,电子设备才会通过前置摄像头采集的图像识别前述特定手势,不然,即便用户在前置拍照预览时做出了前述特定手势,电子设备也不会对该手势作出响应,即不会调整预览视角的大小。
(2)图6C~图6E示例性示出了后置拍照场景下放大预览视角的用户界面。
在开启“隔空拍照”功能后,电子设备100可以通过前置摄像头采集的图像识别用户的手势,并响应特定手势(如张开手掌向前推的手势)来放大预览视角。
如图6C~图6E所示,在显示后置拍照预览界面时,若检测到张开手掌向前推的手势,电子设备100可以逐渐放大显示在预览框314中的图像所呈现的预览视角。预览框314中的图像来自后置摄像头。同时,后置拍照预览界面310中显示的变焦倍率313会逐渐降低。
如图6C所示,初始的变焦倍率313可以为一倍倍率1X,显示在预览框314中的图像来自普通后置摄像头。此后,电子设备100可以通过前置摄像头识别到张开手掌向前推的手势,显示在预览框314中的图像所呈现的预览视角可逐渐变大,变焦倍率313逐渐降低。例如,变焦倍率从1X降低至0.9X,从0.9X降低至0.8X等。
如图6D所示,相比于图6C所示场景,电子设备100可通过前置摄像头识别到张开手掌继续向前推的手势,显示在预览框314中的图像所呈现的预览视角进一步变大,变焦倍率313降低至0.7X。
如图6E所示,相比于图6D所示场景,电子设备100可通过前置摄像头识别到张开手掌进一步继续向前推的手势,显示在预览框314中的图像所呈现的预览视角再进一步变大,变焦倍率313降低至0.6X,例如Wide倍率。
在上述图6C所示的场景到图6E所示的场景这一过程中,变焦倍率313可以从1X降低至0.9X,从0.9X增大至0.7X,……,逐渐降低至Wide倍率,并且显示在预览框314中的图像所呈现的预览视角逐渐变大。也即是说,在前置拍照预览的过程中,用户可以通过张开手掌向前推的手势来放大预览视角。
(3)图6F~图6I示例性示出了后置拍照场景下缩小预览视角的用户界面。
在开启“隔空拍照”功能后,电子设备100可以通过前置摄像头采集的图像识别用户的手势,并响应特定手势(如握拳向后拉的手势)来缩小预览视角。
如图6F~图6I所示,在显示后置拍照预览界面时,若检测到握拳向后拉的手势,电子设备100可以逐渐缩小显示在预览框314中的图像所呈现的预览视角。预览框314中的图像来自后置摄像头。同时,后置拍照预览界面310中显示的变焦倍率313会逐渐增大。
如图6F所示,初始的变焦倍率313可以为wide倍率。此后,电子设备100可通过前置摄像头识别到握拳向后拉的手势,显示在预览框314中的图像所呈现的预览视角变小,变焦倍率313增加至0.8X。
如图6G所示,相比于图6F所示场景,电子设备100可通过前置摄像头识别到握拳继续向后拉的手势,显示在预览框314中的图像所呈现的预览视角进一步变小,变焦倍率313增大至1X。
如图6H所示,相比于图6G所示场景,电子设备100可通过前置摄像头识别到握拳进一步继续向后拉的手势,显示在预览框314中的图像所呈现的预览视角再进一步变小,变 焦倍率313增大至2X。
如图6I所示,相比于图6H所示场景,电子设备100可通过前置摄像头识别到握拳再进一步继续向后拉的手势,显示在预览框314中的图像所呈现的预览视角再进一步变小,变焦倍率313增大至3X。此时,显示在预览框314中的图像可来自后置长焦摄像头。
在上述图6F~图6I所示的场景中,变焦倍率313可以从1X增大至1.1X,从1.1X增大至1.2X,……,逐渐增大至2X,甚至进一步增大至3X,显示在预览框314中的图像所呈现的预览视角逐渐变小。也即是说,在前置拍照预览的过程中,用户可以通过握拳向后拉的手势来缩小预览视角,而且可以切换到后置长焦摄像头的视角,以获取更小的视角且清晰的图像。
综合上述(1)-(3)可以看出,用户可以通过隔空且单手的手势来调整显示在预览框中图像所呈现的预览视角的大小。尤其对于利用前置摄像头进行拍摄的场景,用户一般会伸直手臂或者使用自拍杆进行拍摄。而本方案的拍照方法可以让用户便捷地调整显示在预览框中图像所呈现的预览视角。这样,用户就无须反复将电子设备拿近后,通过手指触摸电子设备的屏幕来调整显示在预览框中图像所呈现的预览视角。并且,由于不需要用户用手指触摸电子设备屏幕,因此用户可以在调整显示在预览框的拍摄视角的同时,感受到在预览框中的拍摄视角的变化对拍摄画面的影响。
下面介绍电子设备100后置拍照时调整预览视角的具体实现方式。
在一些实施例中,电子设备100具有多个后置摄像头,例如三个前置摄像头。这三个前置摄像头中可包括一个普通摄像头193-3、一个广角摄像头193-4和一个长焦摄像头193-5。
阶段1:增大拍照预览时的视角
当识别到张开手掌向前推的手势,电子设备100可以逐渐增大显示在预览框314中的图像所呈现的预览视角。具体的,电子设备100可以先使用普通摄像头193-3采集的图像,再使用广角摄像头193-4采集的图像。上述实现过程可以参考前述对图4A以及前置拍照时增大拍照预览时的视角的实施例,这里不再赘述。
阶段2:减小拍照预览时的视角
(1)使用广角摄像头193-4采集的图像
(2)使用普通摄像头193-3采集的图像
当识别到握拳向后拉的手势,电子设备100可以逐渐减小显示在预览框314中的图像所呈现的预览视角。具体的,电子设备100可以先使用广角摄像头193-4采集的图像,再使用普通摄像头193-3采集的图像。上述先后使用广角摄像头193-4采集的图像和普通摄像头193-3采集的图像的具体实现方式,可以参考前述对图4B以及前置拍照时减小拍照预览时的视角的实施例,这里不再赘述。
与前置拍照时减小拍照预览时的视角的实施例不同的是,后置摄像头中还包含长焦摄像头193-5。也即是说,在后置拍照的应用场景中,电子设备100可以将显示在预览框314中的图像所呈现的预览视角缩小得更小且更远。
由于在使用普通摄像头193-3采集的图像时,电子设备100可对普通摄像头193-3先 后采集的图像进行多彩裁剪,这多次裁剪的裁剪区域越来越小。当对普通摄像头193-3采集的图像进行裁剪得到的裁剪区域的图像所呈现的预览视角略大于长焦摄像头193-5的视角,电子设备100可以从使用普通摄像头193-3采集的图像调整为使用长焦摄像头193-5采集的图像。
(3)使用长焦摄像头193-5采集的图像
在使用长焦摄像头193-5采集的图像时,电子设备100可以先将长焦摄像头193-5采集的图像显示在预览框314中,然后,再对长焦摄像头193-5采集的图像进行裁剪,并将裁剪后的图像显示在预览框314中。其中,电子设备100可对长焦摄像头193-5先后采集的图像进行多次裁剪,这多次裁剪的裁剪区域越来越小。
以图4B所示的减小拍照预览时的视角的实现方式为例,假如第n+k区域所示的图像所呈现的预览视角略大于长焦摄像头193-5的视角,当电子设备100在预览框314中显示的第n+k帧图像为第n+k区域所示的图像,当前变焦倍率为2X,且识别到握拳向后拉的手势,电子设备100在预览框314中显示的第n+k+1帧图像可以为长焦摄像头193-5采集的图像,变焦倍率可以增大至2.1X。
在使用长焦摄像头193-5采集的图像时,电子设备先将长焦摄像头193-5采集的图像显示在预览框314中,然后,再将长焦摄像头193-5采集的图像进行裁剪,并将裁剪后的图像显示在预览框314中。其中,电子设备100可对长焦摄像头193-5先后采集的图像进行多次裁剪,这多次裁剪的裁剪区域越来越小。上述多次裁剪的过程即为电子设备100进行多次数码变焦的过程。另外,在这一过程中,变焦倍率从2.1X逐渐增大,例如,变焦倍率可以从2.1X增大至2.2X,……,从2.9X增大至3X,……。
另外,后置录像场景下的调整预览视角的大小的用户界面可参考前置录像场景下的调整预览视角的大小的用户界面,这里不再赘述。
下面介绍本申请实施例提供的另一种拍照方法。
在前置拍照预览、前置录像预览或前置录像场景下,当通过加速度计检测到电子设备100远离用户移动的加速度超过预设的阈值时,电子设备100可以放大预览视角,使得更多的景物被纳入预览框中。关于放大预览视角的实现方式,可以参考前述实施例,这里不再赘述。
举例说明,电子设备100可以显示图7A所示的用户界面310。用户界面310中的预览框中显示的图像来自普通摄像头193-1,预览视角较小。预览框中显示的图像包含被拍摄对象的图像,例如被拍摄用户的人脸图像。如图7B所示,当用户开启前置摄像头自拍时,用户可以将手臂伸长,从而可以将用户自己与身边的景物纳入预览框314中。在用户将手臂伸长时,电子设备100中的加速度计可以检测到电子设备100移动的加速度,且根据被拍摄对象的图像(例如被拍摄用户的人脸图像)在时间t内是否缩小,来判断电子设备100是否远离用户移动,如果被拍摄对象的图像变小,则可确定电子设备100在远离用户移动。不限于此,电子设备100可以仅根据加速度计采集的运动数据确定电子设备100是否在远离用户,以及移动的加速度。
电子设备100也可以仅根据被拍摄对象的图像在时间t内变小还是变大来确定电子设备100是否在远离用户,以及根据被拍摄对象的图像在时间t内变小还是变大的程度来确定电子设备100移动的加速度。如果被拍摄对象的图像在时间t内缩小,则确定电子设备100在远离用户。如果被拍摄对象的图像在时间t内变大,则确定电子设备100在靠近用户。如果被拍摄对象是人,则:在人脸图像变小时,预览框中显示的人脸识别框343会相应变小;反之,人脸图像变大时,预览框中显示的人脸识别框343会相应变大。
这样,当判断出电子设备100远离用户移动,且移动的加速度超过预设的阈值时,电子设备100可以放大预览视角,例如将显示在预览框314中的图像所呈现的预览视角可以逐渐变大至广角摄像头193-2的视角。
也即是说,在自拍场景下,用户可以通过快速地伸长手臂来实现将显示在预览框314中的图像所呈现的预览视角放大至广角摄像头193-2的视角。
另外,在前置拍照预览、前置录像预览或前置录像场景下,当通过加速度计检测到电子设备100靠近用户移动的加速度超过预设的阈值时,电子设备100可以缩小预览视角。关于缩小预览视角的实现方式,可以参考前述实施例,这里不再赘述。
举例说明,电子设备100可以显示图7C所示的用户界面310。用户界面310中的预览框中显示的图像来自广角摄像头193-2,预览视角较大。在用户将手臂拉回身边时,电子设备100中的加速度计可以检测到电子设备100移动的加速度,且根据被拍摄对象的图像在时间t内是否缩小,来判断电子设备100是否远离用户移动,如果被拍摄对象的图像变大,则可确定电子设备100在靠近用户移动。
电子设备100也可以仅根据被拍摄对象的图像在时间t内缩小还是放大来确定电子设备100是否在靠近用户,以及根据被拍摄对象的图像在时间t内缩小或放大的程度来确定电子设备100移动的加速度。如果被拍摄对象的图像在时间t内变大,则确定电子设备100在靠近用户。如果被拍摄对象的图像在时间t内缩小,则确定电子设备100在远离用户。
这样,当判断出电子设备100靠近用户移动,且移动的加速度超过预设的阈值时,电子设备100可以缩小预览视角,例如将显示在预览框314中的图像所呈现的预览视角可以逐渐缩小至普通摄像头193-1的视角。
不限于前置拍照预览、前置录像预览或前置录像场景,上面内容中提及的触发放大或缩小预览视角的条件(即靠近或远离用户的运动)也可以适用于后置拍照预览、后置录像预览或后置录像场景中。
本申请实施例对触发放大或缩小预览视角的移动电子设备100的方式不作限定,例如用户可以通过摇动电子设备的特定摇动手势来触发放大或缩小预览视角。
下面介绍本申请实施例提供的另一种拍照方法。
在拍照预览、录像预览或录像场景下,电子设备100可以识别如图8A所示的显示在预览框314中的图像所包括的人脸个数N1,识别该图像所包括的人体个数N2。电子设备100可以比较N1与N2的大小。其中,N1大于N2可以表示当前显示在预览框314中的图像所呈现的预览视角较小,无法将被拍摄对象的人脸与人体都纳入预览框314。此时,电子设备100可以放大预览视角,使得被拍摄对象的人脸与人体都被纳入预览框314,即被拍摄 对象都能被更好的拍摄到。这里,人体可以是人体的全部,例如包括上半身和下半身,也可以是人体的不等,例如上半身。
电子设备100可通过机器学习的方式来识别出预览框314中的图像所包含人脸、人体。本申请实施例对识别人脸和识别人体的方式的不作限定。
电子设备100可以将识别到的预览图像中的人脸的大小与预设阈值(例如像素面积30×40)进行比较,只将大于预设阈值的人脸计入人脸个数N1。这样,电子设备100可以减少由于识别到路人而放大拍摄视角的几率。
在拍照场景下,电子设备100可以显示如图8A所示的用户界面310,将普通视角摄像头193-1采集的图像显示预览框314中。用户界面310中可包含变焦倍率313、预览框314以及多个人脸图像。变焦倍率313、预览框314以及人脸图像的介绍可以参考前述实施例对这些控件的介绍,这里不再赘述。用户界面310还可以包含更多或者更少的控件。
在图8A所示的预览框中显示的图像中,电子设备100可以确定该图像中的人脸个数N1为3,人体个数N2为2。这3个人脸的大小大于预设的阈值。由于N1大于N2时,电子设备100可以基于当前显示在预览框314中的图像所呈现的预览视角(如普通摄像头193-1的视角),逐渐放大显示在预览框314中的图像所呈现的预览视角,直到电子设备100识别到经过放大之后的显示在预览框314中的图像中的人脸个数N1等于人体个数N2,或者显示在预览框314中的图像所呈现的预览视角已放大至最大(如广角摄像头193-2的视角)。
关于放大预览视角的实现方式,可以参考前述实施例,这里不再赘述。
如图8B所示,当显示在预览框314中的图像所呈现的预览视角经过放大,电子设备100可以将显示在预览框314中的图像所呈现的预览视角放大至广角摄像头193-2的视角。此时,电子设备100可以识别到人脸个数N1为3,人体个数N2为3。如图8B所示的用户界面310可以包含多个人脸图像以及当前视角提示344。该当前视角提示344可用于提示用户当前广角摄像头193-2的视角已变换至广角视角。当前视角提示344中可包含取消控件344A。响应于作用在取消控件344A的用户操作,例如点击操作,电子设备100可以将显示在预览框314中的图像所呈现的预览视角调整为图8A所示的普通摄像头193-1的视角。这样,对于预览框314中人脸个数大于人体个数,但用户不希望将显示在预览框314中的图像所呈现的预览视角变换为广角摄像头193-2的视角的应用场景,电子设备可响应于作用在取消控件344A上的用户操作,取消对显示在预览框314中的图像所呈现的预览视角的调整。
由上述实施例可以看出,在多个被拍摄对象一起拍照(如自拍)的应用场景中,当检测到当前显示在预览框314中的图像所呈现的预览视角较小,无法将这多个被拍摄对象都纳入预览框时,电子设备可以放大预览视角,为用户拍摄放大或缩小预览视角提供了便利性,拍摄更高效。
不限于人像拍摄,针对拍摄对象为建筑物等其他类型的景物拍摄,当检测到预览框中显示的图像没有完整包括某个拍摄对象时,例如该图像中只包含了自由女神像的火炬部分,电子设备可以放大预览视角,使得预览框中的图像中有整个自由女神像的图像。
基于前述内容介绍的电子设备100以及前述UI实施例,下面实施例介绍本申请提供的 拍照方法。如图9所示,该方法可包括:
阶段1(S101-S105):打开拍照预览界面
S101,电子设备100启动相机应用程序。
示例性地,电子设备100可以检测到作用于如图2C所示的相机图标215D的触控操作(如在图标215D上的点击操作),并响应于该操作启动相机应用程序。
S102,电子设备100启动第一摄像头和第二摄像头。
具体的,第一摄像头可以是前置摄像头,可用来采集用户的图像。第二摄像头可以是前置摄像头,也可以是后置摄像头。第二摄像头可用来采集景物的图像。具体的,第二摄像头可以是前置摄像头,也可以是后置摄像头。例如,在前置拍照场景中,第二摄像头是前置摄像头;在后置拍照场景中,第二摄像头是后置摄像头。第二摄像头可以是一个摄像头,例如一个普通摄像头。第二摄像头也可以是光学视角不同的多个摄像头,例如超长焦摄像头、长焦摄像头、普通摄像头、广角摄像头和超广角摄像头这五个摄像头。
在一种可能的情况中,在前置拍照场景中,第二摄像头和第一摄像头可以是同一个摄像头,例如前置广角摄像头或前置普通摄像头。
S103、电子设备100显示预览界面,预览界面中显示有来自第二摄像头的第一图像。第一图像是从第二摄像头采集的图像中裁剪得到的。
如图3A所示,预览界面包括变焦倍率313、预览框314、相机模式选项315、快门控件317以及摄像头翻转控件318等多个控件。这些控件的功能可以参考前述UI实施例中的说明,这里不再赘述。
以图3A所示的预览界面为例,预览框314中显示的第一图像可以为电子设备从第二摄像头采集的图像中裁剪得到的。具体的,预览框314中显示的预览图像的中心位置可以和第二摄像头采集的图像的中心位置重合。此时,预览框314中显示的第一图像是通过居中裁剪方式得到的。当裁剪区域的图像所呈现的视角和第二摄像头采集的图像所呈现的视角一样大,预览框314中显示的预览图像可以为第二摄像头采集的图像。
需要进行说明的是,在本方法中所提及的在预览界面中显示的来自摄像头的预览图像,均为从该摄像头采集的图像中裁剪得到的。
阶段2(S104-S105):增大拍照预览时的视角
S104、电子设备100通过第一摄像头检测到用户示意第一手势。
根据第一摄像头采集到的用户的图像,电子设备100可以检测到用户示意第一手势。具体的,电子设备100可以通过第一摄像头采集用户的手部的图像和深度信息。当上述手部的图像中包含手掌张开的图像,且上述深度信息指示出上述手部在靠近第一摄像头,那么电子设备100可以确定用户示意第一手势。也即是说,上述第一手势为前述实施例中提及的张开手掌向前推的手势。
S105、电子设备100可以在预览界面中显示来自第二摄像头的第二图像,第二图像的视角大于第一图像的视角。
具体的,在预览界面中显示的第二图像的视角可逐渐变大。其具体实现可以包括:该电子设备在预览界面中先后显示来自第二摄像头的M幅第二图像,这M幅第二图像的视角逐渐变大。M是大于等于2的正整数。
第二摄像头可以包括视角大小不同的H个摄像头,这H个摄像头为前置摄像头或后置摄像头。在预览界面中显示的第二图像可先后来自视角从小到大的这H个摄像头。其中,H是大于等于2正整数。
例如,H为2,即第二摄像头包括视角大小不同的两个摄像头。这两个摄像头可以分别为第三摄像头和第四摄像头。其中第四摄像头的视角大于第三摄像头的视角。第一图像可来自所述第三摄像头,所述第二图像可来自所述第四摄像头。第三摄像头和第四摄像头可以均为前置摄像头或者均为后置摄像头。
在用户做第一手势的过程中,电子设备100可以在预览界面先后显示来自普通摄像头的多幅预览图像,然后继续在预览界面先后显示来自广角摄像头的多幅预览图像。上述来自普通摄像头的多幅预览图像各自呈现的预览视角可以逐渐变大。上述来自广角摄像头的多幅预览图像各自呈现的预览视角可以逐渐变大。其中,上述来自普通摄像头的多幅预览图像和上述来自广角摄像头的多幅预览图像可以构成上述第二摄像头的M幅预览图像。上述来自普通摄像头的多幅预览图像中最后显示的那一幅图像所呈现的预览视角,小于上述来自广角摄像头的多幅预览图像中最先显示的那一幅图像所呈现的预览视角。上述来自普通摄像头的多幅预览图像中最先显示的那一幅图像与上述第二摄像头的M幅预览图像中的最先显示的那一幅图像可以相同。上述来自广角摄像头的多幅预览图像中最后显示的那一幅图像与上述第二摄像头的M幅预览图像中的最后显示的那一幅图像相同。
如图3B~图3D所示,在用户做第一手势的过程中,电子设备100可以增大拍照预览时的视角。具体实现方式可以参考前述图3B~图3D的UI实施例,这里不再赘述。
阶段3(S106-S107):缩小拍照预览时的视角
S106、电子设备100通过第一摄像头检测到用户示意第二手势。
根据第一摄像头采集到的用户的图像,电子设备100可以检测到用户示意第二手势。具体的,电子设备100可以通过第一摄像头采集用户的手部的图像和深度信息。当上述手部的图像中包含手部握拳的图像,且上述深度信息指示出上述手部在远离第一摄像头,那么电子设备100可以确定用户示意第二手势。也即是说,上述第一手势为用户的手部握拳且该用户的手部远离第一摄像头。
S107、电子设备100在用户做第二手势的过程中,在预览界面中显示来自第二摄像头的第四图像,第四图像的视角小于第二图像的视角。
具体的,在预览界面中显示的第二图像的视角可逐渐变小。其具体实现可以包括:该电子设备在预览界面中先后显示来自第二摄像头的N幅第四图像,这N幅第四图像的视角逐渐变小。N是大于等于2的正整数。
第二摄像头可以包括视角大小不同的H个摄像头,这H个摄像头为前置摄像头或后置摄像头。在预览界面中显示的第四图像可先后来自视角从大到小的这H个摄像头。其中,H是大于等于2正整数。
例如,H为2,即第二摄像头包括视角大小不同的两个摄像头。这两个摄像头可以分别为第三摄像头和第四摄像头。其中第四摄像头的视角大于第三摄像头的视角。所述第四图像可来自所述第三摄像头,所述第二图像可来自所述第四摄像头。
在用户做第二手势的过程中,电子设备100可以在预览界面先后显示来自广角摄像头 的多幅预览图像,然后继续在预览界面先后显示来自普通摄像头的多幅预览图像。上述来自普通摄像头的多幅预览图像各自呈现的预览视角可以逐渐变小。其中,上述来自广角摄像头的多幅预览图像各自呈现的预览视角可以逐渐变小。上述来自广角摄像头的多幅预览图像和上述来自普通摄像头的多幅预览图像可以构成上述第二摄像头的N幅预览图像。上述来自广角摄像头的多幅预览图像中最后显示的那一幅图像所呈现的预览视角,大于上述来自普通摄像头的多幅预览图像中最先显示的那一幅图像所呈现的预览视角。上述来自广角摄像头的多幅预览图像中最先显示的那一幅图像与上述第二摄像头的N幅预览图像中的最先显示的那一幅图像相同。上述来自普通摄像头的多幅预览图像中最后显示的那一幅图像与上述第二摄像头的N幅预览图像中的最后显示的那一幅图像相同。
如图3E~图3G,在用户做第二手势的过程中,电子设备100可以缩小拍照预览时的视角。具体实现方式可以参考前述图3E~图3G的UI实施例,这里不再赘述。
阶段4(S108-S109):触发拍照,保存图片
S108、电子设备100检测到指示触发拍照的用户操作。
上述指示触发拍照的用户操作可以为,作用在如图3A所示的快门控件317上的点击操作。或者,当开启笑脸抓拍模式,上述指示触发拍照的用户操作可以为电子设备100在显示在预览界面的预览图像中识别到的笑脸。也即使说,用户可以通过微笑来触发拍照。
本申请实施例对电子设备100检测到指示触发拍照的用户操作的时间不做限定。例如,电子设备100可以在上述阶段2之后,即增大拍照预览时的视角之后,检测到指示触发拍照的用户操作。电子设备100可以在上述阶段3之后,即缩小拍照预览时的视角之后,检测到指示触发拍照的用户操作。电子设备100可以在先经过上述阶段2,再经过上述阶段3之后,即先增大拍照预览时的视角,再缩小拍照预览时的视角之后,检测到指示触发拍照的用户操作。电子设备100还可以在先经过上述阶段3,再经过上述阶段2之后,即先缩小拍照预览时的视角,再增大拍照预览时的视角之后,检测到指示触发拍照的用户操作。
S109、电子设备100将显示在预览界面的来自第二摄像头的第三图像保存为图片。
在一种可能的情况下,电子设备100仅执行上述阶段2,在执行上述阶段2之后检测到指示触发拍照的用户操作,此时,第三图像的视角可以和第二图像的视角一样大。
在一种可能的情况下,电子设备100在先后执行上述阶段2、阶段3之后检测到指示触发拍照的用户操作,此时,第三图像的视角可以和第四图像的视角一样大。
在一种可能的情况下,电子设备100仅执行上述阶段3,在执行上述阶段3之后检测到指示触发拍照的用户操作,此时,第三图像的视角可以小于第一图像的视角。
在一种可能的情况下,电子设备100在先后执行上述阶段3、阶段2之后检测到指示触发拍照的用户操作,此时,第三图像的视角可以和第一图像的视角一样大。
可以看出,本申请实施例提供的拍照方法可使得用户可以通过隔空且单手的手势来调整显示在预览框中图像所呈现的预览视角的大小。尤其对于利用前置摄像头进行拍摄的场景,用户一般会伸直手臂或者使用自拍杆进行拍摄。而本方案的拍照方法可以让用户便捷地调整显示在预览框中图像所呈现的预览视角。这样,用户就无须反复将电子设备拿近后,通过手指触摸电子设备的屏幕来调整显示在预览框中图像所呈现的预览视角。
并且,当用户将电子设备拿近来调整显示在预览框中图像所呈现的预览视角时,显示 在预览框中的景物一般不是用户想进行拍摄的。但本方案的拍摄方法可以让用户在调整显示在预览框中图像所呈现的预览视角的同时,感受到显示在预览框中的景物的变化。此时,显示在预览框中的景物的变化一般是用户想进行拍摄的。这样,用户可以在调整显示在预览框中图像所呈现的预览视角的同时,快速地获得想要的取景。
上述步骤S101-S107中用于增大或缩小拍照预览时的视角的方法,同样适用于增大或缩小录像预览时的视角,以及增大或缩小录像过程中的视角。当增大或缩小录像过程中的视角之后,若检测到指示触发停止录像的用户操作,电子设备100可以将在录像过程中显示在预览界面的预览图像保存为视频。
如图5D~图5I所示,电子设备100在录像过程中,可检测到第一手势和第二手势,从而增大、缩小录像过程中的视角。具体实现方式可以参考前述图5D~图5I的UI实施例。
如图5J~图5O所示,电子设备100可以播放结束录像之后被保存的视频。从图5J~图5O所示的视频播放界面可以看出,预览图像所呈现的预览视角在用户做第一手势的过程中逐渐增大,在用户做第二手势的过程中逐渐缩小。具体实现方式可以参考前述图5J~图5O的UI实施例。
进一步的,本申请实施例提供的拍照方法还可以实现一步切换到更大视角(如广角摄像头的视角)的功能。
具体的,如果用户在做上述第一手势时用户的手部靠近第一摄像头的速度超过第一速度,则所述第二图像的视角可以和第一视角一样大,其中,所述第一视角和广角摄像头的视角一样大,或者所述第一视角和超广角摄像头的视角一样大,或者第一视角和广角摄像头的视角之间的差值小于第一值,或者所述第一视角和超广角摄像头的视角之间的差值小于第二值。
其中,第一视角和广角摄像头的视角之间的差值小于第一值是指第一视角非常接近广角摄像头的视角,第一视角和超广角摄像头的视角之间的差值小于第二值是指第一视角非常接近超广角摄像头的视角。
例如,上述第一视角可以为广角摄像头的视角。电子设备可以通过第一摄像头采集用户的手部的深度信息。该深度信息可以指示用户的手部在靠近第一摄像头。根据时间t内,用户的手部靠近第一摄像头的距离,电子设备可以计算用户示意第一手势时,其手部靠近第一摄像头的速度。当检测到用户的手部在做第一手势时,其手部靠近第一摄像头的速度超过第一速度,电子设备可以在预览界面中一步切换到广角摄像头的视角(即第一视角)。
也即是说,用户可以用户可以张开手掌快速向前推,当向前推的速度超过上述第一速度,可以实现一步切换到更大的视角,例如广角摄像头的视角,实现视角快速切换。
进一步的,本申请实施例提供的拍照方法还可以一步切换到更小视角(如普通摄像头的视角)的功能。
具体的,如果用户在做上述第二手势时用户的手部远离第一摄像头的速度超过第二速度,则所述第四图像的视角可以和所述第一图像的视角一样大。
例如,电子设备100可以通过第一摄像头采集用户的手部的深度信息。该深度信息可以指示用户的手部在远离第一摄像头。根据时间t内,用户的手部远离第一摄像头的距离,电子设备100可以计算用户示意第二手势时,其手部远离第一摄像头的速度。当检测到用 户的手部在做第二手势时,其手部远离第一摄像头的速度超过第二速度,电子设备100可以在预览界面中一步切换为普通摄像头的视角。
也即是说,用户可以握拳快速向前拉,当向后拉的速度超过上述第二速度,可以实现一步切换到更小的视角,例如普通摄像头的视角,实现视角快速切换。
图9方法实施例中未提及的内容可参考前述UI实施例,这里不再赘述。
上述实施例中所用,根据上下文,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。

Claims (32)

  1. 一种拍照方法,应用于包括屏幕、第一摄像头和第二摄像头的电子设备,所述第一摄像头和所述屏幕设置于所述电子设备的同一面,其特征在于,包括:
    所述电子设备开启所述第一摄像头和所述第二摄像头;
    所述电子设备在所述屏幕中显示预览界面,所述预览界面中显示有来自所述第二摄像头的第一图像;
    所述电子设备通过所述第一摄像头检测到所述用户示意第一手势;
    所述电子设备在所述预览界面中显示来自所述第二摄像头的第二图像,所述第二图像的视角大于所述第一图像的视角;
    所述电子设备检测到第一用户输入;
    所述电子设备将所述预览界面中显示的来自所述第二摄像头的第三图像保存为图片或视频。
  2. 根据权利要求1所述的方法,其特征在于,在所述预览界面中显示的来自所述第二摄像头的所述第二图像的视角逐渐变大。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第二摄像头包括第三摄像头和第四摄像头,所述第四摄像头的视角大于所述第三摄像头的视角;所述第一图像来自所述第三摄像头,所述第二图像来自所述第四摄像头。
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述第二摄像头包括视角大小不同的H个摄像头,所述H个摄像头为前置摄像头或后置摄像头,在所述预览界面中显示的所述第二图像先后来自视角从小到大的所述H个摄像头;H是正整数,H大于等于2。
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述第三图像的视角和所述第二图像的视角一样大。
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,还包括:所述电子设备通过所述第一摄像头检测到所述用户示意第二手势;所述电子设备在所述预览界面中显示来自所述第二摄像头的第四图像,所述第四图像的视角小于所述第二图像的视角。
  7. 根据权利要求6所述的方法,其特征在于,在所述预览界面中显示的来自所述第二摄像头的所述第四图像的视角逐渐变小。
  8. 根据权利要求6或7所述的方法,其特征在于,所述第二摄像头包括第三摄像头和第四摄像头,所述第四摄像头的视角大于所述第三摄像头的视角;所述第四图像来自所述第三摄像头,所述第二图像来自所述第四摄像头。
  9. 根据权利要求6-8中任一项所述的方法,其特征在于,所述第二摄像头包括视角大小不同的H个摄像头,所述H个摄像头为前置摄像头或后置摄像头,在所述预览界面中显示的所述第四图像先后来自视角从大到小的所述H个摄像头;H是正整数,H大于等于2。
  10. 根据权利要求6-9中任一项所述的方法,其特征在于,所述第三图像的视角和所述第四图像的视角一样大。
  11. 根据权利要求1-10中任一项所述的方法,其特征在于,所述通过所述第一摄像头检测到所述用户示意第一手势,具体包括:
    通过所述第一摄像头采集所述用户的手部的图像和深度信息;
    当所述图像中包含手掌张开的图像,且根据所述深度信息指示出所述手部在靠近所述第一摄像头,则检测到所述用户示意第一手势;
    所述第一手势包括:所述用户张开手掌并且所述用户的手部靠近所述第一摄像头。
  12. 根据权利要求6-10中任一项所述的方法,其特征在于,所述通过所述第一摄像头检测到所述用户示意第二手势,具体包括:
    通过所述第一摄像头采集所述用户的手部的图像和深度信息;
    当所述图像中包含手部握拳的图像,且根据所述深度信息指示出所述手部在远离所述第一摄像头,则检测到所述用户示意第二手势;
    所述第二手势包括:所述用户的手部握拳并且所述用户的手部远离所述第一摄像头。
  13. 根据权利要求1所述的方法,其特征在于,如果所述用户在做所述第一手势时所述用户的手部靠近所述第一摄像头的速度超过第一速度,则所述第二图像的视角和第一视角一样大,其中,所述第一视角和广角摄像头的视角一样大,或者所述第一视角和超广角摄像头的视角一样大,或者所述第一视角和广角摄像头的视角之间的差值小于第一值,或者所述第一视角和超广角摄像头的视角之间的差值小于第二值。
  14. 根据权利要求6所述的方法,其特征在于,如果所述用户在做所述第二手势时所述用户的手部远离所述第一摄像头的速度超过第二速度,则所述第四图像的视角和所述第一图像的视角一样大。
  15. 根据权利要求3或8所述的方法,其特征在于,所述第四摄像头为前置广角摄像头,或后置广角摄像头。
  16. 根据权利要求1-15中任一项所述的方法,其特征在于,所述第一摄像头包括前置摄像头。
  17. 根据权利要求16所述的方法,其特征在于,所述第二摄像头和所述第一摄像头为同一个摄像头。
  18. 一种拍照方法,应用于包括屏幕、摄像头的电子设备,其特征在于,包括:
    所述电子设备开启所述摄像头;
    所述电子设备在所述屏幕中显示预览界面,所述预览界面中显示有来自所述摄像头的第一图像;
    所述电子设备检测到所述电子设备在做第一移动,所述第一移动为所述电子设备在做远离被拍摄对象的移动且在所述电子设备的移动速度超过第一速度;
    所述电子设备在所述预览界面中显示来自所述摄像头的第二图像,所述第二图像的视角大于所述第一图像的视角;
    所述电子设备检测到第二用户输入;
    所述电子设备将所述预览界面中显示的来自所述摄像头的第三图像保存为图片或视频。
  19. 根据权利要求18所述的方法,其特征在于,在所述预览界面中显示的来自所述摄像头的所述第二图像的视角逐渐变大。
  20. 根据权利要求18或19所述的方法,其特征在于,所述电子设备检测到所述电子设备在做第一移动,具体包括:所述电子设备检测到所述被拍摄对象图像变小时,确定所述电子设备在做远离所述被拍摄对象的移动;如果单位时间内所述被拍摄对象图像变小的程度超过第一值时,则确定所述电子设备的移动速度超过第一速度。
  21. 根据权利要求18-20中任一项所述的方法,其特征在于,所述电子设备检测到所述电子设备在做第一移动,具体包括:所述电子设备通过运动传感器检测到所述电子设备在做远离所述被拍摄对象的移动且所述电子设备的移动速度超过第一速度。
  22. 根据权利要求18-21中任一项所述的方法,其特征在于,所述第三图像的视角和所述第二图像的视角一样大。
  23. 根据权利要求18-22中任一项所述的方法,其特征在于,还包括:
    所述电子设备检测到所述电子设备在做第二移动,所述第二移动为所述电子设备在做靠近被拍摄对象的移动且在所述电子设备的移动速度超过第二速度;
    所述电子设备在所述预览界面中显示来自所述摄像头的第四图像,所述第四图像的视角小于所述第二图像的视角。
  24. 根据权利要求23所述的方法,其特征在于,在所述预览界面中显示的来自所述摄像头的所述第四图像的视角逐渐变小。
  25. 根据权利要求22-24中任一项所述的方法,其特征在于,所述第三图像的视角和所述第四图像的视角一样大。
  26. 根据权利要求22-25中任一项所述的方法,其特征在于,所述电子设备检测到所述电子设备在做第二移动,具体包括:所述电子设备检测到所述被拍摄对象图像变大时,确定所述电子设备在做靠近所述被拍摄对象的移动;如果单位时间内所述被拍摄对象图像变大的程度超过第一值时,则确定所述电子设备的移动速度超过第二速度。
  27. 根据权利要求22-26中任一项所述的方法,其特征在于,所述电子设备检测到所述电子设备在做第一移动,具体包括:所述电子设备通过运动传感器检测到所述电子设备在做靠近所述被拍摄对象的移动且所述电子设备的移动速度超过第二速度。
  28. 一种拍照方法,应用于包括屏幕、摄像头的电子设备,其特征在于,包括:
    所述电子设备开启所述摄像头;
    所述电子设备在所述屏幕中显示预览界面,所述预览界面中显示有来自所述摄像头的第一图像;
    所述电子设备检测到所述第一图像中包含的人脸个数N1大于所述第一图像中包含的人体个数N2;N1、N2是正整数;
    所述电子设备在所述预览界面中显示来自所述摄像头的第二图像,所述第二图像的视角大于所述第一图像的视角;
    所述电子设备检测到第二用户输入;
    所述电子设备将所述预览界面中显示的来自所述摄像头的第三图像保存为图片或视频。
  29. 根据权利要求28所述的方法,其特征在于,在所述预览界面中显示来自所述摄像头的第二图像的视角逐渐变大。
  30. 一种电子设备,其特征在于,包括屏幕、第一摄像头、第二摄像头、存储器以及耦合于所述存储器的处理器,多个应用程序,以及一个或多个程序;其中,所述第一摄像头和所述屏幕设置于所述电子设备的同一面,所述处理器在执行所述一个或多个程序时,使得所述电子设备实现如权利要求1至29任一项所述的方法。
  31. 一种计算机设备,包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时使得所述计算机设备实现如权利要求1至29任一项所述的方法。
  32. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1至29任一项所述的方法。
PCT/CN2021/091754 2020-04-30 2021-04-30 拍照方法、图形用户界面及电子设备 WO2021219141A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP21797640.6A EP4135309A4 (en) 2020-04-30 2021-04-30 PHOTOGRAPHY METHOD, GRAPHIC USER INTERFACE AND ELECTRONIC DEVICE
BR112022021773A BR112022021773A2 (pt) 2020-04-30 2021-04-30 Método de fotografar, interface gráfica de usuário, e dispositivo eletrônico
US17/922,252 US12022183B2 (en) 2020-04-30 2021-04-30 Photographing method, graphical user interface, and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010371511.XA CN113596316B (zh) 2020-04-30 2020-04-30 拍照方法及电子设备
CN202010371511.X 2020-04-30

Publications (1)

Publication Number Publication Date
WO2021219141A1 true WO2021219141A1 (zh) 2021-11-04

Family

ID=78237910

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/091754 WO2021219141A1 (zh) 2020-04-30 2021-04-30 拍照方法、图形用户界面及电子设备

Country Status (5)

Country Link
US (1) US12022183B2 (zh)
EP (1) EP4135309A4 (zh)
CN (1) CN113596316B (zh)
BR (1) BR112022021773A2 (zh)
WO (1) WO2021219141A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150551A (zh) * 2022-06-20 2022-10-04 湖北星纪时代科技有限公司 用于终端的拍照处理方法、装置、电子设备和存储介质
EP4210312A4 (en) * 2021-11-25 2024-03-06 Honor Device Co., Ltd. PHOTOGRAPHY METHOD AND ELECTRONIC DEVICE

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115643485B (zh) * 2021-11-25 2023-10-24 荣耀终端有限公司 拍摄的方法和电子设备
CN114257737B (zh) * 2021-11-29 2023-05-02 荣耀终端有限公司 一种摄像模式切换方法以及相关设备
US11792506B2 (en) * 2022-02-09 2023-10-17 Motorola Mobility Llc Electronic devices and corresponding methods for defining an image orientation of captured images

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377934A (zh) * 2010-08-23 2012-03-14 中国电信股份有限公司 一种移动终端的自动变焦方法、装置和移动终端
CN106791446A (zh) * 2014-05-30 2017-05-31 张琴 移动终端照相机及智能手机、平板电脑或上网本
CN107911616A (zh) * 2017-12-26 2018-04-13 Tcl移动通信科技(宁波)有限公司 一种摄像头自动调焦方法、存储设备及移动终端
CN108540711A (zh) * 2017-03-03 2018-09-14 上海传英信息技术有限公司 移动终端及其拍摄方法

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9171198B1 (en) * 2012-04-02 2015-10-27 Google Inc. Image capture technique
US20140313294A1 (en) * 2013-04-22 2014-10-23 Samsung Display Co., Ltd. Display panel and method of detecting 3d geometry of object
CN104243791B (zh) * 2013-06-19 2018-03-23 联想(北京)有限公司 一种信息处理方法及电子设备
WO2015001606A1 (ja) * 2013-07-01 2015-01-08 パイオニア株式会社 撮像システム
KR102294599B1 (ko) * 2014-09-02 2021-08-27 엘지전자 주식회사 디스플레이 디바이스 및 그 제어 방법
KR20170006559A (ko) * 2015-07-08 2017-01-18 엘지전자 주식회사 이동단말기 및 그 제어방법
US10261584B2 (en) * 2015-08-24 2019-04-16 Rambus Inc. Touchless user interface for handheld and wearable computers
US10599920B2 (en) * 2017-02-01 2020-03-24 Epilog Imaging Systems Automated digital magnifier system with hand gesture controls
GB201709199D0 (en) * 2017-06-09 2017-07-26 Delamont Dean Lindsay IR mixed reality and augmented reality gaming system
CN107995416B (zh) * 2017-11-14 2019-10-18 维沃移动通信有限公司 一种焦距调节方法及移动终端
EP3800876B1 (en) * 2018-07-27 2023-09-06 Huawei Technologies Co., Ltd. Method for terminal to switch cameras, and terminal
US11128792B2 (en) * 2018-09-28 2021-09-21 Apple Inc. Capturing and displaying images with multiple focal planes
CN110248081A (zh) * 2018-10-12 2019-09-17 华为技术有限公司 图像捕捉方法及电子设备
US11212449B1 (en) * 2020-09-25 2021-12-28 Apple Inc. User interfaces for media capture and management

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377934A (zh) * 2010-08-23 2012-03-14 中国电信股份有限公司 一种移动终端的自动变焦方法、装置和移动终端
CN106791446A (zh) * 2014-05-30 2017-05-31 张琴 移动终端照相机及智能手机、平板电脑或上网本
CN108540711A (zh) * 2017-03-03 2018-09-14 上海传英信息技术有限公司 移动终端及其拍摄方法
CN107911616A (zh) * 2017-12-26 2018-04-13 Tcl移动通信科技(宁波)有限公司 一种摄像头自动调焦方法、存储设备及移动终端

Non-Patent Citations (1)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4210312A4 (en) * 2021-11-25 2024-03-06 Honor Device Co., Ltd. PHOTOGRAPHY METHOD AND ELECTRONIC DEVICE
CN115150551A (zh) * 2022-06-20 2022-10-04 湖北星纪时代科技有限公司 用于终端的拍照处理方法、装置、电子设备和存储介质

Also Published As

Publication number Publication date
US20230188826A1 (en) 2023-06-15
EP4135309A4 (en) 2023-09-27
CN113596316A (zh) 2021-11-02
US12022183B2 (en) 2024-06-25
BR112022021773A2 (pt) 2022-12-13
CN113596316B (zh) 2023-12-08
EP4135309A1 (en) 2023-02-15

Similar Documents

Publication Publication Date Title
WO2021093793A1 (zh) 一种拍摄方法及电子设备
WO2021213477A1 (zh) 多路录像的取景方法、图形用户界面及电子设备
US11330194B2 (en) Photographing using night shot mode processing and user interface
CN110072070B (zh) 一种多路录像方法及设备、介质
WO2020259038A1 (zh) 一种拍摄方法及设备
WO2021219141A1 (zh) 拍照方法、图形用户界面及电子设备
WO2020073959A1 (zh) 图像捕捉方法及电子设备
WO2021147482A1 (zh) 一种长焦拍摄的方法及电子设备
WO2021129198A1 (zh) 一种长焦场景下的拍摄方法及终端
WO2023020006A1 (zh) 基于可折叠屏的拍摄控制方法及电子设备
CN111050062B (zh) 一种拍摄方法及电子设备
US20220342516A1 (en) Display Method for Electronic Device, Electronic Device, and Computer-Readable Storage Medium
WO2022252660A1 (zh) 一种视频拍摄方法及电子设备
CN113840070B (zh) 拍摄方法、装置、电子设备及介质
EP4329287A1 (en) Photographing method and electronic device
WO2022262475A1 (zh) 拍摄方法、图形用户界面及电子设备
WO2022228259A1 (zh) 一种目标追踪方法及相关装置
WO2021017518A1 (zh) 电子设备及图像处理方法
CN112422814A (zh) 一种拍摄方法和电子设备
RU2809660C1 (ru) Способ кадрирования для записи многоканального видео, графический пользовательский интерфейс и электронное устройство
WO2023160224A9 (zh) 一种拍摄方法及相关设备
WO2020174911A1 (ja) 画像表示装置、画像表示方法、及びプログラム

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

Country of ref document: EP

Kind code of ref document: A1

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112022021773

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 2021797640

Country of ref document: EP

Effective date: 20221109

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 112022021773

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20221026