Photographing method, electronic equipment and storage medium
By installing a motion sensor on the flexible display screen of the electronic device, the user's flipped selfie action is recognized and the rear camera is automatically switched to the rear camera to take selfie, which solves the problem of cumbersome operation of manually switching cameras and improves the convenience of selfies.
Patent Information
- Application Number
- CN202311215558.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-19
- Publication Date
- 2025-03-28
AI Technical Summary
In electronic devices equipped with folding screens, users need to manually switch the front camera and rear camera for selfies, which is cumbersome.
By installing a motion sensor on the flexible display of the electronic device, the user's flip Selfie action is recognized and automatically switches to the rear camera Selfie.
It realizes that electronic devices automatically recognize the user's intention to take selfies through the rear camera, reduces user operations and improves the convenience of selfies.
Smart Images

Figure CN119729186A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a photographing method, an electronic device and a storage medium. Background Art
[0002] With the rapid development of digital technology, smart terminal devices have become indispensable items in people's lives.
[0003] At present, flexible screens have attracted much attention for their unique characteristics and huge potential. Compared with traditional screens, flexible screens are more flexible and bendable, which can provide users with new interaction methods based on bendable characteristics and meet users' more needs for electronic devices. For electronic devices equipped with foldable screens, the foldable display screen on the electronic device can be switched between a small screen in the folded form and a large screen in the unfolded form at any time.
[0004] The folding screen may include an upper and lower folding screen and an outer folding screen. Both the upper and lower folding screen and the outer folding screen include a front camera and a rear camera. The folding screen can be switched back and forth between a folded state and an unfolded state. When the folding screen is in the folded state, the user can manually switch to the front camera for selfies or manually switch to the rear camera for selfies, which is cumbersome for the user to operate. Summary of the invention
[0005] The present application provides a photographing method, an electronic device and a storage medium, which enable the electronic device to recognize the user's intention to take a selfie with the rear camera and automatically switch to the rear camera to take a selfie, saving user operation.
[0006] In a first aspect, the present application provides a photographing method, which is applied to an electronic device including a flexible display screen, wherein the flexible display screen includes a first display screen and a second display screen, the first display screen includes a front camera and a first motion sensor, the back of the first display screen includes a rear camera, and when the flexible display screen is in a folded state, the first display screen and the second display screen are arranged opposite to each other, and the method includes: the electronic device receives a first user operation; in response to the first user operation, the electronic device displays a first selfie picture on the first display screen, the first selfie picture includes a face image, and the first selfie picture is a picture frame captured by the front camera; the electronic device receives a second user operation; the electronic device obtains first motion data captured by the first motion sensor; the electronic device determines that the second user operation is a flip selfie action based on the first motion data; in response to the second user operation being a flip selfie action, the electronic device turns on the rear camera and displays a second selfie picture on the second display screen, and the second selfie picture is a picture frame captured by the rear camera.
[0007] Through this method, the electronic device can recognize the user's intention to take a selfie with the rear camera and automatically switch to the rear camera to take a selfie, saving user operations.
[0008] In combination with the first aspect, in a possible implementation method, the electronic device determines that the second user operation is a flip selfie action based on the first motion data, specifically including: the electronic device inputs the first motion data into the intent recognition model, and determines that the second user operation is a flip action through the intent recognition model; in response to the second user operation being a flip action, when the first motion data satisfies a first condition, the electronic device determines that the first user operation is a flip selfie action; wherein the first condition includes any one or more of the following: the linear acceleration of the electronic device is less than a third value, the length of the motion trajectory of the electronic device is less than the third value, and the rotation radius of the electronic device is less than a fifth value.
[0009] In combination with the first aspect, in a possible implementation, a direction perpendicular to the left edge and the right edge of the electronic device and pointing from the left edge of the electronic device to the right edge of the electronic device is used as the positive direction of the X axis, a direction perpendicular to the upper edge and the lower edge of the electronic device and pointing from the lower left edge of the electronic device to the upper edge of the electronic device is used as the positive direction of the Y axis, and a direction perpendicular to the X axis and the Y axis and away from the rear camera is used as the positive direction of the Z axis; before the electronic device inputs the first motion data into the intent recognition model, the method further includes: if the first motion data satisfies the second condition, the electronic device inputs the first motion data into the intent recognition model;
[0010] The second condition includes any one or more of the following: the angular velocity moduli of the X-axis, the Y-axis and the Z-axis are greater than the first value, and the integral of the angular velocity of the Y-axis within the first time period is greater than the second value.
[0011] In combination with the first aspect, in a possible implementation, the electronic device obtains first motion data collected by the first motion sensor, specifically including: after monitoring that the face image in the picture frame collected by the front camera disappears, the electronic device obtains the first motion data collected by the first motion sensor.
[0012] In combination with the first aspect, in a possible implementation, the method also includes: in response to displaying the second selfie picture on the second display screen, the electronic device turns off the front camera and turns off the first display screen.
[0013] In combination with the first aspect, in a possible implementation, after the electronic device turns on the rear camera, the method further includes: the electronic device turns off the front camera and turns off the first display screen.
[0014] In combination with the first aspect, in a possible implementation, the electronic device displays a second selfie picture on a second display screen, specifically including: when it is detected that the picture frame captured by the rear camera includes a face image, the electronic device starts displaying the second selfie picture on the second display screen.
[0015] In combination with the first aspect, in a possible implementation method, the electronic device displays a second selfie picture on a second display screen, specifically including: when it is monitored that the picture frame captured by the rear camera does not include a facial image and no user operation is received on the first display screen within a second time period, the electronic device displays the second selfie picture on the second display screen.
[0016] In combination with the first aspect, in a possible implementation, the method also includes: when it is monitored that the picture frames captured by the rear camera do not include a facial image, and the electronic device receives an operation from the user on the first display screen within a second time period, the electronic device turns off the rear camera.
[0017] In combination with the first aspect, in a possible implementation manner, the method further includes: the electronic device turns on the front camera and continues to display the picture frames captured by the front camera on the first display screen.
[0018] In combination with the first aspect, in a possible implementation, the second display screen also includes a second motion sensor; before the electronic device determines that the second user operation is a flip selfie action based on the first motion data, the method also includes: the electronic device obtains the second motion data collected by the second motion sensor; the electronic device determines that the second user operation is a flip selfie action based on the first motion data, specifically including: the electronic device determines that the second user operation is a flip selfie action based on the first motion data and the second motion data.
[0019] In combination with the first aspect, in a possible implementation manner, the first motion sensor includes an acceleration sensor and / or an angular velocity sensor, and the first motion data includes acceleration data or angular velocity data.
[0020] In combination with the first aspect, in a possible implementation manner, the second motion sensor includes an acceleration sensor and / or an angular velocity sensor, and the second motion data includes acceleration data or angular velocity data.
[0021] In a second aspect, the present application provides an electronic device comprising one or more cameras, one or more processors and one or more memories; wherein the one or more cameras, one or more memories are coupled to one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when one or more processors execute the computer instructions, a shooting method in any possible implementation of any of the above aspects is executed.
[0022] In a third aspect, an embodiment of the present application provides a computer storage medium, including computer instructions, which, when executed on an electronic device, enables a communication device to execute a shooting method in any possible implementation of any of the above aspects.
[0023] In a fourth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute a shooting method in any possible implementation of any of the above aspects.
[0024] For the beneficial effects of the second to fourth aspects, reference may be made to the description of the beneficial effects in the first aspect, and this application will not go into details here. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0026] Figure 2 A software structure block diagram of an electronic device 100 provided in an embodiment of the present application;
[0027] Figure 3A A schematic diagram of a display state of an external folding screen in an unfolded state provided in an embodiment of the present application;
[0028] Figure 3B A schematic diagram of a display form when an external folding screen is in a folded state provided in an embodiment of the present application;
[0029] Figure 3C A schematic diagram of a display state when an external folding screen is in an intermediate state provided in an embodiment of the present application;
[0030] Figure 4A The electronic device 100 is shown Figure 7 A schematic diagram showing the composition structure of a server 200 in an expanded state is shown;
[0031] Figure 4B A schematic diagram showing the electronic device 100 in a folded state;
[0032] Figure 5A-5C A schematic diagram showing a user switching between front and rear cameras to take a selfie;
[0033] Figure 6A-6E A schematic diagram showing the electronic device 100 automatically turning on the rear camera and displaying the face image captured by the rear camera on screen B;
[0034] Figure 7 A schematic diagram of a functional module provided by the present application is shown;
[0035] Figure 8 A schematic diagram showing the working principle of the motion detection module;
[0036] Fig. 9A A schematic diagram of the X-axis, Y-axis and Z-axis directions is shown;
[0037] Fig. 9B A schematic diagram showing the modulus of three-axis angular velocity in window data obtained by a motion detection module is shown;
[0038] Figure 9C-D A schematic diagram of a flipping motion trajectory of an electronic device 100 is shown;
[0039] Fig.10 A schematic diagram showing the working principle of the intention correction module. DETAILED DESCRIPTION
[0040] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0041] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0042] 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. A common 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.
[0043] refer to Figure 1 , Figure 1 A schematic structural diagram of an electronic device is shown.
[0044] The electronic device 100 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, an in-vehicle 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.
[0045] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a 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 camera 193, 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.
[0046] 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 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some 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.
[0047] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics 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), etc. Different processing units may be independent devices or integrated into one or more processors.
[0048] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0049] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 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 110, and thus improves the efficiency of the system.
[0050] In some embodiments, the processor 110 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.
[0051] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0052] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0053] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0054] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0055] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0056] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0057] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0058] It is understandable 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 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0059] 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 the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0060] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the 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 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0061] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0062] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of 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.
[0063] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), 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 110. 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 110.
[0064] 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 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0065] The wireless communication module 160 can provide wireless communication solutions 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., which are applied to the electronic device 100. 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 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0066] In some embodiments, the antenna 1 of the electronic device 100 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 100 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 a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0067] The electronic device 100 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 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0068] 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 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0069] Display screen 194 can be a folding screen. Display screen 194 can include but is not limited to inner folding screen, outer folding screen and upper and lower folding screen etc.
[0070] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0071] The ISP is used to process the data fed back by the 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 the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise and brightness of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0072] The camera 193 is used to capture still images or videos. 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 optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted 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. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0073] The electronic device 100 may include one or more front cameras, one or more rear cameras, and the like.
[0074] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0075] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0076] 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 can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0077] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0078] 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.; non-volatile memory may include disk storage devices and flash memory.
[0079] 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 storage unit potential level; universal flash storage (UFS), embedded multi media card (eMMC), etc. according to the storage specification.
[0080] The random access memory can be directly read and written by the processor 110, 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, etc.
[0081] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
[0082] 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 100. The external non-volatile memory communicates with the processor 110 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.
[0083] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0084] 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 signals. 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 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0085] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 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 100 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 microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 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 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize 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 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 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 100. In some embodiments, the angular velocity of the electronic device 100 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 100 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 100 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 100 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 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 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 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of 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 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 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 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to 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 100 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 100 is in a pocket to prevent accidental touches.
[0097] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0098] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 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 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by 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. 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 100, which is different from the position of the display screen 194.
[0100] 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.
[0101] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0102] 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.
[0103] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0104] 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 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 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 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0105] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.
[0106] Figure 2 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.
[0107] 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.
[0108] The application layer can include a series of application packages.
[0109] like Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0110] 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.
[0111] like Figure 2 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.
[0112] 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.
[0113] 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.
[0114] 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.
[0115] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0116] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0117] 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.
[0118] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0119] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0120] 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.
[0121] 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.
[0122] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0123] 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.
[0124] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0125] A 2D graphics engine is a drawing engine for 2D drawings.
[0126] 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.
[0127] Next, the form of the electronic device 100 will be described.
[0128] The electronic device 100 provided in the present application may be an outward folding screen or an upward and downward folding screen.
[0129] 1. External folding screen
[0130] The external folding screen can be divided into three display states: unfolded state, intermediate state and folded state.
[0131] Figure 3A (a) and (b) show the display form when the outer folding screen is in the unfolded state.
[0132] in, Figure 3A (a) in the figure exemplarily shows a front view of the outer folding screen in the unfolded state. Among them, when the outer folding screen is in the unfolded state, the displayable screens of the folding screen include screen A and screen B. Screen A and screen B can be a complete display screen or two independent display screens. Exemplarily, when the inner folding screen is in the unfolded state, the angle α between screen A and screen B is greater than angle one and less than or equal to 180 degrees. Exemplarily, the value of angle one can be between 170 degrees and 180 degrees. Exemplarily, if the value of angle one is 180 degrees, when the outer folding screen is in the unfolded state, the angle α between screen A and screen B can be 180 degrees.
[0133] like Figure 3A As shown in (a) in the figure, a front camera is displayed on screen B, and the user can take a selfie with the front camera.
[0134] Figure 3A (b) in the figure exemplarily shows a rear view of the outer folding screen in the unfolded state. When the outer folding screen is in the unfolded state, compared with when the inner folding screen is in the unfolded state, the A screen and the B screen cannot be displayed.
[0135] Figure 3B It shows the display form when the outer folding screen is in the folded state.
[0136] like Figure 3B As shown in (a), when the outer folding screen is in the folded state, the B screen and the A screen are arranged relative to each other. Exemplarily, when the outer folding screen is in the folded state, the B screen is in the light screen state, the A screen is in the dark screen state, and the angle α between the A screen and the B screen is greater than or equal to 0 degrees and less than angle 2. Exemplarily, the value of angle 2 can be between 0 degrees and 10 degrees. Exemplarily, if the value of angle 2 is 0 degrees, when the outer folding screen is in the folded state, the angle α between the A screen and the B screen can be 0 degrees. When the B screen is in the light screen state, the user can take a selfie with the front camera.
[0137] like Figure 3BAs shown in (b), when the outer folding screen is in the folded state, screen B and screen A are arranged relative to each other. Exemplarily, when the outer folding screen is in the folded state, screen B is in the off state, screen A is in the bright state, and the angle α between screen A and screen B is greater than or equal to 0 degrees and less than angle 2. Exemplarily, the value of angle 2 can be between 0 degrees and 10 degrees. Exemplarily, if the value of angle 2 is 0 degrees, when the outer folding screen is in the folded state, the angle α between screen A and screen B can be 0 degrees. Screen A is in the bright state, and users can take selfies with the rear camera.
[0138] Figure 3C It shows the display form when the outer folding screen is in the intermediate state.
[0139] The intermediate state is that the outer folding screen can be bent in a direction opposite to screen A and screen B to form a folding state with a certain angle. When the outer folding screen is in the intermediate state, the display screens of the folding screen include screen A and screen B, and the angle α between screen A and screen B is greater than or equal to angle 2 and less than or equal to angle 1. Exemplarily, the angle α between screen A and screen B can be 120 degrees.
[0140] In some embodiments, screen B may be referred to as a first display screen, and screen A may be referred to as a second display screen.
[0141] 2. Folding screen up and down
[0142] The upper and lower folding screens can be divided into three display states: unfolded state, intermediate state and folded state.
[0143] in, Figure 4A A schematic diagram showing the electronic device 100 in an unfolded state is shown.
[0144] Figure 4A (a) in FIG. 1 shows a front view of the electronic device 100 in an unfolded state. Figure 4A As shown in (a) , the electronic device 100 includes a screen A, a screen B, and a folding line 201 .
[0145] Optionally, screen A and screen B can be a complete display screen.
[0146] In the unfolded state, screen A and screen B face the user, and the angle between screen A and screen B is close to 180°, that is, the plane where screen A is located and the plane where screen B is located are located in the same horizontal plane. In the unfolded state, the electronic device 100 can display images on screen A and screen B at the same time. In this way, the user can view the images from screen A and screen B at the same time.
[0147] Figure 4A (b) in FIG. 1 shows a rear view of the electronic device 100 in an unfolded state. Figure 4A As shown in (b) in FIG. 8 , the electronic device 100 includes a rear camera.
[0148] Figure 4B (a) shows a front view of the electronic device 100 in a folded state. Figure 4B (b) shows a rear view of the electronic device 100 in a folded state.
[0149] like Figure 4B (a) and Figure 4B As shown in (b), in the folded state, the angle between the plane where screen A is located and the plane where screen B is located is close to 0°, and screens A and B are arranged relative to each other. Exemplarily, when the electronic device 100 is in the folded state, screen A is in the on-screen state, and screen B is in the off-screen state. Alternatively, when the electronic device 100 is in the folded state, screen B is in the on-screen state, and screen A is in the off-screen state.
[0150] In some embodiments, screen B may be referred to as a first display screen, and screen A may be referred to as a second display screen.
[0151] The following embodiments of the present application are described by taking the outer folding screen as an example. The present application is also applicable to the upper and lower folding screens.
[0152] Figure 5A-5C A schematic diagram showing a user switching between the front and rear cameras to take a selfie.
[0153] Exemplarily, the electronic device 100 is in a folded state, the A screen of the electronic device 100 is in a light screen state, and the B screen of the electronic device 100 is in a dark screen state. The user can open the camera on the A screen to take a selfie, and the electronic device 100 can display the selfie image on the A screen.
[0154] For example, Figure 5A The main interface of the electronic device 100 is shown. The main desktop of the electronic device 100 includes icons of multiple applications, such as icons of clock applications, icons of calendar applications, icons of smart life applications, icons of memo applications, icons of game applications, icons of recipe applications, icons of recorder applications, icons of calculator applications, icons of video applications, icons of weather applications, icons of browser applications, icons of map applications, icons of music applications, icons of sports and health applications, etc. A page indicator is also displayed below the icons of multiple applications to indicate the total number of desktops, the position of the negative one screen, the position of the currently displayed desktop, and the positional relationship between the currently displayed desktop and other desktops. A tray area or a dock bar (Dock bar) is displayed below the page indicator. Among them, the tray area includes multiple tray icons, such as camera application icons, contact application icons, phone application icons, and information application icons. The tray area remains displayed when the page is switched. In some embodiments, the above-mentioned page indicator and the above-mentioned tray icon are also optional, and the embodiments of the present application are not limited to this.
[0155] like Figure 5A As shown, the electronic device 100 may receive an input operation (eg, a single click) from a user on a camera application icon, and in response to the input operation from the user, the electronic device 100 may display Figure 5B The user interface 510 shown is a user interface of a shooting and display service provided by the electronic device 100 according to an embodiment of the present application, and may also be called a preview interface.
[0156] like Figure 5B As shown, the preview interface may include a mode bar, shooting controls, a preview window, a review control, and an option to switch the front / rear camera.
[0157] The mode bar may include multiple shooting mode options, such as "night scene", "portrait", "photo", "video recording", etc. Different shooting modes can provide users with shooting services with different effects. Users can select any shooting mode from multiple shooting modes for shooting according to different needs. For example, "photo recording" can be the default shooting mode for taking photos. "Video recording" is used to record videos. The "night scene" mode is suitable for shooting scenes with dim light, such as at night. The "portrait" mode is suitable for shooting scenes where the subject is a person. The electronic device 100 can also provide more shooting modes, such as "large aperture", "movie", "professional", etc., which are not listed one by one here.
[0158] The electronic device 100 can detect the user operation acting on the shooting mode option in the mode bar, and change the shooting mode currently used according to the above user operation. The above user operation is, for example, a left / right slide operation. For example, when it is detected that the drag mode bar is slid to the left (left slide operation) and the float stops at the "Portrait" option, the electronic device 100 can switch to the "Portrait" mode. By default, the electronic device 100 first uses the "Photographing" mode.
[0159] The shooting control is used to trigger taking a photo. The electronic device 100 can detect whether there is a user operation on the shooting control, such as a click operation. When a user operation on the shooting control is detected, the electronic device 100 can generate a shooting instruction. The electronic device 100 can obtain the image reported by the camera at the corresponding timestamp according to the shooting instruction, and then save it as a photo.
[0160] The preview window can be used to display the image reported by the camera in real time. In different shooting modes, the electronic device 100 can process the image reported by the camera to improve the display effect of the image. For example, in the "portrait" mode, the electronic device 100 can blur the background in the image reported by the camera to highlight the portrait. Here, the preview window can display the image processed by the image processing algorithm corresponding to the different shooting modes in real time, so that the user can perceive the shooting effects corresponding to the different shooting modes in real time. Figure 5BThe image shown is a face image captured by the front camera of the electronic device 100.
[0161] The review control can be used to browse thumbnails of photos / videos that have been taken. When a user operation acting on the review control is detected, the electronic device 100 can also display the best photo corresponding to the thumbnail.
[0162] The preview interface also includes a quick function area. The quick function area may include controls for the protagonist recording mode, controls for switching selfie mode, flash controls, color mode controls, setting controls, and the like. The controls for the protagonist recording mode can be used to trigger the electronic device 100 to identify the protagonist character among multiple characters in the preview screen when turned on. The control for switching selfie mode can be used to switch the selfie mode of the front camera or the selfie mode of the rear camera. For example, the front camera is currently in selfie mode, and the electronic device 100 can click the control for switching selfie mode, and the electronic device 100 will turn on the rear camera and display the image captured by the rear camera on the B screen. The flash control can be used to trigger the electronic device 100 to turn on or off the flash. The color mode control can be used to trigger the electronic device 100 to use a color filter to process the image captured by the camera.
[0163] The switch front / rear camera option can be used to receive a user operation to switch back and forth between the front camera and the rear camera. For example, the electronic device 100 can receive a user input operation for switching the front / rear camera option and display the image captured by the rear camera on the A screen.
[0164] For example, Figure 5B As shown, the electronic device 100 can receive a user input operation (such as a single click) for switching the selfie mode control in the user interface 510. In response to the user input operation, the electronic device 100 can turn on the rear camera, light up the B screen, and display the image captured by the rear camera on the B screen.
[0165] The user can flip the electronic device 100 180 degrees so that screen B of the electronic device 100 faces the user and screen A of the electronic device 100 faces away from the user. Then the rear camera of the electronic device 100 can capture the user's facial image and display the facial image on screen B.
[0166] For example, Figure 5C As shown, the electronic device 100 can display on screen B Figure 5C User interface 520 is shown. User interface 520 includes a mode bar, capture controls, a preview window, a review control, and a front / rear camera switch option.
[0167] The mode bar may include multiple shooting mode options, such as "Portrait", "Photo", "Video", etc. Different shooting modes can provide users with shooting services with different effects. Users can select any of the multiple shooting modes to shoot according to different needs. For example, "Photo" may be the default shooting mode for taking photos. "Video" is used to record videos. The "Portrait" mode is suitable for shooting scenes where the subject is a person.
[0168] The electronic device 100 can detect the user operation acting on the shooting mode option in the mode bar, and change the shooting mode currently used according to the above user operation. The above user operation is, for example, a left / right slide operation. For example, when it is detected that the drag mode bar is slid to the left (left slide operation) and the float stops at the "Portrait" option, the electronic device 100 can switch to the "Portrait" mode. By default, the electronic device 100 first uses the "Photographing" mode.
[0169] The shooting control is used to trigger taking a photo. The electronic device 100 can detect whether there is a user operation on the shooting control, such as a click operation. When a user operation on the shooting control is detected, the electronic device 100 can generate a shooting instruction. The electronic device 100 can obtain the image reported by the camera at the corresponding timestamp according to the shooting instruction, and then save it as a photo.
[0170] The preview window can be used to display the image reported by the camera in real time. In different shooting modes, the electronic device 100 can process the image reported by the camera to improve the display effect of the image. For example, in the "portrait" mode, the electronic device 100 can blur the background in the image reported by the camera to highlight the portrait. Here, the preview window can display the image processed by the image processing algorithm corresponding to the different shooting modes in real time, so that the user can perceive the shooting effects corresponding to the different shooting modes in real time. Figure 5C The image shown is a face image captured by the rear camera of the electronic device 100 .
[0171] The review control can be used to browse thumbnails of photos / videos that have been taken. When a user operation acting on the review control is detected, the electronic device 100 can also display the best photo corresponding to the thumbnail.
[0172] The preview interface also includes a quick function area. The quick function area may include a selfie mode switch control, a color mode control, a setting control, etc. The selfie mode switch control may be used to switch the front camera selfie mode or the rear camera selfie mode. For example, if the rear camera is currently in selfie mode, the electronic device 100 may click the selfie mode switch control, and the electronic device 100 will turn off the rear camera and turn off the B screen. The color mode control may be used to trigger the electronic device 100 to use a color filter to process the image captured by the camera.
[0173] The switch front / rear camera option can be used to receive a user operation to switch back and forth between the front camera and the rear camera. For example, the electronic device 100 can receive a user input operation for switching the front / rear camera option and display the image captured by the front camera on the B screen.
[0174] It is not limited to switching the front camera selfie mode or the rear camera selfie mode by switching the selfie mode control. Users can also switch the front camera selfie mode or the rear camera selfie mode by gesture operation or shortcut keys, etc., and this application does not limit this.
[0175] from Figure 5A-5C It can be seen that if the user wants to take a selfie through the rear camera of the electronic device 100, the user needs to manually turn on the rear camera of the electronic device 100, and then flip the mobile phone before taking a selfie through the rear camera of the electronic device 100 and viewing the user's face image captured by the rear camera on the B screen. The operation is rather cumbersome.
[0176] Based on this, the present application provides a shooting method. Without the need for user operation, the electronic device 100 can recognize the user's intention to use the rear camera and automatically turn on the rear camera. The user only needs to flip the phone, and the electronic device 100 can display the facial image captured by the rear camera on the B screen, thereby improving the user's selfie experience.
[0177] In some embodiments, the image quality of the rear camera is higher than that of the front camera. The image quality may include but is not limited to: image clarity, image color, image noise, image jitter, image exposure, etc.
[0178] Selfie scene
[0179] Figure 6A-6E A schematic diagram showing the electronic device 100 automatically turning on the rear camera and displaying a facial image captured by the rear camera on screen B is shown.
[0180] Fig. 6A The main interface of the electronic device 100. The electronic device 100 can receive a user input operation (such as a single click) for the camera application icon in the main interface. In response to the user's input operation, the electronic device 100 can display Figure 6B The user interface 610 shown. The user interface 610 includes a mode bar, a shooting control, a preview window, a review control, and a front / rear camera switch option. In response to the user's input operation on the camera application icon in the main interface, the electronic device 100 can turn on the rear camera, and the image displayed in the preview window in the user interface 610 is the image captured by the rear camera of the electronic device 100.
[0181] like Figure 6BAs shown, the electronic device 100 can receive an input operation (such as a single click) from a user for switching the front / rear camera option in the user interface 610. In response to the user's input operation, the electronic device 100 can turn on the front camera and Figure 6C The preview window shown shows the face image captured by the front camera.
[0182] In some embodiments, the user's input operation for switching the front / rear camera option in the user interface 610 may be referred to as a first user operation.
[0183] If the user wants to take a selfie with the rear camera with better image quality, the user can move the electronic device 100 along the Fig.6D The Y axis shown is rotated 180 degrees, so that the B screen of the electronic device 100 faces the user, and the A screen of the electronic device 100 is away from the user. In this way, the rear camera of the electronic device 100 can capture a face image. When it is detected that the user needs to take a selfie through the rear camera of the electronic device 100, the electronic device 100 can turn on the rear camera of the electronic device 100 and display the image captured by the rear camera of the electronic device 100 on the B screen.
[0184] In some embodiments, the user can move the electronic device 100 along Fig.6D The operation in which the Y axis is rotated 180 degrees so that the B screen of the electronic device 100 faces the user and the A screen of the electronic device 100 is moved away from the user may be referred to as a second user operation.
[0185] like Fig. 6E As shown, Fig. 6E The user interface 630 shown is a user interface displayed on the B screen of the electronic device 100. Fig. 6E and Figure 6C As shown, the display area of screen B is smaller than that of screen A, and the area of user interface 630 is smaller than that of user interface 620. The image displayed in user interface 630 is a face image captured by the rear camera of electronic device 100.
[0186] In this way, the electronic device 100 can recognize the user's intention to take a selfie through the rear camera, automatically turn on the rear camera for the user and display the image captured by the rear camera on the B screen, reducing user operations and improving the user's shooting experience.
[0187] Recognize the user's intent to take a selfie with the rear camera.
[0188] Next, how the electronic device 100 recognizes the user's intention to take a selfie through the rear camera is described in detail.
[0189] Figure 7 A schematic diagram of a functional module provided by the present application is shown.
[0190] like Figure 7 As shown, the functional modules on the electronic device 100 include but are not limited to: a detection trigger module, an action detection module and an intention correction module.
[0191] The detection trigger module is turned on after the front camera of the electronic device 100 is turned on. When the front camera of the electronic device 100 is not turned on, that is, it is detected that the user does not take a selfie, the detection trigger module may not be turned on to save power consumption of the electronic device 100.
[0192] Optionally, the detection trigger module can also be turned on for a long time, and this application does not limit this.
[0193] After the detection trigger module is turned on, the detection trigger module is used to obtain the first motion data collected by the first motion sensor on the A screen and / or the second motion data collected by the second motion sensor on the B screen.
[0194] In some embodiments, the first motion sensor and the second motion sensor may start collecting motion data only after the detection trigger module is turned on. The first motion sensor and the second motion sensor may also continuously collect motion data, which is not limited in this application.
[0195] In a possible implementation, only screen A of the electronic device 100 is provided with a motion sensor, and the detection trigger module may only obtain the first motion data collected by the first motion sensor on screen A.
[0196] In a possible implementation, only screen B of the electronic device 100 is provided with a motion sensor, and the detection trigger module may only obtain the second motion data collected by the second motion sensor on screen B.
[0197] In a possible implementation, motion sensors are provided on both screen A and screen B of the electronic device 100, and the detection trigger module can obtain first motion data collected by the first motion sensor on screen A and second motion data collected by the second motion sensor on screen B. By recognizing the action of the user flipping the phone through the dual motion sensors, the accuracy of the action recognition of the user flipping the phone can be improved.
[0198] The first motion sensor may be an inertial measurement unit (IMU) for identifying the user's action of flipping the mobile phone. The first motion data may be acceleration data and angular velocity data collected by the inertial sensor.
[0199] The second motion sensor may also be an inertial sensor, which is used to identify the user's action of flipping the mobile phone. The second motion data may also be acceleration data and angular velocity data collected by the inertial sensor.
[0200] The detection trigger module can monitor whether the face image in the image captured by the front camera disappears. When the front camera is turned on and the face image in the image captured by the front camera does not disappear, the user is still taking a selfie through the front camera, and the motion detection module is still turned off.
[0201] When the front camera is turned on and the face image disappears in the image captured by the front camera, the user may flip the phone, the action detection module may be turned on, and the detection trigger module will obtain the first motion data and / or the second motion data and send it to the action detection module. The action detection module can determine the action of the user flipping the phone based on the first motion data and / or the second motion data.
[0202] The motion detection module is used to receive the first motion data and / or the second motion data sent by the detection trigger module after being turned on, and identify the flipping motion and the non-flipping motion based on the first motion data and / or the second motion data.
[0203] In the case of identifying a non-flipping action, the action detection module determines that the user has no intention of taking a selfie using the rear camera, and the process ends.
[0204] When a flipping action is identified, in some scenarios, the user may flip the phone and place it on a table or in a pocket. The action detection module needs to further determine whether the flipping action is a flipping selfie action or a flipping non-selfie action.
[0205] The action detection module is also used to send the identified flipping selfie action result to the intention correction module after determining the flipping selfie action.
[0206] The intention correction module is used to confirm or correct the flip selfie action identified by the action detection module through face detection and screen touch information after receiving the flip selfie action result sent by the action detection module, and confirm whether to turn on the rear camera and light up the B screen.
[0207] Optionally, the intention correction module may be turned on only after receiving the flip selfie action result sent by the action detection module to save power consumption of the electronic device 100. Optionally, the intention correction module may also be turned on for a long time, which is not limited in this application.
[0208] The intention correction module is specifically used to turn on the rear camera and collect images through the rear camera after receiving the flip selfie action result sent by the action detection module. At this time, the electronic device 100 has not yet turned on the B screen, and it is necessary to further combine the face detection and screen touch information to determine whether the user is using the rear camera to take a selfie.
[0209] Specifically, when the rear camera recognizes a facial image, it means that the user is currently using the rear camera to take a selfie, and the electronic device 100 lights up the B screen and displays the image captured by the rear camera on the B screen.
[0210] When the rear camera does not recognize a facial image and detects that the user has not operated screen A, it means that the user is most likely using the rear camera to take a selfie, but the rear camera has not captured a facial image. The electronic device 100 lights up screen B and displays the image captured by the rear camera on screen B.
[0211] When the rear camera does not recognize a facial image and detects that a user is operating screen A, it means that the user is not currently using the rear camera to take a selfie, and the electronic device 100 does not light up screen B and turns off the rear camera.
[0212] Next, the working principles of the action detection module and intention correction module are introduced in detail.
[0213] First, the working principle of the motion detection module is introduced.
[0214] Figure 8 A schematic diagram showing the working principle of the motion detection module.
[0215] S801 : A motion detection module pre-processes first motion data and second motion data to obtain first processed motion data and second processed motion data.
[0216] After the detection trigger module monitors that the face image disappears in the image collected by the front camera, the detection trigger module can send the first motion data and the second motion data to the action detection module. The action detection module can obtain the first motion data and the second motion data.
[0217] Optionally, the detection trigger module may also send only the first motion data or the second motion data to the action detection module. This application is described by taking the detection trigger module sending the first motion data and the second motion data to the action detection module at the same time as an example, which does not constitute a limitation.
[0218] After the motion detection module obtains the first motion data and the second motion data, the motion detection module can pre-process the first motion data and the second motion data to obtain the first processed motion data and the second processed motion data. Pre-processing includes but is not limited to filtering processing, etc. Among them, the filtering processing can be mean filtering, and the filtering processing can also be other methods, which are not limited in this application. In this way, the motion detection module pre-processes the first motion data and the second motion data to eliminate the influence of noise and make the signal smoother.
[0219] In some embodiments, the electronic device 100 may not execute S801, and this application does not limit this.
[0220] S802: The motion detection module needs to determine whether the first processed motion data and the second processed motion data meet a first preset condition.
[0221] Before inputting the first processed motion data and the second processed motion data into the intention recognition model, the action detection module can determine whether the first processed motion data and the second processed motion data meet the first preset condition. The first processed motion data and the second processed motion data are input into the intention recognition model after the first preset condition is met. When the first preset condition is not met, the action detection module does not input the first processed motion data and the second processed motion data into the intention recognition model, which can reduce the workload of the intention recognition model and save the power consumption of the electronic device 100.
[0222] If it is determined that the first processed motion data and the second processed motion data meet the first preset condition, S804 is executed. If it is determined that the first processed motion data and the second processed motion data do not meet the first preset condition, S803 is executed.
[0223] The first preset condition may include but is not limited to one or more of the following:
[0224] 1. The angular velocity modulus of the three axes (X axis, Y axis and Z axis) is greater than the first value.
[0225] Fig. 9A A schematic diagram of the X-axis, Y-axis and Z-axis directions is shown.
[0226] In some embodiments, Fig. 9A The X-axis, Y-axis, and Z-axis coordinate systems shown may also be referred to as carrier coordinate systems.
[0227] like Fig. 9A As shown, the direction parallel to the left edge or right edge of the electronic device 100 and pointing from the lower edge of the electronic device 100 to the upper edge of the electronic device 100 is taken as the positive direction of the Y axis. The direction parallel to the upper edge or lower edge of the electronic device 100 and pointing from the left edge of the electronic device 100 to the right edge of the electronic device 100 is taken as the positive direction of the X axis. The positive direction of the X axis and the positive direction of the Y axis can determine the XY plane. The direction perpendicular to the XY plane and pointing from the back shell of the electronic device 100 to the screen of the electronic device 100 is taken as the positive direction of the Z axis.
[0228] The modulus of the three-axis angular velocity is used to indicate the speed at which the user flips the phone. The larger the modulus of the three-axis angular velocity, the faster the user flips the phone. When the modulus of the three-axis angular velocity is greater than the first value, it means that the user flips the phone fast enough, so the user may be flipping the phone.
[0229] 2. The integral of the Y-axis angular velocity within the first time period is greater than the second value.
[0230] Exemplarily, the second value may be 120 degrees.
[0231] The first duration is approximately equal to the time required for the user to flip the phone.
[0232] The integral of the Y-axis angular velocity within the first duration is used to indicate the angle at which the phone is flipped. Generally speaking, when a user flips the phone and takes a selfie through the rear camera, the angle at which the phone is flipped is close to 180 degrees. When the change in the Y-axis angular velocity is greater than the second value, it means that the angle at which the phone is flipped is large enough, and the user may also be flipping the phone.
[0233] The first preset condition may also be other conditions, which is not limited in this application.
[0234] In some embodiments, the first preset condition may also be referred to as the second condition.
[0235] The motion detection module needs to determine whether the first processed motion data and the second processed motion data meet the first preset condition, that is, the motion detection module needs to determine whether the first processed motion data meets the first preset condition and whether the second processed motion data meets the first preset condition. S804 is performed only when both the first processed motion data and the second processed motion data meet the first preset condition.
[0236] In some embodiments, after the action detection module is turned on, the action detection module continuously obtains the first motion data and the second motion data. The action detection module can read the motion data according to a window of fixed length to determine whether the motion data in the window meets the preset conditions. If the motion data in the window meets the preset conditions, the action detection module inputs the motion data in the window into the intention recognition model to determine the flipping action and the non-flipping action.
[0237] The action detection module can obtain multiple window data. If each window data is input into the intention recognition model for detection, the workload of the intention recognition model is large. The action detection module will perform a preliminary screening of the window data, and only the window data that meets the first preset condition will be sent to the intention recognition model for detection, so as to reduce the workload of the intention recognition model and save the power consumption of the electronic device 100.
[0238] The maximum value of the modulus of the angular velocity in the window data is greater than the first value, and the integral of the Y-axis angular velocity in the first time period in the window data is greater than the second value.
[0239] For example, Fig. 9B A schematic diagram of three-axis angular velocity modulus values in window data obtained by a motion detection module is shown.
[0240] like Fig. 9B As shown, window 1, window 2 and window 3 are of fixed length. The horizontal axis represents the data frame obtained by the motion detection module. The vertical axis represents the angular velocity modulus.
[0241] Exemplarily, the first value may be 4.
[0242] The maximum value of the three-axis angular velocity modulus of window 1 is 3.6, which is less than 4. Therefore, the motion detection module does not input the motion data in window 1 into the intention recognition model.
[0243] The maximum value of the three-axis angular velocity modulus of window 2 is 4.1, which is greater than 4. The action detection module also needs to calculate the change value of the Y-axis angular velocity corresponding to the motion data in window 2. If the change value of the Y-axis angular velocity corresponding to the motion data in window 2 is greater than the second value, for example, greater than 120 degrees, the action detection module needs to input the motion data in window 21 into the intention recognition model. If the change value of the Y-axis angular velocity corresponding to the motion data in window 2 is less than the second value, for example, less than 120 degrees, the action detection module does not input the motion data in window 2 into the intention recognition model.
[0244] The maximum value of the three-axis angular velocity modulus of window 3 is 4.95, which is greater than 4. The action detection module also needs to calculate the change value of the Y-axis angular velocity corresponding to the motion data in window 3. If the change value of the Y-axis angular velocity corresponding to the motion data in window 3 is greater than the second value, for example, greater than 120 degrees, the action detection module needs to input the motion data in window 3 into the intention recognition model. If the change value of the Y-axis angular velocity corresponding to the motion data in window 3 is less than the second value, for example, less than 120 degrees, the action detection module does not input the motion data in window 3 into the intention recognition model.
[0245] S803, end.
[0246] When it is determined that the first processed motion data and the second processed motion data do not satisfy the first preset condition, the first processed motion data and the second processed motion data may not be input into the intention recognition model, and the process ends.
[0247] S804: The motion detection module obtains first feature data through the first motion data, and obtains second feature data through the second motion data.
[0248] The first motion data may include acceleration data and angular velocity data collected by the first motion sensor on the A screen.
[0249] The second motion data may include acceleration data and angular velocity data collected by the second motion sensor on the B screen.
[0250] The characteristic data include but are not limited to: three-axis acceleration of the carrier system, three-axis angular velocity of the carrier system, three-axis acceleration of the navigation system, acceleration modulus, angular velocity modulus, horizontal angular increment, vertical angular increment, three-axis velocity, position, gyroscope data differential, etc.
[0251] The three-axis acceleration of the carrier system may refer to the original three-axis acceleration collected by the first motion sensor, and the three-axis acceleration of the carrier system includes gravity acceleration and motion acceleration.
[0252] The three-axis angular velocity of the carrier system may refer to the original three-axis angular velocity acquired by the first motion sensor.
[0253] The three-axis acceleration of the navigation system refers to the three-axis acceleration projected to the geodetic coordinate system after removing the gravity acceleration from the three-axis acceleration of the carrier system.
[0254] The acceleration modulus can be the value obtained by taking the square root of the sum of the squares of the three-axis acceleration of the flight system or the three-axis acceleration of the load system, namely, the X-axis angular velocity, the Y-axis angular velocity, and the Z-axis angular velocity.
[0255] The angular velocity modulus may refer to a value obtained by square rooting the sum of the squares of the X-axis angular velocity, the Y-axis angular velocity, and the Z-axis angular velocity of the three-axis angular velocity of the carrier system.
[0256] The horizontal angular increment may refer to projecting the three-axis angular velocity of the carrier system to the three-axis angular velocity of the geodetic coordinate system, and calculating the angular velocity integral of the horizontal component.
[0257] The vertical angular increment may refer to projecting the three-axis angular velocity of the carrier system to the three-axis angular velocity of the geodetic coordinate system, and calculating the angular velocity integral of the vertical component.
[0258] The three-axis velocity may refer to projecting the acceleration to the geodetic coordinate system, and integrating the three-axis velocity in the geodetic coordinate system.
[0259] Position can refer to the acceleration projected into the geodetic coordinate system, and the three-axis displacement components in the geodetic coordinate system can be obtained by performing a second integration.
[0260] The gyroscope data difference may refer to a value obtained after differential processing of the three-axis angular velocity of the carrier system, that is, a value obtained by subtracting the three-axis angular velocity of the carrier system in the previous frame from the three-axis angular velocity of the carrier system in the next frame between two adjacent frames.
[0261] The first characteristic data includes but is not limited to one or more of the following: the three-axis acceleration of the first carrier system, the three-axis angular velocity of the first carrier system, the three-axis acceleration of the first navigation system, the first acceleration modulus, the first angular velocity modulus, the first horizontal angular increment, the first vertical angular increment, the first three-axis velocity, the first position, the first gyroscope data differential, etc.
[0262] The second characteristic data includes but is not limited to one or more of the following: the three-axis acceleration of the second carrier system, the three-axis angular velocity of the second carrier system, the three-axis acceleration of the second navigation system, the second acceleration modulus, the second angular velocity modulus, the second horizontal angular increment, the second vertical angular increment, the second three-axis velocity, the second position, the second gyroscope data differential, etc.
[0263] S805. The action detection module inputs the first feature data and the second feature data into the intention recognition model, and the intention recognition model outputs a first intention recognition result and a second intention recognition result.
[0264] In some embodiments, the intent recognition model can be a GRU model.
[0265] The action detection module inputs the first feature data and the second feature data into the intention recognition model, and the intention recognition model can output a first intention recognition result based on the first feature data, and output a second intention recognition result based on the second feature data.
[0266] The first intention recognition result includes a flipping action or a non-flipping action.
[0267] The second intention recognition result includes a flipping action or a non-flipping action.
[0268] The intent recognition model can be trained based on multiple sets of training samples obtained through preprocessing, and the intent recognition model can obtain a flipping action or a non-flipping action based on feature data. Among them, the intent recognition model can be a neural network model, such as a convolutional neural network model or a recurrent neural network model. The embodiment of the present application does not limit the type of the intent recognition model.
[0269] The training samples may include multiple sets of feature data corresponding to flipping actions and multiple sets of feature data corresponding to non-flipping actions.
[0270] The characteristic data corresponding to the flipping action may include one or more of the three-axis acceleration of the carrier system, the three-axis angular velocity of the carrier system, the three-axis acceleration of the navigation system, the acceleration modulus, the angular velocity modulus, the horizontal angular increment, the vertical angular increment, the three-axis velocity, the position, the gyroscope data differential, etc. corresponding to the flipping action.
[0271] The characteristic data corresponding to the non-flipping action may include one or more of the three-axis acceleration of the carrier system, the three-axis angular velocity of the carrier system, the three-axis acceleration of the navigation system, the acceleration modulus, the angular velocity modulus, the horizontal angular increment, the vertical angular increment, the three-axis velocity, the position, the gyroscope data differential, etc. corresponding to the non-flipping action.
[0272] The process of training the intention recognition model using multiple sets of training samples is to enable the intention recognition model to recognize a flipping action or a non-flipping action based on input feature data.
[0273] The trained intent recognition model can receive input feature data. The input feature data may include one or more of the following: the carrier system three-axis acceleration, the carrier system three-axis angular velocity, the navigation system three-axis acceleration, the acceleration modulus, the angular velocity modulus, the horizontal angular increment, the vertical angular increment, the three-axis velocity, the position, the gyroscope data difference, etc. Based on the received input data, the trained intent recognition model can output a recognition result. The recognition result may include a flip action or a non-flip action.
[0274] Optionally, S804 and S805 may not be performed. S804 and S805 may be replaced by the following steps;
[0275] The motion detection module inputs the first processed motion data and the second processed motion data into the intention recognition model, and the intention recognition model outputs a first intention recognition result and a second intention recognition result.
[0276] That is to say, there is no need to process the first processed motion data and the second processed motion data to obtain the first feature data and the second feature data. The intention recognition model can directly obtain the first intention recognition result and the second intention recognition result based on the first processed motion data and the second processed motion data.
[0277] The intent recognition model can be trained based on multiple sets of training samples obtained through preprocessing, and the intent recognition model can obtain a flipping action or a non-flipping action based on feature data. Among them, the intent recognition model can be a neural network model, such as a convolutional neural network model or a recurrent neural network model. The embodiment of the present application does not limit the type of the intent recognition model.
[0278] The training samples may include multiple sets of motion data corresponding to flipping actions and multiple sets of motion data corresponding to non-flipping actions.
[0279] The motion data corresponding to the flipping action may include acceleration data and angular velocity data corresponding to the flipping action.
[0280] The characteristic data corresponding to the non-flipping action may include acceleration data and angular velocity data corresponding to the non-flipping action.
[0281] The process of training the intention recognition model using multiple sets of training samples is to enable the intention recognition model to recognize a flipping action or a non-flipping action based on input motion data.
[0282] The trained intention recognition model can receive input motion data. The input motion data may include acceleration data and angular velocity data. Based on the received input data, the trained intention recognition model can output a recognition result. The recognition result may include a flipping action or a non-flipping action.
[0283] Preferably, the method steps shown in S804 and S805 can be used. The feature data is obtained based on the motion data, and the intention recognition model outputs the recognition result based on the feature data. Compared with the intention recognition model directly outputting the recognition result based on the motion data, the recognition result output by the intention recognition model is more accurate.
[0284] S806: The action detection module needs to determine whether the first intention recognition result and the second intention recognition result are both flipping actions.
[0285] When it is determined that both the first intention recognition result and the second intention recognition result are flipping actions, the action detection module may determine that the user has flipped the mobile phone, ie, execute S808.
[0286] When it is determined that any one or all of the first intention recognition result and the second intention recognition result are not flipping actions, the action detection module may determine that the user has not flipped the mobile phone, ie, execute S807.
[0287] S807, end.
[0288] S808: The action detection module needs to determine whether the flipping action is a flipping selfie action based on the first processed motion data and the second processed motion data.
[0289] After the action detection module determines the flipping action, it is necessary to further determine whether the flipping action is a flipping selfie action or a non-flipping selfie action. Therefore, in some scenarios, the user may flip the phone and place it on the table or rotate the phone 360 degrees to take a selfie. In order to improve the accuracy of the action detection module in determining the flipping selfie action, the action detection module needs to exclude non-flipping selfie actions to avoid misjudgment.
[0290] The action detection module may determine that the flipping action is a flipping selfie action when the first processed motion data and the second processed motion data satisfy a second preset condition.
[0291] The second preset condition may include but is not limited to any one or more of the following:
[0292] 1. The linear acceleration of the electronic device 100 is less than the third value.
[0293] The linear acceleration of the electronic device 100 may be obtained by subtracting the gravity acceleration from the acceleration value collected by the motion sensor on the electronic device 100 .
[0294] 2. The length of the motion trajectory of the electronic device 100 is less than the fourth value.
[0295] d=0.5*a 2 Formula (1)
[0296] The electronic device 100 can obtain the length of the motion track of the electronic device 100 through formula (1). As shown in formula (1), d represents the length of the motion track of the electronic device 100, and a represents the linear acceleration of the electronic device 100.
[0297] 3. The rotation radius of the electronic device 100 is smaller than the fifth value.
[0298] r = a / w 2 Formula (2)
[0299] The electronic device 100 can obtain the rotation radius of the electronic device 100 through formula (2). As shown in formula (2), r represents the rotation radius of the electronic device 100, a represents the linear acceleration of the electronic device 100, and w represents the angular velocity collected by the motion sensor on the electronic device.
[0300] like Fig. 9C As shown, when the user rotates the handheld electronic device 100 to take a selfie, the length of the motion trajectory of the electronic device 100 is d1, and the rotation radius of the electronic device 100 is r1.
[0301] like Fig.9D As shown, when the user turns over the electronic device 100 and takes a selfie through the rear camera, the length of the motion trajectory of the electronic device 100 is d2, and the rotation radius of the electronic device 100 is r2.
[0302] Depend on Fig. 9C and Fig.9D It can be seen that d1 is much larger than d2, and r1 is much larger than r2. Whether the flipping action is a flipping selfie action or a non-flipping selfie action can be determined based on one or more of the linear acceleration of the electronic device 100, the length of the motion track of the electronic device 100, and the rotation radius of the electronic device 100.
[0303] Specifically, when the linear acceleration of the electronic device 100 is less than the third value and / or the motion trajectory length of the electronic device 100 is less than the fourth value and / or the rotation radius of the electronic device 100 is less than the fifth value, the action detection module can determine that the flipping action is a flipping selfie action.
[0304] When the linear acceleration of the electronic device 100 is greater than the third value and / or the motion trajectory length of the electronic device 100 is greater than the fourth value and / or the rotation radius of the electronic device 100 is greater than the fifth value, the action detection module can determine that the flipping action is a non-flipping selfie action.
[0305] In some embodiments, the second preset condition may also be referred to as the first condition.
[0306] After the electronic device 100 determines that the flipping action is a flipping selfie action, S809 is executed.
[0307] After the electronic device 100 determines that the flipping action is a non-flipping selfie action, S810 is executed.
[0308] S809, end.
[0309] S810. The action detection module outputs a flip selfie action result.
[0310] After the electronic device 100 determines that the flipping action is a flipping selfie action, the action detection module outputs the flipping selfie action result. The action detection module can send the flipping selfie action result to the intention correction module, so that the intention correction module can determine whether to turn on the rear camera and light up the B screen.
[0311] Next, we will introduce the working principle of the intention correction module.
[0312] Fig.10 A schematic diagram showing the working principle of the intention correction module.
[0313] S1001. The intention correction module receives the flip selfie action result sent by the action detection module and turns on the rear camera.
[0314] After the action detection module obtains the flip selfie action result, the action detection module sends the flip selfie action result to the intention correction module.
[0315] In response to the flip selfie action result, the intention correction module turns on the rear camera. The intention correction module turns on the rear camera to monitor whether the rear camera recognizes a face image, and then determines whether the user is taking a selfie through the rear camera.
[0316] At this time, the front camera is still on, and the image captured by the front camera is still displayed on screen A.
[0317] S1002: The intention correction module needs to determine whether the image captured by the rear camera includes a face image.
[0318] In response to the flip selfie action result, the intention correction module turns on the rear camera. The rear camera of the electronic device 100 starts to collect images. The intention correction module needs to determine whether the image collected by the rear camera includes a face image.
[0319] When it is determined that the image captured by the rear camera includes a face image, it can be determined that the user flips over the electronic device 100 and takes a selfie through the rear camera of the electronic device 100 , and S1003 is executed.
[0320] When it is determined that the image captured by the rear camera does not include a face image, the intention correction module needs to further confirm whether the user takes a selfie through the rear camera of the electronic device 100 and executes S1004.
[0321] In some embodiments, when it is determined that the image captured by the rear camera does not include a face image, if it is detected for a first consecutive period of time that the image captured by the rear camera does not include a face image, S1004 is executed again.
[0322] S1003. The intention correction module lights up screen B and displays the image captured by the rear camera on screen B.
[0323] When it is determined that the image captured by the rear camera includes a face image, it can be determined that the user flipped the electronic device 100 and took a selfie through the rear camera of the electronic device 100, and the intention correction module lights up the B screen and displays the image captured by the rear camera on the B screen. In this way, when the user takes a selfie through the rear camera, the user can view the image captured by the rear camera on the B screen.
[0324] At this time, the intention correction module turns off the front camera and turns the A screen off.
[0325] S1004. The intention correction module needs to determine whether screen A detects the user's touch operation.
[0326] When it is determined that the image captured by the rear camera does not include a face image, the intention correction module needs to further confirm whether the user takes a selfie through the rear camera of the electronic device 100 .
[0327] The intention correction module can determine whether the user is taking a selfie through the rear camera after turning the phone over through the touch point on screen A. Specifically, when the intention correction module needs to determine that screen A does not detect the user's touch operation, it means that there is no touch point on screen A. The intention correction module can determine that the user is taking a selfie through the rear camera of the electronic device 100, execute S1003, and the intention correction module lights up screen B and displays the image captured by the rear camera on screen B.
[0328] In some embodiments, when it is determined that the image captured by the rear camera does not include a facial image, if no touch is detected on screen A for a second consecutive period of time, that is, it is determined that screen A has not detected the user's touch operation for a first consecutive period of time, the intention correction module lights up screen B and displays the image captured by the rear camera on screen B.
[0329] When the intention correction module needs to determine that screen A detects a user's touch operation, it means that there is a touch point on screen A, that is, the user operates on screen A, and S1005 is executed.
[0330] At this time, the electronic device 100 still turns on the front camera and displays the image captured by the front camera on screen A.
[0331] S1005. The intention correction module turns off the rear camera and does not light up the B screen.
[0332] When it is determined that the image captured by the rear camera does not include a face image, and when it is determined that screen A detects a user's touch operation, it means that there is a touch point on screen A, that is, the user operates on screen A, and the intention correction module turns off the rear camera and does not light up screen B.
[0333] At this time, the electronic device 100 still turns on the front camera and displays the image captured by the front camera on screen A.
[0334] In other embodiments, after the action detection module obtains the flip selfie action result, the action detection module sends the flip selfie action result to the intention correction module.
[0335] In response to the flip selfie action result, the intention correction module turns on the rear camera and lights up screen B, and displays the image captured by the rear camera on screen B. At the same time, the intention correction module turns off the front camera and turns screen A off.
[0336] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.
[0337] 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 the present 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 integrated. 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 disk (SSD)), etc.
[0338] 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.
[0339] 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 photographing method, applied to an electronic device including a flexible display screen, characterized in that: The flexible display screen includes a first display screen and a second display screen, the first display screen includes a front camera and a first motion sensor, the back of the first display screen includes a rear camera, and when the flexible display screen is in a folded state, the first display screen and the second display screen are arranged opposite to each other, and the method includes: The electronic device receives a first user operation; In response to the first user operation, the electronic device displays a first selfie picture on the first display screen, where the first selfie picture includes a face image and is a picture frame captured by the front camera; The electronic device receives a second user operation; The electronic device acquires first motion data collected by the first motion sensor; The electronic device determines, based on the first motion data, that the second user operation is a flip selfie action; In response to the second user operation being the flip selfie action, the electronic device turns on the rear camera and displays a second selfie picture on the second display screen, where the second selfie picture is a picture frame captured by the rear camera.
2. The method according to claim 1, characterized in that The electronic device determines, based on the first motion data, that the second user operation is a flip selfie action, specifically including: The electronic device inputs the first motion data into an intention recognition model, and determines through the intention recognition model that the second user operation is a flipping action; In response to the second user operation being the flipping action, when the first motion data satisfies a first condition, the electronic device determines that the first user operation is the flipping selfie action; The first condition includes any one or more of the following: the linear acceleration of the electronic device is less than a third value, the length of the motion trajectory of the electronic device is less than a third value, and the rotation radius of the electronic device is less than a fifth value.
3. The method according to claim 2, characterized in that The direction perpendicular to the left and right edges of the electronic device and pointing from the left edge of the electronic device to the right edge of the electronic device is taken as the positive direction of the X axis, the direction perpendicular to the upper and lower edges of the electronic device and pointing from the lower left edge of the electronic device to the upper edge of the electronic device is taken as the positive direction of the Y axis, and the direction perpendicular to the X axis and the Y axis and away from the rear camera is taken as the positive direction of the Z axis; Before the electronic device inputs the first motion data into an intention recognition model, the method further includes: When the first motion data satisfies a second condition, the electronic device inputs the first motion data into the intention recognition model; The second condition includes any one or more of the following: the angular velocity moduli of the X-axis, the Y-axis and the Z-axis are greater than a first value, and the integral of the angular velocity of the Y-axis within a first time period is greater than a second value.
4. The method according to any one of claims 1 to 3, characterized in that: The electronic device obtains the first motion data collected by the first motion sensor, specifically including: After monitoring that the face image in the picture frame captured by the front camera disappears, the electronic device obtains the first motion data captured by the first motion sensor.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to displaying the second selfie picture on the second display screen, the electronic device turns off the front camera and turns off the first display screen.
6. The method according to any one of claims 1 to 4, characterized in that: After the electronic device turns on the rear camera, the method further includes: The electronic device turns off the front camera and turns off the first display screen.
7. The method according to any one of claims 1 to 6, characterized in that: The electronic device displays a second self-portrait picture on the second display screen, specifically comprising: When it is detected that the picture frame captured by the rear camera includes a face image, the electronic device starts displaying the second selfie picture on the second display screen.
8. The method according to any one of claims 1 to 6, characterized in that: The electronic device displays a second self-portrait picture on the second display screen, specifically comprising: When it is detected that the picture frames captured by the rear camera do not include a facial image and no user operation is received on the first display screen within a second time period, the electronic device displays the second selfie picture on the second display screen.
9. The method according to claim 8, characterized in that The method further comprises: When it is detected that the picture frames captured by the rear camera do not include a face image and when an operation performed by the user on the first display screen is received within a second time period, the electronic device turns off the rear camera.
10. The method according to claim 9, characterized in that The method further comprises: The electronic device turns on the front camera and continues to display the picture frames captured by the front camera on the first display screen.
11. The method according to any one of claims 1 to 10, characterized in that: The second display screen also includes a second motion sensor; before the electronic device determines that the second user operation is a flip selfie action based on the first motion data, the method also includes: The electronic device acquires second motion data collected by the second motion sensor; The electronic device determines, based on the first motion data, that the second user operation is a flip selfie action, specifically including: The electronic device determines that the second user operation is the flip selfie action based on the first motion data and the second motion data.
12. The method according to any one of claims 1 to 11, characterized in that: The first motion sensor includes an acceleration sensor and / or an angular velocity sensor, and the first motion data includes acceleration data or angular velocity data.
13. The method according to claim 11, characterized in that The second motion sensor includes an acceleration sensor and / or an angular velocity sensor, and the second motion data includes acceleration data or angular velocity data.
14. An electronic device, characterized in that: The method comprises one or more processors and one or more memories; 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 codes, wherein the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the method as described in any one of claims 1 to 13 is executed.
15. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the method according to any one of claims 1 to 13 is executed.
Citation Information
Cited By
Photographing method, and electronic device and storage medium
EP4651504A1