Shooting method, graphical user interface and electronic equipment
The electronic device can be switched between single-lens shooting and multi-lens shooting modes through air gestures, which solves the problem of inconvenient operation in the existing technology and improves user experience and equipment efficiency.
Patent Information
- Application Number
- CN202410911746.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-16
- Publication Date
- 2024-09-24
AI Technical Summary
Switching between single-lens shooting and multi-lens shooting modes of existing electronic devices requires the user to operate by touching the display screen, which makes the operation inconvenient, especially when it is handheld or at a long distance.
The electronic device can switch between single-lens shooting and multi-lens shooting modes through air gestures. The low-power camera is used to recognize the user's gestures and perform corresponding operations without touching the display. It supports multiple gestures to achieve different switching effects. and user experience.
It improves the convenience and flexibility of user operation, reduces the power consumption of the device, and provides a personalized visual experience, allowing users to easily switch between single-lens shooting and multi-lens shooting to meet different shooting needs.
Smart Images

Figure CN118695083A
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminals, and in particular to a photographing method, a graphical user interface and an electronic device. Background Art
[0002] With the development of electronic technology, mobile phones, tablet computers and other electronic devices are generally equipped with multiple cameras, such as front camera, rear camera, wide-angle camera, etc. In order to bring a better shooting and creative experience, more and more electronic devices can support multiple cameras to shoot at the same time, so as to record wonderful moments, touching scenes and other beautiful pictures. Summary of the invention
[0003] The present application discloses a shooting method, a graphical interface and related devices. In the shooting method, an electronic device can support a user to switch between single-lens shooting and multi-lens shooting modes of the electronic device through air gestures without touching the display screen, making the operation convenient for the user.
[0004] In a first aspect, the present application provides a shooting method, which is applied to an electronic device including a display screen, a first camera, and a second camera; the method includes the following specific steps: the electronic device turns on the first camera; the electronic device displays a first image from the first camera in a first area in a preview interface in the display screen, and the first area is the entire area in the preview interface; when the electronic device detects a first gesture input by a user without contacting the display screen, in response to the first gesture, the electronic device turns on the second camera; and, in response to the first gesture, the electronic device divides the first area in the preview interface into a second area and a third area, and then displays the first image from the first camera in the second area, and displays the second image from the second camera in the third area, and the second area and the third area do not overlap.
[0005] By implementing the method provided in the first aspect, the electronic device can freely switch between camera modes such as single-lens shooting and multi-lens shooting through air gestures, without having to switch the shooting mode through the touch display screen, making it convenient for users to operate.
[0006] In combination with the first aspect, in one implementation, the electronic device divides the first area in the preview interface into a second area and a third area, specifically including: the electronic device controls the display area corresponding to the first camera in the preview interface to be reduced from the first area to the second area; other areas outside the second area in the preview interface are the third area.
[0007] In this way, when the electronic device switches from single-lens shooting to multi-lens shooting, the image displayed in the preview interface before the switching is gradually reduced from the original entire area to an area in the preview interface, and the display area of the newly added image after the switching is gradually expanded in the preview interface, so that the switching effect is smooth and in line with the user's visual experience.
[0008] In combination with the first aspect, in one embodiment, the first gesture is a gesture of moving from the first side to the second side; the moving direction from the first side to the second side here can be, for example, a moving direction from left to right or from right to left relative to the user. In the process of the electronic device controlling the display area corresponding to the first camera in the preview interface to shrink from the first area to the second area, the electronic device can control the second area to move from the first side to the second side according to the moving direction of the first gesture, and control the third area to move from the first side to the second side.
[0009] In this way, when the electronic device switches from single-lens shooting to multi-lens shooting, it can customize the corresponding switching effect according to the first air gesture input by the user, so as to meet the personalized needs of the user and conform to the user's visual experience.
[0010] In combination with the first aspect, in one embodiment, the electronic device further includes a third camera; the electronic device detects a first gesture input by a user without contacting the display screen, specifically comprising: the electronic device detects the first gesture through the third camera, the frame rate of the third camera is lower than the frame rates of the first camera and the second camera, or the pixel of the third camera is lower than the pixel of the first camera and the second camera, or the third camera outputs a black and white image. In this application, the third camera is a low-power camera.
[0011] In this way, the electronic device can collect the image corresponding to the user's air gesture through a low-power camera, so that the electronic device can recognize the air gesture and then perform the corresponding operation, reducing the power consumption of the electronic device and improving the user experience.
[0012] In combination with the first aspect, in one embodiment, after the electronic device displays the first image from the first camera in the second area and displays the second image from the second camera in the third area, the method also includes: the electronic device detects a first operation; in response to the first operation, the electronic device starts recording a video and displays a shooting interface, the shooting interface includes the first area and the second area; the electronic device detects a second operation; in response to the second operation, the electronic device ends recording the video and generates a video file.
[0013] In this way, the electronic device can record the images collected by multiple cameras in the multi-lens shooting mode as video files according to user operations.
[0014] In combination with the first aspect, in one embodiment, before the electronic device detects a first gesture input by the user without contacting the display screen, the method also includes: the electronic device displays a first prompt information in the preview interface, the first prompt information displays a hand image, and the hand image indicates a gesture moving from the first side to the second side.
[0015] In this way, during the user experience of shooting, the electronic device can guide the user to input corresponding air gestures to experience different shooting modes by displaying corresponding prompt information, thereby improving the user experience.
[0016] In combination with the first aspect, in one embodiment, after the electronic device displays the first image from the first camera in the second area and displays the second image from the second camera in the third area, the method also includes: the electronic device detects a second gesture input by the user without contacting the display screen; in response to the second gesture, the electronic device displays the first image from the first camera in the fourth area in the preview interface and displays the second image from the second camera in the fifth area; the fourth area is located in the fifth area.
[0017] In this way, when the electronic device is in a multi-lens shooting state, such as a front and rear shooting state, the two images obtained by the two cameras can be switched from the original left and right splicing form to a picture-in-picture display form, thereby meeting the user's personalized needs and improving the user experience.
[0018] In combination with the first aspect, in one embodiment, after the electronic device displays the first image from the first camera in the second area and displays the second image from the second camera in the third area, the method also includes: the electronic device detects a third gesture input by the user without contacting the display screen; in response to the third gesture, the electronic device stops displaying the second image from the second camera and displays the first image from the first camera in the first area in the preview interface.
[0019] In this way, when the electronic device is in multi-lens shooting state, it can switch to single-lens shooting mode according to the air gesture input by the user, thereby meeting the user's personalized needs and simplifying the switching operation, further improving the user experience.
[0020] In combination with the first aspect, in one embodiment, the electronic device also includes a fourth camera, and after the electronic device displays the first image from the first camera in the second area and displays the second image from the second camera in the third area, the method also includes: the electronic device detects a fourth gesture input by the user without contacting the display screen; the electronic device enables the fourth camera; and the electronic device switches the second image from the second camera displayed in the third area to a third image from the fourth camera.
[0021] In this way, when the electronic device is in multi-lens shooting state, it can switch one of the multiple cameras in the multi-lens mode to another new camera according to the air gesture input by the user, and display the image captured by the newly added working camera in the preview interface, thereby meeting the user's personalized needs and simplifying the switching operation, further improving the user experience.
[0022] In combination with the first aspect, in one embodiment, before the electronic device turns on the first camera, the method also includes: the electronic device displays the fourth image from the fifth camera in the first area in the preview interface; the electronic device detects the fourth gesture input by the user, and the electronic device stops displaying the fourth image in the first area in the preview interface.
[0023] In this way, when the electronic device is in single-lens shooting state, it can switch the working camera in single-lens mode to another new camera according to the air gesture input by the user, such as switching the front camera to the rear camera, thereby meeting the user's personalized needs and simplifying the switching operation, further improving the user experience.
[0024] In a second aspect, the present application provides an electronic device, comprising: a display screen, M cameras, one or more processors and one or more memories; M ≥ 2, M is a positive integer; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method described in the implementation manner of the first aspect.
[0025] In this way, the electronic device can freely switch between camera modes such as single-lens shooting and multi-lens shooting through air gestures, without the need to switch the shooting mode through the touch display screen, making it convenient for users to operate.
[0026] In a third aspect, the present application provides a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the method as described in the implementation manner of the first aspect.
[0027] In this way, when the computer program product is running on an electronic device, the electronic device can freely switch between camera modes such as single-lens shooting and multi-lens shooting through air gestures, without the need to switch the shooting mode through touch display operations, making it convenient for users to operate.
[0028] In a fourth aspect, the present application provides a computer-readable storage medium, comprising instructions, which, when executed on an electronic device, enable the electronic device to execute the method described in the implementation manner of the first aspect.
[0029] In this way, when the instruction is run on an electronic device, the electronic device can freely switch between camera modes such as single-lens shooting and multi-lens shooting through air gestures, without the need to switch the shooting mode through the touch display screen, making it convenient for users to operate. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1A-1B A set of user interface schematic diagrams provided for embodiments of the present application;
[0031] Figure 2A-2B A diagram of the hardware and software architecture of an electronic device provided in an embodiment of the present application;
[0032] Figure 3A-3B A set of user interface schematic diagrams provided for embodiments of the present application;
[0033] Figure 4A-4E Another set of interface schematic diagrams provided for embodiments of the present application;
[0034] Figure 5A-5H Another set of interface schematic diagrams provided for embodiments of the present application;
[0035] Figure 6A-6C Another set of interface schematic diagrams provided for embodiments of the present application;
[0036] Figure 7A-7F Another set of interface schematic diagrams provided for embodiments of the present application;
[0037] Figure 8A-B Another set of interface schematic diagrams provided for embodiments of the present application;
[0038] Figure 9A-9B Another set of interface schematic diagrams provided for embodiments of the present application;
[0039] Figure 10A-10C Another set of interface schematic diagrams provided for embodiments of the present application;
[0040] Fig.11 A flow chart of the method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and appended claims of the present application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also include plural expressions, unless the context clearly indicates otherwise. It should also be understood that " / " means or, for example, A / B can mean A or B; "and / or" in the text is merely a description of an association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0042] The technical solutions in the embodiments of the present application will be described clearly and in detail below with reference to the accompanying drawings.
[0043] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0044] The terms "first" and "second" in the following embodiments of the present application are used for descriptive purposes only and should not be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more.
[0045] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device, and finally presented as content that can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0046] In some implementations, the electronic device can provide the user with a multi-lens shooting function. However, when the user switches from single-lens shooting / multi-lens shooting to multi-lens shooting / single-lens shooting, the user needs to click a specific control in the camera to switch the above-mentioned camera mode.
[0047] In the embodiments of the present application, the above-mentioned single-lens shooting mode is also a common shooting mode for users, including front camera shooting or rear camera shooting. Multi-lens shooting is also a common dual-view shooting mode for users, such as front-to-back shooting mode, or when the electronic device has multiple cameras, multi-lens shooting can also include a back-to-back shooting mode, or a front-to-back shooting mode, etc. The embodiments of the present application do not limit the shooting modes included in multi-lens shooting. Unless otherwise specified, the following embodiments will take multi-lens shooting as front-to-back shooting as an example for introduction.
[0048] refer to Figure 1A-1B , Figure 1A-1B The operation of the electronic device switching from single-lens photography to multi-lens photography is exemplarily shown.
[0049] like Figure 1A As shown, the user interface 110 is provided by a camera installed in the electronic device, wherein the preview box 111 in the user interface 110 displays an image 111A taken by the front camera of the electronic device by default. At this time, the camera of the electronic device is in single-lens shooting, specifically shooting with the front camera.
[0050] When the electronic device detects that the user clicks Figure 1A When the multi-lens shooting controls are shown, the camera switches from single-lens shooting to Figure 1B The multi-lens shooting shown is specifically front and rear dual-lens shooting.
[0051] like Figure 1B As shown, the preview frame 111 displayed in the user interface 110 simultaneously displays an image 111A taken by the front camera and an image 111B taken by the rear camera.
[0052] It can be seen that during the single-lens shooting process of the above electronic device, the electronic device needs to receive a touch operation of the multi-lens shooting control on the display screen input by the user before the single-lens shooting can be switched to the multi-lens shooting. However, when the user is holding the selfie stick and it is inconvenient to click the display screen, or the electronic device is far away from the user, or the user's fingers are wet and it is inconvenient to touch the display screen, the switching between the single-lens shooting and the multi-lens shooting cannot be achieved.
[0053] In order to solve the above problems, the embodiments of the present application provide a shooting method. The shooting method can support the user to switch between single-lens shooting and multi-lens shooting modes of the electronic device through air gestures without touching the display screen, making the user's operation convenient.
[0054] The shooting method provided in the embodiment of the present application can be applied to an electronic device including multiple cameras. The electronic device can recognize the user's air gesture through any one of the front cameras. The embodiment of the present application does not limit the air gesture used to switch the shooting mode. The above-mentioned air gesture is just the name used in the embodiment of the present application. It can also be called a hanging gesture, a floating gesture, etc., which specifically refers to a gesture input without contacting the electronic device. The meaning it represents has been recorded in the embodiment of the present application, and its name does not constitute any limitation to the present embodiment.
[0055] When the electronic device is in the single-lens shooting mode, the preview frame (also called the viewfinder frame) on the display screen only displays the image shot by one camera.
[0056] The above-mentioned single-lens shooting may include single-lens video recording and single-lens photo taking, that is, when the electronic device is in single-lens shooting mode, single-lens video recording and single-lens photo taking can be performed. Among them, single-lens recording refers to a camera in the electronic device, such as a front camera or a rear camera, recording a video. In the single-lens recording mode, in the preview frame or during the recording process or in the process of playing the recorded video, the display screen can only display multiple frames of images taken by the above-mentioned camera on the same interface. Single-lens photo taking refers to a camera in the electronic device, such as a front camera and a rear camera, taking an image. In the single-lens photo taking mode, the display screen can only display multiple frames of images taken by one camera in the preview frame, and when taking pictures or viewing the taken photos, the display screen can only display one image taken by one camera on the same interface.
[0057] In the above multi-lens shooting mode, the display screen displays images taken by multiple cameras in the preview frame. The images taken by different cameras can be spliced and displayed, or displayed in picture-in-picture mode.
[0058] The above-mentioned multi-lens shooting may include multi-lens video recording and multi-lens photo taking, that is, when the electronic device is in a multi-lens shooting mode, multi-lens video recording and multi-lens photo taking can be performed. Among them, multi-lens recording means that multiple cameras in the electronic device, such as the front camera and the rear camera, record multiple channels of video at the same time. In the multi-lens recording mode, in the preview frame or the recording process or in the playback process of the recorded video, the display screen can simultaneously display multiple frames of images taken by multiple cameras on the same interface. The images taken by these multiple cameras can be spliced and displayed on the same interface, or displayed in a picture-in-picture manner. Among them, multi-lens photo taking means that multiple cameras in the electronic device, such as the front camera and the rear camera, can take multiple images at the same time. In the multi-lens photo taking mode, the display screen can simultaneously display multiple frames of images taken by multiple cameras in the preview frame, and these multiple frames of images can be spliced and displayed, or displayed in a picture-in-picture manner. When taking pictures or viewing the photos that have been taken, the display screen can only display multiple channels of images taken by multiple cameras on the same interface, and these multiple channels of images can be spliced and displayed, or displayed in a picture-in-picture manner.
[0059] When the electronic device recognizes a specific air gesture, the image captured by the original one camera / images captured by multiple cameras can be displayed in the preview frame, switching to images captured by multiple cameras / images captured by one camera. The image captured by the one camera can be an image captured by the front camera of the electronic device or an image captured by the rear camera of the electronic device; the images captured by the multiple cameras can include images captured by the front camera and images captured by any multiple cameras of the rear camera.
[0060] In the embodiments of the present application, the above-mentioned "single-lens shooting", "multi-lens shooting", "single-lens video recording", "single-lens photo taking", "multi-lens video recording", and "multi-lens photo taking" are just some names used in the embodiments of the present application. The meanings they represent have been recorded in the embodiments of the present application, and the names do not constitute any limitation to the embodiments.
[0061] It can be seen from the above shooting method that the user can switch the shooting mode of the electronic device through the air gesture, so that the image displayed in the preview box can be switched between the image taken by one camera and the image taken by multiple cameras. Especially for the scene using one camera, such as the front camera, the user generally stretches his arm or uses a selfie stick to shoot. At this time, the user wants to switch to front and rear multi-lens shooting to shoot himself and others or himself and the scenery at the same time to record the beautiful moments. The shooting method provided by the embodiment of the present application allows the user to adjust the shooting mode of the electronic device by touching the screen of the electronic device with his finger without repeatedly bringing the electronic device close, so that the user can conveniently switch the shooting mode through the air gesture, so that the image displayed in the preview box is changed from the original image taken by the front camera to an image taken by the front camera and the rear camera at the same time.
[0062] In order to more clearly and in detail introduce the shooting method provided by the embodiment of the present application, the electronic device involved in implementing the method provided by the embodiment of the present application is first introduced below.
[0063] The electronic device may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device and / or a smart city device. The embodiments of the present application do not impose any special restrictions on the specific type of the electronic device.
[0064] Figure 2A The schematic diagram of the hardware structure of the electronic device is exemplarily shown.
[0065] like Figure 2AAs shown, the electronic device may have multiple cameras 193, such as a front ordinary camera, a front low-power camera, a rear ordinary camera, a rear wide-angle camera, etc. In addition, the electronic device may include a processor 112, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0066] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0067] The processor 112 may include one or more processing units, for example, the processor 112 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
[0068] The processor 112 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 112 is a cache memory. The memory may store instructions or data that the processor 112 has just used or cyclically used. If the processor 112 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 112, and thus improves the efficiency of the system.
[0069] In some embodiments, the processor 112 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc. It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0070] In an embodiment of the present application, the processor 112 may receive a plurality of continuous images corresponding to a specific air gesture input by a user captured by a camera, such as a "palm", and then the processor 112 may compare and analyze the plurality of continuous images, determine that the air gesture corresponding to the plurality of continuous images is a "palm", and determine that the operation corresponding to the air gesture is, for example, switching the shooting mode from the original single-lens shooting to multi-lens shooting, and then the processor 112 may control the camera application to perform the corresponding operation. The corresponding operation may include, for example: mobilizing multiple cameras to capture images simultaneously, and then synthesizing the images captured by the multiple cameras respectively through the GPU by splicing or picture-in-picture (partial overlay), and calling the display screen 194 to display the synthesized image in the preview frame of the electronic device.
[0071] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device. The external non-volatile memory communicates with the processor 112 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
[0072] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). The random access memory can be directly read and written by the processor 112, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data. The non-volatile memory can also store executable programs and store user and application data, etc., and can be loaded into the random access memory in advance for direct reading and writing by the processor 112.
[0073] Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.;
[0074] Non-volatile memory can include disk storage devices and flash memory. Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle, single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the potential level of the storage cell, and universal flash storage (UFS), embedded multi media card (eMMC), etc. according to the storage specification.
[0075] In the embodiment of the present application, the internal memory 121 may store picture files or recorded video files taken by the electronic device in single-lens shooting or multi-lens shooting modes.
[0076] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of an electronic device. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0077] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 112. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 112, the internal memory 121, 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 number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 112. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0078] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0079] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0080] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 112. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 112.
[0081] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 112 and be set in the same device as the mobile communication module 150 or other functional modules.
[0082] The wireless communication module 160 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 112. The wireless communication module 160 can also receive the signal to be sent from the processor 112, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0083] In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0084] The electronic device can realize audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor, etc. For example, music playing, recording, etc. The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 112, or some functional modules of the audio module 170 can be arranged in the processor 112.
[0085] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device can listen to music or listen to a hands-free call through the speaker 170A.
[0086] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0087] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device can be provided with at least one microphone 170C. In other embodiments, the electronic device can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device can also be provided with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, identification of sound sources, and directional recording function, etc.
[0088] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0089] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device detects the touch operation intensity according to the pressure sensor 180A. The electronic device can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0090] The gyro sensor 180B can be used to determine the motion posture of the electronic device. In some embodiments, the angular velocity of the electronic device around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0091] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0092] The magnetic sensor 180D includes a Hall sensor. The electronic device can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device is a flip phone, the electronic device can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0093] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device in all directions (generally three axes). When the electronic device is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0094] The distance sensor 180F is used to measure the distance. The electronic device can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0095] 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 emits infrared light outward through the light emitting diode. The electronic device 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. When insufficient reflected light is detected, the electronic device can determine that there is no object near the electronic device. The electronic device can use the proximity light sensor 180G to detect when the user holds the electronic device close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0096] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device is in a pocket to prevent accidental touch.
[0097] The fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0098] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device heats the battery 142 to avoid abnormal shutdown of the electronic device due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device boosts the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
[0099] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control 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. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device, which is different from the position of the display screen 194.
[0100] In the embodiment of the present application, the touch sensor 180K can detect the user's touch operation on the location of the camera application icon, and transmit the information of the touch operation to the processor 112, which analyzes the function corresponding to the touch operation, such as opening the camera application.
[0101] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0102] The key 190 includes a power key, a volume key, etc. The key 190 can be a mechanical key or a touch key. The electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
[0103] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0104] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0105] The electronic device can realize the shooting function through the camera 193, ISP, video codec, GPU, display screen 194 and application processor.
[0106] Camera 193 is used to capture images. Specifically, the object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
[0107] In the embodiment of the present application, the number of cameras 193 may be M, where M≥2, and M is a positive integer. The number of cameras opened by the electronic device in multi-lens shooting may be N, where 2≤N≤M, and N is a positive integer.
[0108] In the embodiment of the present application, the type of camera 193 can be distinguished according to the hardware configuration and physical position. For example, the multiple cameras included in the camera 193 can be placed on the front and back sides of the electronic device respectively. The camera set on the side of the display screen 194 of the electronic device can be called a front camera, and the camera set on the side of the back cover of the electronic device can be called a rear camera; for another example, the focal lengths and viewing angles of the multiple cameras included in the camera 193 are different. The camera with a short focal length and a larger viewing angle can be called a wide-angle camera, and the camera with a long focal length and a small viewing angle can be called a normal camera. The difference in the content of the images collected by different cameras is that the front camera is used to collect the scene facing the front of the electronic device, while the rear camera is used to collect the scene facing the back of the electronic device; the wide-angle camera can capture a larger area of the scene within a shorter shooting distance range, and the scene captured at the same shooting distance is smaller than the image of the scene captured by the ordinary lens in the picture. Among them, the length of the focal length and the size of the viewing angle are relative concepts, and there is no specific parameter limitation. Therefore, the wide-angle camera and the ordinary camera are also a relative concept, which can be specifically distinguished according to physical parameters such as focal length and viewing angle.
[0109] In particular, in the embodiment of the present application, the camera 193 includes at least one camera that can obtain 3D data of objects in the captured image, so that the processor 112 can identify the operation instructions corresponding to the user's air gesture based on the 3D data of the object.
[0110] The camera used to obtain 3D data of the object can be an independent low-power camera, or it can be other ordinary front-facing cameras or rear-facing cameras. The ordinary front-facing cameras or rear-facing cameras support low-power mode. When the low-power camera is working, or the ordinary front-facing camera or rear-facing camera is working in low-power mode, the frame rate of the camera is lower than the frame rate of the ordinary camera working in non-low-power mode and the output image is in black and white format. Usually, ordinary cameras can output 30 frames of images, 60 frames of images, 90 frames of images, and 240 frames of images in 1 second, but when the low-power camera, or the ordinary front-facing camera or rear-facing camera runs in low-power mode, the camera can output, for example, 2.5 frames of images in 1 second, and when the camera captures the first image representing the same air gesture, the above-mentioned camera can switch to output 10 frames of images in 1 second, so as to accurately identify the operation instructions corresponding to the air gesture through continuous multiple image recognition. In addition, the pixels of the images collected by the low-power camera are lower than the pixels of the images collected by the ordinary camera. At the same time, compared with ordinary cameras, working in low-power mode reduces power consumption.
[0111] The image output ratio of the camera 193 may be different or the same. The image output ratio of the camera refers to the ratio of the length to the width of the image collected by the camera. Both the length and width of the image can be measured in pixels. The image output ratio of the camera can also be called the image output size, image size, image size, pixel size or image resolution. Common camera output ratios may include: 4:3, 16:9 or 3:2, etc. The image output ratio refers to the approximate ratio of the number of pixels in length and width of the image collected by the camera. In an embodiment of the present application, when the electronic device is in a multi-lens shooting mode, when the images collected by multiple cameras are displayed in the form of left and right splicing or top and bottom splicing, the sizes of the images captured by different cameras displayed in the preview frame can be the same, and when the images collected by multiple cameras are displayed in the form of picture-in-picture, the sizes of the images captured by different cameras displayed in the preview frame can be different, and the specific image size captured by the front camera is smaller than the size captured by the rear camera. For details, please refer to the relevant description of the UI embodiment below, which will not be repeated here.
[0112] In some embodiments, the camera 193 can be used to collect depth data. For example, the camera 193 can have a time of flight (TOF) 3D sensing module or a 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.
[0113] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0114] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency point, a digital signal processor is used to perform Fourier transform on the frequency point energy.
[0115] Video codecs are used to compress or decompress digital videos. Electronic devices can support one or more video codecs. In this way, electronic devices can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0116] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously self-learn. NPU can realize applications such as intelligent cognition of electronic devices, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0117] The electronic device implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 112 may include one or more GPUs that execute program instructions to generate or change display information.
[0118] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0119] In an embodiment of the present application, the display screen 194 can be used to display images taken from any camera 193, for example, displaying multiple frames of images taken from a camera in a preview box, or displaying multiple frames of images from a camera 193 in a saved video file, or displaying a photo from a camera 193 in a saved picture file.
[0120] When an electronic device displays multiple frames of images taken from one camera in a camera preview box, and receives a specific air gesture input by the user, such as "palm", the display screen 194 can be used to display the multiple frames of images taken from multiple cameras in the preview box. After the electronic device saves the video files or picture files taken by the multiple cameras, the display screen can display the multiple frames of images from multiple cameras 193 in the saved video files, or display a photo composed of multiple photos from multiple cameras 193 in the saved picture files.
[0121] In some embodiments, in the multi-lens shooting mode, the display screen 194 can display multiple images from multiple cameras 193 by stitching or picture-in-picture, so that the multiple images from the multiple cameras 193 can be presented to the user at the same time.
[0122] In some embodiments, in the multi-lens shooting mode, the processor 112 (e.g., a controller or a GPU) may synthesize multiple frames of images from multiple cameras 193. For example, multiple video streams from multiple cameras 193 are merged into one video stream, and the video encoder in the processor 112 may encode the synthesized one video stream data to generate a video file. In this way, each frame of the video file may contain multiple images from multiple cameras 193. When playing a certain frame of the video file, the display screen 194 may display multiple images from multiple cameras 193 to show the user multiple images of different ranges, different resolutions, or different details at the same time or in the same scene.
[0123] In some embodiments, in the multi-lens shooting mode, the processor 112 can associate image frames from different cameras 193 respectively, so that when playing the captured pictures or videos, the display screen 194 can simultaneously display the associated image frames in the viewfinder. In this case, the videos recorded simultaneously by different cameras 193 can be stored as different videos respectively, and the pictures recorded simultaneously by different cameras 193 can be stored as different pictures respectively.
[0124] In some embodiments, in a multi-channel recording mode, multiple cameras 193 can respectively capture images at the same frame rate, that is, the number of image frames captured by multiple cameras 193 in the same time is the same. Videos from different cameras 193 can be stored as different video files, and the different video files are associated with each other. The image frames are stored in the video file in the order in which the image frames are captured, and the different video files include the same number of image frames. When playing a recorded video, the display screen 194 can display the image frames in the order included in the associated video files according to a preset or user-indicated layout, so that multiple frames of images corresponding to the same order in different video files are displayed on the same interface.
[0125] In some embodiments, in the multi-channel recording mode, multiple cameras 193 can respectively capture images at the same frame rate, that is, the number of image frames captured by multiple cameras 193 at the same time is the same. The processor 112 can respectively add a time stamp to each frame of the image from different cameras 193, so that when playing the recorded video, the display screen 194 can simultaneously display multiple frames of images from multiple cameras 193 on the same interface according to the time stamp.
[0126] In some embodiments, in a multi-lens shooting scenario, the display screen 194 can simultaneously display different images from multiple cameras 193 by left-right stitching, top-bottom stitching, or picture-in-picture, so that different images from the multiple cameras 193 can be presented to the user at the same time. For details, please refer to the relevant description of the UI embodiment below, which will not be repeated here.
[0127] In some embodiments, in a multi-lens shooting mode, the processor 112, such as a controller or a GPU, can synthesize different images from multiple cameras 193. For example, multiple video streams from multiple cameras 193 are merged into one video stream, and the video encoder in the processor 112 can encode the synthesized one video stream data to generate a video file. In this way, each frame image in the video file can contain multiple images from multiple cameras 193. When playing a certain frame image of the video file, the display screen 194 can display multiple images from multiple cameras 193 to show the user multiple images of different content, different depth of field or different pixels at the same time or in the same scene. For another example, multiple photos from multiple cameras 193 are merged into one, and the video encoder in the processor 112 can encode the synthesized one photo data to generate a picture file. In this way, a photo in the picture file can contain multiple photos from multiple cameras 193. When viewing the photo, the display screen 194 can display multiple photos from multiple cameras 193 to show the user multiple images with different contents, different depths of field or different pixels at the same moment or in the same scene.
[0128] In some embodiments, in the multi-lens shooting mode, the processor 112 can associate image frames from different cameras 193 respectively, so that when playing the captured pictures or videos, the display screen 194 can simultaneously display the associated image frames in the preview box. In this case, the videos recorded simultaneously by different cameras 193 can be stored as different video files respectively, and the photos taken simultaneously by different cameras 193 can be stored as different picture files respectively.
[0129] In some embodiments, in the multi-lens recording mode, multiple cameras 193 can respectively capture images at the same frame rate, that is, the number of image frames captured by multiple cameras 193 in the same time is the same. Videos from different cameras 193 can be stored as different video files, and the different video files are associated with each other. The image frames are stored in the video file in the order in which the image frames are captured, and the different video files include the same number of image frames. When playing the recorded video, the display screen 194 can display the image frames in the order included in the associated video files according to the preset or user-indicated layout mode, so that multiple frames of images corresponding to the same order in different video files are displayed on the same interface.
[0130] In some embodiments, in the multi-lens recording mode, multiple cameras 193 can respectively capture images at the same frame rate, that is, the number of image frames captured by multiple cameras 193 at the same time is the same. The processor 112 can respectively add a time stamp to each frame of the image from different cameras 193, so that when playing the recorded video, the display screen 194 can simultaneously display multiple frames of images from multiple cameras 193 on the same interface according to the time stamp.
[0131] For ease of use, electronic devices are usually shot in a user's handheld mode, which usually causes the captured images to shake. In some embodiments, in a multi-lens shooting mode, the processor 112 can perform anti-shake processing on image frames collected by different cameras 193. Then, the display screen 194 displays the image after the anti-shake processing.
[0132] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the 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 can also be compatible with external memory cards. The electronic device interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in an electronic device and cannot be separated from the electronic device.
[0133] The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device.
[0134] Figure 2B It is a software structure block diagram of the electronic device according to an embodiment of the present invention.
[0135] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0136] The application layer can include a series of application packages.
[0137] like Figure 2B As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0138] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0139] like Figure 2B As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0140] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0141] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0142] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0143] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).
[0144] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0145] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0146] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0147] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0148] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0149] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0150] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0151] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0152] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0153] A 2D graphics engine is a drawing engine for 2D drawings.
[0154] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0155] The following is an example of the workflow of the electronic device software and hardware in conjunction with capturing a photo scene.
[0156] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, timestamp of the touch operation, and other information). The original input event is stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch single-click operation, and the control corresponding to the single-click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer, starts the camera application, and then starts the camera driver by calling the kernel layer, and captures a static image or video through the camera 193. In an embodiment of the present application, the touch sensor 180K receives a touch operation, which can be replaced by the operation of the air gesture input by the user collected by the camera 193. Specifically, when the camera 193 collects the operation of the air gesture, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the air gesture operation into an original input event (including the image of the air gesture, the timestamp of the air gesture operation, and other information). The original input event is stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the operation corresponding to the input event. Taking the air gesture operation as an operation of switching shooting modes as an example, the camera application calls the interface of the application framework layer, and then starts other camera drivers by calling the kernel layer, thereby switching to other cameras 193 to capture static images or videos.
[0157] A typical shooting scene involved in this application is introduced below.
[0158] Figure 3A An exemplary user interface 310 for displaying an application menu on an electronic device is exemplarily shown.
[0159] like Figure 3A As shown, a camera icon 311 is displayed in the user interface 310, and the electronic device can detect a touch operation on the camera icon 311. In response to the operation, the electronic device can enable the camera and can display Figure 3BUser interface 320 is shown as an example. It is understandable that the camera application is an image capture application on electronic devices such as smartphones and tablets. It can be a system application or a third-party application. This application does not limit the name of the application. In other words, the user can click the camera icon 311 to open the user interface 320 of the camera application. Not limited to this, the user can also open the user interface 310 in other applications, for example, the user clicks the shooting control in a social application to open the user interface 320. The social application can support users to share the captured images with others.
[0160] Figure 3B The user interface 320 provided by the camera application is exemplarily shown.
[0161] like Figure 3B As shown, the user interface 320 may be a user interface of the default camera mode of the camera application, for example, a user interface provided by the camera application when the front camera is used for single-lens shooting. It is understandable that the default camera is not limited to the front camera, and the electronic device may also set the rear camera as the default camera. That is, when the camera application is turned on, the electronic device may display the image captured by the rear camera in the preview box 321, which may be used by the user to take pictures through the default rear camera.
[0162] like Figure 3B As shown, the user interface 320 may include: a preview box 321, a flash control 322, a setting control 323, a shooting mode option 324, a gallery shortcut control 325, a shutter control 326, and a camera switch control 327. Among them:
[0163] The preview frame 321 can be used to display the image captured by the camera 193 in real time, such as the image 321A of the user currently captured by the front camera 193. The electronic device can refresh the display content of the preview frame 321 in real time to facilitate the user to preview the image currently captured by the camera 193.
[0164] The flash control 322 may be used to turn the flash on or off.
[0165] The setting control 323 can be used to adjust the parameters of taking photos (such as resolution, image ratio, etc.) and turn on or off some modes for taking photos (such as timed photo taking, smile capture, voice-controlled photo taking, etc.).
[0166] One or more shooting mode options may be displayed in the shooting mode option 324. The one or more shooting mode options may include: short video 324A, wide angle 324B, video recording 324C, photo 324D, multi-lens shooting 324E, panorama 324F and more options 324G. When a user operation on a shooting mode option is detected, the electronic device may turn on the shooting mode selected by the user, or the user may browse other shooting mode options by swiping left / right in the shooting mode option 324. In particular, when a user operation on more options 324G is detected, the electronic device may further display more other shooting mode options, such as a slow motion shooting mode option, etc., to show the user more abundant camera functions. Not limited to Figure 3B As shown, the shooting mode option 324 can display the ratio Figure 3B More or fewer options are shown.
[0167] The shooting mode corresponding to the photo 324D is the default shooting mode when the electronic device opens the camera user interface. The shooting mode corresponding to the photo 324D is the commonly used single-lens shooting, which may include front shooting and rear shooting, and specifically may correspond to the single-lens shooting when the front camera is set as the default camera, or the single-lens shooting when the rear camera is set as the default camera as described above.
[0168] Among them, the introduction of the shooting mode corresponding to multi-lens shooting 324E can be referred to the specific description in the previous article, which will not be repeated here.
[0169] The gallery shortcut control 325 displays thumbnails of the saved images, and the gallery shortcut control 325 can be used to open the gallery application. In response to a user operation on the gallery shortcut control 325, such as a click operation, the electronic device can open the gallery application. In this way, the user can conveniently view the captured photos and videos without having to exit the camera application first and then open the gallery application. The gallery application is an image management application on electronic devices such as smartphones and tablets, and can also be called an "album". This embodiment does not limit the name of the application. The gallery application can support users to perform various operations on pictures stored on electronic devices, such as browsing, editing, deleting, selecting, and the like.
[0170] The shutter control 326 can be used to monitor the user operation that triggers the photo. The electronic device can detect the user operation acting on the shutter control 326, and in response to the operation, the electronic device can save the image in the preview box 321 as a picture file in the gallery application. In other words, the user can click the shutter control 326 to trigger the photo.
[0171] The camera switching control 327 can be used to monitor the user operation that triggers the camera switching. The electronic device can detect the user operation acting on the camera switching control 327, such as a click operation, and in response to the operation, the electronic device can switch the camera, such as switching the front camera to the rear camera. Figure 3B As shown, the preview box 321 displays the image captured by the front camera.
[0172] In the embodiments of the present application, Figure 3B The preview frame 321 shown can be called a preview interface, and the entire area in the preview interface can also be called a first area; the image 321A can be called a first image, and the camera that captures the first image can be called a first camera.
[0173] based on Figure 3A-3B The typical shooting scene described above is described below. Some user interfaces implemented on electronic devices for switching from front-facing shooting to front-facing shooting are introduced below.
[0174] refer to Figure 4A , Figure 4A A schematic diagram exemplarily shows a scenario in which a user holds an electronic device and stretches out his arms to take a vertical screen shot, wherein the electronic device can be placed vertically in the user's hand.
[0175] Assuming that the electronic device works in the single-lens shooting mode during the first period of time during the shooting process, for example, when taking a selfie with the front camera, the content displayed in the preview box can refer to the above Figure 3B When the user wants to switch to the multi-lens shooting mode during or after taking a selfie, for example, to take a selfie with the front camera and take a photo of friends with the rear camera at the same time to record the good times, the specific implementation method of switching the shooting mode of the electronic device can be referred to below Figure 4B-Figure 4E Detailed description.
[0176] refer to Figure 4B to Figure 4E , Figure 4B to Figure 4E The diagram exemplifies a series of user interfaces displayed when an electronic device switches from front-facing shooting to front- and rear-facing shooting.
[0177] refer to Figure 4B , Figure 4B The example shows that the electronic device detects an air gesture for switching to front and rear shooting during front shooting.
[0178] like Figure 4B As shown, the contents of the user interface 320 are similar to Figure 3B The user interface 320 shown is similar except that: Figure 4BThe user interface 320 shown displays a prompt message 328, which is used to prompt the user to switch the shooting mode of the electronic device through air gesture operations. For example, the text "Switch multi-lens shooting through these air gestures" and some air gesture images such as "palm", "fist", etc. are displayed.
[0179] Electronic devices can be used in Figure 4B In the user interface 320 shown in FIG. 1 , a user inputted air gesture such as a “palm” is detected. In response to the operation, the electronic device switches the shooting mode from single-lens shooting to multi-lens shooting, specifically, the front-facing shooting is switched to Figure 4C Before and after shots shown.
[0180] In an embodiment of the present application, the above-mentioned air gesture such as "palm" can be referred to as the first air gesture.
[0181] refer to Figure 4C , Figure 4C A user interface displayed by an electronic device in a front and rear shooting mode is exemplified.
[0182] like Figure 4C As shown, the contents of the user interface 320 are similar to Figure 3B The user interface 320 shown is similar, except that the shooting mode of the electronic device has been switched to the multi-lens shooting mode, so the multi-lens shooting 324E in the shooting mode option 324 is displayed as selected. Figure 4C The images captured by the camera 193 in real time displayed in the preview box 321 in the user interface 320 shown in the figure include: the image 321A of the user currently captured by the front camera, and the image 321B of the user's friend currently captured by the rear camera. The display form of the image 321B and the image 321A is a top-to-bottom splicing form. In some embodiments of the present application, when the content displayed in the preview box 321 has Figure 4B The image 321A shown switches to Figure 4C When the image 321B and the image 321A are shown, the switching process may be a direct switching, or a certain switching effect may be displayed, such as the image 321A gradually shrinks and moves to the bottom of the preview box, while the image 321B gradually enlarges and is displayed above the preview box. The embodiment of the present application does not limit this.
[0183] It is understandable that when the electronic device is in a vertical screen state for shooting, the images shot by multiple cameras displayed by the electronic device may be as shown above. Figure 4B-4C The display form shown is a top-bottom splicing. When the electronic device is in a horizontal screen shooting state, the display form of image 321B and image 321A can also be a left-right splicing form.
[0184] In the embodiments of the present application, Figure 4CThe display area of the image 321A in the preview interface can be called the second area, and the display area of the image 321B in the preview interface can be called the third area. The image 321B can be called the second image, and the camera used to capture the image 321B can be called the second camera.
[0185] In addition to the above-mentioned display forms of top-bottom splicing and left-right splicing, the electronic device can also use a picture-in-picture form for superimposed display. The specific implementation method is referred to below.
[0186] refer to Figure 4D , Figure 4D The example shows that the electronic device detects another air gesture for switching to front and rear shooting during front shooting.
[0187] like Figure 4D As shown, the contents of the user interface 320 are similar to Figure 3B The user interface 320 shown is similar except that: Figure 4B The user interface 320 shown displays a prompt message 328, which is used to prompt the user to switch the shooting mode of the electronic device through air gesture operations. For example, the text "Switch multi-lens shooting through these air gestures" and some air gesture images such as "palm", "fist", etc. are displayed.
[0188] In the embodiment of the present application, the above-mentioned prompt information 328 may also be referred to as the first prompt information.
[0189] Electronic devices can be used in Figure 4D In the user interface 320 shown in FIG. 1 , a user inputted air gesture such as “clenching a fist” is detected. In response to the operation, the electronic device switches the shooting mode from single-lens shooting to multi-lens shooting, specifically, switching the front-facing shooting mode to the front-facing shooting mode. Figure 4E Before and after shots shown.
[0190] refer to Figure 4E , Figure 4E Another user interface displayed by an electronic device in front and back shooting modes is exemplarily shown.
[0191] like Figure 4E As shown, the contents of the user interface 320 are similar to Figure 3B The user interface 320 shown is similar, except that the shooting mode of the electronic device has been switched to the multi-lens shooting mode, so the multi-lens shooting 324E in the shooting mode option 324 is displayed as selected. Figure 4EThe images captured in real time by the camera 193 and displayed in the preview box 321 in the user interface 320 shown include: the image 321A of the user currently captured by the front camera, and the image 321B of the user's friend currently captured by the rear camera. The display form of the image 321B and the image 321A is a picture-in-picture form, and specifically, the image 321A is superimposed and displayed in the upper left corner of the image 321B.
[0192] In the embodiments of the present application, Figure 4E The display area of the image 321A in the preview interface can be called a fourth area, and the display area of the image 321B in the preview interface can be called a fifth area.
[0193] In the embodiment of the present application, when the electronic device displays the front and rear images in a picture-in-picture manner, the image captured by the front camera is superimposed and displayed on the upper left corner of the image captured by the rear camera by default, and the size of the image captured by the front camera is smaller than the size of the image captured by the rear camera by default. Among them, the display position of the image captured by the front camera can also be the upper right corner, the lower left corner, or the middle position, and the image size can be the default setting of the electronic device, or the user can redefine the image size through the setting interface, and the embodiment of the present application does not limit this.
[0194] It is understandable that, when the electronic device switches from front-facing shooting to front-facing shooting, the electronic device can Figure 4B-Figure 4E The direct switching shown, that is, an image 312A displayed in the preview box in the display screen is directly switched to display two images 312A and 312B, or the electronic device can use the default switching effect for switching, and the default switching effect can be that an image 312A captured by the front camera gradually reduces the display area from the original full screen display and moves to one side of the display screen, and the image 312B captured by the rear camera gradually increases the display area and moves to the other side of the display screen. The default switching effect can also be other, and the embodiment of the present application does not limit this. Alternatively, the electronic device can also switch with the corresponding display effect according to different air gestures input by the user. For details, please refer to the following text Figure 5A-5H .
[0195] based on Figure 3A-3B Regarding the shooting scenario, other user interfaces implemented on the electronic device for switching from front shooting to front and back shooting are introduced below.
[0196] refer to Figure 5A , Figure 5A The schematic diagram exemplarily shows a scene photographed by a user holding an electronic device.
[0197] refer to Figure 5A , Figure 5AThe schematic diagram exemplarily shows a scenario in which a user holds an electronic device with a selfie stick to take a horizontal shot, wherein the electronic device is placed horizontally in the selfie stick.
[0198] Assume that the electronic device works in the single-lens shooting mode during the first period of time during the shooting process, for example, when taking a selfie with the front camera, the content displayed in the preview box is the same as that in the above Figure 3B The difference is that when the electronic device is shooting in landscape mode, the image displayed in the preview frame 321 is displayed in landscape mode. When the user wants to switch to multi-lens shooting mode during or after taking a selfie, for example, to take a selfie with the front camera and take a landscape with the rear camera at the same time to record the good times, the specific implementation method of switching the shooting mode of the electronic device can be referred to below. Figure 5B-5E Detailed description.
[0199] Figure 5B-5E An example of a switching effect when an electronic device switches from front-facing shooting to front-back shooting is shown.
[0200] refer to Figure 5B , Figure 5B The user interface of an electronic device when displaying front-facing shooting is exemplarily shown.
[0201] like Figure 5B As shown, the contents of the user interface 320 are similar to Figure 3B The user interface 320 shown is similar except that: Figure 5B The image 321A in the preview frame 321 in the user interface 320 shown is displayed in a horizontal screen because the electronic device is placed horizontally in the selfie stick.
[0202] refer to Figure 5C , Figure 5C The example shows that the electronic device detects another air gesture for switching to front and rear shooting during front shooting.
[0203] like Figure 5C As shown, the contents of the user interface 320 are similar to Figure 5B The user interface 320 shown is similar except that: Figure 5C The user interface 320 shown shows prompt information 329, which is used to prompt the user to experience the switching effect of switching the shooting mode of the electronic device through air gestures. For example, the text "Experience the switching effect through these air gestures" and some images corresponding to air gestures are displayed, such as "Image of the palm moving from right to left", "Image of the palm moving from left to right", etc. In some embodiments, the air gesture image displayed in the prompt information 329 may include one or more at the same time, or multiple images may be displayed periodically in a cycle, and the embodiments of the present application are not limited to this.
[0204] In an embodiment of the present application, the above-mentioned air gestures such as "image of the palm moving from right to left" and "image of the palm moving from left to right" may also be referred to as second air gestures, and the first air gesture moving from the first side to the second side may include the palm moving from right to left or from left to right.
[0205] Electronic devices can be used in Figure 5C In the user interface 320 shown in the figure, a user inputs an air gesture, for example, a user inputs an air gesture of "moving the palm from right to left" when facing the display screen. In response to the operation, the electronic device switches the shooting mode from single-lens shooting to multi-lens shooting, specifically switching the front-facing shooting mode to the front-facing shooting mode. Figure 5D-Figure 5E Before and after shots shown.
[0206] refer to Figure 5D , Figure 5D The user interface displayed by the electronic device when switching from front-facing shooting to front- and rear-facing shooting is exemplified.
[0207] like Figure 5D As shown, the contents of the user interface 320 are similar to Figure 5B The user interface 320 shown is similar, except that the shooting mode of the electronic device has been switched to the multi-lens shooting mode, so the multi-lens shooting 324E in the shooting mode option 324 is displayed as selected. Figure 5C The images captured by the camera 193 in real time displayed in the preview box 321 shown in the user interface 320 include: the user image 321A currently captured by the front camera, and the landscape image 321C currently captured by the rear camera. The display form of the image 321A and the image 321C is a left-right splicing form, and the image 321A will move from right to left and gradually reduce its display area according to the right-to-left air gesture input by the user, and finally be displayed on the left side of the preview box 321, while the image 321C will move from right to left and gradually increase its display area and finally be displayed on the right side of the preview box 321.
[0208] refer to Figure 5E , Figure 5E The user interface of the electronic device after switching from front-facing shooting to front-rear shooting is exemplified.
[0209] like Figure 5E As shown, image 321A is finally fixedly displayed on the left side of preview frame 321 , while image 321C is finally fixedly displayed on the right side of preview frame 321 .
[0210] It is understandable that the above Figure 5B-5E The switching effect of switching from front-facing shooting to front-facing shooting is only an example of the present application. In addition, there are other switching effects, as follows:
[0211] Figure 5F-5H Another switching effect when the electronic device switches from front shooting to front and back shooting is exemplified.
[0212] refer to Fig. 5F , Fig. 5F The user interface of the electronic device when displaying front-facing shooting is exemplarily shown.
[0213] like Fig. 5F As shown, the user interface 320 is Figure 5C The user interface shown is similar and will not be described here in detail.
[0214] Electronic devices can be used in Figure 5C In the user interface 320 shown in the figure, a user inputs an air gesture, for example, a user inputs an air gesture of "moving the palm from left to right" when facing the display screen. In response to the operation, the electronic device switches the shooting mode from single-lens shooting to multi-lens shooting, specifically switching the front-facing shooting mode to the front-facing shooting mode. Figure 5G-Figure 5H Before and after shots shown.
[0215] refer to Figure 5G , Figure 5G Another user interface when the electronic device displays a switch from front-facing shooting to front- and rear-facing shooting is exemplified.
[0216] like Figure 5G As shown, the contents of the user interface 320 are similar to Fig. 5F The user interface 320 shown is similar, except that the shooting mode of the electronic device has been switched to the multi-lens shooting mode, so the multi-lens shooting 324E in the shooting mode option 324 is displayed as selected. Figure 5G The images captured by the camera 193 in real time displayed in the preview box 321 shown in the user interface 320 include: the user image 321A currently captured by the front camera, and the landscape image 321C currently captured by the rear camera. The display form of the image 321A and the image 321C is a left-right splicing form, and the image 321A will move from left to right according to the air gesture input from left to right by the user and gradually reduce its display area and finally display on the right side of the preview box 321, while the image 321C will move from left to right and gradually increase its display area and finally display on the left side of the preview box 321.
[0217] refer to Figure 5H , Figure 5H Another user interface after the electronic device displays a switch from front-facing shooting to front- and rear-facing shooting is exemplified.
[0218] like Figure 5H As shown, image 321A is finally fixedly displayed on the right side of preview frame 321 , while image 321C is finally fixedly displayed on the left side of preview frame 321 .
[0219] It is worth noting that the above switching from single-lens shooting to multi-lens shooting is specifically introduced by taking the switching from front-end shooting to front-end shooting as an example. In addition, the switching from rear-end shooting to front-end shooting, etc., can also be carried out, which will not be described in detail in the embodiments of the present application. The front-end shooting can be the default shooting mode in the multi-lens shooting mode, and when there are multiple rear cameras, the rear working camera in the front-end shooting at this time is the default rear main camera of the electronic device.
[0220] It is understandable that the above Figure 5B-5E , Figure 5F-5H The switching effects of switching from front-facing shooting to front- and rear-facing shooting shown are only two examples of the present application. In addition to these, there are other switching effects, which are not limited in the embodiments of the present application.
[0221] based on Figure 5H Regarding the shooting scene, the following introduces a user interface for switching the display forms of multiple images during the front and back shooting process implemented on the electronic device.
[0222] Figure 6A-6C A series of user interfaces of an electronic device switching from left-right splicing to picture-in-picture in front and back shooting scenes are exemplified.
[0223] like Fig. 6A As shown, the user interface 320 is similar to the above Figure 5H The user interface shown is similar and will not be described here in detail.
[0224] Electronic devices can be used in Fig. 6A In the user interface 320 shown in the figure, a user inputs an air gesture, for example, a user inputs an air gesture of "extending a palm and then making a fist" when facing the display screen. In response to the operation, the electronic device changes the images of the front and back shooting scenes from the original Fig. 6A The left and right stitching shown is switched to picture-in-picture. For details, refer to Figure 6B-6C shown.
[0225] In the embodiments of the present application, Fig. 6A The shown “extending your palm and then making a fist” air gesture may be referred to as a second air gesture.
[0226] refer to Figure 6B , Figure 6B The user interface displayed by the electronic device when switching the image from left-right splicing to picture-in-picture in a front-to-back shooting scenario is exemplified.
[0227] like Figure 6B As shown in FIG. 1 , the display forms of the image 321A and the image 321C displayed in the preview box 321 in the user interface 320 are changed. Specifically, the image 321C and the image 321A are changed from the original Fig. 6AAs shown, the display of half on each side of the preview frame 321 changes to the display area of the image 321A captured by the front camera in the preview frame 321 gradually shrinking and moving toward the upper left corner of the preview frame 321, while the display area of the image 321C captured by the rear camera in the preview frame 321 gradually enlarges and moves toward the middle of the preview frame 321, until it is finally displayed in the entire area of the preview frame 321. It is worth noting that when the image 321C and the image 321A are switched in the display mode, the image 321A will be superimposed and displayed in a part of the image 321C.
[0228] refer to Figure 6C , Figure 6C The electronic device exemplarily shows a user interface in which images are displayed in a picture-in-picture format in a front and rear shooting scenario.
[0229] like Figure 6C As shown, the preview box 321 in the user interface 320 displays an image 321A and an image 321C, wherein the image 321A is superimposed on the image 321C, the display position of the image 321C is the entire preview box 321, and the display position of the image 321A is the upper left corner of the preview box 321. It is worth noting that when the image is displayed in the form of picture-in-picture, the display position of the image 321A can be the default display position of the electronic device, that is, the upper left corner of the preview box 321, or the user can set its display position and size. For example, the electronic device can detect that the user acts on the image 321A and drags it to adjust its display position to any place in the preview box 321. For another example, the electronic device can detect that the user acts on the image 321A with two fingers and pinches inward or expands outward to enlarge or reduce the image 321A, that is, adjust the size of the display area of the image 321A. The embodiment of the present application does not limit the display position and the size of the display area of the image 321A.
[0230] In the embodiments of the present application, Figure 6C The area where the image 321A is located can be called a fourth area, and the area where the image 321C is located can be called a fifth area. The fifth area here is the same as the first area described above, that is, a preview interface displayed by the electronic device.
[0231] It is understandable that electronic devices can be Fig. 6A After the air gesture of "extending your palm and then making a fist" is detected in the user interface shown, the Figure 6C The user interface shown can also be found in Figure 6C After the air gesture of "extending your palm and then making a fist" is detected in the user interface shown, the Fig. 6A The user interface shown.
[0232] based on Figure 5HRegarding the shooting scene, some user interfaces implemented on the electronic device for switching from front and rear shooting to front shooting or rear shooting are introduced below.
[0233] Figure 7A-7C The example shows a series of user interfaces displayed when an electronic device switches from front-facing shooting to front-facing shooting.
[0234] like Fig. 7A As shown, the user interface 320 is similar to the above Figure 5H The user interface shown is similar and will not be described here in detail.
[0235] Electronic devices can be used in Fig. 7A In the user interface 320 shown in the figure, a user inputs an air gesture, for example, a user inputs an air gesture of "moving the palm from right to left" when facing the display screen. In response to the operation, the electronic device switches the shooting mode from multi-lens shooting to single-lens shooting, specifically switching the front and back shooting to Figure 7B Front shot shown.
[0236] In the embodiments of the present application, Fig. 7A The shown “palm moving from right to left” air gesture can be called a third gesture.
[0237] refer to Figure 7B , Figure 7B The user interface displayed by the electronic device when switching from front- and rear-facing shooting to front-facing shooting is exemplified.
[0238] like Figure 7B As shown, the shooting mode option 324 in the user interface 320 is represented by Fig. 7A The multi-lens shooting 324E is changed to the photo taking 324D is selected. In addition, Figure 7B The display forms of the images 321A and 321C displayed in the preview frame 321 shown in the figure have changed. Specifically, the image 321C and the image 321A have changed from the original Fig. 7A As shown, the half displayed on the left and right sides of the preview frame 321 is changed to that the image 321C on the left side of the preview frame 321 moves from right to left and gradually reduces its display area according to the user's input "palm moving from right to left" air gesture, until it stops displaying on the left side of the preview frame 321, and the image 321A moves from left to right and gradually increases its display area until it is finally displayed in the entire area of the preview frame 321.
[0239] refer to Figure 7C , Figure 7C The user interface of the electronic device after switching from front- and rear-facing shooting to front-facing shooting is exemplified.
[0240] like Figure 7CAs shown, the preview box 321 in the user interface 320 only displays the image 321A captured by the front camera.
[0241] Figure 7D-7F The example shows a series of user interfaces displayed when an electronic device switches from front- and rear-facing shooting to rear-facing shooting.
[0242] like Fig.7D As shown, the user interface 320 is similar to the above Figure 5H The user interface shown is similar and will not be described here in detail.
[0243] Electronic devices can be used in Fig.7D In the user interface 320 shown in the figure, a user inputs an air gesture, for example, a user inputs an air gesture of "moving the palm from left to right" when facing the display screen. In response to the operation, the electronic device switches the shooting mode from multi-lens shooting to single-lens shooting, specifically switching the front and back shooting to Fig. 7E Rear shot shown.
[0244] refer to Fig. 7E , Fig. 7E The user interface of an electronic device when switching from front- and rear-view shooting to rear-view shooting is exemplified.
[0245] like Fig. 7E As shown, the shooting mode option 324 in the user interface 320 is represented by Fig.7D The multi-lens shooting 324E is changed to the photo shooting 324D is selected. In addition, Figure 6B The display forms of the images 321A and 321C displayed in the preview frame 321 shown in the figure have changed. Specifically, the image 321C and the image 321A have changed from the original Fig. 6A As shown, half of the preview frame 321 is displayed on the left and right sides respectively, and the image 321A on the right side of the preview frame 321 moves from left to right and gradually reduces its display area according to the user's input "palm moving from left to right" air gesture, until it stops displaying on the right side of the preview frame 321, and the image 321C moves from left to right and gradually increases its display area until it is finally displayed in the entire area of the preview frame 321.
[0246] refer to Figure 7F , Figure 7F The user interface of the electronic device after switching from front- and rear-camera shooting to rear-camera shooting is exemplified.
[0247] like Figure 7F As shown, the preview frame in the user interface 320 only displays the image 321C captured by the rear camera.
[0248] based on Figure 7FRegarding the single-lens shooting scenario, the following describes a user interface for switching cameras in the single-lens shooting mode implemented on an electronic device.
[0249] Figure 8A-B The diagram exemplifies a series of user interfaces displayed when an electronic device switches from rear-view camera to front-view camera.
[0250] like Fig. 8A As shown, the user interface 320 is similar to the above Figure 7F The user interface shown is similar and will not be described here in detail.
[0251] Electronic devices can be used in Fig. 8A The user interface 320 shown detects a user input of an air gesture, for example, when facing the display screen, the user inputs a continuous air gesture of "extending the palm and then making a fist and rotating the wrist in a circle". In response to this operation, the electronic device switches the rear-view camera to the front-view camera. The electronic device is still in the single-lens shooting mode, and only the working camera in the single-lens mode is switched, so that the image in the preview frame 321 is changed from Fig. 8A The image 321C shown switches to Figure 8B An image 321A of the user is shown.
[0252] like Figure 8B As shown, the user interface 320 is similar to the above Figure 7C The user interfaces shown are the same and will not be described in detail here.
[0253] It is worth noting that when the electronic device is in a single-lens shooting mode, for example, specifically in a rear-camera shooting mode, and detects the above-mentioned continuous air gesture of "extending your palm, then making a fist, and rotating your wrist in a circle", the electronic device can switch the rear camera to the front camera by default, or when the electronic device has multiple rear cameras, the electronic device can switch the rear camera to another rear camera for shooting. Similarly, when the electronic device is specifically in a front-camera shooting mode, and detects the above-mentioned continuous air gesture of "extending your palm, then making a fist, and rotating your wrist in a circle", the electronic device can switch the front camera to the rear camera by default, and when the electronic device has multiple rear cameras, the electronic device can silently switch the front camera to the rear main camera for shooting. The embodiments of the present application are not limited to this.
[0254] In the embodiment of this application, Fig. 8A The shown "extending your palm, then making a fist and circling your wrist" can be called the fourth air gesture.
[0255] based on Figure 5H Regarding the multi-lens shooting scenario, the following introduces a user interface for switching working cameras in the multi-lens shooting mode implemented on an electronic device.
[0256] It is worth noting that switching the working camera in the multi-lens shooting mode can only be achieved when the number of front cameras or rear cameras of the electronic device is greater than or equal to two. The following UI embodiments of this application take the rear camera of the electronic device as an example, which includes two cameras, specifically: a normal camera and a wide-angle camera. Among them, the normal camera is a concept relative to the wide-angle camera and has no other special meaning. The image 321C taken by the rear camera in all the above embodiments is an image taken by the normal camera.
[0257] In the embodiment of the present application, the wide-angle camera has a larger field of view (also called field of view, FOV) than an ordinary camera, so when the electronic device simultaneously uses another rear camera such as an ordinary camera and a wide-angle camera for shooting, the field of view of the same image displayed in the preview frame is different.
[0258] Figure 9A-9B The example shows a series of user interfaces displayed when the electronic device switches from front-to-back shooting to rear-to-rear shooting.
[0259] like Fig. 9A As shown, the user interface 320 is similar to the above Figure 5H The user interface shown is similar and will not be described here in detail.
[0260] Electronic devices can be used in Fig. 9A The user interface 320 shown detects an air gesture input by the user, for example, when facing the display screen, the user inputs a continuous air gesture of "extending the palm and then making a fist and rotating the wrist in a circle". In response to this operation, the electronic device switches the front and back shooting to back-to-back shooting or front and back shooting, where the original "front and back" refer to the ordinary camera in the front camera and the rear camera respectively, and the "back-to-back" after the switch refers to the ordinary camera and the wide-angle camera in the rear camera respectively, or the "front and back" after the switch refers to the wide-angle camera in the front camera and the rear camera respectively. That is to say, the electronic device can switch the working camera corresponding to the right image in the preview frame 321 before the switch to the next camera, or switch the working camera corresponding to the left image in the preview frame 321 to the next camera. The embodiment of the present application does not limit this. Although the electronic device is still in the multi-lens shooting mode, the working camera in the multi-lens mode has been changed, so that the electronic device displays as follows. Fig. 9B The user interface shown.
[0261] like Fig. 9B As shown, the image displayed in the preview box 321 of the user interface 320 is Fig. 9AThe images 321C and 321A shown are switched to 321C and 321D. Image 321C is an image taken by a normal camera in the rear camera, and image 321D is an image taken by a wide-angle camera in the rear camera. It can be seen that image 321D has a larger viewing range than image 321C.
[0262] In the embodiment of this application, Fig. 9A The shown "extending your palm, then making a fist and circling your wrist" can be called the fourth air gesture. Fig. 9B The image 321C shown may also be called the third image, and the camera used to obtain the third image may be called the fourth camera.
[0263] Understandably, Figure 9A-9B Only an example of switching the working camera in the multi-lens shooting mode is shown. When the front camera or the rear camera of the electronic device also includes a larger number of other cameras, the electronic device can also switch the working camera in the multi-lens shooting mode to other cameras according to the air gesture for switching the working camera. The embodiments of the present application are not elaborated here.
[0264] based on Figure 5H Regarding the multi-lens shooting scenario, the following describes a user interface for taking photos and saving pictures on an electronic device.
[0265] Figure 10A-10C A series of user interfaces displayed on an electronic device for taking photos and saving pictures are exemplified.
[0266] like Fig. 10A As shown, the user interface 320 is similar to the above Figure 5H The user interface 320 shown is similar and will not be described in detail here.
[0267] Electronic devices can be Fig. 10A In the user interface shown in FIG. 1 , an air gesture input by a user is detected, such as a continuous air gesture of “extending a fist and moving it in the backward direction (opposite to the display screen)”. The electronic device can save the images currently displayed in the preview box, namely, images 321A and 321C, as picture files, and display thumbnails of the picture files on the gallery shortcut control 325. For details, see Fig. 10B .
[0268] like Fig. 10B As shown, the thumbnails on the gallery shortcut control 325 in the user interface 320 are thumbnails of the pictures taken above. Fig. 10B In the user interface shown in FIG. 1 , an operation of a user on the gallery shortcut control 325 is detected. In response to the operation, the electronic device can open the image file and display the image file as shown in FIG. Fig. 10C The user interface shown.
[0269] like Fig. 10C As shown, the user interface 320 displays the most recently saved images, which simultaneously display the image 321A and the image 321C.
[0270] Based on the electronic device and the UI embodiment described above, the following embodiment introduces the shooting method provided by the present application. Fig.11 As shown, the method may include:
[0271] Stage 1 (S101-S103): Open the photo preview interface.
[0272] S101, the electronic device starts a camera application.
[0273] For example, the electronic device can detect the effect of Figure 3A A touch operation on the camera icon 311 is performed (such as a click operation on the icon 311), and a camera application is started in response to the operation.
[0274] S102: The electronic device starts a first camera.
[0275] Specifically, the first camera can be a front camera or a rear camera. Specifically, for example, in a front shooting scene, the first camera is a front camera, which is used to shoot the scenery opposite the display screen; in a rear shooting scene, the first camera is a rear camera, which is used to shoot the scenery opposite the display screen.
[0276] S103: The electronic device displays a preview interface, wherein the preview interface displays a first image from the first camera. The first image may be acquired in real time by the first camera, or may be cropped from an image acquired by the first camera.
[0277] like Figure 3B As shown, the user interface 320 includes a preview box 321, a flash control 322, a setting control 323, a shooting mode option 324, a gallery shortcut control 325, a shutter control 326, a camera switch control 327 and other controls. The functions of these controls can refer to the description in the aforementioned UI embodiment, which will not be repeated here.
[0278] by Figure 3B Taking the preview interface shown in the figure as an example, the first image displayed in the preview frame 321 may be from the first camera of the electronic device, for example, it may be image 321A captured by the front camera of the electronic device.
[0279] Stage 2 (S104-S105): Switching from single-lens shooting mode to multi-lens shooting mode.
[0280] S104: The electronic device detects a first air gesture input by the user.
[0281] In some embodiments, the electronic device can capture an image of the user based on a camera. When the user image includes an image of the user's hand, the processor of the electronic device can determine that the user has input a first air gesture based on multiple consecutive hand images captured by the camera. The above-mentioned first air gesture can be the "palm" air gesture, the "fist" air gesture, the "palm moving from right to left" air gesture, and the "palm moving from left to right" air gesture mentioned in the aforementioned embodiments, etc.
[0282] Specifically, the camera involved in the first air gesture input by the electronic device to determine the user may be the first camera mentioned above, or may be an independent low-power camera, wherein the independent low-power camera may also be referred to as a third camera.
[0283] When an electronic device uses a low-power camera to identify air gestures, specifically, the frame rate of the low-power camera is lower than the frame rate of an ordinary camera working in a non-low-power mode and the output image is in black and white format. Usually, an ordinary camera can output 30 frames of images, 60 frames of images, 90 frames of images, and 240 frames of images in 1 second. However, a low-power camera can output, for example, 2.5 frames of images in 1 second, and when the camera captures the first image representing the same air gesture, the low-power camera can switch to output 10 frames of images in 1 second, so as to accurately identify the operation instructions corresponding to the air gesture through continuous multiple image recognition, and at the same time reduce power consumption compared to ordinary cameras working in low-power mode. The ordinary camera here can be, for example, the first camera mentioned above, and "ordinary" is relative to "low power consumption", and its name has no other meaning.
[0284] When the electronic device recognizes air gestures through the first camera, if the electronic device is in a rear-facing shooting scene at this time, for example, using a rear-facing ordinary camera or a rear-facing wide-angle camera for shooting, the first camera used to collect the user's hand image is the front-facing ordinary camera, and the front-facing ordinary camera works in a low-power mode, wherein the working principle of the front-facing camera working in low-power mode is similar to the working principle of the above-mentioned low-power camera, which will not be elaborated here; if the electronic device is in a front-facing shooting scene at this time, for example, using a front-facing ordinary camera for shooting, the first camera used to collect the user's hand image is the front-facing ordinary camera, and the front-facing ordinary camera works in a low-power mode, the first camera can collect the scenery opposite the display screen, and also collect the hand image input by the user, which will not be elaborated here.
[0285] It can be understood that the above-mentioned camera for capturing images corresponding to user gestures can start working by default when an application is opened on the electronic device, or start working by default when the first image captured by the first camera is displayed in the first preview box, or start working after receiving an operation input by the user, such as turning on the "air gesture recognition function" in the settings, and after the above-mentioned camera starts working, it can continue to work, such as continuously capturing images, or work periodically, that is, starting to continuously capture images at regular intervals. The embodiment of the present application does not limit the working time of the above-mentioned camera.
[0286] In other embodiments of the present application, the electronic device can collect the user's hand motion data by emitting, for example, infrared rays through the proximity light sensor 180G, or can also collect the user's hand motion data through input devices such as gloves worn by the user, and the processor of the electronic device can determine that the user has input a first air gesture based on these hand data. The above-mentioned first air gesture can be the "palm" air gesture mentioned in the aforementioned embodiments, the "fist" air gesture, the "palm moving from right to left" air gesture, and the "palm moving from left to right" air gesture, etc.
[0287] S105: The electronic device may display a first image from the first camera and a second image from the second camera in a preview interface, where content of the second image is different from content of the first image.
[0288] The second camera can be a front camera or a rear camera. The details are as follows:
[0289] In the above step S103, if the first image captured by the first camera is specifically a scene opposite the electronic device display screen captured by the front ordinary camera, then the second image displayed in the preview interface at this time is an image captured by other cameras except the front ordinary camera, for example, it can be a scene captured by any one or more cameras including the front wide-angle camera, the rear ordinary camera or the rear wide-angle camera.
[0290] In the above step S103, if the first image captured by the first camera is a scene captured by the rear ordinary camera on the back of the electronic device display screen, then the second image displayed in the preview interface at this time is an image captured by other cameras except the rear ordinary camera, for example, it can be a scene captured by any one or more camera heads of the rear ordinary camera, the front wide-angle camera, or the rear wide-angle camera.
[0291] That is to say, no matter whether the image captured by the front ordinary camera or the rear ordinary camera is displayed in the preview interface of the electronic device in step S103, when the electronic device detects the first air gesture input by the user, the electronic device displays the images captured simultaneously by multiple cameras in the preview interface.
[0292] It can be understood that the above-mentioned ordinary camera is relative to the low-power camera or the wide-angle camera or other cameras. In other implementations of this application, the ordinary camera can also be called the main camera, and this application does not limit this name.
[0293] like Figure 4B-4C As shown, after the user inputs the first air gesture, and the first air gesture is "palm", the electronic device can switch the front shooting to the front and rear shooting, and at the same time, in the preview frame, the image captured by the original front ordinary camera is switched to display the images captured by the front ordinary camera and the rear ordinary camera, that is, the first image captured by the first camera is switched to display an image synthesized by the first image captured by the first camera and the second image captured by the second camera. The display form of the first image and the second image is a left-right or top-bottom splicing method. Moreover, in the process of switching images, it can be a direct switch, or it can be a default switching effect, for example, the first image gradually moves to one side of the preview frame (lower or left side) and gradually reduces the display area, and the second image gradually appears on the other side of the preview frame (upper or right side) and gradually increases the display area. For specific implementation methods, please refer to the aforementioned Figure 4B to Figure 4C The UI implementation example will not be described in detail here.
[0294] like Figure 4D-4E As shown, after the user inputs the first air gesture, and the first air gesture is "clenching a fist", the electronic device can switch the front shooting to the front and rear shooting, and at the same time, in the preview frame, the image captured by the original front ordinary camera is switched to display the images captured by the front ordinary camera and the rear ordinary camera, that is, the first image captured by the first camera is switched to display an image synthesized by the first image captured by the first camera and the second image captured by the second camera. The display form of the first image and the second image is a picture-in-picture superposition. Moreover, in the process of switching images, it can be a direct switch, or it can be a default switching effect, for example, the first image gradually moves to the upper left corner of the preview frame and gradually reduces the display area, the second image gradually appears in the preview frame and gradually increases the display area, and the first image is superimposed on the second image. For specific implementation methods, please refer to the aforementioned Figure 4D-4E The UI implementation example will not be described in detail here.
[0295] like Figure 5B-5EAs shown, after the user inputs the first air gesture, which is a continuous air gesture of "palm moving from right to left", the electronic device can switch the front shooting to front and rear shooting, and at the same time, in the preview frame, switch the image captured by the original front ordinary camera to display the image captured by the front ordinary camera and the rear ordinary camera, that is, switch the first image captured by the first camera to display the image synthesized by the first image captured by the first camera and the second image captured by the second camera. The display form of the first image and the second image is a left-right or top-bottom splicing. Moreover, in the process of switching images, the corresponding switching effect can be displayed according to the moving direction of the "palm" in the first air gesture input by the user. For example, the first image will move from right to left according to the air gesture from right to left input by the user and gradually reduce its display area and finally display on the left side of the preview frame 321. The second image will move from right to left and gradually increase its display area and finally display on the right side of the preview frame 321. For specific implementation methods, please refer to the aforementioned Figure 5B-5E The UI implementation example will not be described in detail here.
[0296] like Figure 5F-5H As shown, after the user inputs the first air gesture, which is a continuous air gesture of "palm moving from left to right", the electronic device can switch the front shooting to front and rear shooting, and at the same time, in the preview frame, the image captured by the original front ordinary camera is switched to display the images captured by the front ordinary camera and the rear ordinary camera, that is, the first image captured by the first camera is switched to display an image synthesized by the first image captured by the first camera and the second image captured by the second camera. The display form of the first image and the second image is a left-right or top-bottom splicing. Moreover, in the process of switching images, the corresponding switching effect can be displayed according to the moving direction of the "palm" in the first air gesture input by the user. For example, the first image will move from left to right according to the air gesture from left to right input by the user and gradually reduce its display area and finally display on the right side of the preview frame 321. The second image will move from left to right and gradually increase its display area and finally display on the left side of the preview frame 321. For specific implementation methods, please refer to the aforementioned Figure 5F-5H The UI implementation example will not be described in detail here.
[0297] Stage 3 (S106-S107): Switching the display form of multiple images in the multi-lens shooting mode.
[0298] S106. The electronic device detects that the user inputs a second air gesture.
[0299] Regarding the method for the electronic device to detect the second air gesture input by the user, specific reference can be made to the method for detecting the first air gesture described above, which will not be described here one by one. Next, take the detection through the camera as an example for explanation. The specific electronic device can detect the user inputting the second air gesture based on the image of the user captured by the camera. Specifically, the electronic device can capture the image of the user's hand through the camera. When the above-mentioned hand image contains the image of the palm, the electronic device can determine that the user inputs the second air gesture based on multiple consecutive hand images captured by the camera. The above-mentioned second air gesture can be the continuous air gesture of "extending your palm and then making a fist" mentioned in the aforementioned UI embodiment.
[0300] S107: The electronic device may switch the left-right splicing display mode of the first image and the second image to a picture-in-picture overlay display mode in the preview interface.
[0301] like Figure 6A-6C As shown, when the electronic device is in multi-lens shooting mode and the preview interface displays a first image from the first camera and a second image from the second camera, in response to the second air gesture detected, the electronic device can switch the original left-right splicing display form of the first image and the second image to a picture-in-picture overlay form in the preview interface. In the process of switching the display form of the image, the switching effect can be, for example, that the first image and the second image are switched from the original left-right splicing display form to the picture-in-picture overlay form. Fig. 6A As shown, the preview frame 321 is displayed in half on the left and right sides, and the display area of the first image captured by the front camera in the preview frame 321 gradually decreases and moves to the upper left corner of the preview frame 321, while the display area of the second image captured by the rear ordinary camera in the preview frame 321 gradually increases and moves to the middle of the preview frame 321, until it is finally displayed in the entire area of the preview frame 321. It is worth noting that when the first image and the second image are switched in the display mode, the first image will be superimposed and displayed in a partial area of the second image. For specific implementation methods, please refer to the aforementioned Figure 6A-6C The UI implementation example will not be described in detail here.
[0302] Stage 4 (S108-S109): Switching from the multi-lens shooting mode to the single-lens shooting mode.
[0303] S108. The electronic device detects that the user inputs a third air gesture.
[0304] Regarding the method for the electronic device to detect the third air gesture input by the user, specific reference can be made to the method for detecting the first air gesture described above, which will not be described here one by one. Next, take the detection through the camera as an example for explanation. The specific electronic device can detect the user inputting the third air gesture based on the image of the user captured by the camera. Specifically, the electronic device can capture the image of the user's hand through the camera. When the above-mentioned hand image contains the image of the palm, the electronic device can determine that the user indicates the third air gesture based on multiple continuous hand images captured by the first camera. The above-mentioned third air gesture can be the "palm moving from right to left" air gesture mentioned in the aforementioned embodiment, and the "palm moving from left to right" air gesture, and so on.
[0305] S109: The electronic device may display the first image from the first camera in a preview interface.
[0306] Specifically, the electronic device can switch the original image synthesized by simultaneously displaying the first image captured by the first camera and the second image captured by the second camera to the first image from the first camera in the preview interface.
[0307] like Figure 7A-7C As shown, after the user inputs the third air gesture, which is a continuous air gesture of "palm moving from right to left", the electronic device can switch the front and rear shooting to the front shooting, and at the same time, in the preview frame, the images captured by the original front ordinary camera and the rear ordinary camera are switched to display the image captured by the front ordinary camera, that is, the image synthesized by the first image captured by the first camera and the second image captured by the second camera is switched to display the first image captured by the first camera. Moreover, in the process of switching images, the corresponding switching effect can be displayed according to the moving direction of the "palm" in the third air gesture input by the user. For example, the second image will move from right to left according to the right-to-left air gesture input by the user and gradually reduce its display area and finally stop displaying on the left side of the preview frame 321. The first image will move from right to left accordingly and gradually increase its display area and finally display in the entire area of the preview frame 321. For specific implementation methods, please refer to the aforementioned Figure 7A-7C The UI implementation example will not be described in detail here.
[0308] like Figure 7D-7FAs shown, after the user inputs the third air gesture, which is a continuous air gesture of "palm moving from left to right", the electronic device can switch the front and rear shooting to the front shooting, and at the same time, in the preview frame, the images captured by the original front ordinary camera and the rear ordinary camera are switched to display the image captured by the front ordinary camera, that is, the image synthesized by the first image captured by the first camera and the second image captured by the second camera is switched to display the first image captured by the first camera. Moreover, in the process of switching images, the corresponding switching effect can be displayed according to the moving direction of the "palm" in the third air gesture input by the user. For example, the first image will move from left to right according to the air gesture from left to right input by the user and gradually reduce its display area and finally stop displaying on the right side of the preview frame 321. The second image will move from left to right accordingly and gradually increase its display area and finally display in the entire area of the preview frame 321. For specific implementation methods, please refer to the aforementioned Figure 7D-7F The UI implementation example will not be described in detail here.
[0309] Stage 5 (S110): trigger shooting and save the image.
[0310] S110: The electronic device detects a user operation indicating a trigger for photographing, and saves the photographed image.
[0311] The user operation of instructing to trigger shooting may include triggering taking pictures and recording videos. Figure 3B A click operation on the shutter control 326 shown. Alternatively, the user operation indicating triggering shooting may also be that the electronic device acts on a control set in the selfie stick, such as pressing a photo control or a video control, to trigger the electronic device to take a photo and save a picture, or to record and save a video. Alternatively, the user operation indicating triggering shooting may be that the electronic device triggers taking a photo by detecting that the user inputs a fourth air gesture, triggers the start of recording by detecting a fifth air gesture, and triggers the end of recording and saving a video by detecting the fifth air gesture.
[0312] The fourth air gesture may be that the electronic device can detect that the user inputs the fourth air gesture based on the image of the user captured by the camera. Specifically, the electronic device can capture the image of the user's hand through the camera. When the image of the hand contains an image of a clenched fist, the electronic device can determine that the user inputs the fourth air gesture based on multiple consecutive hand images captured by the first camera. The fourth air gesture may be the continuous air gesture of "extending your fist and moving it backward (opposite the display screen)" mentioned in the aforementioned UI embodiment.
[0313] like Figure 10A-10CAs shown, when the electronic device is in multi-lens shooting mode and the preview interface displays the first image and the second image from the first camera, in response to the fourth air gesture detected, the electronic device can save the first image and the second image currently displayed in the preview interface as a picture file. When the electronic device detects that the gallery shortcut control 325 is acting on it, it can open the most recently saved picture file, which displays the first image and the second image at the same time, and the first image and the second image are in the form of left and right splicing. For specific implementation methods, please refer to the aforementioned Figure 6A-6C The UI implementation example will not be described in detail here.
[0314] The fifth air gesture may be a continuous air gesture of "extending a fist and moving it in the forward (display) direction". The detailed process of the electronic device detecting the fifth air gesture to trigger the start of recording and detecting the fifth air gesture again to trigger the end of recording and saving the video will not be described here.
[0315] In the embodiment of the present application, the operation for triggering the start of recording may be referred to as a first operation, and the operation for ending recording may be referred to as a second operation.
[0316] The embodiment of the present application does not limit the time when the electronic device detects the user operation indicating triggering shooting. For example, the electronic device may detect the user operation indicating triggering shooting after the above-mentioned stage 2, that is, after the single-lens shooting mode is switched to the multi-lens shooting mode. Alternatively, the electronic device may detect the user operation indicating triggering shooting after the above-mentioned stage 3, that is, after the display form of multiple images in the multi-lens shooting mode is switched, or after stage 4, that is, after the multi-lens shooting mode is switched to the single-lens shooting mode. The electronic device may detect the user operation indicating triggering shooting after first passing through the above-mentioned stage 2 and then passing through the above-mentioned stage 4, that is, first switching the single-lens shooting mode to the multi-lens shooting mode and then switching the multi-lens shooting mode to the single-lens shooting mode. The electronic device may also detect the user operation indicating triggering shooting after first passing through the above-mentioned stage 4 and then passing through the above-mentioned stage 2, that is, first switching the multi-lens shooting mode to the single-lens shooting mode and then switching the single-lens shooting mode to the multi-lens shooting mode.
[0317] In some other embodiments of the present application, the above method further includes: switching the working camera. Specifically, in a single-lens shooting scenario, switching the working camera to another camera for operation, or in a multi-lens shooting scenario, switching any one or more of the working cameras to any other one or more cameras, which is specifically implemented as follows:
[0318] The electronic device can detect that the user inputs the sixth air gesture. Specifically, the electronic device can capture an image of the user's hand through a camera. When the above-mentioned hand image includes an image of the palm, the electronic device can determine that the user inputs the sixth air gesture based on multiple consecutive hand images captured by the camera. The above-mentioned sixth air gesture can be the continuous air gesture of "extending your palm, then making a fist and circling your wrist" mentioned in the aforementioned UI embodiment.
[0319] like Figure 8A-B As shown, before the electronic device switches the working camera, when the preview interface displays the second image from the second camera, that is, the image 321C taken by the rear camera, in response to the detection of the sixth air gesture, the electronic device can switch the original second image from the second camera to the first image from the first camera, that is, the image 321A taken by the front camera in the preview interface. For specific implementation methods, please refer to the aforementioned Figure 8A-B The UI implementation example will not be described in detail here.
[0320] like Figure 9A-9B As shown, before the electronic device switches the working camera, the preview interface displays an image composed of the first image from the first camera and the second image from the second camera. In response to the detection of the sixth air gesture, the electronic device can switch the original image composed of the first image from the first camera and the second image from the second camera to an image composed of the second image from the second camera and the third image from the third camera in the preview interface. The second image is still an image taken by the rear ordinary camera, and the third image can be an image taken by the rear wide-angle camera. The specific implementation method can refer to the aforementioned Figure 8A-B The UI implementation example will not be described in detail here.
[0321] It can be understood that the series of gestures used to control the electronic device to switch shooting modes in different shooting scenarios are not limited to the above-mentioned exemplified gestures. For example, in switching the working camera through the sixth gesture, the sixth gesture mentioned above, namely the continuous air gesture of "extending your palm and then clenching your fist and circling your wrist", can also be replaced by other gestures, such as the gesture of "extending your palm and then turning your palm over", including turning from the palm to the back of the hand or the back of the hand to the palm to control the switching of the working camera.
[0322] It can be seen that the shooting method provided in the embodiment of the present application allows the user to switch the shooting mode of the electronic device through a single-handed gesture in the air, specifically including the ability to freely switch between single-lens shooting and multi-lens shooting, and switch one of the working cameras in the single-lens shooting mode or the multi-lens shooting mode, etc. Especially for scenes where one camera, such as a front camera, is used for shooting, the user generally stretches out his arm or uses a selfie stick to shoot. At this time, when the user wants to switch to multi-lens shooting and shoot himself and others at the same time or himself and the scenery at the same time to record the beautiful moments, the shooting method provided in the embodiment of the present application allows the user to switch the shooting mode conveniently, so that the image displayed in the preview frame is changed from the original image shot by the front camera to an image shot by the front camera and the rear camera at the same time. In this way, the user does not need to repeatedly bring the electronic device closer and adjust the shooting mode of the electronic device by touching the screen of the electronic device with his fingers.
[0323] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.
[0324] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in this application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can 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 can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk), etc.
[0325] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0326] In short, the above description is only an embodiment of the technical solution of the present invention, and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope of the present invention.
Claims
1. A shooting method, the method being applied to an electronic device comprising a display screen, a first camera and a second camera; It is characterized in that The method comprises: Displaying a preview interface on the display screen, wherein a first area in the preview interface displays a first image, the first area being the entire area of a preview frame in the preview interface, and the first image corresponds to the first camera; A first gesture is detected, the first gesture does not act on the display screen and physical buttons of the electronic device, and the first gesture is a gesture of moving from a first side to a second side; In response to the first gesture, controlling the image display area corresponding to the first camera in the preview interface to be reduced from the first area to a second area; In the process of reducing the image display area corresponding to the first camera from the first area to the second area in the preview interface, controlling the second area to move from the first side to the second side; The first image is displayed in the second area, and the second image is displayed in the third area, where the third area is other areas of the preview frame except the second area, and the second image corresponds to the second camera.
2. The method according to claim 1, It is characterized in that The electronic device further includes a third camera; The first gesture is detected, including: The first gesture is detected by the third camera, the frame rate of the third camera is lower than the frame rates of the first camera and the second camera, or the pixel of the third camera is lower than the pixel of the first camera and the second camera, or the third camera outputs a black and white image.
3. The method according to claim 1 or 2, It is characterized in that After displaying the first image in the second area and displaying the second image in the third area, the method further includes: A first operation is detected, and in response to the first operation, a shooting interface is displayed and video recording starts, wherein the shooting interface includes the first area and the second area; A second operation is detected, and in response to the second operation, video recording is ended and a video file is generated.
4. The method according to claim 1 or 2, It is characterized in that Before detecting the first gesture, the method further includes: First prompt information is displayed in the preview interface, wherein the first prompt information includes a hand image, and the hand image indicates a gesture of moving from the first side to the second side.
5. The method according to claim 1 or 2, It is characterized in that After displaying the first image in the second area and displaying the second image in the third area, the method further includes: A second gesture is detected, and the second gesture does not act on the display screen and the physical button; In response to the second gesture, the first image from the first camera is displayed in the fourth area in the preview frame, and the second image from the second camera is displayed in the fifth area in the preview frame; the fourth area is located in the fifth area.
6. The method according to claim 1 or 2, It is characterized in that After displaying the first image in the second area and displaying the second image in the third area, the method further includes: A third gesture is detected, and the third gesture does not act on the display screen and the physical button; In response to the third gesture, the second image is stopped from being displayed in the third area, and the first image is displayed in the first area.
7. The method according to claim 1 or 2, It is characterized in that The electronic device further includes a fourth camera, and after the first image is displayed in the second area and the second image is displayed in the third area, the method further includes: A fourth gesture is detected, and the fourth gesture does not act on the display screen and the physical button; The second image displayed in the third area is switched to a third image, where the third image corresponds to the fourth camera.
8. The method according to claim 1 or 2, It is characterized in that The electronic device further includes a fifth camera, and before the first area in the preview interface displays the first image, the method further includes: Displaying a fourth image in the first area of the preview interface, the fourth image corresponding to the fifth camera; A fourth gesture is detected, and the fourth gesture does not act on the display screen and the physical button; In response to the fourth gesture, stopping displaying the fourth image in the first area in the preview interface.
9. An electronic device, It is characterized in that The electronic device includes: a display screen, M cameras, one or more processors and one or more memories; M≥2, M is a positive integer; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer executable programs, and when the one or more processors execute the computer executable programs, the electronic device executes the method described in any one of claims 1-8.
10. A computer-readable storage medium comprising a computer-executable program, It is characterized in that When the computer executable program runs on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 8.
