Photographing method, electronic device, and readable storage medium

CN123020968APending Publication Date: 2026-10-30HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510574970.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

而目前电子设备提供的相机拍摄功能,在拍摄星体方面功能单一,因此无法拍摄获得用户希望构图效果的地景星体图像,从而无法满足用户特殊摄影需求

Benefits of technology

[0016]通过本申请方案,通过显示构图引导图标引导用户调整相机位姿,电子设备可以自动采集到摄影角度好且清晰度高的地景图像,提升地景星体合拍效果。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123020968A_ABST
    Figure CN123020968A_ABST
Patent Text Reader

Abstract

The application discloses a photographing method, an electronic device and a readable storage medium, and belongs to the terminal technical field. According to the scheme, a composition guide icon can be displayed on a camera preview screen, so as to guide a user to adjust a camera pose. During the process in which the user adjusts the camera pose, the electronic device can automatically collect a landscape image, and prompt the user to increase a zoom ratio to find a star body to shoot a clear star body image. When the camera lens collects the star body image after the zoom ratio is increased, the user can click a shooting control. In response to a user shooting instruction, the electronic device fuses the star body image and the landscape image to obtain a landscape star body joint shooting image. According to the scheme, the electronic device can gradually guide the user to shoot the landscape star body joint shooting image, the composition effect of the star body and the landscape can meet the user demand, and the user photography experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a shooting method, electronic device, and readable storage medium. Background Technology

[0002] With the development of terminal technology, the camera functions of electronic devices are becoming increasingly sophisticated, and users have increasingly higher demands for the shooting effects of celestial bodies such as the sun and moon. For example, users not only want to capture clear images of celestial bodies, but also want the images to present specific image display effects. For instance, users want to capture images of the moon and also want the moon image to have a special compositional effect with the ground scene image (referred to as the landscape image). However, the camera shooting functions provided by current electronic devices are limited in their celestial body shooting capabilities, and therefore cannot capture the landscape celestial body images with the desired compositional effects, thus failing to meet users' special photographic needs. Summary of the Invention

[0003] This application provides a shooting method, electronic device, and readable storage medium, which adds a landscape and celestial object co-shooting function, offering rich functionality in celestial object shooting, and simple user operation. This enables users to capture landscape and celestial object images with special compositional effects, enhancing the user's photography experience. The technical solution is as follows:

[0004] In a first aspect, a shooting method is provided, applied to an electronic device, the method comprising: responding to a first operation by a user, the electronic device launching a camera application and displaying a preview screen; the electronic device displaying first guidance information on the preview screen to guide the user to adjust the camera pose; upon completion of the camera pose adjustment, the electronic device automatically capturing a first image, the first image containing landscape features; the electronic device displaying second guidance information on the preview screen to guide the user to orient the camera toward a celestial body and increase the camera zoom ratio; after the camera zoom ratio is increased, the electronic device displaying the first image in a first area of ​​the preview screen and displaying a telephoto viewfinder in a second area of ​​the preview screen, displaying a second image in the telephoto viewfinder, the second image containing celestial features; and responding to a shooting command from the user, the electronic device capturing a third image, the third image including the landscape features and the celestial features.

[0005] The shooting method provided in this application allows the electronic device to display first guidance information (composition guidance icon) on the camera preview screen, thereby guiding the user to adjust the camera pose. During the user's camera pose adjustment, the electronic device can automatically acquire landscape images and prompt the user to increase the zoom level to find celestial bodies for clear celestial image capture. When the camera lens acquires a celestial image after the zoom level is increased, the user can click the shooting control. In response to the user's shooting command, the electronic device merges the celestial image and the landscape image to obtain a combined landscape and celestial image. Through this solution, the electronic device can assist the user in capturing a combined landscape and celestial image through gradual guidance, and the composition effect of the celestial body and landscape can meet the user's needs.

[0006] With this solution, users only need to follow the shooting guidance information for the landscape to adjust the camera pose, and then follow the shooting guidance information for the celestial bodies to point the camera lens at the celestial body and increase the zoom. When the image of the celestial body appears in the viewfinder, the user can click the shooting control to trigger the electronic device to generate a combined landscape and celestial body image. The operation is convenient and quick, improving the user's photography experience.

[0007] This shooting method can help users achieve the goal of combining landscapes and celestial bodies in a single shot, thus meeting users' special photography needs.

[0008] Among them, by displaying composition guide icons to guide users to adjust the camera position, the electronic device can automatically capture landscape images with good shooting angles and high clarity. By prompting users to increase the zoom level and find celestial objects, the electronic device can capture celestial images with obvious celestial features and high clarity. Then, by merging the landscape images and celestial images using a certain composition method, the composition effect of celestial objects and landscapes is greatly improved, assisting users in achieving high-quality celestial photography and meeting users' special photography needs.

[0009] The shooting method provided in this application is applicable to scenarios where celestial bodies (such as the sun, moon, Venus, Milky Way, or other constellations) are photographed using electronic devices. When photographing celestial bodies using electronic devices, the shooting method of this application can be used to display the composition effect of celestial bodies and landscape, thereby improving the user's photography experience.

[0010] The shooting method provided in this application has the following technical effects: users can obtain images containing both landscape and celestial features through simple operation steps. Furthermore, the landscape and celestial images have good composition, and the celestial images are large and clear enough, while the landscape images have a good and clear shooting angle. Therefore, it can meet the user's need to easily capture landscapes and celestial features in a combined shot with good composition.

[0011] In some possible implementations, the electronic device displays first guidance information on the preview screen, including: when the preview screen is identified to contain preset landscape features, the electronic device obtains a preset image template corresponding to the preset landscape features; the electronic device displays the first guidance information on the preview screen based on feature matching data between the preset image template and the preview screen.

[0012] With the solution proposed in this application, when the preview screen contains preset landscape features, i.e., in a landmark scene, the electronic device can display the first guidance information based on a preset image template with a high aesthetic score, guiding the user to adjust the camera pose, so that the electronic device can automatically capture landscape images with good shooting angles and high clarity, thereby improving the effect of combining landscape and celestial objects.

[0013] In some possible implementations, the electronic device displays first guidance information on the preview screen, including: when the preview screen does not contain preset landscape features, the electronic device displays the first guidance information on the preview screen according to preset composition rules.

[0014] With the solution proposed in this application, when the preview screen does not contain preset landscape features, that is, in a non-landmark scene, the electronic device can display the first guidance information based on preset composition rules, guide the user to adjust the camera pose, so that the electronic device can automatically capture landscape images with good shooting angles and high clarity, and improve the effect of landscape and star combination shooting.

[0015] In some possible implementations, the step of automatically capturing a first image when the camera pose adjustment is successful includes: during the process of the user adjusting the camera pose, the electronic device updates the display state of the first guidance information; if the first guidance information is updated to the target display state, the electronic device determines that the camera pose adjustment is complete; and the electronic device automatically captures the first image according to the adjusted camera pose.

[0016] The proposed solution guides users to adjust the camera position by displaying composition guide icons. The electronic device can automatically capture landscape images with good shooting angles and high clarity, improving the effect of combining landscape and celestial objects in photos.

[0017] In some possible implementations, the first guidance information includes a center marker of the preview screen, a target center marker, and a guide arrow, the guide arrow pointing from the center marker of the preview screen to the target center marker; the target display state is that the center marker of the preview screen is located within the range of the target center marker, and the guide arrow is hidden.

[0018] The proposed solution displays guide icons on the camera preview screen. These icons guide the user to move their electronic device to adjust the camera's orientation, enabling the camera to capture landscape images with specific compositional effects and improving the effect of combining landscapes with celestial bodies in photos.

[0019] In some possible implementations, the step of the electronic device capturing a third image in response to a user's shooting command includes: in response to a user's shooting command, the electronic device captures a second image, and performs image cutout processing on the celestial features in the second image to obtain a celestial feature image; and superimposing the celestial feature image onto a third region of the first image to obtain the third image.

[0020] The proposed solution allows for the fusion of celestial and landscape images through image processing, resulting in a composite image of the landscape and celestial bodies with good composition.

[0021] In some possible implementations, before superimposing the celestial feature image onto the third region of the first image, the method further includes: determining the third region in the first image according to a preset composition rule and / or the preset image template.

[0022] The preset composition rules can include ensuring the horizon is level, that the left and right buildings are of equal size, and that a foreground building is located at the golden ratio point. These composition principles are designed to help users take more aesthetically pleasing and professional-looking photos.

[0023] In some possible implementations, after the electronic device captures the third image, the method further includes: the electronic device determining whether the landscape features and the celestial features in the third image have overlapping regions; if the landscape features and the celestial features have overlapping regions, performing image processing on the overlapping regions to obtain a processed third image; wherein, in the processed third image, the landscape feature layer is higher than the celestial feature layer. This application's solution processes overlapping image regions, avoiding unreasonable occlusion relationships and improving the display effect of landscape-celestial composite images.

[0024] In some possible implementations, after the electronic device automatically captures the first image, the method further includes: the electronic device identifying whether the first image still contains the celestial feature; if the first image still contains the celestial feature, the electronic device determining a first position of the celestial feature in the first image; wherein the first position is used to determine the display position of the celestial feature image in the third image.

[0025] In some possible implementations, the electronic device captures a third image by overlaying a celestial feature image from the telephoto viewfinder onto the first position in the first image to obtain the third image.

[0026] In some possible implementations, the electronic device captures a third image by: eliminating the existing celestial feature image at the first position in the first image; and overlaying the celestial feature image in the telephoto viewfinder onto a fourth region in the first image to obtain the third image; wherein the fourth region is a region determined according to a preset composition rule and / or the preset image template.

[0027] According to the solution of this application, when there are celestial features in the first image, image processing, such as image overlay or image removal, can be used to avoid interference caused by existing celestial features and improve the display effect of the landscape and celestial composite image.

[0028] In some possible implementations, before the electronic device captures the third image in response to a user's shooting command, the method further includes: in response to a user's long press and drag operation on the telephoto viewfinder, the electronic device performs image cutout processing on the celestial features in the telephoto viewfinder to obtain a celestial feature image, and displays the celestial feature image, which moves with the user's drag direction; after the user drags the celestial feature image to the fifth region of the first image, the electronic device overlays the celestial feature image in the fifth region of the first image; wherein, in the third image, the celestial feature is located in the fifth region of the first image.

[0029] The electronic device provides a draggable "celestial body" function through this application. Users can drag the celestial body feature image to a certain location in the landscape image (such as near a building) according to their personal needs. In response to the user's operation, the electronic device can overlay the celestial body feature image at the drag endpoint, which can better meet the user's actual usage needs.

[0030] In some possible implementations, before the electronic device displays the first guidance information on the preview screen, the method further includes: if the preview screen includes a specific subject, the electronic device displays mode recommendation information to suggest enabling the landscape-celestial ensemble shooting mode in the current shooting scene; in response to user confirmation, the electronic device enables the landscape-celestial ensemble shooting mode. This solution can automatically recommend enabling the landscape-celestial ensemble shooting mode, improving the user experience.

[0031] Secondly, a shooting device is provided, which has the function of implementing the shooting method described in the first aspect. The shooting device includes at least one module for implementing the shooting method provided in the first aspect. This device is applied to an electronic device.

[0032] Thirdly, an electronic device is provided, comprising a processor and a memory. The memory stores a program that supports the electronic device in performing the shooting method provided in the first aspect, and stores data related to implementing the shooting method described in the first aspect. The processor is configured to execute the program stored in the memory. The electronic device may further include a communication bus for establishing a connection between the processor and the memory.

[0033] Fourthly, a computer-readable storage medium is provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to perform the shooting method described in the first aspect.

[0034] Fifthly, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to perform the shooting method described in the first aspect.

[0035] The technical effects achieved by the second, third, fourth, and fifth aspects mentioned above are similar to those achieved by the corresponding technical means in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0036] Figure 1 This paper shows a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0037] Figure 2 A block diagram of a software system for an electronic device according to an embodiment of this application is shown;

[0038] Figure 3A A flowchart illustrating the shooting method provided in an embodiment of this application is shown;

[0039] Figure 3B This illustration shows a diagram of the guide icon displayed in the shooting method provided in an embodiment of this application;

[0040] Figure 4A A flowchart illustrating the shooting method provided in the first embodiment of this application is shown;

[0041] Figure 4B A schematic diagram of scene 1, which involves the fusion of celestial images and landscape images, is shown in the first embodiment of this application.

[0042] Figure 4C This illustration shows a user interface diagram of the shooting method provided in the first embodiment of this application when applied to an electronic device;

[0043] Figure 4D A schematic diagram of scene 2, which involves the fusion of celestial images and landscape images, is shown in the first embodiment of this application.

[0044] Figure 4E This illustration shows a user interface diagram of the shooting method provided in the first embodiment of this application when applied to an electronic device. Figure 1 ;

[0045] Figure 4F This illustration shows a user interface diagram of the shooting method provided in the first embodiment of this application when applied to an electronic device. Figure 2 ;

[0046] Figure 5A A schematic diagram of the fusion scene of celestial images and landscape images in the shooting method provided in the second embodiment of this application is shown;

[0047] Figure 5B The second embodiment of this application is shown based on Figure 3A A flowchart illustrating the provided shooting method;

[0048] Figure 5C A schematic diagram of the user interface corresponding to scenario 1 in the second embodiment of this application is shown;

[0049] Figure 6A The third embodiment of this application is shown. Figure 3A A flowchart illustrating the provided shooting method;

[0050] Figure 6B A schematic diagram illustrating the acquisition of shooting guidance information for a landscape according to a third embodiment of this application is shown;

[0051] Figure 6C A schematic diagram of the user interface corresponding to scenario 1 in the third embodiment of this application is shown;

[0052] Figure 7A This illustration shows a user interface diagram of an embodiment of the present application for enabling a landscape and celestial body photo mode;

[0053] Figure 7B This illustration shows a user interface diagram of another method for enabling the landscape and celestial body photo mode, as provided in an embodiment of this application. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0055] It should be understood that "multiple" as mentioned in this application refers to two or more. In the description of this application, unless otherwise stated, " / " indicates "or," for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist, for example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, to facilitate a clear description of the technical solutions of this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first," "second," etc., do not limit the quantity or execution order, and that "first," "second," etc., do not necessarily imply differences.

[0056] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0057] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with the user. It 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 or Extensible Markup Language (XML). The interface source code is parsed and rendered on the electronic device, ultimately presenting content that the user can recognize. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be visible interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of an electronic device.

[0058] With the development of terminal technology, the camera functions of electronic devices are becoming increasingly sophisticated, and users have increasingly higher demands for the image quality of celestial bodies such as the sun and moon. For example, users not only want to capture clear images of celestial bodies, but also desire specific image display effects. For instance, users may want to capture images of the moon with a unique compositional effect between the moon and the landscape. However, the camera functions currently offered by electronic devices are limited in their celestial body photography capabilities, thus failing to capture the desired compositional effects for both celestial and landscape images and failing to meet users' specific photographic needs.

[0059] For example, in some situations, from the user's location or angle, the landscape and celestial bodies are in the same direction. The user can then tap the shooting control in that direction to trigger the electronic device to capture an image at a certain zoom level, which simultaneously includes both landscape and celestial features. However, if the zoom level is too low (e.g., 1x), the resulting image will show a relatively clear landscape but small and blurry celestial bodies, resulting in poor composition. Conversely, if the zoom level is too high (e.g., 50x), the celestial bodies will be relatively clear, but the landscape may be incomplete or unclear, again resulting in poor composition.

[0060] For example, in some cases, from the user's location or angle, the landscape and celestial bodies are located in different directions. In this case, the electronic device can only capture images of the landscape or celestial bodies at a time, but cannot capture images that simultaneously include features of both landscape and celestial bodies. Therefore, it cannot meet the user's need to take a photo of the landscape and celestial bodies together.

[0061] For example, in some cases where a user triggers a shot to obtain both landscape and celestial images, the user can choose to achieve the desired composition effect through post-processing. For instance, the landscape and celestial images can be composited using the editing functions provided by gallery apps or third-party applications. However, this process is cumbersome and cannot meet the user's need for a simple and efficient way to combine landscape and celestial images in a single shot.

[0062] To better meet users' special photography needs, this application provides a shooting method in which an electronic device can guide users step by step to help them capture images of landscapes and celestial bodies together, and the composition effect of the celestial bodies and landscapes can meet the user's special needs.

[0063] Specifically, the embodiments of this application have made technical improvements to meet the specific photography needs of users:

[0064] The electronic device can display composition guide icons on the camera preview screen, guiding the user to adjust camera parameters (such as camera pose parameters). While the user is adjusting the camera parameters, the electronic device can automatically acquire landscape images and prompt the user to increase the zoom level to find celestial objects for a clear image. When the camera lens captures an image of a celestial object after the zoom level is increased, the user can click the shooting control. In response to the user's shooting command, the electronic device will merge the celestial and landscape images to obtain a combined landscape and celestial image.

[0065] Among them, by displaying composition guide icons to guide users to adjust the camera position, the electronic device can automatically capture landscape images with good shooting angles and high clarity. By prompting users to increase the zoom level and find celestial objects, the electronic device can capture celestial images with obvious celestial features and high clarity. Then, by merging the landscape images and celestial images using a certain composition method, the composition effect of celestial objects and landscapes is greatly improved, assisting users in achieving high-quality celestial photography and meeting users' special photography needs.

[0066] The shooting method provided in this application is applicable to scenarios where celestial bodies (such as the sun, moon, Venus, Milky Way, or other constellations) are photographed using electronic devices. When photographing celestial bodies using electronic devices, the shooting method of this application can be used to display the composition effect of celestial bodies and landscape, thereby improving the user's photography experience.

[0067] The shooting method provided in this application has the following technical effects: users can obtain images containing both landscape and celestial features through simple operation steps. Furthermore, the landscape and celestial images have good composition, and the celestial images are large and clear enough, while the landscape images have a good and clear shooting angle. Therefore, it can meet the user's need to easily capture landscapes and celestial features in a combined shot with good composition.

[0068] Before providing a detailed description of the shooting method provided in the embodiments of this application, the electronic equipment involved in the embodiments of this application will be described first.

[0069] As an example, this method can be applied to electronic devices with cameras. As an example and not a limitation, the electronic device can be, but is not limited to, tablet computers, desktop computers, laptop computers, handheld computers, laptops, in-vehicle devices, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), mobile phones, smartwatches, etc., and this application embodiment does not limit this.

[0070] It should be noted that the solution in this application is deployed on electronic devices, including but not limited to Android devices.

[0071] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. See also... Figure 1 The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a gyroscope sensor 180B, a magnetic sensor 180D, an accelerometer sensor 180E, a touch sensor 180K, an ambient light sensor 180L, etc.

[0072] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0073] Processor 110 may include one or more processing units, such as: application processor (AP), graphics processing unit (GPU), image signal processor (ISP), controller, memory, and digital signal processor (DSP). The controller may serve as the central nervous system and command center of electronic device 100. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.

[0074] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from this memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0075] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0076] The electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The display screen 194 is used to display images, videos, etc. In this embodiment, the display screen 194 can be used to display a camera preview image, and can also display guide signs on the camera preview image. The guide signs are used to guide the user to move the electronic device to adjust the camera orientation so that the camera can capture a landscape image with a specific composition effect.

[0077] Electronic device 100 can perform shooting functions through an ISP, camera 193, video codec, GPU, display 194, and application processor. Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through a lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, electronic device 100 may include one or N cameras 193, where N is an integer greater than 1.

[0078] In this embodiment of the application, after the camera application of the electronic device is started, the electronic device begins to acquire images through the camera 193. After the target star is identified as the target object, the electronic device focuses on the target star through the camera 193 and acquires a landscape image containing the target star.

[0079] Internal memory 121 can be used to store computer-executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as a camera application), etc. The data storage area may store data created by electronic device 100 during use, such as preview stream images captured by camera 193, and captured images of landscapes and celestial bodies.

[0080] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shake of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation scenarios.

[0081] The Magnetic Sensor 180D (or magnetic force sensor) includes a Hall sensor.

[0082] In this embodiment, the camera pose data of the electronic device can be obtained based on the gyroscope sensor 180B (and the magnetometer 180D). For example, the camera pose data includes the camera's pitch angle and azimuth angle. The electronic device can determine how to adjust the camera's orientation based on the camera pose data and the star position data to more accurately face the star.

[0083] An ambient light sensor 180L is used to sense ambient light intensity. In this embodiment, the ambient light sensor 180L can be used for scene recognition and to determine the target celestial body to be photographed. For example, when the ambient light intensity sensed by the ambient light sensor 180L is lower than a preset brightness threshold, it can be determined that the current shooting scene is nighttime and the target celestial body is the moon.

[0084] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. Touch sensor 180K can transmit the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation can be provided through display screen 194. In this embodiment, touch sensor 180K can be used to detect user operations on display screen 194. For example, touch sensor 180K can detect user clicks on function controls in the camera preview interface, such as detecting user clicks on function controls corresponding to the landscape / celestial object collage mode.

[0085] The software system of electronic device 100 will be described next.

[0086] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses a layered Android system as an example to illustrate the software system of electronic device 100.

[0087] Figure 2 This is a block diagram of a software system for an electronic device 100 provided in an embodiment of this application. See also... Figure 2 A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime, the system layer, and the kernel layer.

[0088] The application layer can include a series of application packages. For example... Figure 2 As shown, the application package can include applications such as camera, gallery, calendar, map, and navigation.

[0089] In this embodiment, the application layer includes a smart assistant application (e.g., called the YOYO application). The smart assistant application of the electronic device can provide a shortcut to the camera application. For example, after the smart assistant application is activated, if the user inputs the command "I want to photograph the moon, help me with the composition," the smart assistant application can reply to the user "I will start the camera to provide you with a landscape-star combination shot service," and the smart assistant application triggers the camera application to start and display the camera preview, automatically activating the landscape-star combination shot service / mode. When the landscape-star combination shot service is enabled, the electronic device can assist the user in capturing landscape-star combination images, and in these images, the composition of the stars and the landscape can meet the user's specific needs, such as the star image being large and clear enough, and the landscape image having a good and clear shooting angle.

[0090] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example, the application framework layer may include a window manager, content provider, view system, notification manager, etc.

[0091] In this embodiment, the application framework layer includes a camera service, namely a landscape-celestial composite image service. Through this service, the electronic device can display composition guide icons on the camera preview screen, guiding the user to adjust camera parameters (e.g., camera pose parameters). While the user is adjusting these parameters, the electronic device can automatically acquire landscape images and prompt the user to increase the zoom level to find celestial objects for a clear image. When the zoom level is increased and the camera lens captures an image of a celestial object, the user can click the shooting control. In response to the user's shooting command, the electronic device merges the celestial and landscape images to obtain a landscape-celestial composite image.

[0092] Among them, by displaying composition guide icons to guide users to adjust the camera position, the electronic device can automatically capture landscape images with good shooting angles and high clarity. By prompting users to increase the zoom level and find celestial objects, the electronic device can capture celestial images with obvious celestial features and high clarity. Then, by merging the landscape images and celestial images using a certain composition method, the composition effect of celestial objects and landscapes is greatly improved, assisting users in achieving high-quality celestial photography and meeting users' special photography needs.

[0093] The Android Runtime consists of the core libraries and the virtual machine. The Android runtime is responsible for scheduling and managing the Android system. The core libraries consist of two parts: one part contains the functionalities that Java needs to call, and the other part is the core Android library itself. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0094] The system library can include multiple functional modules, such as a surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), and 2D graphics engines (e.g., SGL). The surface manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The media libraries support playback and recording of various common audio and video formats, as well as still image files. The media libraries support various audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG. The 3D graphics processing libraries are used for 3D graphics drawing, image rendering, compositing, and layer processing. The 2D graphics engine is the drawing engine for 2D graphics.

[0095] In this application embodiment, the system library may include a landscape and celestial body composite image database, which includes guided photography algorithms for landscapes, guided photography algorithms for celestial bodies, overlay display algorithms for landscape and celestial body images (e.g., AR overlay display), synthesis algorithms for landscape and celestial body images, celestial body matting algorithms, and sky segmentation algorithms.

[0096] The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver. In this embodiment, the camera driver is used to drive the camera of the electronic device to acquire images, and also to drive the adjustment of the camera's orientation.

[0097] It should be noted that although the embodiments of this application are described using the Android system as an example, the basic principles are also applicable to electronic devices based on operating systems such as iOS or Windows.

[0098] The following example, using a scene of capturing a photograph, illustrates the workflow of the software and hardware of the electronic device 100.

[0099] When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, etc.). The raw input event is stored in the kernel layer. The application framework layer retrieves the raw input event from the kernel layer and identifies the control corresponding to the raw input event. Taking a single-click operation as an example, where the corresponding control is the camera application icon, the camera application calls the interface of the application framework layer to launch the camera application, and then calls the kernel layer to launch the camera driver, capturing still images or videos through camera 193.

[0100] Specifically, in this application, the electronic device can acquire landscape images and celestial images separately through camera 193, and then fuse the landscape images and celestial images to obtain a combined landscape and celestial image. The electronic device acquires landscape images through camera 193 at a first zoom level, and then acquires celestial images through camera 193 at a second zoom level. The second zoom level is greater than the first zoom level; for example, the second zoom level is 50x, and the first zoom level is 1x.

[0101] For example, electronic devices can use a main camera to capture landscape images and a telephoto camera to capture images of celestial bodies.

[0102] In this embodiment, the electronic device can guide the user to adjust the camera pose by displaying a composition guide icon. During the user's adjustment of the camera pose, the electronic device automatically captures landscape images through the camera 193 at a first zoom level. The electronic device then guides the user to adjust the camera's focal length (increase the zoom level) and face the celestial body. In response to the user's shooting command, the electronic device can capture celestial body images through the camera 193 at a second zoom level and fuse the celestial body images with the landscape images to obtain a combined landscape and celestial body image.

[0103] The subject executing the shooting method provided in this application embodiment can be the aforementioned electronic device, or a functional module and / or functional entity within the electronic device capable of implementing the shooting method. Furthermore, the solution of this application can be implemented through hardware and / or software, the specific implementation of which can be determined according to actual usage requirements; this application embodiment does not impose any limitations. The following description uses an electronic device as an example, in conjunction with the accompanying drawings, to exemplarily illustrate the shooting method provided in this application embodiment.

[0104] The embodiments of this application will be described below with reference to the accompanying drawings and through several exemplary embodiments. The methods in the following embodiments can all be implemented in an electronic device having the above-described hardware structure and software architecture. The hardware structure diagram of the electronic device can be as follows: Figure 1 As shown, the software structure block diagram of an electronic device can be as follows: Figure 2As shown, the embodiments of this application are not limited to this. For ease of explanation, the electronic device used in the embodiments of this application is a mobile phone.

[0105] First, the landscape and celestial body combined shooting mode provided in the embodiments of this application will be described in detail.

[0106] In some embodiments, the electronic device provides a combined landscape and celestial shooting mode, which may be called a landscape and celestial shooting mode, or a landscape and celestial shooting service or function, or a super landscape and celestial mode, to enhance the user's photography experience and image composition when shooting images that combine landscapes and celestial objects.

[0107] In this application embodiment, ground scenery can be simply referred to as landscape. Landscape can refer to human bodies or objects on the ground. For example, landscape can include features such as human bodies, buildings, animals, and / or plants.

[0108] Among them, the celestial bodies can be the moon, the sun, or star clusters.

[0109] For example, in a scene where the moon is being photographed, the landscape and celestial body combined shooting mode can guide users to easily capture beautiful night scenes and take combined images of the landscape (such as buildings) and the moon.

[0110] For example, in a scene where the sun is being photographed, the landscape and celestial body combined shooting mode can guide users to capture combined images of the landscape (such as people) and the sun.

[0111] In some shooting scenarios, users desire to capture images containing both landscape and celestial bodies through simple operations. They also require well-composed landscape and celestial images, with sufficiently large and clear celestial images, and well-angled and sharp landscape images. The landscape and celestial body combined shooting service provided in this application can meet these specific photographic needs of users when shooting landscapes and / or celestial bodies.

[0112] In this embodiment, when the landscape-celestial ensemble shooting mode is enabled, the electronic device can guide / assist the user in capturing landscape-celestial ensemble images. Specifically, the electronic device displays composition guidance marks, guiding the user to adjust the camera orientation to align with the landmark landscape. During this process, the electronic device automatically captures high-resolution landscape images. Then, the electronic device guides the user to adjust the camera orientation and focal length so that the camera can acquire high-resolution celestial images more quickly. Finally, the high-resolution landscape image and the high-resolution celestial image are fused to obtain the landscape-celestial ensemble image.

[0113] In some cases, if there are no celestial images in the landscape image, a high-resolution celestial image can be overlaid on a certain sky area of ​​the landscape image, thus creating a compositional effect with high aesthetic score between the celestial image and the landscape image.

[0114] In other cases, if there are celestial images in the landscape image, high-resolution celestial images can be used to overwrite the existing celestial images in the landscape image.

[0115] When there is overlap (i.e. occlusion) between celestial images and landscape images, a sky segmentation algorithm can be used to handle the occlusion relationship between celestial images and landscape images, thereby improving the composition effect of celestial images and landscape images.

[0116] With this solution, users only need to take a single photo to trigger an electronic device to generate a composite image of the landscape and celestial bodies.

[0117] It should be noted that while the user is adjusting the camera's orientation, the electronic device can automatically capture images of the landscape. This action of the electronic device is imperceptible to the user.

[0118] Among them, electronic devices can present a variety of composition effects between celestial bodies and landscapes such as buildings, making it easier for users to choose a satisfactory celestial composition effect according to their actual needs and improving the user's photography experience.

[0119] The shooting method provided in this application includes the following two stages:

[0120] Landscape image capture stage: The electronic device displays landscape-specific shooting guidance information on the preview screen, guiding the user to adjust the camera pose (including position and orientation) to capture landscape images. While the user adjusts the camera pose by referring to the landscape-specific shooting guidance icons, the electronic device can automatically capture landscape images without the user triggering the shooting, and the automatic capturing action of the electronic device is imperceptible to the user.

[0121] During the celestial image capture phase: The electronic device displays shooting guidance information for the celestial body on the preview screen, guiding the user to adjust the camera zoom (and orientation) to capture the celestial image. After the adjustment is completed, the electronic device can respond to the user's shooting command, capture the celestial image, and fuse the landscape image and the celestial image to obtain a combined landscape and celestial image.

[0122] With this solution, users only need to take a single photo to trigger an electronic device to generate a composite image of the landscape and celestial bodies.

[0123] The following describes the shooting method provided in the embodiments of this application with reference to specific examples.

[0124] First refer to Figure 3A , Figure 3A A schematic flowchart of the shooting method provided in the embodiments of this application is shown.

[0125] S201. After the camera application on the electronic device is launched, the electronic device displays a preview screen.

[0126] It should be noted that the electronic device has a camera application (software) and a camera lens (hardware) installed. The electronic device can respond to user input by launching the camera application, and after the camera application launches, it can trigger the camera lens to work through the camera driver, meaning the camera lens begins capturing images. The electronic device then presents the images captured by the camera lens to the user in the form of a preview screen. The preview screen includes multiple consecutive frames of images captured by the camera lens.

[0127] It's also worth noting that electronic devices can be equipped with multiple camera lenses (i.e., webcams) to meet the shooting needs of different scenarios. For example, an electronic device can have a main camera and a telephoto lens. The zoom ratio of the main camera is less than that of the telephoto lens, but the field of view of the main camera is greater than that of the telephoto lens. The main camera is suitable for shooting close-ups, while the telephoto lens is suitable for shooting distant scenes.

[0128] For example, in the initial stage, the electronic device can use the main camera lens to preview the streaming image at a first zoom level (e.g., 1×).

[0129] S202. In the landscape and celestial body combined shooting mode, the electronic device displays shooting guidance information for the landscape in the preview screen to prompt the user to adjust the camera position.

[0130] In some embodiments, in response to user actions, the electronic device may enable a landscape and celestial body photo mode.

[0131] In other embodiments, when the electronic device detects that the preview image meets the conditions for astrophotography, the electronic device may prompt the user to enable the landscape-astrophotography mode, or automatically enable the landscape-astrophotography mode.

[0132] In this embodiment of the application, the electronic device can display shooting guidance information for the landscape in the preview screen according to the landscape recommendation photography algorithm or landscape photography template.

[0133] It should be noted that the above-mentioned shooting guidance information for landscapes is not limited to prompting adjustments to camera pose; it may also prompt adjustments to other parameters such as exposure settings and / or focal length to improve landscape image quality. The example of prompting camera pose adjustment is provided here for illustration.

[0134] For example, the shooting guidance information for the landscape may include a first marker located in the center of the preview screen, a second marker located in the center of the target orientation, and a directional guide arrow pointing from the first marker to the second marker.

[0135] This application does not limit the display state and size of the first identifier, the second identifier, and the arrow. For example, the first identifier can be represented by a solid circle, the second identifier can be represented by a dashed circle, and the size of the second identifier is larger than that of the first identifier. The directional guide arrow can be represented by a dynamically displayed dashed arrow.

[0136] Figure 3B This illustration shows a preview screen displaying shooting guidance information for the landscape to prompt the user to adjust the camera pose. For example... Figure 3B As shown, the preview screen displays guide icons: a smaller solid circle represents the center of the preview screen, a larger dashed circle represents the center of the target orientation, and a dynamically displayed dashed arrow between the smaller solid circle and the larger dashed circle prompts the user to move the electronic device to align the center of the preview screen with the center of the target orientation. The electronic device updates the guide icons in real time as the user moves the device. When the larger dashed circle encompasses the smaller solid circle, the electronic device confirms that the center of the preview screen coincides with the center of the target orientation, and in this case, the electronic device successfully guides the user to complete the camera pose adjustment.

[0137] By prompting users to adjust the camera position, the landscape images captured by the camera lens can have better composition or display effects, which in turn helps to improve the composition or display effects of subsequent group photos.

[0138] S203. During the process of the user adjusting the camera posture, if the camera posture meets the conditions, the electronic device automatically captures a landscape image, which includes landscape image features.

[0139] For example, an electronic device captures a landscape image using its main camera lens at a 1x zoom ratio and caches the automatically captured landscape image for later image synthesis.

[0140] It should be noted that while the user is adjusting the camera's orientation, the electronic device can automatically capture images of the landscape. This capturing action by the electronic device is imperceptible to the user.

[0141] In some scenarios, when the center of the preview image coincides with the center of the target composition, the electronic device can determine that the camera pose meets the requirements.

[0142] S204. After automatically capturing the landscape image, the electronic device displays shooting guidance information for the celestial body, prompting the user to increase the zoom level to capture the celestial body.

[0143] For example, the shooting guidance information for celestial bodies may include text content and / or symbols to prompt the user to increase the zoom level.

[0144] For example, guidance information for shooting celestial bodies could include prompts such as "Please increase the zoom level to find the moon."

[0145] For example, guidance information for photographing celestial bodies can also include arrows pointing to the location of the celestial body.

[0146] Referring to the shooting guidance information for celestial bodies, users can adjust the orientation of the camera lens and increase the zoom ratio to make the camera lens more accurate.

[0147] S205. When a celestial image appears in the preview screen after the zoom level is increased, the electronic device prompts the user to trigger the shooting.

[0148] For example, electronic devices can prompt users to take a picture by displaying a message such as "The composition is now good, please click to take the picture".

[0149] S206. In response to the user's shooting command, the electronic device captures an image of a celestial body.

[0150] For example, electronic devices can capture images of celestial bodies using a telephoto lens at a 50x zoom ratio.

[0151] Electronic devices can cache captured images of celestial bodies for use in the fusion processing of celestial body images and landscape images.

[0152] S207. The electronic device overlays the celestial image onto the first sky region of the landscape image to obtain a composite image of the landscape and celestial bodies.

[0153] In some embodiments, the landscape image includes a landscape feature region and a sky feature region, wherein the first sky region is a region within the sky feature region.

[0154] In some embodiments, the electronic device may employ a sky segmentation algorithm to process the landscape image and determine the sky feature region.

[0155] In some embodiments, the electronic device can determine a certain area in the sky feature region as the first sky region according to the landscape star recommendation composition algorithm, so as to ensure that a better landscape star composition effect can be obtained after the star image is superimposed on the landscape image.

[0156] In some embodiments, the celestial image includes celestial feature regions and sky feature regions. An electronic device can perform image matting on the celestial feature regions in the celestial image to obtain the celestial feature regions. The electronic device then overlays the celestial feature regions onto the first sky region of the landscape image to obtain a composite image of the landscape and celestial bodies. The image matting process may include celestial segmentation and binary masking, etc. Specific processing procedures can be found in relevant technologies and will not be elaborated here.

[0157] In some embodiments, the electronic device can save a combined landscape and celestial image to a gallery and delete previously captured landscape and celestial images. In other embodiments, the electronic device can save landscape images, celestial images, and combined landscape and celestial images to a gallery. This application does not limit the scope of these embodiments; specific settings can be made according to actual usage requirements.

[0158] According to this application, in the landscape-celestial ensemble shooting mode, the electronic device can display shooting guidance information for the landscape on the camera preview screen, thereby guiding the user to adjust the camera pose to improve the landscape shooting effect. While the user is adjusting the camera pose, the electronic device automatically acquires landscape images and prompts the user to increase the zoom level to find celestial objects for clear celestial images. When a celestial image appears in the preview screen after increasing the zoom level, the electronic device prompts the user to trigger the shooting. The user can click the shooting control; in response to the user's shooting command, the electronic device acquires the celestial image and merges it with the landscape image to obtain a landscape-celestial ensemble image.

[0159] It should be noted that by displaying composition guide icons to guide users in adjusting the camera position, the electronic device can automatically capture landscape images with good shooting angles and high clarity. By prompting users to increase the zoom level and locate celestial objects, the electronic device can capture celestial images with obvious features and high clarity. Then, by merging the landscape images and celestial images using a certain composition method, the composition effect of celestial objects and landscapes is greatly improved, assisting users in achieving high-quality celestial photography and meeting users' special photography needs.

[0160] Therefore, with this solution, users only need to follow the shooting guidance information for the landscape to adjust the camera pose, and then follow the shooting guidance information for the celestial bodies to point the camera lens at the celestial body and increase the zoom. When the celestial body image appears in the preview screen, the user can click the shooting control to trigger the electronic device to generate a composite image of the landscape and celestial bodies. The operation is convenient and quick for users, improving the user's photography experience.

[0161] The above describes a shooting method provided by an embodiment of this application. In actual implementation, the landscape image may contain both landscape image features and celestial image features, or the landscape image may contain landscape image features but not celestial image features. Accordingly, the image processing of the shooting method provided by this application differs in different scenarios, and the combined landscape and celestial image also differs in effect in different scenarios. The possible implementations of the shooting method provided by the embodiments of this application are described in detail below with reference to specific embodiments and accompanying drawings.

[0162] First Implementation Method

[0163] In the landscape-celestial ensemble shooting mode, the electronic device can display shooting guidance information for the landscape on the camera preview screen, guiding the user to adjust the camera pose to improve the landscape shooting effect. While the user is adjusting the camera pose, the electronic device automatically acquires landscape images and prompts the user to increase the zoom level to find celestial objects for clear celestial images. When a celestial image appears in the preview screen after increasing the zoom level, the electronic device prompts the user to trigger the shooting. The user can click the shooting control, and in response to the user's shooting command, the electronic device acquires celestial images and merges them with the landscape images to obtain a landscape-celestial ensemble image.

[0164] It should be noted that in the first implementation, when the electronic device automatically acquires landscape images, the electronic device can determine whether the landscape images also contain celestial images, and then adopt different processing methods for different scenarios.

[0165] For example, embodiments of this application provide the following two scenarios:

[0166] (1) Scenario 1: The landscape image contains celestial features. In Scenario 1, the following two processing methods are provided:

[0167] Method 1: Overlay an existing celestial feature image with a celestial feature image acquired at high zoom magnification.

[0168] Method 2: First, remove existing celestial features from the landscape image, and then display the celestial feature image acquired at high zoom magnification in the recommended area of ​​the landscape image.

[0169] (2) Scenario 2: The landscape image does not contain celestial features. In Scenario 2, the following two processing methods are provided:

[0170] Method 1 displays celestial feature images acquired at high zoom magnification in a recommended area of ​​the landscape image.

[0171] Method 2 displays a high-zoom image of celestial features at the user-selected location in the landscape image.

[0172] The first embodiment will be described below with reference to the flowchart and user interface diagram.

[0173] First, refer to 4A. Figure 4A The embodiments of this application are shown based on Figure 3A A flowchart illustrating the provided shooting method. It should be noted that... Figure 3A Based on the process shown, after S203 and before S204, Figure 4A An additional step, S208, has been added to determine whether the landscape contains features of celestial images.

[0174] First, referring to steps S201-S203, after the camera application on the electronic device is launched, the electronic device displays a preview screen. In the landscape and celestial body combined shooting mode, the electronic device displays shooting guidance information for the landscape in the preview screen to prompt the user to adjust the camera pose. During the user's adjustment of the camera pose, if the camera pose meets the conditions, the electronic device automatically captures a landscape image, which includes landscape features.

[0175] S208. Electronic equipment determines whether a landscape image still contains celestial features.

[0176] Based on the judgment result of step S208, the following details scenario 1 and scenario 2, as well as the processing methods under different scenarios.

[0177] Scenario 1: The landscape image contains celestial features.

[0178] If, in step S208, the electronic device determines that the landscape image also contains celestial features, it continues with steps S209 and S204-S207. Specifically, if the landscape image contains both landscape features and celestial features, the electronic device identifies the area in the landscape image where the celestial features are located (i.e., the first sky region). The electronic device displays shooting guidance information for the celestial body, prompting the user to increase the zoom level to capture the celestial body. When the celestial image appears in the preview screen after the zoom level is increased, the electronic device prompts the user to trigger the shooting. In response to the user's shooting command, the electronic device captures a larger celestial image with clearer texture. The electronic device overlays the larger, clearer celestial image onto the first sky region of the landscape image to cover the existing celestial image in the landscape image, thereby obtaining a combined landscape and celestial image.

[0179] This application provides the following two implementation methods for scenario 1:

[0180] Method 1: Overlay the existing celestial feature image with the celestial feature image acquired at high zoom magnification.

[0181] Electronic devices can identify the center of an existing celestial body in a landscape image. Using this existing celestial body center as the center, the electronic devices can then display a larger, more detailed image of the celestial body's features, acquired at high zoom magnification, to overlay the existing celestial body feature image in the landscape image.

[0182] Method 2: First, remove existing celestial features from the landscape image, and then display the celestial feature image acquired at high zoom magnification in the recommended area of ​​the landscape image.

[0183] Electronic devices can remove existing celestial bodies from landscape images, then determine a recommended region in the landscape image based on a landscape celestial body recommendation composition algorithm, and overlay the celestial body feature image acquired at high zoom magnification onto the recommended region to improve the landscape celestial body composition effect.

[0184] The following is combined with Figure 4B and Figure 4C Explain the possible implementation methods of Scenario 1.

[0185] Figure 4B A schematic diagram of the image processing flow corresponding to scenario 1 in this embodiment is shown. The image processing flow includes star matting processing on the acquired star image, and image fusion processing on the acquired landscape image and the matted star feature image.

[0186] refer to Figure 4B The electronic device acquires landscape images and celestial images. The acquired landscape images include landscape areas, celestial areas, and the sky area excluding the landscape and celestial areas. The acquired celestial images include celestial areas and the sky area excluding the celestial areas.

[0187] The landscape image contains celestial features (such as the moon), which are small in size and have poor image texture.

[0188] The star image contains celestial features (such as the moon) that are large in size and have clear image texture.

[0189] The electronic device performs image cutout processing on celestial features in a celestial image to obtain larger celestial features with clearer image texture. Taking Method 1 above as an example, the electronic device overlays the larger, clearer celestial features onto existing celestial features in a landscape image (as shown in the dashed box area), thereby obtaining a landscape-celestial composite image. After image processing, the celestial features in this landscape-celestial composite image are larger, clearer, and have higher resolution, resulting in better visual effects and meeting the user's specific photography needs.

[0190] Figure 4CA schematic diagram of the user interface corresponding to scenario 1 in the second embodiment of this application is shown.

[0191] refer to Figure 4C In (a), the electronic device has enabled the camera application and displays a camera preview screen 10 and the camera's current zoom level (e.g., 1×), with landscape features (e.g., buildings) 12 displayed in the preview screen 10.

[0192] refer to Figure 4C In (b) of the example, after the user triggers the activation of the landscape-celestial ensemble mode, the electronic device displays a "Landscape-Celestial Ensemble Mode" label 13 and a close control "×", along with the prompt "Adjust Camera Pose" 14 and an icon (hereinafter referred to as the pose guide icon) to guide the adjustment of the camera pose. For example, the pose guide icon may include a solid small circle 15 representing the center area of ​​the preview screen, a dashed large circle 16 representing the center area of ​​the target screen, and a dashed guide arrow 17 pointing from the solid small circle 15 to the dashed large circle 16. The pose guide icon guides the user to move the electronic device's pose, i.e., guides the user to move the camera pose, so that the center area of ​​the preview screen coincides with the center area of ​​the target screen. As the electronic device's pose changes, the relative positions of the solid small circle 15 and the dashed large circle 16 change, and the dashed guide arrow 17 is dynamically updated to enhance the guiding effect.

[0193] refer to Figure 4C In (c), the solid small circle 15 is located inside the dashed large circle 16, forming concentric circles 18. This indicates that the center area of ​​the preview screen coincides with the center area of ​​the target, and the camera pose adjustment is successful. The electronic device displays the message "Pose adjustment successful" 19.

[0194] refer to Figure 4C In steps (c) and (d), if the solid-line small circle 15 is located within the dashed-line large circle 16 during the user's camera pose adjustment, the electronic device automatically captures a landscape image 21 and displays the landscape image 21 and a close control "×" in the first area of ​​the camera interface (e.g., the center area of ​​the camera interface). The landscape image 21 includes landscape features and celestial features (e.g., the moon). The electronic device may display the prompt message "Landscape image automatically captured; please face the celestial body and increase zoom" 20.

[0195] refer to Figure 4CIn step (e), in response to user input, the electronic device increases the zoom level (50x as an example). With the increased zoom level, a telephoto viewfinder 23 is displayed in the second area of ​​the camera interface (e.g., the upper left area of ​​the camera interface). The telephoto viewfinder 23 displays a preview image captured by the electronic device at the increased zoom level. When a celestial feature 24 (e.g., the moon) is displayed in the telephoto viewfinder 23, the electronic device can display the message "Celestial body detected, please click to take a picture" 25.

[0196] refer to Figure 4C In steps (e) and (f), in response to a user's click on the shooting control 26, the electronic device performs image processing based on the landscape image 21 and the celestial features 24 in the telephoto viewfinder 23 to generate a combined landscape and celestial image. The electronic device can display this combined landscape and celestial image 27. This combined landscape and celestial image 27 simultaneously includes both landscape features and celestial features, resulting in a good composition. Furthermore, the landscape features have a good framing angle and high clarity, while the celestial features are larger, have clearer textures, and higher clarity.

[0197] This shooting method can help users achieve the goal of combining landscapes and celestial bodies in a single shot, thus meeting users' special photography needs.

[0198] Optionally, when a user uses the landscape and celestial body collage mode for the first time, the electronic device may display prompts 14, 19, 20, and 25. Subsequent uses of the landscape and celestial body collage mode may not require the electronic device to display these prompts. Alternatively, the display of these prompts each time the landscape and celestial body collage mode is used may be determined by the electronic device based on user usage habits or user settings.

[0199] Scenario 2: The landscape image does not contain celestial features.

[0200] If, in S208, the electronic device determines that the landscape image does not contain celestial features, it continues with S204-S207. Specifically, if the landscape image contains landscape features but not celestial features, the electronic device displays shooting guidance information for celestial objects, prompting the user to increase the zoom level to capture the celestial objects. When the celestial image appears in the preview screen after the zoom level is increased, the electronic device prompts the user to trigger the shooting. In response to the user's shooting command, the electronic device captures a larger celestial image with clearer texture. The electronic device can determine the area to be superimposed in the landscape image (i.e., the first sky area) and superimpose the larger celestial image with clearer texture onto the area to be superimposed in the landscape image, thereby obtaining a combined landscape and celestial image.

[0201] This application provides the following two implementation methods for scenario 2:

[0202] Method 1: Display celestial feature images acquired at high zoom magnification in a recommended area of ​​the landscape image.

[0203] Electronic devices can determine a recommended region in a landscape image based on a landscape celestial object recommendation composition algorithm, and overlay a celestial object feature image in that recommended region of the landscape image.

[0204] Method 2: Display a celestial feature image acquired at high zoom magnification at the user-selected location in the landscape image.

[0205] The electronic device provides a draggable "celestial body" function, allowing users to drag celestial body feature images to a specific location in the landscape image (such as near a building) according to their personal needs. In response to the user's operation, the electronic device can overlay and display the celestial body feature image at the destination location, meeting the user's actual usage needs.

[0206] The following is combined with Figures 4D to 4F Explain the possible implementation methods for scenario 2.

[0207] Figure 4D A schematic diagram of the image processing flow corresponding to scenario 2 in this embodiment is shown. The image processing flow includes star matting processing on the acquired star image, and image fusion processing on the acquired landscape image and the matted star feature image.

[0208] refer to Figure 4D The electronic device acquires both landscape and celestial images. The landscape image contains small celestial features (e.g., the moon) with unclear texture. The celestial image contains larger, clearer celestial features. The electronic device performs image cutout processing on the celestial features in the celestial images, resulting in larger, clearer celestial features. The electronic device then overlays these larger, clearer celestial features onto a specific sky area within the landscape image (as indicated by the arrow), thus creating a combined landscape and celestial image. This combined landscape and celestial image simultaneously contains both landscape and celestial features, offering good composition. Furthermore, the landscape features have a good framing angle and high clarity, while the celestial features are large and have high texture clarity. This shooting method helps users achieve combined landscape and celestial images, meeting their specific photographic needs.

[0209] Figure 4E A schematic diagram of the user interface corresponding to scenario 2 (method 1) of the first embodiment of this application is shown.

[0210] refer to Figure 4EIn (a) to (b), the electronic device has activated the camera application and is displaying a camera preview showing landscape features (such as buildings). After the user triggers the activation of the Landscape-Star Synchronization Mode, the electronic device displays a "Landscape-Star Synchronization Mode" label and a close control "×", along with the prompt "Adjust Camera Pose" and an icon to guide the adjustment of the camera pose (referred to as the pose guide icon). For example, the pose guide icon may include a small solid circle representing the center area of ​​the preview screen, a large dashed circle representing the center area of ​​the target, and a dashed guide arrow pointing from the small solid circle to the large dashed circle. The user refers to the pose guide icon to move the electronic device's pose.

[0211] refer to Figure 4E In steps (b) to (c), as the electronic device's pose changes, the relative positions of the solid-line small circle and the dashed-line large circle change, and the dashed guide arrow dynamically updates its display. When the solid-line small circle is inside the dashed-line large circle, it indicates that the center area of ​​the preview screen coincides with the center area of ​​the target, and the camera pose adjustment is successful. The electronic device displays the message "Pose adjustment successful." Furthermore, during the user's camera pose adjustment process, if the solid-line small circle is inside the dashed-line large circle, the electronic device automatically captures a landscape image and displays this landscape image and the close control "×" in the first area of ​​the camera interface (e.g., the center area of ​​the camera interface). This landscape image includes landscape features but does not include celestial features (e.g., the moon). The electronic device may display the message "Landscape automatically captured; please face the celestial body and increase the zoom."

[0212] refer to Figure 4E In steps (d) to (e), in response to user input, the electronic device increases the zoom level (e.g., 50×), and with the increased zoom level, displays a telephoto viewfinder in a second area of ​​the camera interface (e.g., the upper left area of ​​the camera interface). The telephoto viewfinder can display a preview image captured by the electronic device at the increased zoom level. When a celestial feature (e.g., the moon) is displayed in the telephoto viewfinder, the electronic device can display the message "Celestial body detected, please click to take a picture." In response to user clicks on the shooting controls, the electronic device performs image processing based on the landscape image and the celestial feature image in the telephoto viewfinder to generate a combined landscape and celestial image. The electronic device can then display this combined landscape and celestial image.

[0213] It should be noted that, Figure 4E and Figure 4C The difference lies in: on the one hand, in Figure 4C In landscape images automatically captured by electronic devices, not only are landscape features included, but also celestial features (such as the moon). Figure 4EIn the case of automatically captured landscape images by electronic devices, the images contain landscape features but not celestial features. On the other hand, in... Figure 4C In this process, electronic devices perform image processing based on a landscape image (containing celestial features) and an image of celestial features within a telephoto lens, generating a composite image of the landscape and celestial objects. Figure 4E In this process, electronic devices perform image processing based on landscape images (excluding celestial features) and celestial feature images within the telephoto viewfinder to generate a composite image of the landscape and celestial bodies.

[0214] Figure 4F A user interface diagram corresponding to scenario 2 (method 2) of the first embodiment of this application is shown. (As described above...) Figure 4E After implementing steps (a) to (c), you can execute... Figure 4F (a) to (c) in the reference. Figure 4F In sections (a) to (c), a landscape image is automatically captured in the first area (e.g., the central area) of the camera interface, and a telephoto viewfinder is displayed in the second area (e.g., the upper left). When the celestial feature image 28, captured at high zoom magnification, is displayed in the telephoto viewfinder, the electronic device displays the message "Celestial body detected; drag the 'celestial body' to compose the shot" 29. The user can drag the celestial feature image 28 to a location in the landscape image (e.g., near a building) according to their needs. The electronic device displays the celestial feature image 28, captured at high zoom magnification, at the user-selected location in the landscape image, thus better meeting the user's actual usage needs.

[0215] Second implementation method

[0216] In the landscape-celestial ensemble shooting mode, the electronic device can display shooting guidance information for the landscape on the camera preview screen, guiding the user to adjust the camera pose to improve the landscape shooting effect. While the user is adjusting the camera pose, the electronic device automatically acquires landscape images and prompts the user to increase the zoom level to find celestial objects for clear celestial images. When a celestial image appears in the preview screen after increasing the zoom level, the electronic device prompts the user to trigger the shooting. The user can click the shooting control, and in response to the user's shooting command, the electronic device acquires celestial images and merges them with the landscape images to obtain a landscape-celestial ensemble image.

[0217] It should be noted that in the second implementation, when the electronic device captures a star image using an increased zoom magnification, the electronic device can overlay the star image onto the first sky region of the landscape image. Then, the electronic device determines whether the star features and landscape features overlap in the overlaid image, such as whether the moon obscures buildings in the overlaid image, and then uses different image processing methods for different scenes.

[0218] The following example uses the moon as a celestial body and buildings as a landscape to illustrate the point.

[0219] This application provides the following two scenarios in its embodiments:

[0220] Scenario 1: In the superimposed image, celestial features overlap with landscape features. (Reference) Figure 5A In the overlaid image, the moon layer may be located above the building layer, which is unreasonable and requires processing of the overlapping area to avoid this occlusion. In Scene 1, the following processing method is provided: For the overlaid image, a sky segmentation algorithm is used to determine region 1 of the celestial feature image that overlaps with the landscape feature image. The celestial feature image in region 1 is then eliminated or hidden, so that the building layer is displayed in the overlapping area, while the celestial feature image is not.

[0221] Scenario 2: In the superimposed image, the celestial features and the landscape features do not overlap. In this case, the electronic device directly generates a composite image of the landscape and celestial features based on the celestial and landscape images.

[0222] The second embodiment will be described below with reference to the flowchart and user interface diagram.

[0223] Figure 5B The embodiments of this application are shown based on Figure 3A A flowchart illustrating the provided shooting method. It should be noted that... Figure 3A Based on the process shown, regarding step S207, Figure 5B The steps for determining whether celestial features and landscape features overlap, as well as image processing steps in cases of overlap, have been added.

[0224] S207a, The electronic device overlays a star image onto the first sky region of the landscape image.

[0225] S207b: The electronic device determines whether there is overlap between celestial features and landscape features in the superimposed image.

[0226] In S207c and S207d, when the celestial features and landscape features overlap in the superimposed image (Scenario 1), image processing is performed on the overlapping area so that the celestial image features are not displayed in the overlapping area. After processing, the electronic device generates a composite image of the landscape and celestial features.

[0227] It is understandable that, in the case where the features of the stars and the features of the landscape do not overlap in the superimposed image (Scenario 2), the electronic device directly generates a composite image of the landscape and stars based on the star image and the landscape image.

[0228] It should be noted that the above can be combined with... Figure 3AThe flowchart shown executes S207a to S207d, or S207a to S207d can be executed in conjunction with the flowchart shown in 4A above.

[0229] Figure 5C A schematic diagram of the user interface corresponding to scenario 1 in the second embodiment of this application is shown.

[0230] refer to Figure 5C In (a) to (b), the electronic device has activated the camera application and is displaying a camera preview showing landscape features (such as buildings). After the user triggers the activation of the Landscape-Star Synchronization Mode, the electronic device displays a "Landscape-Star Synchronization Mode" label and a close control "×", along with the prompt "Adjust Camera Pose" and an icon to guide the adjustment of the camera pose (referred to as the pose guide icon). For example, the pose guide icon may include a small solid circle representing the center area of ​​the preview screen, a large dashed circle representing the center area of ​​the target, and a dashed guide arrow pointing from the small solid circle to the large dashed circle. The user refers to the pose guide icon to move the electronic device's pose.

[0231] refer to Figure 5C In steps (b) to (c), as the electronic device's pose changes, the relative positions of the solid-line small circle and the dashed-line large circle change, and the dashed guide arrow dynamically updates its display. When the solid-line small circle is inside the dashed-line large circle, it indicates that the center area of ​​the preview screen coincides with the center area of ​​the target, and the camera pose adjustment is successful. The electronic device displays the message "Pose adjustment successful." Furthermore, during the user's camera pose adjustment process, if the solid-line small circle is inside the dashed-line large circle, the electronic device automatically captures a landscape image and displays this landscape image and the close control "×" in the first area of ​​the camera interface (e.g., the center area of ​​the camera interface). This landscape image includes landscape features but does not include celestial features (e.g., the moon). The electronic device may display the message "Landscape automatically captured; please face the celestial body and increase the zoom."

[0232] refer to Figure 5CIn steps (d) to (e), in response to user input, the electronic device increases the zoom level (e.g., 50×), and displays a telephoto viewfinder in the second area of ​​the camera interface (e.g., the upper left area of ​​the camera interface). This viewfinder displays a preview image captured by the electronic device at the increased zoom level. When a celestial feature (e.g., the moon) is displayed in the telephoto viewfinder, the electronic device displays the message "Celestial body detected; drag the 'celestial body' to compose the shot." The user can drag the celestial feature image to a location in the landscape image according to their needs. The electronic device identifies the user-selected location in the landscape image where the celestial feature image overlaps with a building feature image. The electronic device processes the overlapping area to prevent the celestial feature from being displayed there. After processing, the electronic device generates a combined landscape and celestial image with good composition between the building and celestial feature images.

[0233] Third implementation method

[0234] In the landscape-celestial ensemble shooting mode, the electronic device can display shooting guidance information for the landscape on the camera preview screen, guiding the user to adjust the camera pose to improve the landscape shooting effect. While the user is adjusting the camera pose, the electronic device automatically acquires landscape images and prompts the user to increase the zoom level to find celestial objects for clear celestial images. When a celestial image appears in the preview screen after increasing the zoom level, the electronic device prompts the user to trigger the shooting. The user can click the shooting control, and in response to the user's shooting command, the electronic device acquires celestial images and merges them with the landscape images to obtain a landscape-celestial ensemble image.

[0235] It should be noted that in the third implementation method, the electronic device can determine whether the preview screen contains preset landmark features, and use different processing methods for different scenarios to obtain shooting guidance information for the landscape.

[0236] This application provides the following two scenarios in its embodiments:

[0237] Scenario 1 (Landmark Scene): The preview screen contains preset landmark features. In this case, a landmark image template corresponding to the preset landmark features can be retrieved from the database. Based on the landmark image template, shooting guidance information for the landscape can be displayed in the preview screen to prompt adjustments to the camera pose.

[0238] For landmark scenes, users can follow the on-screen prompts to adjust the camera so that the green dot is roughly aligned with the red dot. This process ensures that the landmark is accurately centered in the frame, thereby improving the composition quality of the photo.

[0239] Scene 2 (Non-landmark Scene): The preview screen does not contain preset landmark features. In this case, shooting guidance information for the landscape can be displayed in the preview screen according to preset composition rules to prompt adjustments to the camera position.

[0240] For non-landmark scenes, the electronic device will guide the user to adjust the camera position according to preset composition rules. These composition principles are designed to help users take more aesthetically pleasing and professional-quality photos.

[0241] The third embodiment will be described below with reference to the flowchart and user interface diagram.

[0242] Figure 6A The embodiments of this application are shown based on Figure 3A A flowchart illustrating the provided shooting method. It should be noted that... Figure 3A Based on the process shown, regarding step S202, Figure 6A The steps for determining whether the preview screen contains preset landmark features and the processing steps for different situations have been added.

[0243] S202a. The electronic device determines whether the preview screen contains preset landmark features.

[0244] In this embodiment, the electronic device can perform scene recognition based on the camera preview image to determine whether the current shooting scene is a preset landmark scene.

[0245] For example, the electronic device compares the camera preview with a preset landmark image. If the image feature similarity is greater than a preset similarity threshold, the current shooting scene is determined to be a landmark scene.

[0246] In some embodiments, the database can store a large number of landmark image templates. Each landmark image template contains iconic buildings or other scenery of a city. Accordingly, during scene recognition, the electronic device can compare the features of the camera preview with each landmark image template in the database.

[0247] S202b: When the preview screen contains preset landmark features, the electronic device retrieves the landmark image template corresponding to the preset landmark features from the database, and displays shooting guidance information for the landscape in the preview screen according to the landmark image template, which is used to prompt the adjustment of the camera position.

[0248] Figure 6B This illustration shows a schematic diagram of obtaining shooting guidance information for a landscape according to an embodiment of this application. For example... Figure 6BAs shown, the camera preview screen contains preset landmark features. Landmark image templates corresponding to these features can be obtained, and image feature matching is performed between the camera preview screen and the landmark image templates to determine a pose guidance icon for the landscape. This pose guidance icon can include a small solid circle representing the center area of ​​the preview screen, a large dashed circle representing the center area of ​​the target area, and a dashed guide arrow pointing from the small solid circle to the large dashed circle. The user refers to the pose guidance icon to move the electronic device's pose.

[0249] S202c: When the preview screen does not contain preset landmark features, the electronic device can display shooting guidance information for the landscape in the preview screen according to preset composition rules, so as to prompt the camera to adjust its position.

[0250] For example, preset composition rules may include ensuring the horizon is level, the left and right buildings have equal floor area, and a foreground building is located at the golden ratio point. These composition principles are designed to help users take more aesthetically pleasing and professional-quality photos.

[0251] It should be noted that the above can be combined with... Figure 3A The flowchart shown executes S202a to S202c, or S202a to S202c can be executed in conjunction with the flowchart shown in 4A above, or S202a to S202c can be executed in conjunction with the flowchart shown in 5A above.

[0252] Figure 6C A schematic diagram of the user interface corresponding to scenario 1 in the third embodiment of this application is shown.

[0253] refer to Figure 6C In (a), the electronic device has enabled the camera application and displays a preview screen on the camera interface, which shows landscape features 30 (e.g., buildings). After the user triggers the activation of the landscape-star combination shooting mode, the electronic device displays a "landscape-star combination shooting mode" label and a close control "×", and after the electronic device performs scene recognition on the preview screen, it displays a prompt message "Landmark scene recognized" 31 on the camera interface.

[0254] refer to Figure 6C In (b), the electronic device displays the prompt message "Provide you with landmark image templates" 32 on the camera interface, and displays a template display box 33, which displays multiple landmark image templates corresponding to the current landmark scene, such as template 1, template 2, template 3 and more landmark image templates.

[0255] Users can select one landmark image template from multiple options. The electronic device can determine camera pose adjustment parameters and pose guidance icons based on the selected landmark image template. Furthermore, the electronic device can cache the user-selected landmark image template so that, during subsequent landscape and celestial composition, it can provide composition guidance icons based on the selected landmark image template to guide the user in composing landscape and celestial images.

[0256] refer to Figure 6C In (c), the electronic device displays the prompt "Adjust camera pose" on the camera interface, along with an icon to guide the adjustment of the camera pose (i.e., a pose guide icon). For example, the pose guide icon may include a small solid circle representing the center area of ​​the preview screen, a large dashed circle representing the center area of ​​the target, and a dashed guide arrow pointing from the small solid circle to the large dashed circle. The user refers to the pose guide icon to move the electronic device's pose.

[0257] refer to Figure 6C In steps (c) to (d), as the electronic device's pose changes, the relative positions of the solid-line small circle and the dashed-line large circle change, and the dashed guide arrow dynamically updates its display. When the solid-line small circle is inside the dashed-line large circle, it indicates that the center area of ​​the preview screen coincides with the center area of ​​the target, and the camera pose adjustment is successful. In this case, the electronic device automatically captures a landscape image and displays the landscape image and the close control "×" in the first area of ​​the camera interface (e.g., the center area of ​​the camera interface). This landscape image includes landscape features but not celestial features. The electronic device may display the prompt "Head towards the star and increase zoom."

[0258] refer to Figure 6C In steps (d) to (e), in response to user operation, the electronic device increases the zoom level (e.g., 50×). With the increased zoom level, a telephoto viewfinder is displayed in the second area of ​​the camera interface (e.g., the upper left area of ​​the camera interface). This telephoto viewfinder can display a preview image captured by the electronic device at the increased zoom level. When a real celestial feature image 35 (e.g., the moon) is displayed in the telephoto viewfinder, the electronic device can display the message "Celestial body detected, please refer to composition" 34. Furthermore, the electronic device can overlay the real celestial feature image 35 onto the landscape image.

[0259] In this scenario, the electronic device determines the reference position for celestial composition based on the landmark image template previously selected by the user. Then, in the first area of ​​the camera interface, at the celestial composition reference position 36 of the landscape image, the electronic device can overlay a virtual celestial image (as shown by the dotted line) and also display a guide arrow to prompt the user to refer to the guide arrow for landscape celestial composition.

[0260] In some embodiments, where "celestial bodies" dragging composition is supported, the user can refer to the virtual celestial body image 35 and the direction indicated by the arrow to drag the real celestial body feature image 35 to the celestial body composition reference position 36 in the landscape image.

[0261] In other embodiments, the user can adjust the camera pose and orientation so that the real celestial feature image is moved to the celestial composition reference position 36 in the landscape image 35.

[0262] refer to Figure 6C In steps (e) to (f), after the real celestial feature image 35 is moved to the celestial composition reference position 36 in the landscape image, the electronic device can display a prompt message "Composition complete, click to shoot" 37 on the camera interface. In response to the user's shooting command, the electronic device can generate a combined landscape and celestial image based on the real celestial feature image 36 and the landscape image, in which the building feature image and the celestial feature image have a good compositional effect.

[0263] It should be noted that, in this embodiment, the electronic device displays a landscape image automatically captured by the electronic device in a first area of ​​the camera interface. This first area can be the central area of ​​the camera interface or any other area of ​​the camera interface. Furthermore, the size of the first area can be smaller than or equal to the size of the preview image. The specific display area and size of the first area can be set according to actual usage requirements, and this embodiment does not impose any limitations.

[0264] It should also be noted that, in this embodiment, the electronic device displays a telephoto viewfinder in the second area of ​​the camera interface, through which the celestial image captured by the electronic device at high zoom magnification is presented. The second area can be the upper left area of ​​the camera interface, or other areas of the camera interface. Furthermore, the size of the second area is smaller than the size of the preview image. The specific display area and size of the second area can be set according to actual usage requirements, and this embodiment does not impose any limitations.

[0265] In some embodiments, the electronic device can use AR to display landscape and celestial images to enhance the preview effect. For example, the electronic device can display a telephoto viewfinder in full screen, where the preview screen is a celestial image captured by the electronic device at a high zoom level. At the same time, an AR-captured landscape image automatically captured by the electronic device can be overlaid on the preview screen, which can better demonstrate the combined preview effect of the landscape and celestial objects.

[0266] In this embodiment of the application, in response to user operation, the electronic device activates the landscape and celestial body combined shooting mode, that is, the combined shooting mode for landscape and celestial bodies.

[0267] Figure 7A This illustration shows a user interface diagram of an embodiment of the present application for enabling a landscape and celestial body photo mode. Figure 7A As shown in (a) to (c), the electronic device displays a camera interface with more options 40. In response to the user's click on more options 40, the electronic device displays more mode information, including a landscape-star combination shot option 41. In response to the user's click on landscape-star combination shot option 41, the electronic device activates the landscape-star combination shot mode, returns to the camera interface, and displays a "Landscape-Star Combination Shot Mode" label 42 on the camera interface. It can also identify whether the preview image contains stars and identify the specific type of star. Furthermore, the electronic device can guide the user to complete a landscape-star combination shot in the landscape-star combination shot mode.

[0268] Figure 7B This illustration shows a user interface diagram of another method for enabling the landscape and celestial body photo mode, as provided in an embodiment of this application. Figure 7B As shown in (a) to (c), the electronic device displays a camera interface and a preview image on the camera interface, which contains ground scenery (e.g., landmark building 40). The electronic device identifies the preview image, detects that the current preview image contains landmark building 40, and determines that the current scene is a landmark scene. The electronic device displays a prompt message 51, "Landmark scene detected, enable landscape-star composition mode?", along with "Yes" and "No" controls. In response to the user clicking the "Yes" control, the electronic device enables the landscape-star combination shooting mode and displays a "Landscape-Star Combination Shooting Mode" label 52 on the camera interface. Furthermore, the electronic device can identify whether the preview image contains stars and identify the specific type of star. Therefore, the electronic device can guide the user to complete a combined shot of the landscape and stars in the landscape-star combination shooting mode.

[0269] Furthermore, this application embodiment also provides a fusion scheme for scene images and celestial images (taking a moon image as an example here). After the user opens the camera application of the electronic device, the user adjusts the orientation of the electronic device's camera so that the camera is pointed at the surrounding scene. Assuming the current camera zoom is 1x (zoom magnification is represented by ×), the user can then trigger the electronic device to capture a scene image by taking a picture. In this case, the electronic device stores the captured scene image in the gallery. Then, the user finds the moon mode switch in the camera application's function interface and triggers the moon mode by clicking the moon mode switch. When the moon mode is enabled, the electronic device can display the gallery interface, which displays one or more scene images (or preset template images) taken by the user. The electronic device receives a user's click on the first scene image in the gallery interface. In response, the device displays the first scene image on the camera interface and overlays a small window on top of it, showing a camera preview (i.e., the image captured by the camera). The device then switches the camera zoom to a fixed magnification (e.g., 50x). At this point, the user needs to adjust the camera's orientation so that it is pointed at a celestial body (e.g., the moon). When the camera captures an image of the moon, the camera preview in the small window includes the moon image. In this case, the device overlays the moon image onto the first scene image. In response to a user-triggered shooting action, the device performs image fusion processing to obtain a combined image, thus achieving the fusion of the scene image and the moon image.

[0270] It should be noted that in the embodiments of this application, "greater than" can be replaced with "greater than or equal to", "less than or equal to" can be replaced with "less than", or "greater than or equal to" can be replaced with "greater than", and "less than" can be replaced with "less than or equal to".

[0271] The various embodiments described herein can be independent solutions or combinations thereof based on their inherent logic, and all such solutions fall within the protection scope of this application.

[0272] The foregoing mainly describes the solutions provided by the embodiments of this application from the perspective of method steps. It is understood that, in order to achieve the above functions, the electronic device implementing this method includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of protection of this application.

[0273] This application embodiment can divide an electronic device into functional modules based on the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; other feasible division methods may exist in actual implementation.

[0274] This application also provides a chip coupled to a memory, which is used to read and execute computer programs or instructions stored in the memory to perform the methods described in the above embodiments.

[0275] This application also provides an electronic device, which includes a chip for reading and executing computer programs or instructions stored in a memory, so that the methods in the various embodiments are executed.

[0276] This application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to implement the shooting method in the above embodiments.

[0277] This application also provides a computer program product, which is a computer-readable storage medium storing program code. When the computer program product is run on a computer, it causes the computer to perform the above-mentioned related steps to implement the shooting method in the above embodiments.

[0278] In this application, the electronic device, computer-readable storage medium, computer program product or chip provided in the embodiments are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0279] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0280] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A shooting method, characterized in that, include: In response to the user's first action, the electronic device launches the camera application and displays a preview. The electronic device displays first guidance information on the preview screen to guide the user to adjust the camera position; When the camera pose adjustment is completed, the electronic device automatically captures a first image, which includes landscape features; The electronic device displays second guidance information on the preview screen to guide the user to point the camera toward the star and increase the camera zoom. After the zoom level of the camera is increased, the electronic device displays the first image in the first area of ​​the preview screen, and displays a telephoto viewfinder in the second area of ​​the preview screen, and displays a second image in the telephoto viewfinder, the second image containing celestial features; In response to the user's shooting command, the electronic device captures a third image, which includes the landscape features and the celestial features.

2. The method according to claim 1, characterized in that, The electronic device displays first guidance information on the preview screen, including: If the preview screen is found to contain preset landscape features, the electronic device obtains a preset image template corresponding to the preset landscape features; The electronic device displays the first guidance information on the preview screen based on the feature matching data of the preset image template and the preview screen.

3. The method according to claim 1 or 2, characterized in that, The electronic device displays first guidance information on the preview screen, including: If the preview screen does not contain preset landscape features, the electronic device displays the first guidance information on the preview screen according to preset composition rules.

4. The method according to any one of claims 1 to 3, characterized in that, When the camera pose adjustment is successful, the electronic device automatically captures a first image, including: During the process of the user adjusting the camera pose, the electronic device updates the display status of the first guidance information; If the first guidance information is updated to the target display state, the electronic device determines that the camera pose adjustment is complete; The electronic device automatically captures the first image according to the adjusted camera pose.

5. The method according to claim 4, characterized in that, The first guidance information includes a center marker of the preview screen, a target center marker, and a guide arrow, wherein the guide arrow points from the center marker of the preview screen to the target center marker; The target display state is that the center marker of the preview screen is located within the range of the target center marker, and the guide arrow is hidden.

6. The method according to any one of claims 1 to 5, characterized in that, In response to a user's shooting command, the electronic device captures a third image, including: In response to the user's shooting command, the electronic device captures the second image and performs image cutout processing on the celestial features in the second image to obtain a celestial feature image; The celestial feature image is superimposed onto the third region of the first image to obtain the third image.

7. The method according to claim 6, characterized in that, Before overlaying the celestial feature image onto the third region of the first image, the method further includes: The third region is determined in the first image according to the preset composition rules and / or the preset image template.

8. The method according to any one of claims 1 to 7, characterized in that, After the electronic device captures the third image, the method further includes: The electronic device determines whether there is an overlapping region between the landscape features and the celestial features in the third image; In the case where the landscape features and the celestial features have overlapping regions, image processing is performed on the overlapping regions to obtain a processed third image; In the processed third image, the layer of the landscape features is higher than the layer of the celestial features.

9. The method according to any one of claims 1 to 8, characterized in that, After the electronic device automatically captures the first image, the method further includes: The electronic device identifies whether the first image still contains the celestial features; If the first image also contains the celestial feature, the electronic device determines a first location of the celestial feature in the first image; The first position is used to determine the display position of the celestial feature image in the third image.

10. The method according to claim 9, characterized in that, The electronic device captures a third image, including: The third image is obtained by overlaying the celestial feature image from the telephoto viewfinder onto the first position in the first image.

11. The method according to claim 9, characterized in that, The electronic device captures a third image, including: Eliminate the existing celestial feature image at the first location in the first image; The celestial feature image in the telephoto viewfinder is overlaid onto the fourth region of the first image to obtain the third image; The fourth region is a region determined according to preset composition rules and / or the preset image template.

12. The method according to any one of claims 1 to 11, characterized in that, Before the electronic device captures a third image in response to the user's shooting command, the method further includes: In response to a user's long press and drag operation on the telephoto viewfinder, the electronic device performs image cutout processing on the celestial features in the telephoto viewfinder to obtain a celestial feature image, and displays the celestial feature image, which moves with the user's drag direction. After the user drags the celestial feature image to the fifth region of the first image, the electronic device overlays the celestial feature image in the fifth region of the first image; In the third image, the celestial feature is located in the fifth region of the first image.

13. The method according to any one of claims 1 to 12, characterized in that, Before the electronic device displays the first guidance information on the preview screen, the method further includes: When the preview screen includes a specific subject, the electronic device displays mode recommendation information to suggest that the landscape and celestial body co-shooting mode should be turned on in the current shooting scene. In response to the user's confirmation, the electronic device activates the landscape and celestial body photo mode.

14. An electronic device, characterized in that, The electronic device includes: one or more processors, and memory; The memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 13.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 13.

16. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by an electronic device, causes the electronic device to perform the method as described in any one of claims 1 to 13.