Photographing method and electronic device

By setting up multiple cameras and a foldable screen on electronic devices, users can achieve panoramic shooting simply by rotating the screen, solving the problems of inconvenient operation and image shakiness in existing technologies, and improving the user experience and effect of panoramic shooting.

WO2026056736A1PCT designated stage Publication Date: 2026-03-19HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-09-04
Publication Date
2026-03-19

AI Technical Summary

Technical Problem

Existing electronic devices require users to move along a guided path when shooting panoramic images, which is inconvenient and can easily cause image shake, resulting in poor shooting quality.

Method used

By setting up multiple cameras and a foldable screen on electronic devices, users can simply rotate the device's screen instead of moving the device itself to capture panoramic shots using multiple cameras and stitch the images together.

Benefits of technology

It simplifies the panoramic shooting process, reduces image shake, improves the user experience, and ensures the integrity and breadth of the panoramic image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025118929_19032026_PF_FP_ABST
    Figure CN2025118929_19032026_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a photographing method and an electronic device. The electronic device comprises a front-facing camera, a rear-facing camera, a first screen, a second screen, and a third screen. The method comprises: when an electronic device starts panoramic photographing in response to a user operation, the electronic device may capture images by means of a front-facing camera and a rear-facing camera during the rotation of a first screen and a third screen by a user. When the electronic device determines that a rotation angle of the first screen and a rotation angle of the third screen are equal to a preset angle, the electronic device may splice an image captured by the front-facing camera and an image captured by the rear-facing camera into a panoramic image. In this way, when the user uses the electronic device to capture a panoramic image, the user only needs to rotate display screens of the electronic device, and does not need to move along with the electronic device. The interaction mode is simple, and user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

A photographing method and an electronic device

[0001] The present application claims priority to the Chinese patent application No. 202411269912.9, filed on September 10, 2024, and entitled "A photographing method and an electronic device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the technical field of terminals and electronics, and in particular to a photographing method and an electronic device. BACKGROUND

[0003] With the continuous development of electronic technology, more and more electronic devices can provide panoramic shooting functions. Compared with ordinary shooting functions, panoramic shooting functions can capture a wider angle of view. In this way, users can capture the scenes around the region of interest and the region of interest through the panoramic shooting function. However, when the user uses the electronic device to perform panoramic shooting, the user needs to move the camera according to the guidance in the electronic device. In this way, the shooting operation is not simple enough, and the user is likely to cause picture shaking during the moving shooting, thereby resulting in poor shooting effect.

[0004] Therefore, how to shoot a panoramic image through a simple operation is a problem to be solved. SUMMARY

[0005] The present application provides a photographing method and an electronic device. Through the photographing method provided by the present application, a user can shoot a panoramic image through a simpler operation.

[0006] In a first aspect, the present application provides a photographing method, which can be applied to an electronic device. The electronic device includes a folding screen, a first camera, and a second camera. The folding screen can include a first screen, a second screen, and a third screen. The front or back of the first screen is provided with the first camera, and the back or front of the third screen is provided with the camera. The method can include: the electronic device displays a picture shot by the first camera; the electronic device starts a panoramic shooting mode of a camera application, turns on the second camera, and displays the picture shot by the first camera and the picture shot by the second camera; the first screen rotates relative to the second screen, and the first camera acquires a picture during the rotation; the third screen rotates relative to the second screen, and the second camera acquires a picture during the rotation; and the electronic device terminates the panoramic shooting and splices the picture shot by the first camera and the picture shot by the second camera into a panoramic image.

[0007] By the method provided by the first aspect, the user only needs to rotate the first screen and the third screen of the electronic device to shoot the panoramic image, without moving the electronic device from one position to another. And the panoramic shooting is performed by two cameras, so that the field of view of the panoramic image is wider.

[0008] With reference to the first aspect, in a possible implementation manner, when the electronic device starts the panoramic shooting mode of the camera application, the electronic device is in a fully unfolded state; or, the electronic device is in a fully folded state; or, the first screen and the second screen are at any angle, and the second screen and the third screen are at any angle. In this way, the user can start the panoramic shooting when the electronic device is in any posture.

[0009] With reference to the first aspect, in a possible implementation manner, when the electronic device starts the panoramic shooting mode of the camera application, the first screen, the second screen and the third screen are in a bright screen state; or, the first screen is in a bright screen state, and the second screen and the third screen are in a dark screen state; or, the second screen and the third screen are in a bright screen state. In this way, the display screen of the electronic device is in different states of being bright or dark when the electronic device is in different postures, which enriches the visual display effect of the panoramic shooting.

[0010] With reference to the first aspect, in a possible implementation manner, when the picture shot by the first camera and the picture shot by the second camera are displayed, the method further includes: displaying, by the electronic device, a preview splicing picture, the preview splicing picture including a real-time splicing result of the picture shot by the first camera from when the panoramic shooting mode is started to the current time and a real-time splicing result of the picture shot by the second camera from when the panoramic shooting mode is started to the current time. In this way, the user can see the real-time splicing result, which can improve the user experience.

[0011] With reference to the first aspect, in a possible implementation manner, the preview splicing picture includes a first progress and a second progress, the first progress being used to indicate the shooting progress of the first camera, and the second progress being used to indicate the shooting progress of the second camera. In this way, the user can know the shooting progress of the first camera and the second camera.

[0012] With reference to the first aspect, in a possible implementation manner, in the process of rotating the first screen relative to the second screen, the electronic device updates the first progress; and in the process of rotating the third screen relative to the second screen, the electronic device updates the second progress. In this way, the progress displayed by the electronic device is updated with the actual shooting progress, which can be used to real-time prompt the user of the current shooting progress. Thus, the user experience can be improved.

[0013] With reference to the first aspect, in a possible implementation manner, the electronic device displays the preview spliced picture, the picture captured by the first camera, and the picture captured by the second camera in the second screen; or, the electronic device displays the preview spliced picture, the picture captured by the first camera, and the picture captured by the second camera in the first screen. In this way, when the electronic device is in different postures, the picture captured by the camera and the preview spliced picture can be displayed in different display screens, thereby enriching the visual display effect of panoramic shooting.

[0014] With reference to the first aspect, in a possible implementation manner, when the electronic device displays the preview spliced picture, the picture captured by the first camera, and the picture captured by the second camera in the second screen, the method can further include: the electronic device displays the picture captured by the first camera in the first screen, and displays the picture captured by the second camera in the third screen. In this way, not only the picture captured by the first camera and the picture captured by the second camera are displayed in the second screen, but also the picture captured by the first camera is displayed in the first screen, and the picture captured by the second camera is displayed in the third screen, thereby improving the visual experience of the user.

[0015] With reference to the first aspect, in a possible implementation manner, the occasion when the electronic device terminates the panoramic shooting includes any one of the following: receiving a user input of an operation of terminating the panoramic shooting, detecting that the camera application exits the foreground running, a first angle of rotation of the first screen relative to the second screen, and a second angle of rotation of the third screen relative to the second screen, and a sum of the first angle and the second angle reaches a preset angle. In this way, the electronic device can terminate the panoramic shooting at different occasions to generate a panoramic image.

[0016] With reference to the first aspect, in a possible implementation manner, if the first camera is a front camera and the second camera is a rear camera; or, if the first camera is a rear camera and the second camera is a front camera.

[0017] In a second aspect, an electronic device is provided, and the electronic device includes: a foldable screen, at least two cameras, one or more processors, and one or more memories. The foldable screen is foldable, and the foldable screen includes a first screen, a second screen, and a third screen. The first screen and the second screen are foldable about a folding component, and the second screen and the third screen are foldable about the folding component. The first display screen, the at least two cameras, and the one or more memories are respectively coupled with the one or more processors. The one or more memories are configured to store computer program codes including computer instructions. When the computer instructions run on the processor, the electronic device performs the method in any one of the possible implementation manners of the first aspect.

[0018] In a third aspect, an embodiment of the present application provides a computer readable storage medium, the computer readable storage medium storing a computer program, the computer program, when executed by a computer, causing the computer to implement the method in any possible implementation manner of the first aspect.

[0019] In a fourth aspect, an embodiment of the present application provides a computer program product, when the computer program product is run on an electronic device, causing the electronic device to perform the method in any possible implementation manner of the first aspect.

[0020] It can be understood that the beneficial effects of the above-mentioned second aspect to fourth aspect can refer to the related description in the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS

[0021] FIGS. 1A-1E are schematic diagrams of some electronic devices 100 with a three-fold screen according to an embodiment of the present application;

[0022] FIG. 2 is a set of user interface diagrams of the electronic device 200 shooting a panoramic image according to an embodiment of the present application;

[0023] FIG. 3A is a schematic diagram of the electronic device 100 shooting a panoramic image in a fully unfolded state according to an embodiment of the present application;

[0024] FIG. 3B is a schematic diagram of the electronic device 100 shooting a panoramic image in a fully unfolded state according to an embodiment of the present application;

[0025] FIG. 4 is a schematic diagram of the electronic device 100 shooting a panoramic image in a stand state 1 according to an embodiment of the present application;

[0026] FIG. 5 is a schematic diagram of the electronic device 100 shooting a panoramic image in a fully folded state according to an embodiment of the present application;

[0027] FIG. 6 is a schematic diagram of a fully unfolded state and a fully folded state of a three-fold screen according to an embodiment of the present application;

[0028] FIG. 7 is a user interface diagram of the electronic device 100 according to an embodiment of the present application;

[0029] FIG. 8A is a user interface diagram of the electronic device 100 according to an embodiment of the present application;

[0030] FIG. 8B is a user interface diagram of the electronic device 100 according to an embodiment of the present application;

[0031] FIG. 9 is a schematic diagram of the electronic device 100 shooting a panoramic image in a semi-folded state 1 according to an embodiment of the present application;

[0032] Figure 10 is a schematic diagram of a panoramic image captured by an electronic device 100 in a semi-folded state 2 according to an embodiment of this application;

[0033] Figure 11 is a flowchart illustrating a photographing method provided in an embodiment of this application;

[0034] Figure 12 is a schematic diagram of the structure of the electronic device 100 provided in an embodiment of this application;

[0035] Figure 13 is a schematic diagram of the software structure of the electronic device 100 provided in an embodiment of this application. Detailed Implementation

[0036] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0037] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. The terms “first” and “second” are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as “first” or “second” may explicitly or implicitly include one or more of that feature. “First” and “second,” etc., are used to distinguish different objects, not to describe a particular order of objects. For example, a first object and a second object are used to distinguish different objects, not to describe a particular order of objects.

[0038] In the description of the embodiments in this application, unless otherwise stated, "multiple" means two or more. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

[0039] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or related scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0040] The term "and / or" in the present application is only a description of the association relationship of the associated objects, which means that there can be three relationships. For example, A and / or B can represent three cases of A alone, A and B together, and B alone.

[0041] The term "user interface (UI)" in the following embodiments of the present application is a medium interface for interaction and information exchange between an application or an operating system and a user, which realizes the conversion between the internal form of information and the form that the user can accept. The user interface is source code written in a specific computer language such as Java, extensible markup language (XML), etc. The interface source code is parsed, rendered, and finally presented as content that can be recognized by the user on the electronic device. The commonly used form of user interface is graphic 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, icon, button, menu, tab, text box, dialog box, status bar, navigation bar, Widget, etc. displayed in the display screen of the electronic device.

[0042] In order to better understand the technical solutions provided by the present application, before the technical solutions of the present application are described, first, the electronic device 100 with a folding screen and a shooting panoramic image function to which the present application is applicable is introduced in combination with the drawings. The electronic device 100 can have multiple display screens. The electronic device 100 can include a folding screen device. The folding screen device can have a foldable display screen, which can be folded into multiple display screens. For example, a two-fold screen can be folded into two display screens, and a three-fold screen can be folded into three display screens.

[0043] The following text takes the electronic device 100 as an example of a folding screen device with a three-fold screen to illustrate the present application. First, the electronic device 100 with a three-fold screen is introduced.

[0044] Figures 1A-1E exemplarily show some morphological schematic diagrams of electronic devices 100 with a three-fold screen.

[0045] As shown in Figure 1A, the folding screen of the electronic device 100 can include A screen, B screen and C screen. Among them, A screen and B screen can be distributed on both sides of folding edge 1 and can rotate around folding edge 1. B screen and C screen can be distributed on both sides of folding edge 2 and can rotate around folding edge 2.

[0046] Figure 1A shows a fully unfolded state of the folding screen. In the fully unfolded state, the angle between the A screen and the B screen is 180° or approximately 180°, and the angle between the B screen and the C screen is 180° or approximately 180°. The A screen, the B screen, and the C screen can be unfolded into a plane. In the fully unfolded state, the electronic device 100 can display the A screen, the B screen, and the C screen as a whole screen.

[0047] In some embodiments, a front camera can be disposed on the A screen.

[0048] In some embodiments, in the fully unfolded state, the A screen can rotate around the folding edge 1 in the direction 11a shown in Figure 1A, and the C screen can rotate around the folding edge 2 in the direction 11b shown in Figure 1A. For example, in the fully unfolded state, the angle between the B screen and the C screen remains unchanged, the A screen rotates around the folding edge 1 in the direction 11a, and the folding screen can form a semi-folded state 1 shown in Figure 1B.

[0049] As shown in Figure 1B, the folding screen is in the semi-folded state 1. In the semi-folded state 1, the angle between the A screen and the B screen is 0° or approximately 0°, and the angle between the B screen and the C screen is 180° or approximately 180°. The A screen faces away from the B screen. The B screen and the C screen are unfolded into a plane. In the semi-folded state 1, the electronic device 100 can display the B screen and the C screen as a whole screen.

[0050] In some embodiments, a front camera can also be disposed on the B screen and / or the C screen.

[0051] In some embodiments, in the semi-folded state 1, the B screen can rotate around the folding edge 2 in the direction 12a shown in Figure 1B together with the A screen, and the C screen can rotate around the folding edge 2 in the direction 12b shown in Figure 1B. For example, in the semi-folded state 1, the angle between the A screen and the B screen remains unchanged, the B screen rotates around the folding edge 2 in the direction 12a, and / or the C screen rotates around the folding edge 2 in the direction 12b, and the folding screen can form a fully folded state shown in Figure 1D.

[0052] As shown in Figure 1C, the folding screen is in the semi-folded state 2. In the fully unfolded state shown in Figure 1A, the angle between the A screen and the B screen remains unchanged, the C screen rotates around the folding edge 2 in the direction 11b, and the folding screen can form the semi-folded state 2. In the semi-folded state 2, the angle between the A screen and the B screen is 180° or approximately 180°, and the angle between the B screen and the C screen is 0° or approximately 0°. The B screen and the C screen face each other (i.e., in a face-to-face state). In the semi-folded state 2, the electronic device 100 can use the A screen for display because the B screen and the C screen block each other.

[0053] In some embodiments, the back of the C screen is provided with a rear camera. In the half-folded state 2, the C screen and the A screen can be simultaneously facing the user. The electronic device 100 can use the front camera and / or the rear camera to capture images.

[0054] In some embodiments, in the half-folded state 2, the A screen can be rotated around the folding edge 1 in the direction 13a shown in FIG. 1C, and the B screen can be rotated around the folding edge 1 in the direction 13b shown in FIG. 1C together with the C screen. For example, in the half-folded state 2, the angle between the B screen and the C screen remains unchanged, the A screen is rotated around the folding edge 1 in the direction 13a, and / or the B screen is rotated around the folding edge 1 in the direction 13b, and the folding screen can form the fully folded state shown in FIG. 1D.

[0055] As shown in FIG. 1D, the folding screen is in a fully folded state. In some embodiments, the folding screen can be folded from the half-folded state 1 shown in FIG. 1B or the half-folded state 2 shown in FIG. 1C to form the fully folded state. In the fully folded state, the angle between the A screen and the B screen is 0° or approximately 0°, and the angle between the B screen and the C screen is 0° or approximately 0°. The A screen and the B screen face away from each other. The B screen and the C screen face each other. In the fully folded state, the A screen is visible to the user, and the B screen and the C screen are not visible to the user, and the electronic device 100 can use the A screen for display.

[0056] As shown in FIG. 1E, the folding screen is in a stand state. The stand state shown in FIG. 1E can be referred to as a stand state 1. In some embodiments, when the folding screen is in the fully unfolded state shown in FIG. 1A, the A screen is rotated around the folding edge 1 in the direction 11a, and the C screen is rotated around the folding edge 2 in the direction 11b, and the folding screen can form the stand state 1 shown in FIG. 1E. In the stand state 1, the angle α between the A screen and the B screen, and the angle β between the B screen and the C screen are both greater than 0° and less than 180°.

[0057] In some embodiments, in the stand state 1, the A screen is rotated around the folding edge 1 in the direction 14a shown in FIG. 1E, and the C screen is rotated around the folding edge 2 in the direction 14b shown in FIG. 1E, and the folding screen can form the fully folded state shown in FIG. 1D. That is, the folding screen in the fully unfolded state can be folded through the stand state 1 and further folded to form the fully folded state.

[0058] In some embodiments, the folding screen of the electronic device 100 can be a complete screen in an integrated structure. For example, the folding screen can be a flexible folding screen. The flexible folding screen includes folding edges made of flexible materials. Part or all of the flexible folding screen is made of flexible materials. That is, the A screen, the B screen, and the C screen described above can be a complete screen in an integrated structure.

[0059] In some embodiments, the folding screen of the electronic device 100 can be a multi-screen folding screen, which can be composed of multiple independent display screens. The multiple display screens can be connected in sequence by folding shafts or hinges. Each display screen can rotate around the folding shaft or hinge connected thereto to achieve folding of the multi-screen folding screen. That is, the A screen, the B screen, and the C screen described above can be independent display screens.

[0060] Currently, electronic devices with panoramic shooting functions can all shoot panoramic images. Some electronic devices require users to move the electronic devices along a guide path prompted by the electronic devices when shooting panoramic images. For example, as shown in FIG. 2, taking the panoramic shooting of the electronic device 200 as an example. When a user needs to shoot a car 201, a plant 202, a tree 203, a basketball 204, a panda 205, and flowers 206 in a scene by the electronic device 200, the user needs to start the panoramic shooting mode of the electronic device 200, press the shutter, and move the electronic device 200 along the guide path. For example, the electronic device 200 needs to be moved from position 1 to position 2 to shoot a panoramic image containing the plant 202 and the tree 203.

[0061] The electronic device 200 can display a shooting interface 20A when shooting a panoramic image. The shooting interface 20A can include a feedback control 207A, a shooting control 207B, a camera switching control 207C, one or more shooting mode controls (for example, a photographing mode control 208A, a video recording mode control 208B, a professional mode control 208C, and a panoramic shooting mode control 208D, etc.), and a setting control 209.

[0062] The feedback control 207A can be used to trigger the display of a shot image or video. The shooting control 207B can be used to trigger the camera to obtain an image and save the image obtained by the camera. The camera switching control 207C can be used to switch the camera for collecting images (for example, switching the front camera to the rear camera, or switching the rear camera to the front camera). The photographing mode control 208A can be used to trigger the electronic device 200 to shoot an image using default parameters and process the image shot by the camera using a default image processing flow. The video recording mode control 208B can be used to trigger the electronic device 200 to record a video through a single camera. The professional mode control 208C can be used to trigger the electronic device 200 to display controls for adjusting various camera parameters (for example, light measurement mode, light sensitivity, shutter, exposure compensation, etc.) so that the user can adjust various camera parameters when shooting. The panoramic shooting mode control 208D is used to trigger the electronic device 200 to perform panoramic shooting and obtain a photo with a larger angle of view than in the normal shooting mode. The setting control 209 can be used to trigger the electronic device 200 to display a setting menu for setting the camera application.

[0063] As shown in FIG. 2, the control 208D of the panorama shooting mode is selected, and the electronic device 200 is in the panorama shooting mode. When the electronic device 200 is in the panorama shooting mode, the shooting interface 20A can include the guide information 210 and the prompt information 211 in the panorama shooting mode, and the preview picture 212. The guide information 210 can include the guide path 210A and the panorama preview window 210B. The guide path 210A can be used to prompt the complete path that the electronic device 200 needs to move and shoot in the entire process of panorama shooting. The panorama preview window 210B can be used to display the thumbnail of the panorama image generated by the electronic device 200 in real time in the panorama shooting process. The prompt information 211 can be used to prompt the operation method of the user to shoot the panorama image, for example, the prompt information 211 can be "press the shutter and slowly move along the arrow direction". The preview picture 212 is the preview picture shot by the electronic device 200 in real time in the panorama shooting process.

[0064] When the user holds the electronic device 200 to move from the position 1 to the position 2 according to the guide path 210A, the panorama shooting can be completed, and the shooting interface 20B is displayed. The shooting interface 20B can include the picture 213 shot by the rear camera and the panorama preview window 210C.

[0065] When the electronic device 200 shoots the panorama image, the user needs to move according to the guide path prompted by the guide path 210A, and the user also needs to move with the electronic device 200. For example, from the position 1 to the position 2. If the user shakes during the movement of the electronic device 200, it will cause the distortion of the panorama image shot by the electronic device 200. If the user moves the electronic device 200 at too large an angle, it will also cause the failure of the electronic device 200 to shoot the panorama image, and the user needs to move the electronic device 200 according to the guide path again. Moreover, during the movement of the electronic device 200 from the position 1 to the position 2, only the scene within the range of 180 degrees can be shot, and the entire scene within the range of 360 degrees cannot be shot. For example, during the movement of the electronic device 200 from the position 1 to the position 2, the car 201, the basketball 204, the panda 205 and the flowers 206 cannot be shot. In this way, the user experience is poor.

[0066] The embodiment of the present application provides a photographing method, which can be used for the electronic device 100 with the three-fold screen described above. When the electronic device 100 is in the unfolded state and starts to shoot the panorama image, the user only needs to rotate the A screen and the C screen of the electronic device 100. Then, when the sum of the rotation angles of the A screen and the C screen of the electronic device 100 is 360°, the electronic device 100 can splice the image shot by the front camera located on the same side of the A screen during the rotation process and the image shot by the rear camera located on the back of the C screen, to obtain the panorama image.

[0067] By the photographing method provided in the embodiments of the present application, when the user uses the electronic device 100 to shoot a panoramic image, the user only needs to rotate the display screen of the electronic device 100, and does not need to move the electronic device 100, so that the interaction is simple. Moreover, since the rotation of the display screen is simple, the user can keep stable during the shooting process. Therefore, when shooting a panoramic image, the situation that the shooting picture shakes due to the movement of the electronic device can be reduced. By using the photographing method provided in the embodiments of the present application, since the electronic device 100 does not need to be moved, the shooting failure caused by the inconsistency between the movement path and the guide path displayed by the electronic device 100 can be avoided. In this way, the user experience can be improved.

[0068] The specific process in which the electronic device 100 shoots a panoramic image will be described below with reference to the accompanying drawings. Hereinafter, the electronic device 100 is taken as an example, in which the front camera is arranged on the A screen, and the rear camera is arranged on the back of the C screen.

[0069] FIGS. 3A-7 exemplarily show related schematic diagrams in which the electronic device 100 shoots a panoramic image.

[0070] As shown in FIG. 3A, the electronic device 100 is at a position 3, in which the left rear has a small car 201, the left front has a plant 202, the right front has a big tree 203, the right rear has a basketball 204, the left side has a panda 205, and the right side has flowers 206. The electronic device 100 is in an unfolded state, and displays a shooting interface 300. The shooting interface 300 can include a feedback control 207A, a shooting control 207B, a camera conversion control 207C, one or more shooting mode controls (for example, a photographing mode control 208A, a video recording mode control 208B, a professional mode control 208C, and a panoramic shooting mode control 208D, etc.), and a setting control 209.

[0071] In the shooting interface 300, the panoramic shooting mode control 208D is selected. The shooting interface 300 can display a rear camera shooting preview picture 301 and a prompt information 302. The prompt information 302 can be used to prompt the user to perform the operation method of panoramic shooting. Exemplarily, the prompt information 302 can be "press the shutter, and rotate the A screen away from the B screen, and rotate the C screen towards the B screen". Optionally, the prompt information 302 can further include a prompt picture of rotating the A screen and the C screen, which is used to prompt the user to rotate the A screen and the C screen in a specific way. The embodiments of the present application do not limit the specific content of the prompt information 302.

[0072] The user can click the shooting control 207B to trigger the electronic device 100 to start panoramic shooting. In response to the user operation, the electronic device 100 can keep the front camera and the rear camera open at the same time, and display the preview screen shot by the front camera and the preview screen shot by the rear camera. For example, the electronic device 100 can display the screen shot by the front camera and the screen shot by the rear camera at the same time.

[0073] Optionally, as shown in FIG. 3B, the electronic device 100 can also display a prompt information 312 in the B screen, which can be used to prompt the user to rotate the A screen and the C screen around the B screen. For example, the content of the prompt information 312 can be “please rotate the A screen away from the B screen, and rotate the C screen towards the B screen”. The specific content of the prompt information 312 is not limited in the embodiments of the present application.

[0074] Before the user clicks the shooting control 207B, if the electronic device 100 opens the rear camera, in response to the user clicking the shooting control 207B, the electronic device 100 can open the front camera. Before the user clicks the shooting control 207B, if the electronic device 100 opens the front camera, in response to the user clicking the shooting control 207B, the electronic device can open the rear camera.

[0075] Specifically, in a possible implementation, when the user clicks the shooting control 207B, the electronic device 100 starts panoramic shooting. As shown in FIG. 3B, when the user clicks the shooting control 207B, the electronic device 100 can display the screen 310 shot by the rear camera and the screen 314 shot by the front camera in the B screen. The electronic device 100 can also display a preview splicing screen 313 in the B screen, which can include a splicing screen 3131, a shooting progress 3132, a splicing screen 3133 and a shooting progress 3134. The splicing screen 3131 is obtained by the electronic device 100 real-time splicing the screen shot by the front camera from the start of panoramic shooting to the current time. The shooting progress 3132 is used to indicate the shooting progress of the front camera in panoramic shooting. The splicing screen 3133 is obtained by the electronic device 100 real-time splicing the screen shot by the rear camera from the start of panoramic shooting to the current time. The shooting progress 3134 can be used to indicate the shooting progress of the rear camera in panoramic shooting.

[0076] Optionally, as shown in FIG. 3B, when the user clicks the shooting control 207B, the electronic device 100 can also display the screen 314 shot by the front camera in the A screen, and display the screen 315 shot by the rear camera in the C screen.

[0077] The user can rotate the A screen around the folding edge 1 in the direction 11a; and can rotate the C screen around the folding edge 2 in the direction 11b. In response to the user's operation, the electronic device 100 can change from the fully unfolded state shown in FIG. 3B to the stand state 1 as shown in FIG. 4.

[0078] As shown in FIG. 4, the electronic device 100 can be in the stand state 1. At this time, the electronic device 100 is located at the position 3, the front camera of the electronic device 100 can capture the panda 205, and the rear camera of the electronic device 100 can capture the flower 206. The electronic device 100 displays the picture 401 captured by the front camera and the picture 402 captured by the rear camera in the B screen. The picture 401 contains the panda 205, and the picture 402 contains the flower 206.

[0079] As shown in FIG. 4, the electronic device 100 can display a preview spliced picture 404 in the B screen. The preview spliced picture 404 can include a spliced picture 4041, a shooting progress 4042, a spliced picture 4043, and a shooting progress 4044. The spliced picture 4041 is obtained by the electronic device 100 real-time splicing the pictures captured by the front camera from the start of panoramic shooting to the current time. The shooting progress 4042 is used to indicate the shooting progress of the panoramic shooting by the front camera.

[0080] At this time, the front camera has not completed the shooting, and the pictures captured by the front camera from the start of panoramic shooting to the current time include the car 201 and the panda 205.

[0081] The spliced picture 4043 is obtained by the electronic device 100 real-time splicing the pictures captured by the rear camera from the start of panoramic shooting to the current time. The shooting progress 4044 can be used to indicate the shooting progress of the panoramic shooting by the rear camera. At this time, the rear camera has not completed the shooting, and the pictures captured by the rear camera from the start of panoramic shooting to the current time include the big tree 203 and the flower 206.

[0082] Optionally, as shown in FIG. 4, the electronic device 100 can also display the picture 405 captured by the front camera in the A screen and display the picture 406 captured by the rear camera in the C screen. The picture 405 contains the same content as the picture 401. The size of the picture 405 and the size of the picture 401 can be different. The picture 406 contains the same content as the picture 402. The size of the picture 406 and the size of the picture 402 can be different.

[0083] Optionally, the electronic device 100 can also display a prompt information 403 in the B screen. The prompt information 403 can be used to prompt the user to continue rotating the A screen and the C screen. For example, the content of the prompt information 403 can be "Please continue to rotate the A screen and the C screen".

[0084] For another example, in some examples, the prompt information 403 can also include a schematic diagram or an animation, a video, etc. for prompting the user how to rotate the A screen and the C screen. The schematic diagram or the animation, the video can contain information such as the rotation direction and the rotation angle of the A screen, and the rotation direction and the rotation angle of the C screen. The specific content of the prompt information 403 is not limited in the embodiments of the present application.

[0085] Optionally, in another possible implementation, the electronic device 100 can also prompt the user to continue rotating the A screen and the C screen in the form of voice or vibration, etc. The specific form of prompting the user by the electronic device 100 is not limited in the embodiments of the present application.

[0086] The user can continue to rotate the A screen around the folding edge 1 according to the direction 14a, and continue to rotate the C screen around the folding edge 2 according to the direction 14b, until the electronic device 100 is rotated into a fully folded state.

[0087] In a possible implementation, during the rotation of the A screen and the C screen by the user, when the electronic device 100 detects that the included angle β between the B screen and the C screen is less than a preset value 1, the electronic device 100 can power off the B screen and power on the A screen. That is, the B screen and the C screen of the electronic device 100 are in a screen-off state, and the A screen is in a screen-on state. The electronic device 100 displays the pictures taken by the front camera and the pictures taken by the rear camera in the A screen.

[0088] The preset value 1 is less than 180°, and the preset value 1 is greater than 0°. For example, the preset value 1 is 60°, 75°, etc. The specific value of the preset value 1 is not limited in the embodiments of the present application.

[0089] When the C screen is rotated to be close to the B screen, if the included angle β between the B screen and the C screen is too small, the C screen will block the content displayed by the B screen. When the included angle β between the B screen and the C screen is less than a preset value 3, the A screen displays the pictures taken by the front camera and the pictures taken by the rear camera. In this way, it can be avoided that the user cannot see the pictures taken by the front camera and the pictures taken by the rear camera due to the blocking of the content displayed by the B screen by the C screen.

[0090] Optionally, in a possible implementation, when the user rotates the A screen, the electronic device 100 can display an animation effect 1 in which the picture taken by the front camera gradually transforms from the A screen to the B screen. When the user rotates the C screen, the electronic device 100 can display an animation effect 2 in which the picture taken by the rear camera gradually transforms from the C screen to the C screen. The specific presentation form of the animation effect 1 and the animation effect 2 is not limited in the embodiment of the present application.

[0091] As shown in FIG. 5, the electronic device 100 is in the fully folded state. At this time, the electronic device 100 is located at position 3, and the front camera of the electronic device 100 can take a picture of the plant 202, and the rear camera can take a picture of the basketball 204. When the electronic device 100 is in the fully folded state, the electronic device 100 can display the picture taken by the front camera and the picture taken by the rear camera in the A screen. Exemplarily, the electronic device 100 can display a shooting interface 500 in the A screen. The shooting interface 500 can include the picture 501 taken by the front camera and the picture 502 taken by the rear camera. The picture 501 can include the plant 202, and the picture 502 can include the basketball 204.

[0092] As shown in FIG. 5, the electronic device 100 can also display a preview spliced picture 503. Optionally, in a possible implementation, the preview spliced picture 503 can be divided into two parts, one part is used to present the real-time panoramic preview spliced picture of the front camera, and the other part is used to present the real-time panoramic preview spliced picture of the rear camera. Exemplarily, the electronic device 100 can present the real-time panoramic preview spliced picture of the front camera in the first half of the preview spliced picture 503, and present the real-time panoramic preview spliced picture of the rear camera in the second half of the preview spliced picture 503.

[0093] Exemplarily, as shown in FIG. 5, the preview spliced picture 503 can include a spliced picture 5031 and a spliced picture 5032. The spliced picture 5031 is obtained by the electronic device 100 splicing the pictures taken by the front camera from the beginning of panoramic shooting to the current time in real time. At this time, the front camera has completed shooting, and the pictures taken by the front camera from the beginning of panoramic shooting to the current time include the car 201, the panda 205, and the plant 202. The spliced picture 5032 is obtained by the electronic device 100 splicing the pictures taken by the rear camera from the beginning of panoramic shooting to the current time in real time. At this time, the rear camera has completed shooting, and the pictures taken by the rear camera from the beginning of panoramic shooting to the current time include the big tree 203, the flower 206, and the basketball 204.

[0094] In a possible implementation, when the front camera and the rear camera have both completed the panorama shooting, the preview spliced picture 503 can not include the shooting progress of the front camera and the shooting progress of the rear camera.

[0095] When the electronic device 100 detects that the sum of the angle of rotation of the A screen and the angle of rotation of the C screen is 360°, the electronic device 100 can splice the picture captured by the front camera from the beginning of the panorama shooting to the termination of the panorama shooting and the picture captured by the rear camera from the beginning of the panorama shooting to the termination of the panorama shooting into a panorama image.

[0096] The sum of the angle of rotation of the A screen and the angle of rotation of the C screen of the electronic device 100 is 360°, that is, the electronic device 100 changes from the fully unfolded state to the fully folded state. As shown in FIG. 6, the electronic device 100 changes from the fully unfolded state to the fully folded state. The electronic device 100 in the fully unfolded state and the electronic device 100 in the fully folded state can be referred to the description in FIG. 1A and FIG. 1D respectively, which will not be repeated here.

[0097] When the electronic device 100 splices the panorama image, the panorama shooting state can be ended. That is, the electronic device 100 can keep the control 208D of the panorama shooting mode selected, but has not started shooting. As shown in FIG. 7, the electronic device 100 is in the fully folded state. The A screen of the electronic device 100 displays a preview interface 700, which can include a preview picture 701 and a prompt information 702. The preview picture 701 can be a picture captured by the rear camera. The prompt information 702 can be used to prompt the user to an operation method of capturing the panorama image. As an example, the prompt information 702 can be used to prompt the user that the electronic device 100 can be unfolded to the fully unfolded state to continue capturing the panorama image, and the user can also directly capture the panorama image in the folded state. Optionally, the prompt information 702 can include a control 7021 and a control 7022. The user can click the control 7021, and the electronic device 100 can detect whether the state of the electronic device 100 changes to the fully unfolded state and keep the front camera and the rear camera turned on in response to the user operation. The user can click the control 7022, and the electronic device 100 can capture the panorama image through the rear camera and display the guide information and the prompt information in the panorama shooting mode in the A screen in response to the user operation. As an example, the guide information in the panorama shooting mode can be the guide information 210 in FIG. 2, and the prompt information can be the prompt information 211 shown in FIG. 2, which can be referred to the description in FIG. 2 and will not be repeated here.

[0098] The user can also click the echo control 207A to view a panoramic image captured by the electronic device 100 in the panoramic shooting mode. In response to the user operation, the electronic device 100 can display the panoramic image.

[0099] In a possible implementation, the panoramic image stitched by the electronic device 100 can be a three-dimensional image. For example, as shown in FIG. 8A, the electronic device 100 can display a user interface 800 in the A screen, where the user interface 800 can include a panoramic image 801. The panoramic image 801 is stitched based on the pictures captured by the front camera of the electronic device 100 from the start of the panoramic shooting to the end of the panoramic shooting, and the pictures captured by the rear camera of the electronic device 100 from the start of the panoramic shooting to the end of the panoramic shooting during the panoramic shooting process. The panoramic image 801 can be a three-dimensional image. The user can turn the panoramic image 801 in the user interface 800 to view the details of the panoramic image 801 at different angles.

[0100] Optionally, the user interface 800 can also include a menu bar 802, where the menu bar 802 includes one or more controls for the panoramic image 801. For example, a control for sharing the panoramic image 801, a control for saving the panoramic image 801, a control for triggering editing of the panoramic image, a control for deleting the panoramic image 801, and a control for triggering display of more function options for the panoramic image, and the like.

[0101] Optionally, the user interface 800 can also include a prompt information 803 and a control 804. The prompt information 803 is used to prompt the completion time of the panoramic image 801. For example, the prompt information 803 can be “2024-02-14 08:00”, which indicates that the completion time of the panoramic image is “2024-02-14 08:00”.

[0102] Optionally, in another possible implementation, the panoramic image stitched by the electronic device 100 can be a two-dimensional image. For example, as shown in FIG. 8B, the electronic device 100 can display a user interface 810 in the A screen, where the user interface 810 can include a panoramic image 801. The panoramic image 811 is stitched based on the pictures captured by the front camera of the electronic device 100 from the start of the panoramic shooting to the end of the panoramic shooting, and the pictures captured by the rear camera of the electronic device 100 from the start of the panoramic shooting to the end of the panoramic shooting during the panoramic shooting process. The panoramic image 811 can be a two-dimensional image.

[0103] As shown in FIG. 8B, the user interface 810 can further include one or more controls for the panoramic image 811, the prompt information 803 and the control 804. The one or more controls for the panoramic image 811, the prompt information 803 and the control 804 can refer to the description of FIG. 8A, which will not be repeated here.

[0104] In a possible implementation, after the electronic device 100 completes the panoramic image shooting, the electronic device 100 can close one camera. For example, if the electronic device 100 starts shooting the panoramic image by using the rear camera, the electronic device 100 can close the front camera after the panoramic image shooting is completed. If the electronic device 100 starts shooting the panoramic image by using the front camera, the electronic device 100 can close the rear camera after the panoramic image shooting is completed. In this way, the power consumption of the electronic device 100 can be saved.

[0105] In a possible implementation, when the electronic device 100 is in the fully unfolded state shown in FIG. 3A, the user can rotate the display screen in a manner different from that shown in FIG. 4. For example, the user can first rotate the A screen of the electronic device 100 around the folding edge 1 in the direction 11a, so that the A screen is on the back of the B screen. That is, the electronic device 100 changes from the fully unfolded state to the semi-folded state 1 shown in FIG. 9.

[0106] As shown in FIG. 9, at this time, the electronic device 100 is in the position 3, the front camera of the electronic device 100 can shoot the plant 202, and the rear camera of the electronic device 100 can shoot the big tree 203. The electronic device 100 is in the semi-folded state 1, and the B screen and the C screen of the electronic device 100 can be in the powered-on state. The electronic device 100 can shoot the screen 901 by using the front camera of the B screen and shoot the screen 902 by using the rear camera. The screen 901 can include the plant 202, and the screen 902 can include the big tree 203.

[0107] As shown in FIG. 9, the electronic device 100 can also display a preview spliced picture 903 in the B screen. The preview spliced picture 903 can include a spliced picture 9031 and a spliced picture 9032. The spliced picture 9031 is obtained by the electronic device 100 real-time splicing the pictures taken by the front camera from the time when the panoramic shooting is started to the current time. At this time, the front camera has completed the shooting, and the pictures taken by the front camera from the time when the panoramic shooting is started to the current time include the car 201, the panda 205, and the plant 202. The spliced picture 9032 is obtained by the electronic device 100 real-time splicing the pictures taken by the rear camera from the time when the panoramic shooting is started to the current time. At this time, the rear camera has not completed the shooting, and the pictures taken by the rear camera from the time when the panoramic shooting is started to the current time include the big tree 203.

[0108] In a possible implementation, when the front camera has completed the panoramic shooting and the rear camera has not completed the panoramic shooting, the preview spliced picture 903 can not include the shooting progress of the front camera, but include the shooting progress 9033 of the rear camera. The shooting progress 9033 can be used to indicate the progress of the rear camera in shooting the panoramic image.

[0109] Optionally, as shown in FIG. 9, the electronic device 100 can also display a picture 904 taken by the rear camera in the C screen. The picture 904 includes the big tree 203.

[0110] In a possible implementation, when the electronic device 100 is in the half-folded state 1, the electronic device 100 can power off the A screen, so as to save the power consumption of the electronic device 100.

[0111] Optionally, when the electronic device 100 is in the half-folded state 1, the electronic device 100 can prompt the user to continue rotating the C screen by one or more of text, video, animation, voice, or vibration.

[0112] The user can rotate the C screen of the electronic device 100 around the folding edge 2 in the direction 11b, so that the electronic device 100 changes from the half-folded state 1 to the fully-folded state shown in FIG. 5. When the electronic device 100 detects that the sum of the angle of rotation of the A screen and the angle of rotation of the C screen is 360°, the electronic device 100 can splice the pictures taken by the front camera from the time when the panoramic shooting is started to the time when the panoramic shooting is terminated, and the pictures taken by the rear camera from the time when the panoramic shooting is started to the time when the panoramic shooting is terminated into a panoramic image. For details about how the electronic device 100 splices the panoramic image, and what content is displayed in the display screen after the panoramic image is spliced, and how the user views the spliced panoramic image, etc., refer to the descriptions in FIGS. 5-8B above, which will not be repeated here.

[0113] In a possible implementation, when the electronic device 100 is in the fully unfolded state shown in FIG. 3A, the user can also rotate the display screen in a manner inconsistent with that shown in FIG. 4. For example, the user can first rotate the C screen of the electronic device 100 around the folding edge 2 in the direction 11b, so that the C screen is overlaid on the B screen. That is, the electronic device 100 changes from the fully unfolded state to the semi-folded state 2 shown in FIG. 10.

[0114] As shown in FIG. 10, at this time, the electronic device 100 is in the position 3, the front camera of the electronic device 100 can capture the car 201, and the rear camera can capture the basketball 204. The electronic device 100 is in the semi-folded state 2, and the A screen in the electronic device 100 can be in an electrically powered state. The electronic device 100 can display, in the A screen, a picture 1001 captured by the front camera and a picture 1002 captured by the rear camera. The picture 1001 can include the car 201, and the picture 1002 can include the basketball 204.

[0115] As shown in FIG. 10, the electronic device 100 can also display, in the A screen, a preview spliced picture 1003. The preview spliced picture 1003 can include a spliced picture 10031 and a spliced picture 10033. The spliced picture 10031 is obtained by the electronic device 100 in real time splicing pictures captured by the front camera from the start of panoramic shooting to the current time. At this time, the front camera has not completed the shooting, and the pictures captured by the front camera from the start of panoramic shooting to the current time include the car 201. The spliced picture 9032 is obtained by the electronic device 100 in real time splicing pictures captured by the rear camera from the start of panoramic shooting to the current time. At this time, the rear camera has completed the shooting, and the pictures captured by the rear camera from the start of panoramic shooting to the current time include the tree 203, the flower 206, and the basketball 204.

[0116] In a possible implementation, when the front camera has not completed the panoramic shooting and the rear camera has completed the panoramic shooting, the preview spliced picture 1003 can not include the shooting progress of the rear camera, but include the shooting progress 10032 of the front camera. The shooting progress 10032 can be used to indicate the progress of the front camera in shooting the panoramic image.

[0117] In a possible implementation, when the electronic device 100 is in the semi-folded state 2, the electronic device 100 can power off the B screen and the C screen, so as to save the power consumption of the electronic device 100.

[0118] Optionally, when the electronic device 100 is in the semi-folded state 2, the electronic device 100 can prompt the user to continue rotating the A screen by one or more of text, video, animation, voice, or vibration.

[0119] The user can rotate the A screen of the electronic device 100 around the folding edge 1 in the direction 11a, so that the electronic device 100 changes from the half-folded state 2 to the fully folded state as shown in FIG. 5. When the electronic device 100 detects that the sum of the angle of rotation of the A screen and the angle of rotation of the C screen is 360°, the electronic device 100 can stitch the pictures taken by the front camera from the beginning of the panoramic shooting to the end of the panoramic shooting and the pictures taken by the rear camera from the beginning of the panoramic shooting to the end of the panoramic shooting into a panoramic image during the rotation. For details about how the electronic device 100 stitches the panoramic image, what content is displayed in the display after the panoramic image is stitched, how the user views the stitched panoramic image, and the like, refer to the descriptions in FIGS. 5-8A above, which will not be repeated here.

[0120] In this way, the electronic device 100 can take a 360° panoramic image without moving the position (for example, being at the position 3) and only rotating the A screen and the C screen when taking the panoramic image. Moreover, it can also avoid the need for the user to move and the user to cause shaking during the movement, which can cause the panoramic image to fail to be taken. In this way, the user experience can be improved.

[0121] A photographing method provided by an embodiment of the present application will be described below with reference to the accompanying drawings.

[0122] FIG. 11 exemplarily shows a flowchart of a photographing method provided by an embodiment of the present application. As shown in FIG. 11, the photographing method provided by an embodiment of the present application can include the following steps:

[0123] S1100, the electronic device 100 displays a photographing interface, the photographing interface including a picture taken by a first camera, a panoramic shooting control, and a photographing control, the panoramic shooting control being in a selected state, and the panoramic shooting mode of the electronic device 100 being turned on.

[0124] The electronic device 100 has a folding screen, which can include a first screen, a second screen, and a third screen. The folding screen of the electronic device 100 can be in any one of a fully unfolded state, a half-folded state 1, a half-folded state 2, a stand state 1, and a fully folded state. When the folding screen of the electronic device 100 is in the fully unfolded state, it can be referred to as the electronic device 100 being in the fully unfolded state hereinafter. Similarly, when the folding screen of the electronic device 100 is in other states (such as the half-folded state 1, the half-folded state 2, the stand state 1, and the fully folded state), it can also be referred to as the electronic device 100 being in the other states hereinafter.

[0125] The electronic device 100 can have a camera application. The electronic device 100 can display a shooting interface of the camera application in response to a user operation of opening the camera application. The shooting interface can include a picture taken by a first camera, a control of a panorama shooting, and a shooting control. The first camera can be a front camera and a rear camera. The control of the panorama shooting is in a selected state, and a panorama shooting mode of the electronic device 100 is opened.

[0126] In a possible implementation, when the electronic device 100 is in the fully unfolded state as shown in FIG. 1A, the electronic device 100 can display the shooting interface in the first screen and the second screen and the third screen. For example, as shown in FIG. 3A, the first screen can be the A screen shown in FIG. 3A, the second screen can be the B screen shown in FIG. 3A, and the third screen can be the C screen shown in FIG. 3A. The shooting interface displayed by the electronic device 100 can be the shooting interface 300 as shown in FIG. 3A.

[0127] Optionally, in a possible implementation, when the electronic device 100 is in the half-folded state 1 as shown in FIG. 1B, the first screen of the electronic device 100 can be in an off-screen state, and the second screen and the third screen can be in an on-screen state. The electronic device 100 can display the shooting interface in the second screen and the third screen.

[0128] Optionally, in a possible implementation, when the electronic device 100 is in the half-folded state 2 as shown in FIG. 1C, the first screen of the electronic device 100 can be in an on-screen state, and the second screen and the third screen can be in an off-screen state. The electronic device 100 can display the shooting interface in the first screen.

[0129] Optionally, in a possible implementation, when the electronic device 100 is in the fully folded state as shown in FIG. 1D, the first screen of the electronic device 100 can be in an on-screen state, and the second screen and the third screen can be in an off-screen state. The electronic device 100 can display the shooting interface in the first screen.

[0130] Optionally, in a possible implementation, when the electronic device 100 is in the stand state 1 as shown in FIG. 1E, the first screen, the second screen, and the third screen of the electronic device 100 can be in an on-screen state. The electronic device 100 can display the shooting interface in the first screen, the second screen, and the third screen.

[0131] S1101, the electronic device 100 receives a user operation on the shooting control.

[0132] When the panorama shooting mode of the electronic device 100 is turned on, the user needs to trigger the start of the panorama shooting. The user can click the shooting control. For example, as shown in FIG. 3A, the user clicks the shooting control 207B in the shooting interface 300. The electronic device 100 can receive the operation of the user on the shooting control.

[0133] In S1102, the electronic device 100 turns on the second camera, and displays the picture taken by the first camera, the picture taken by the second camera, and the first prompt information in the shooting interface. The first prompt information is used to prompt the user to rotate the first screen and the third screen.

[0134] The electronic device 100 can start the panorama shooting and turn on the second camera in response to the user operation. If the first camera is a front camera, the second camera is a rear camera. If the first camera is a rear camera, the first camera is a front camera.

[0135] The electronic device 100 can also display the picture taken by the first camera and the picture taken by the second camera. For example, the picture 311 taken by the front camera and the picture 301 taken by the rear camera.

[0136] In a possible implementation, when the electronic device 100 starts the panorama mode of the camera application and starts the panorama shooting, the electronic device 100 can be in any posture. For example, the electronic device 100 can be in a fully unfolded state or a fully folded state. Alternatively, the first screen and the second screen of the electronic device 100 can be at any angle, and the second screen and the third screen can be at any angle. That is, the electronic device 100 can be in a half-folded state 1, a half-folded state 2, a stand state 1, or other postures.

[0137] In a possible implementation, when the electronic device 100 is in the fully unfolded state as shown in FIG. 1A, after the electronic device 100 receives the user operation, the electronic device 100 can display the picture taken by the first camera, the picture taken by the second camera, and a preview spliced picture in the second screen. For example, the picture taken by the first camera can be the picture 311 shown in FIG. 3B. The picture taken by the second camera can be the picture 310 shown in FIG. 3B. The preview spliced picture can be the preview spliced picture 313 shown in FIG. 3B. For details, refer to the description of FIG. 3B, which will not be repeated here.

[0138] Optionally, the electronic device 100 can display the picture taken by the first camera in the first screen and the picture taken by the second camera in the third screen. For example, refer to the picture 314 shown in the A screen and the picture 315 shown in the C screen in FIG. 3B, which will not be repeated here.

[0139] Optionally, in a possible implementation, if the electronic device 100 is in the half-folded state 1 as shown in FIG. 1B, after the electronic device 100 receives the user operation, the electronic device 100 can display the picture taken by the first camera, the picture taken by the second camera, and the preview splicing picture in the second screen. The electronic device 100 can also display the picture taken by the second camera in the third screen. The preview splicing picture includes the real-time splicing result of the picture taken by the first camera and the real-time splicing result of the picture taken by the second camera.

[0140] Optionally, in another possible implementation, if the electronic device 100 is in the half-folded state 2 as shown in FIG. 1C, after the electronic device 100 receives the user operation, the electronic device 100 can display the picture taken by the first camera, the picture taken by the second camera, and the preview splicing picture in the first screen. The preview splicing picture includes the real-time splicing result of the picture taken by the first camera and the real-time splicing result of the picture taken by the second camera.

[0141] Optionally, in yet another possible implementation, if the electronic device 100 is in the fully-folded state as shown in FIG. 1D, after the electronic device 100 receives the user operation, the electronic device 100 can display the picture taken by the first camera, the picture taken by the second camera, and the preview splicing picture in the first screen. The preview splicing picture includes the real-time splicing result of the picture taken by the first camera and the real-time splicing result of the picture taken by the second camera.

[0142] Optionally, in still another possible implementation, if the electronic device 100 is in the fully-folded state as shown in FIG. 1E, after the electronic device 100 receives the user operation, the electronic device 100 can display the picture taken by the first camera, the picture taken by the second camera, and the preview splicing picture in the second screen. The preview splicing picture includes the real-time splicing result of the picture taken by the first camera and the real-time splicing result of the picture taken by the second camera.

[0143] Optionally, the electronic device 100 can also display the picture taken by the first camera in the first screen and the picture taken by the second camera in the third screen.

[0144] In a possible implementation, the preview splicing picture includes a first progress and a second progress, the first progress is used to indicate the shooting progress of the first camera, and the second progress is used to indicate the shooting progress of the second camera. Exemplarily, the first progress can be the shooting progress 3132 shown in FIG. 3B, and the second progress can be the shooting progress 3134 shown in FIG. 3B.

[0145] In a possible implementation, the electronic device updates the first progress during rotation of the first screen relative to the second screen, and updates the second progress during rotation of the third screen relative to the second screen. For example, when the first screen and the third screen rotate from the posture shown in FIG. 3B to the posture shown in FIG. 4, the first progress can be updated from the shooting progress 3132 shown in FIG. 3B to the shooting progress 4042 shown in FIG. 4. The second progress can be updated from the shooting progress 3134 shown in FIG. 3B to the shooting progress 4044 shown in FIG. 4.

[0146] In a possible implementation, the electronic device 100 can determine the posture in which the electronic device 100 currently resides, according to the included angle between the first screen and the second screen, and the included angle between the second screen and the third screen. The following takes the electronic device 100 determining that it is in the fully unfolded state as an example, and details how the electronic device 100 specifically determines that it is in the fully unfolded state.

[0147] Specifically, in a possible implementation, when the included angle between the first screen and the second screen is 180° or approximately 180°, and the included angle between the second screen and the third screen is 180° or approximately 180°, the electronic device 100 can determine that it is currently in the fully unfolded state.

[0148] In some possible examples, the electronic device 100 can have one or more gyro sensors, and the electronic device 100 can detect the included angle between the first screen and the second screen, and the included angle between the second screen and the third screen, through the one or more gyro sensors. When the electronic device 100 detects, through the gyro sensors, that the included angle between the first screen and the second screen is 180° or approximately 180°, and the included angle between the second screen and the third screen is 180° or approximately 180°, the electronic device 100 can determine that it is currently in the fully unfolded state.

[0149] Optionally, in some other possible examples, the electronic device 100 can detect the included angle between the first screen and the second screen, and the included angle between the second screen and the third screen, through one or more gyro sensors and one or more other sensors. For example, the electronic device 100 can detect the included angle between the first screen and the second screen, and the included angle between the second screen and the third screen, through one or more gyro sensors and an acceleration sensor.

[0150] Optionally, in some other possible examples, the electronic device 100 can have one or more Hall sensors. The electronic device 100 can detect the included angle between the first screen and the second screen, and the included angle between the second screen and the third screen, through the one or more Hall sensors.

[0151] Optionally, in yet another possible example, an angle sensor 1 is installed at the folding position (e.g., on the rotating shaft) between the first screen and the second screen, and an angle sensor 2 is installed at the folding position (e.g., on the rotating shaft) between the second screen and the third screen. The electronic device 100 can measure the included angle between the first screen and the second screen through the angle sensor 1, and measure the included angle between the second screen and the third screen through the angle sensor 2.

[0152] Optionally, in another possible implementation, the electronic device 100 can determine that it is in the fully unfolded state according to the rotation angle of the rotating shaft between the first screen and the second screen, and the rotation angle of the rotating shaft between the second screen and the third screen.

[0153] Specifically, in one possible implementation, when the electronic device 100 detects that the rotation angle of the rotating shaft between the first screen and the second screen is 0° through the gyroscope or the angle sensor, and detects that the rotation angle of the rotating shaft between the second screen and the third screen is 0°, the electronic device 100 can determine that it is currently in the fully unfolded state.

[0154] It can be understood that the present application embodiment does not limit the manner in which the electronic device 100 determines whether it is in the fully unfolded state.

[0155] For how the electronic device 100 determines that it is in the half-folded state 1, the half-folded state 2, the stand state 1, and the fully folded state, the specific manner can be referred to the description of the determination manner of the fully unfolded state above, which will not be described here.

[0156] The shooting interface can also include first prompt information, which can be used to prompt the user to rotate the first screen and the third screen. The content of the first prompt information can include but is not limited to one or more of text, voice, video, and animation. Exemplarily, taking the content of the first prompt information as text as an example. For example, the first prompt information can be the prompt information 312 shown in FIG. 3B.

[0157] Optionally, in one possible implementation, the shooting interface can also not include the first prompt information. The electronic device 100 can prompt the user to rotate the first screen and the third screen in the form of voice, vibration, or the like. The present application embodiment does not limit the specific operation form of the electronic device 100 prompting the user.

[0158] S1103. The electronic device 100 generates a panoramic image, which is obtained by splicing the picture taken by the first camera and the picture taken by the second camera.

[0159] When the sum of the first angle and the second angle is equal to the preset angle, the electronic device 100 can generate a panoramic image that is stitched from the pictures taken by the first camera and the pictures taken by the second camera. That is, the electronic device 100 can stitch the images taken by the first camera and the images taken by the second camera into a panoramic image in a process in which the sum of the first angle and the second angle is from 0° to the preset angle. Illustratively, taking the preset angle as 360° as an example, the electronic device 100 can stitch all the pictures taken by the first camera in a process in which the first angle is rotated from 0° to 180°, and all the pictures taken by the second camera in a process in which the second angle is rotated from 0° to 180°, into a panoramic image.

[0160] When the user actively terminates the panoramic photographing operation, the electronic device 100 can stitch all the pictures taken by the first camera and all the pictures taken by the second camera into a panoramic image in a process in which the panoramic photographing is started to the panoramic photographing is terminated.

[0161] When the electronic device 100 detects that the camera application exits the foreground running, the electronic device 100 can stitch all the pictures taken by the first camera and all the pictures taken by the second camera into a panoramic image in a process in which the panoramic photographing is started to the camera application exits the foreground running.

[0162] S1104, the electronic device 100 saves the panoramic image.

[0163] When the electronic device 100 generates the panoramic image, the electronic device 100 can save the panoramic image. The user can view the panoramic image saved by the electronic device 100 on the electronic device 100. Illustratively, as shown in FIG. 7, when the electronic device 100 completes the panoramic photographing, the user can click the echo control 207A in the photographing interface. In response to the user operation, the electronic device 100 can display the user interface 800 as shown in FIG. 8A, which can include the panoramic image saved by the electronic device 100. The panoramic image can be the panoramic image 801 shown in FIG. 8A. Alternatively, in response to the user operation, the electronic device 100 can display the user interface 810 as shown in FIG. 8B, which can include the panoramic image saved by the electronic device 100, which can be the panoramic image 811 shown in FIG. 8B.

[0164] Optionally, in a possible implementation, the electronic device 100 starts two cameras (i.e., the first camera and the second camera) only when the electronic device 100 is in the fully unfolded state, and stitches the pictures taken by the two cameras into a panoramic image after starting panoramic shooting. If the electronic device 100 determines that it is currently in the fully unfolded state (for example, in any one of the half-folded state 1, the half-folded state 2, the stand state 1, and the fully folded state), the electronic device 100 can perform panoramic shooting by using one camera, and stitch the pictures taken by the camera into a panoramic image. For example, if the electronic device 100 is not in the fully unfolded state, the electronic device 100 can take a panoramic image by using the first camera after the user clicks the shooting control. At this time, the user needs to hold the electronic device 100 to move to take a panoramic image. The specific shooting mode and the shooting interface displayed on the electronic device 100 can be referred to the description in FIG. 2, which will not be described here.

[0165] Optionally, when the electronic device 100 is not currently in the fully unfolded state, the electronic device 100 can also prompt the user to change the state of the electronic device 100 to the fully unfolded state through prompt information 1. The prompt information 1 includes but is not limited to one or more of voice, text, video, vibration, ringtone, and the like.

[0166] In a possible implementation, the electronic device 100 generates the panoramic image only when the sum of the first angle of the first screen rotation and the second angle of the third screen rotation reaches a preset angle.

[0167] The electronic device 100 can determine the first angle of the first screen rotation and the second angle of the third screen rotation. When the sum of the first angle and the second angle reaches the preset angle, the electronic device 100 can automatically end the panoramic shooting and generate the panoramic image, that is, perform step S1103. When the sum of the first angle and the second angle does not reach the preset angle, the electronic device 100 can continue the panoramic shooting.

[0168] In a possible implementation, the electronic device 100 can detect the included angle between the first screen and the second screen and the included angle between the second screen and the third screen in real time. Then, the electronic device 100 can determine the first angle according to the included angle between the first screen and the second screen, and determine the second angle according to the included angle between the second screen and the third screen. For example, if the electronic device 100 is in the fully unfolded state, the included angle between the first screen and the second screen is 180°, and when the electronic device 100 detects that the included angle between the first screen and the second screen becomes 0°, the electronic device 100 can determine that the first angle is 180°. Similarly, if the electronic device 100 is in the fully unfolded state, the included angle between the second screen and the third screen is 180°, and when the electronic device 100 detects that the included angle between the second screen and the third screen becomes 0°, the electronic device 100 can determine that the second angle is 180°.

[0169] Here, how the electronic device 100 detects the included angle between the first screen and the second screen, and the included angle between the second screen and the third screen can refer to the description in step S1102 above, and will not be repeated here.

[0170] Alternatively, in another possible implementation, the electronic device 100 can determine the first angle according to the rotation angle of the rotation shaft between the first screen and the second screen, and determine the second angle according to the rotation angle of the rotation shaft between the second screen and the third screen. For example, when the rotation angle of the rotation shaft between the first screen and the second screen is 180°, the electronic device 100 can determine that the first angle is 180°. That is, the first angle can be equal to the rotation angle of the rotation shaft between the first screen and the second screen. When the rotation angle of the rotation shaft between the second screen and the third screen is 180°, the electronic device 100 can determine that the second angle is 180°. That is, the second angle can be equal to the rotation angle of the rotation shaft between the second screen and the third screen.

[0171] It can be understood that the present application does not limit the determination method of the first angle and the second angle.

[0172] The preset angle can be 360°, or 330°, 300°, etc. It can be understood that the larger the preset angle is, the larger the field of view of the panoramic photo finally captured by the electronic device 100 is. The present application does not limit the specific value of the preset angle.

[0173] Alternatively, in a possible implementation, the electronic device 100 can display second prompt information, which is used to prompt the user to continue panoramic shooting. For example, the second prompt information can be the prompt information 403 shown in FIG. 4. The prompt information 403 can refer to the description in FIG. 4, and will not be repeated here.

[0174] The second prompt information can include but is not limited to text, animation, video, etc. for prompting the user to continue panoramic shooting. The present application does not limit the specific content of the second prompt information.

[0175] Alternatively, in a possible implementation, the electronic device 100 can also not display the second prompt information, and the electronic device 100 can prompt the user to continue panoramic shooting through voice, vibration, etc.

[0176] In the process of shooting the panoramic image, when the user rotates the first screen and the third screen, the electronic device 100 can transform from the fully unfolded state as shown in FIGS. 3A and 3B to the support state 1 as shown in FIG. 4, and then to the fully folded state as shown in FIG. 5. Alternatively, the electronic device 100 can transform from the fully unfolded state as shown in FIGS. 3A and 3B to the half-folded state 1 as shown in FIG. 9, and then to the fully folded state as shown in FIG. 5. Alternatively, the electronic device 100 can transform from the fully unfolded state as shown in FIGS. 3A and 3B to the half-folded state 2 as shown in FIG. 10, and then to the fully folded state as shown in FIG. 5. The transformation of the posture of the electronic device 100 and the content displayed in the electronic device 100 in the process of shooting the panoramic image can refer to the description of FIGS. 3A-10 above, and will not be described here again.

[0177] By the photographing method provided in the embodiments of the present application, when the user uses the electronic device 100 to shoot a panoramic image, the user only needs to rotate the display screen of the electronic device 100, and does not need to move the electronic device 100, so the interaction is simple. Moreover, since the rotation of the display screen is simple, it is easier to keep stable during shooting. Therefore, when shooting a panoramic image, the situation that the shooting picture shakes due to the movement of the electronic device can be reduced. By using the photographing method provided in the embodiments of the present application, since the electronic device 100 does not need to be moved, the shooting will not fail due to the inconsistency between the movement path and the guide path displayed on the electronic device 100. In this way, the user experience can be improved.

[0178] The following describes an exemplary electronic device 100 provided by the embodiments of the present application.

[0179] FIG. 12 is a structural schematic diagram of the electronic device 100 provided by the embodiments of the present application.

[0180] As shown in FIG. 12, the electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge 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 loudspeaker 170A, a microphone 170B, a microphone 170C, a headset interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0181] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0182] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.

[0183] Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of instruction fetching and instruction execution.

[0184] The memory can also be provided in the processor 110 for storing instructions and data. In some examples, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thereby improving the efficiency of the system.

[0185] In the present application, the memory can store a computer program for causing the controller or the processor to implement the screen-out display method of the present application through an interface or a protocol. Exemplarily, the computer program in the memory can be used to: detect the folding state of the folding screen, display AOD content on the target display area, detect the gaze direction of the human eye, move the AOD content according to the change of the folding state or an event (such as the gaze area of the human eye on the screen, the touch operation on the display screen, etc.) used to trigger the AOD content movement, power on the display area on the display screen where the AOD content is displayed, power off the display area on the display screen where the AOD content is not displayed, play audio corresponding to the AOD content movement, turn on or off the AOD follow-up feature, etc.

[0186] The USB interface 130 is an interface conforming to the USB standard specification, and 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 transmit data between the electronic device 100 and a peripheral device. It can also be used to connect a headset to play audio through the headset.

[0187] The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger. The charging management module 140 can charge the battery 142 and also supply power to the electronic device through the power management module 141.

[0188] The power management module 141 is configured 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 to supply power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160, etc.

[0189] The wireless communication function of the electronic device 100 can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.

[0190] The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch.

[0191] The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100. The mobile communication module 150 can 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 perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert the signals into electromagnetic waves radiated through the antenna 1.

[0192] The wireless communication module 160 can provide a solution for wireless communication, including wireless local area networks (WLAN) (such as a wireless fidelity (Wi-Fi) network), Bluetooth (BT), a global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, and the like, which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, frequency-modulate them, amplify them, and radiate them as electromagnetic waves via the antenna 2.

[0193] The electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.

[0194] The display screen 194 is used to display images, videos, and the like. The display screen 194 can be a liquid crystal display screen, an OLED display screen, or the like. The material of the display screen 194 is not limited in the embodiments of the present application. In some embodiments, the display screen 194 can also include a flexible folding screen. In some embodiments, the electronic device 100 can include one or N display screens 194, N being a positive integer greater than 1.

[0195] The electronic device 100 can implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor, and the like.

[0196] The ISP is used to process data fed back by the camera 193. For example, when taking a picture, the shutter is opened, 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 to convert it into an image visible to the naked eye.

[0197] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 can include one or N cameras 193, N being a positive integer greater than 1.

[0198] The digital signal processor is used to process digital signals, in addition to being able to process digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.

[0199] The NPU is a neural-network (NN) computing processor, which can quickly process input information by drawing on the structure of a biological neural network, such as drawing on the transmission mode between human brain neurons, and can also continuously self-learn. Through the NPU, intelligent cognition of the electronic device 100 can be achieved, such as AI image generation, image fusion, image recognition, face recognition, voice recognition, text understanding, etc.

[0200] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize data storage functions. For example, music, video, and other files are saved in the external memory card.

[0201] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc. The data storage area can store data created during use of the electronic device 100 (such as audio data, a phonebook, etc.), etc. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0202] The electronic device 100 can realize audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. For example, music playing, recording, etc.

[0203] The audio module 170 is for converting digital audio information into analog audio signals output, and for converting analog audio input into digital audio signals. The audio module 170 can also be for encoding and decoding audio signals. In some examples, the audio module 170 can be disposed in the processor 110, or some functional modules of the audio module 170 can be disposed in the processor 110. The speaker 170A, also called a "loudspeaker", is for converting audio electrical signals into sound signals. The receiver 170B, also called a "earpiece", is for converting audio electrical signals into sound signals. The microphone 170C, also called a "microphone", "microphone", is for converting sound signals into electrical signals. The earphone interface 170D is for connecting a wired earphone.

[0204] The sensor module 180 can include a pressure sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a gravity sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, an angle sensor, etc.

[0205] The gyro sensor 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. The electronic device 100 can determine the deflection angle of the electronic device 100 by the gyro sensor.

[0206] The acceleration sensor can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). In some embodiments, the acceleration sensor can be used to identify the posture of the electronic device 100, which can be applied to landscape / portrait screen switching, pedometer, etc.

[0207] The magnetic sensor can include a Hall sensor, a magnetometer, etc.

[0208] The angle sensor can be used to detect the folding angle of the folding screen of the electronic device 100.

[0209] In some embodiments, the electronic device 100 can detect the folding state of the folding screen by using one or more of the gyro sensor, the acceleration sensor, the magnetic sensor, the angle sensor, etc.

[0210] The key 190 includes a power key, a volume key, etc. The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light, which can be used to indicate a charging state, a power change, and can also be used to indicate a message, a missed call, a notification, etc.

[0211] The SIM card interface 195 is configured to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The electronic device 100 interacts with a network through the SIM card to achieve functions such as call and data communication. In some examples, 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.

[0212] The software system of the electronic device 100 can use a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this embodiment of this application, the software structure of the electronic device 100 is exemplarily described by taking a layered architecture as an example.

[0213] FIG. 13 exemplarily shows another software structure diagram of the electronic device 100.

[0214] The layered architecture divides the software into several layers, each of which has a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the system is divided into four layers, from top to bottom, an application layer, an application framework layer, a system library, and a kernel layer.

[0215] The application layer can include a series of application packages.

[0216] As shown in FIG. 13, the application packages can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, short message, and the like.

[0217] The application framework layer provides APIs and programming frameworks for the applications of the application layer. The application framework layer includes some pre-defined functions.

[0218] As shown in FIG. 13, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, an activity manager, a folding state acquisition module, and the like.

[0219] The window manager is configured to manage window programs. The window manager can acquire the size of the display screen, determine whether there is a status bar, lock the screen, and capture the screen, and the like.

[0220] The content provider is configured to store and acquire data, and make the data accessible to the applications. The data can include video, image, audio, dialed and received calls, browsing history and bookmarks, phonebook, and the like.

[0221] ​​The view system includes visual controls, such as controls that display text, controls that display pictures, and the like. The view system can be used to build an application. A display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon can include a view that displays text and a view that displays a picture.

[0222] The phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call state (including call connection, call hang-up, and the like).

[0223] The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.

[0224] The notification manager enables the application to display notification information in the status bar (such as a drop-down notification bar). The notification information can be used to convey a notification type of message, which can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the completion of a download, a message reminder, and the like. The notification manager can also be a notification that appears in the form of a chart or a scroll bar text in the top status bar of the system, such as a notification of an application running in the background, and can also be a notification that appears in the form of a dialog window on the screen. For example, a text message is prompted in the status bar, a prompt sound is emitted, the electronic device is vibrated, and a light flashes, and the like.

[0225] The activity manager is used to manage activities (activities) and is responsible for the startup, switching, scheduling of components in the system, and the management and scheduling of applications. The activity manager can be called by the upper layer application to open the corresponding activity.

[0226] The folding state acquisition module can be used to determine the state of the folding screen of the electronic device 100. For example, the folding screen of the electronic device 100 is the three-fold screen shown in FIGS. 1A-1E. The state of the folding screen can include, but is not limited to, the five folding states shown in FIGS. 1A-1E. In some embodiments, the folding state acquisition module can acquire the folding angle between two adjacent display screens in the folding screen, and then determine the state of the folding screen according to the folding angle. Specifically, how the folding state acquisition module determines the state of the folding screen can be referred to the description of step S1102 above, which will not be described here.

[0227] 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 into binary files. The virtual machine is used to perform the management of the object life cycle, the management of the stack, the management of the thread, the management of the security and the exception, and the garbage collection, and the like.

[0228] The system library can include a plurality of functional modules. For example, a surface manager, media libraries, a three-dimensional graphics processing library (e.g., OpenGL ES), a 2D graphics engine (e.g., SGL), and the like.

[0229] The surface manager is used to manage a display subsystem and provides fusion of 2D and 3D layers for a plurality of applications.

[0230] The media libraries support playback and recording of a plurality of commonly used audio, video formats, and still image files. The media libraries can support a plurality of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, and the like.

[0231] The three-dimensional graphics processing library is used to implement three-dimensional graphics drawing, image rendering, composition, and layer processing, and the like.

[0232] The 2D graphics engine is a drawing engine for 2D drawing.

[0233] The kernel layer is a layer between hardware and software. The kernel layer at least includes display drivers, camera drivers, audio drivers, and sensor drivers.

[0234] The embodiment of the present application further provides a computer readable storage medium, the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps in the above-mentioned various method embodiments.

[0235] The embodiment of the present application further provides a computer program product, including a computer program, when the computer program is run on a processor, the steps in the above-mentioned various method embodiments can be implemented.

[0236] The embodiment of the present application further provides a chip system, the chip system includes a processing circuit and an interface circuit, the interface circuit is used for receiving code instructions and transmitting the processing circuit, and the processing circuit is used for running the code instructions to make the chip system implement the steps in any method embodiment of the present application. The chip system can be a single chip or a chip module composed of a plurality of chips.

[0237] It can be understood that the various user interfaces described in the embodiments of the present application are only example interfaces and do not limit the present application. In other embodiments, the user interface can adopt a different interface layout, can include more or fewer controls, and can add or reduce other function options, as long as the same invention idea provided in the present application is based on, which is within the protection scope of the present application.

[0238] It should be noted that any feature of any embodiment of the present application, or any part of any feature, can be combined with any other feature of any embodiment of the present application, or any part of any feature, without contradiction or conflict.

[0239] The above-described embodiments are merely intended to illustrate the technical solutions of the present application, but not to limit the same; even though the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements to some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0240] In the above-described embodiments, the term "when" can be interpreted as meaning "if" or "after" or "in response to determining" or "in response to detecting" according to the context. Similarly, the phrase "upon determining" or "if detecting (the stated condition or event)" can be interpreted as meaning "if determining" or "in response to determining" or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)" according to the context.

[0241] In the above-described embodiments, all or part of the technical solutions can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the technical solutions can be implemented 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, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. 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 one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media sets. The available media can be magnetic media (for example, floppy disk, hard disk, magnetic tape), optical media (for example, DVD), or semiconductor media (for example, solid state disk) and the like.

[0242] Those skilled in the art can understand that all or part of the processes in the above-mentioned method embodiments can be implemented by a computer program instructing relevant hardware to complete, the program can be stored in a computer readable storage medium, and the program can include the processes of the above-mentioned method embodiments when executed. The aforementioned storage medium includes ROM or random storage memory RAM, magnetic disc or optical disc and various storage code medium.

Claims

1. A photographing method, characterized by, The application is applied to an electronic device, the electronic device comprising a folding screen, a first camera and a second camera, the folding screen comprising a first screen, a second screen and a third screen, the first screen being provided with the first camera on its front or back surface, the third screen being provided with the third camera on its front or back surface, and the method comprising: The electronic device displays a picture taken by the first camera; The electronic device starts a panoramic shooting mode of a camera application, turns on the second camera, and displays the picture taken by the first camera and a picture taken by the second camera; The first screen rotates relative to the second screen, and the first camera takes pictures during the rotation; The third screen rotates relative to the second screen, and the second camera takes pictures during the rotation; The electronic device terminates the panoramic shooting, and splices the picture taken by the first camera and the picture taken by the second camera into a panoramic image.

2. The method of claim 1, wherein: when the electronic device starts the panoramic shooting mode of the camera application, the electronic device is in a fully unfolded state, or the electronic device is in a fully folded state, or the first screen and the second screen are at any angle, or the second screen and the third screen are at any angle.

3. The method of claim 1, wherein: when the electronic device starts the panoramic shooting mode of the camera application, the first screen, the second screen and the third screen are in a bright screen state; or the first screen is in a bright screen state, and the second screen and the third screen are in a dark screen state; or the second screen and the third screen are in a bright screen state.

4. The method of claim 1, wherein, When the picture taken by the first camera and the picture taken by the second camera are displayed, the method further comprises: The electronic device displays a preview splicing picture, the preview splicing picture comprising a real-time splicing result of the picture taken by the first camera from when the panoramic shooting mode is started to the current time, and a real-time splicing result of the picture taken by the second camera from when the panoramic shooting mode is started to the current time.

5. The method of claim 4, wherein, The preview splicing picture comprises a first progress and a second progress, the first progress being used to indicate the shooting progress of the first camera, and the second progress being used to indicate the shooting progress of the second camera.

6. The method of claim 5, wherein, The method further comprises: During the rotation of the first screen relative to the second screen, the electronic device updates the first progress; During the rotation of the third screen relative to the second screen, the electronic device updates the second progress.

7. The method of claim 6, wherein, The electronic device displays the preview splicing picture, comprising: The electronic device displays the preview splicing picture, the picture taken by the first camera and the picture taken by the second camera in the second screen; or The electronic device displays the preview splicing picture, the picture taken by the first camera and the picture taken by the second camera in the first screen.

8. The method of claim 7, wherein, When the electronic device displays the preview splicing picture, the picture taken by the first camera and the picture taken by the second camera in the second screen, the method further comprises: The electronic device displays a picture taken by the first camera in the first screen and a picture taken by the second camera in the third screen.

9. The method according to any one of claims 1 to 8, characterized in that, The occasion for the electronic device to terminate the panoramic shooting includes any one of the following: receiving a user input of an operation of terminating the panoramic shooting, detecting that the camera application exits the foreground running, a first angle of the first screen rotating relative to the second screen, and a sum of a second angle of the third screen rotating relative to the second screen reaching a preset angle.

10. The method of claim 1, wherein, if the first camera is a front camera and the second camera is a rear camera; if the first camera is a rear camera and the second camera is a front camera.

11. An electronic device, comprising: comprising: a foldable screen, at least two cameras, one or more processors, and one or more memories; the foldable screen is foldable, the foldable screen comprises a first screen, a second screen, and a third screen, the first screen and the second screen are foldable around a folding component, the second screen and the third screen are foldable around a folding component, the first display screen, the at least two cameras, and the one or more memories are respectively coupled with the one or more processors; the one or more memories are configured to store computer program codes, the computer program codes comprise computer instructions; when the computer instructions are executed on the processor, the electronic device is caused to perform the method according to any one of claims 1-10.

12. A computer readable storage medium storing instructions, wherein, The instructions, when executed by a processor, perform the method of any one of claims 1-10.

13. A computer program product, characterised in that, The computer program product comprises computer instructions, which, when executed by a processor, perform the method of any one of claims 1-10. The computer program product comprises computer instructions, which, when executed by a processor, perform the method of any one of claims 1-10.

Citation Information

Patent Citations

  • Image shooting method and apparatus, and computer readable storage medium

    CN109302511A

  • Photographing method and terminal equipment

    CN110266936A

  • Panoramic photographing method and device and electronic equipment

    CN110392212A

  • Double-screen simultaneous display method, electronic equipment and readable storage medium

    CN114401373A

  • KR20210154719A