Method for shooting moon and electronic equipment

CN120113249APending Publication Date: 2025-06-06HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380075231.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-10-29
Filing Date
2023-10-12
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

When photographing the moon, it is difficult for the existing technology to clearly present the moon and the foreground at the same time, resulting in limited aesthetics of the moon image.

Method used

By combining a wide-angle lens and a telephoto lens in an electronic device, the zoom magnification and exposure parameters are used to fuse the moon and foreground images to achieve clear image presentation of both the moon and the foreground.

Benefits of technology

It improves the aesthetics of moon images. Users can flexibly adjust the size of the moon subject to obtain pictures with a harmonious composition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120113249A_ABST
    Figure CN120113249A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a moon shooting method and electronic equipment. The method comprises the following steps: displaying a preview display interface of a camera, wherein the preview display interface comprises a first zoom ratio control; when it is determined that the shot scene is a moon scene, a main preview display interface of the preview display interface displays a moon image acquired by a telephoto lens, and an auxiliary preview display interface of the preview display interface displays a wide-angle image acquired by a wide-angle lens; when it is determined that the first zoom ratio is greater than or equal to a first preset ratio, in response to a first shooting operation of a user, acquiring a first moon brightness image through a telephoto lens according to the first zoom ratio with a first exposure parameter, and acquiring a first foreground image with a second exposure parameter; and fusing the first moon brightness image with the first foreground image to obtain a first target picture. According to the invention, in the scene of shooting the moon, the beautiful moon and the clear foreground can be shot, and the beautiful picture can be presented for the user.
Need to check novelty before this filing date? Find Prior Art

Description

Methods and electronic equipment for photographing the moon Technical Field

[0001] Embodiments of the present application relate to the field of electronic technology, and more particularly, to a method and electronic device for photographing the moon. Background Art

[0002] When users take photos with electronic devices, the moon is often the subject of the photo. Electronic devices typically use a low exposure method to restore overexposed moon light, then utilize high dynamic range imaging (HDR) technology to obtain a high signal-to-noise ratio moon image. Finally, algorithms are used to enhance the moon's resolution for a clearer image.

[0003] However, the moon image only includes a clear moon, and the foreground area is basically invisible, which affects the beauty of the entire moon image.

[0004] Summary of the Invention

[0005] The embodiments of the present application provide a method and electronic device for photographing the moon. This technical solution can capture a beautiful moon and a clear foreground in a scene of photographing the moon, presenting a beautiful image to the user.

[0006] In a first aspect, a method for photographing the moon is provided, the method being applied to an electronic device, the electronic device including a wide-angle lens and a telephoto lens, the method comprising: the electronic device displaying a preview display interface of a camera, the preview display interface including a first zoom ratio control, the first zoom ratio control being used to control a first zoom ratio of the telephoto lens; when the electronic device determines that a photographed scene is a moon scene, a main preview display interface of the preview display interface displays an image of the moon acquired by the telephoto lens, and an auxiliary preview display interface of the preview display interface displays a wide-angle image acquired by the wide-angle lens; when the electronic device determines that the first zoom ratio is greater than or equal to a first preset ratio, in response to a first shooting operation of a user, the electronic device acquires a first moon image using the telephoto lens with a first exposure parameter according to the first zoom ratio, and acquires a first foreground image with a second exposure parameter; and the electronic device fuses the first moon image with the first foreground image to acquire a first target image.

[0007] In an embodiment of the present application, when the electronic device determines to shoot the moon, the electronic device can display the image of the moon captured by the telephoto lens in the main preview display interface of the camera, and display the image captured by the wide-angle lens in the auxiliary preview display interface in the form of picture-in-picture. Therefore, when the user shoots the moon, the moon can be composed according to the foreground image, which is more conducive to the user taking a moon picture with a harmonious composition. In addition, when it is determined that the zoom ratio of the electronic device is greater than or equal to the first preset ratio, during the shooting phase, the electronic device uses the telephoto lens to capture the moon image with high exposure parameters and the foreground image with low exposure parameters, and fuses the moon image with the foreground image to obtain the final target image. This helps the user take a picture with clear moon subject and foreground scenery.

[0008] In combination with the first aspect, in an implementation of the first aspect, the preview display interface further includes a second zoom ratio control, the second zoom ratio control being used to control a second zoom ratio for additionally magnifying the moon at the first zoom ratio, and the main preview display interface of the preview display interface displays the image of the moon captured by the telephoto lens, including: displaying the first moon image magnified according to the second zoom ratio in the main preview display interface;

[0009] The electronic device fuses the first moon image with the first foreground image, including: the electronic device fuses the first moon image magnified according to the second zoom ratio with the first foreground image.

[0010] In an embodiment of the present application, the camera's preview display interface may further include a second zoom factor control for controlling the magnification of the moon's main body at the first zoom factor. The moon's main body in the main preview display interface can be magnified according to this second zoom factor. During the capture phase, the electronic device can merge the moon image magnified according to the second zoom factor with the foreground image to obtain the final image. This technical solution allows users to flexibly adjust the size of the moon's main body within the same foreground, which facilitates greater flexibility in moon photography.

[0011] In combination with the first aspect, in an implementation of the first aspect, when the electronic device detects that the user adjusts the first zoom ratio to less than the first preset ratio, the method further includes: in response to the user's second shooting operation, the electronic device obtains a second moon image according to the first zoom ratio through the telephoto lens, and obtains a first wide-angle image through the wide-angle lens; the electronic device fuses the second moon image magnified according to the second zoom ratio with the first wide-angle image to obtain a second target picture.

[0012] In the embodiment of the present application, at higher zoom ratios, due to the poor clarity of the wide-angle lens, the captured foreground image may be blurred and have lower clarity than the foreground image captured by the telephoto lens. Therefore, by fusing the foreground image captured by the telephoto lens with the moon image captured by the telephoto lens, a target image in which both the moon main body and the foreground are clearly visible can be obtained. When the electronic device switches the zoom ratio to a lower ratio, the wide-angle image captured by the wide-angle lens has a larger area and higher clarity. Fusion of the moon image captured by the telephoto lens with the wide-angle image captured by the wide-angle lens can make the foreground beautiful and the moon clear. This makes it possible to implement a fusion solution at all focal lengths.

[0013] In combination with the first aspect, in an implementation manner of the first aspect, the wide-angle image further includes a first display frame, and the first display frame is used to indicate the framing size of the first target image.

[0014] In the embodiment of the present application, the first display frame allows the user to determine the size of the image captured by the telephoto lens, which is helpful for the user to compose the moon.

[0015] In combination with the first aspect, in an implementation of the first aspect, the method further includes: in response to a user clicking the wide-angle image or the switch button, the electronic device displays the image of the moon obtained by the telephoto lens in the auxiliary preview display interface, and displays the wide-angle image in the main preview display interface.

[0016] In an embodiment of the present application, the electronic device can support the interchange of the preview display positions of the display interface of the moon image obtained by the telephoto lens and the wide-angle image obtained by the wide-angle lens, so that the user can flexibly switch the preview display interface of the lens when using the electronic device to shoot the moon.

[0017] In combination with the first aspect, in an implementation of the first aspect, before the electronic device fuses the first moon image with the first foreground image, the method also includes: the electronic device obtains the center point of the moon in the first moon image and the first foreground image; and the electronic device performs moon alignment processing on the moon in the first moon image and the moon in the first foreground image based on the center point of the moon.

[0018] In the embodiment of the present application, the moon can be aligned during the image fusion process, so that the moon area in the final image is clearer.

[0019] In combination with the first aspect, in an implementation of the first aspect, the method further includes: after the electronic device fuses the first moon image with the first foreground image, suppressing the halo of the moon in the fused image.

[0020] In the embodiment of the present application, since there is a strong halo around the moon, the halo can be processed by filtering, AI algorithm, etc. to make the moon halo natural.

[0021] In combination with the first aspect, in an implementation of the first aspect, the main preview display interface of the preview display interface displays the image of the moon obtained by the telephoto lens, and the auxiliary preview display interface of the preview display interface displays the wide-angle image obtained by the wide-angle lens, including: the electronic device performs distribution statistics on the brightness value of the first foreground image to obtain a first brightness value; when it is determined that the first brightness value is less than a preset brightness value, the scenery other than the moon in the first foreground image is displayed with a silhouette effect.

[0022] In an embodiment of the present application, when the foreground includes fewer objects, forcibly increasing the foreground brightness will result in a poor display effect. The embodiment of the present application does not aim to increase the foreground brightness, but rather displays the objects in the foreground as silhouettes, so that the final image has a certain artistic beauty.

[0023] In combination with the first aspect, in an implementation manner of the first aspect, the scenery other than the moon in the first target image is displayed as a silhouette effect.

[0024] In a second aspect, an electronic device is provided, comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs comprising instructions, which, when executed by the one or more processors, enable the method for photographing the moon as described in the first aspect and any possible implementation thereof to be executed.

[0025] In a third aspect, a device for photographing the moon is provided, comprising a module for implementing the method for photographing the moon as described in the first aspect and any possible implementation thereof.

[0026] In a fourth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the method for photographing the moon as described in the first aspect and any possible implementation thereof is executed.

[0027] In a fifth aspect, a computer-readable storage medium is provided, in which computer instructions are stored. When the computer instructions are executed on a computer, the method for photographing the moon as described in the first aspect and any possible implementation thereof is executed.

[0028] In a sixth aspect, a computer program product is provided, comprising computer program code, which, when run on a computer, enables the method for photographing the moon as described in the first aspect and any possible implementation thereof to be executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.

[0030] FIG2 is a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application.

[0031] FIG3 is a schematic diagram of a set of GUIs provided in an embodiment of the present application.

[0032] FIG4 is a schematic flowchart of a method for photographing the moon provided in an embodiment of the present application.

[0033] FIG5 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.

[0034] FIG6 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.

[0035] FIG7 is a schematic flowchart of a method for photographing the moon provided in an embodiment of the present application.

[0036] FIG8 is an exemplary flowchart of a shooting stage provided in an embodiment of the present application.

[0037] FIG9 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.

[0038] FIG10 is a schematic flowchart of a method for photographing the moon provided in an embodiment of the present application.

[0039] FIG. 11 is an exemplary flowchart of the shooting stage in FIG. 9 .

[0040] FIG12 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.

[0041] FIG13 is a schematic flowchart of a method for photographing the moon provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.

[0043] The display method in the embodiments of the present application can be applied to electronic devices such as smartphones, tablet computers, laptops, personal computers (PCs), ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), vehicle-mounted devices, wearable devices, and foldable devices.

[0044] 1 shows a schematic structural diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0045] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0046] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0047] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0048] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0049] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0050] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).

[0051] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170.

[0052] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface.

[0053] The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160.

[0054] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193.

[0055] The GPIO interface can be configured via software. The GPIO interface can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc.

[0056] The USB interface 130 is an interface that complies with USB standards, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and peripheral devices.

[0057] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0058] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.

[0059] The power management module 141 is used to connect the battery 142 , the charging management module 140 and the processor 110 .

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

[0061] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G applied on the electronic device 100.

[0062] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0063] The wireless communication module 160 can provide wireless communication solutions for application on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Bluetooth low energy (BLE), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0064] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 , and antenna 2 is coupled to wireless communication module 160 , so that electronic device 100 can communicate with the network and other devices through wireless communication technology.

[0065] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0066] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), or a display panel made of one of the following materials: organic light-emitting diode (OLED), active-matrix organic light-emitting diode (AMOLED), flexible light-emitting diode (FLED), MiniLED, MicroLed, Micro-oLed, or quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1.

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

[0068] The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture still images or videos.

[0069] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals.

[0070] The video codec is used to compress or decompress digital video. The electronic device 100 may support one or more video codecs.

[0071] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.

[0072] The internal memory 121 may be used to store computer executable program codes, which include instructions. The processor 110 executes the instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100.

[0073] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0074] The audio module 170 is used to convert digital audio information into analog audio signals for output, and is also used to convert analog audio input into digital audio signals.

[0075] The speaker 170A, also called a "horn", is used to convert audio electrical signals into sound signals.

[0076] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals.

[0077] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.

[0078] The headphone jack 170D is used to connect a wired headphone.

[0079] The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .

[0080] The gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .

[0081] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.

[0082] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).

[0083] The distance sensor 180F is used to measure distance.

[0084] The fingerprint sensor 180H is used to collect fingerprints.

[0085] The touch sensor 180K is also called a “touch panel.” The touch sensor 180K can be disposed on the display screen 194 . The touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen.”

[0086] Bone conduction sensor 180M can acquire vibration signals. In some embodiments, bone conduction sensor 180M can acquire vibration signals from vibrating bones in the human body. Bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals.

[0087] The buttons 190 include a power button, a volume button, and the like.

[0088] Motor 191 can generate vibration prompts.

[0089] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0090] The SIM card interface 195 is used to connect a SIM card.

[0091] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the software structure of the electronic device 100 is exemplified by taking an operating system of a layered architecture as an example.

[0092] Figure 2 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application. A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other via software interfaces. In some embodiments, the operating system is divided into four layers: the application layer, the application framework layer, the system library layer, and the kernel layer, from top to bottom. The application layer may include a series of application packages.

[0093] As shown in FIG2 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, wallet, etc.

[0094] 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.

[0095] As shown in FIG2 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.

[0096] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0097] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0098] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0099] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).

[0100] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0101] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, or flashing indicator lights.

[0102] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the core library.

[0103] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0104] The system library can include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0105] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0106] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0107] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0108] A 2D graphics engine is a drawing engine for 2D drawings.

[0109] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0110] Before introducing the technical solutions of the embodiments of the present application, we first briefly introduce some professional terms that may be involved in the present application.

[0111] High Dynamic Range (HDR) imaging: A set of technologies used to achieve a larger exposure dynamic range (i.e., greater difference between light and dark) than ordinary digital imaging technology.

[0112] Wide-angle lens: With a short focal length and a wide angle of view, it can capture a larger area of ​​scenery within a shorter shooting distance. The lens has a very short focal length, a wide angle of view, and a deep depth of field, making it more suitable for photographing larger scenes, such as architecture and landscapes.

[0113] Telephoto lens: A telephoto lens has a longer focal length than a standard lens. It's typically used for photographing distant subjects, such as wildlife and sports photography. Due to its heavier body and shorter depth of field, it's more susceptible to blurring due to camera shake and requires a faster shutter speed.

[0114] Halo: refers to the virtual shadow that appears at the edge of the image due to overexposure when strong light is projected onto the photosensitive area during the shooting process.

[0115] Overexposure: The brightness of the photo exceeds the exposure brightness range that should be used to shoot this picture, which can be simply referred to as overexposure.

[0116] Silhouette effect: A picture with the outline of a person, object, or other scene.

[0117] Optical zoom: This is achieved by changing the positions of the lens, the object, and the focal point. The greater the optical zoom, the farther the subject can be.

[0118] Digital zoom: also known as digital zoom. It uses a processor to increase the area of ​​each pixel in the image to achieve the purpose of magnification.

[0119] When users take photos with electronic devices, the moon is often the subject of the photo. Electronic devices typically use a low exposure method to restore overexposed moon light, then utilize high dynamic range imaging (HDR) technology to obtain a high signal-to-noise ratio moon image. Finally, algorithms are used to enhance the moon's resolution for a clearer image.

[0120] However, the moon image only includes a clear moon, and the foreground area outside the moon is basically invisible, which affects the beauty of the entire moon image.

[0121] In some scenarios, such as in the evening when the moon has just risen, or in a city with a beautiful night view, when a user takes a picture of the moon, if the final picture only shows the moon without the foreground, the user's shooting experience will be reduced.

[0122] In view of this, an embodiment of the present application provides a method and electronic device for photographing the moon. This technical solution can fuse the images of the wide-angle lens and the telephoto lens when the electronic device is at a low magnification focal length. When the magnification is switched to a high magnification, the images of the telephoto lens and the telephoto lens are fused, so as to obtain a clear image of both the moon and the foreground, thereby improving the aesthetics of the images of the moon taken by users.

[0123] The following will introduce the method of photographing the moon in the embodiment of the present application in conjunction with several sets of graphical user interfaces (GUIs).

[0124] FIG3 is a schematic diagram of a set of GUIs provided in an embodiment of the present application, wherein (a) to (d) in FIG3 illustrate the process of a user using a mobile phone 200 to photograph the moon.

[0125] 3 (a), the GUI is a display interface 210 of the mobile phone 200. The display interface 210 may include multiple applications installed in the mobile phone 200. When the mobile phone 200 detects that the user clicks the camera icon 211, the GUI shown in FIG3 (b) may be displayed.

[0126] 3( b ), the GUI is a display interface 220 of a camera with a zoom ratio of 10. The display interface 220 may include at least a function bar 226, a main preview display interface 221, an auxiliary preview display interface 230, a mode bar 225, a shooting control 223, and the like.

[0127] The function bar 226 may include a flash function button, an artificial intelligence (AI) photography function button, a smart vision function button, a setting function button, and the like.

[0128] The main preview display interface 221 can be used to display the moon captured by the telephoto lens. In the upper left corner of the main preview display interface 221, an auxiliary preview display interface 230 for the wide-angle lens and a first zoom factor control 222 can also be displayed. The auxiliary preview display interface 230 can be used to display the image captured by the wide-angle lens, and the auxiliary preview display interface 230 is displayed in a picture-in-picture format within the preview display interface 221. The auxiliary preview display interface 230 can also include a preview display interface 231 for the telephoto lens.

[0129] It should be understood that the first zoom ratio control 222 may be a fusion zoom ratio that controls the optical zoom and digital zoom of the mobile phone.

[0130] It should be understood that the area of ​​the auxiliary preview display interface 230 other than the preview display interface 231 of the telephoto lens can be referred to as a foreground area.

[0131] It should be understood that the preview display interface 231 may also include a close button so that the user can close it as needed.

[0132] In this way, the auxiliary preview display interface 230 includes the preview display interface 231 of the telephoto lens and the foreground area, so that the user can compose the moon in the main preview display interface 231 according to the auxiliary preview display interface 230, which is conducive to taking pictures with better composition effects.

[0133] The auxiliary preview display interface 230 may be located at the upper left corner of the main preview display interface 221. In other exemplary embodiments, the auxiliary preview display interface 230 may also be located at other locations of the main preview display interface 221, or the user may move the auxiliary preview display interface 230 by dragging.

[0134] In other examples, auxiliary preview display interface 230 is a preview display interface for an image captured by a wide-angle lens, and preview display interface 231 included therein is also a preview display interface for the wide-angle lens. In this case, preview display interface 231 is part of auxiliary preview display interface 230. Preview display interface 231 can be used to indicate the size of the image obtained after the user clicks the capture control. In this case, the user can complete the composition of the moon based on the area of ​​​​auxiliary preview display interface 231.

[0135] In some cases, the positions of the moon image displayed in the main preview display interface and the image displayed in the auxiliary preview display interface can be switched. For example, when the mobile phone 200 detects that the user clicks on the preview display interface 231 or the auxiliary preview display interface 230, the image captured by the wide-angle lens can be displayed in the camera's main preview display interface, and the image of the moon captured by the telephoto lens can be displayed in the auxiliary preview display interface. This embodiment of the present application is not limited to this.

[0136] When the mobile phone 200 detects that the user clicks the shooting control 223 , the GUI shown in FIG. 3 ( c ) may be displayed.

[0137] 3 (c), the display control 224 in the display interface 220 can partially display the picture taken by the mobile phone. When the mobile phone 200 detects that the user clicks the display control 224, it can display the GUI shown in FIG3 (d).

[0138] In other examples, the user can also operate the phone to exit the camera, open the gallery, and view the taken pictures from the gallery.

[0139] Referring to (d) in FIG3 , the GUI is a mobile phone display interface 240. This display interface 240 can be used to display a picture 241 captured by the mobile phone. In this picture 241, the moon is clear and bright, and the buildings in the foreground are also clearly visible. The moon's composition within the entire picture is also relatively harmonious, making the moon picture captured by the mobile phone more beautiful.

[0140] It should be understood that the content included in the picture 241 is the content included in the preview display interface 231. The area size of the preview display interface 231 is the area size of the telephoto lens framing.

[0141] In an embodiment of the present application, when a user uses a mobile phone to shoot the moon, the main preview display interface of the mobile phone can display the image of the moon obtained by the telephoto lens, and the auxiliary preview display interface can display the image obtained by the wide-angle lens. The image obtained by the wide-angle lens is displayed as a picture-in-picture, which helps the user to compose the moon and foreground, and finally take a beautiful picture including the moon and foreground.

[0142] The following will describe the implementation process of the method for photographing the moon in FIG3 in conjunction with FIG4 .

[0143] FIG4 is a schematic flow chart of a method for photographing the moon provided in an embodiment of the present application. As shown in FIG4 , the method may include steps 510 to 540.

[0144] In an embodiment of the present application, the method for photographing the moon may include a preview phase of steps 510-520 and a photographing phase of steps 530-540.

[0145] 510, determine the zoom ratio.

[0146] For example, referring to (b) in FIG3 , a user uses a mobile phone to take a photo of the moon, opens the camera, and selects a zoom ratio of 10. The mobile phone can determine that the zoom ratio is 10. It should be understood that the zoom ratio can be used to control the zoom ratio of the telephoto lens.

[0147] In some examples, before step 510 , the method may further include: determining to enter moon mode.

[0148] For example, the phone can automatically recognize the moon during the preview phase to enter moon mode. In other examples, after the phone enters moon mode, the camera's main preview display interface can display a moon icon, text content indicating moon mode, and a close control.

[0149] 520 , display the image of the moon acquired by the telephoto lens according to the zoom ratio on the main preview display interface, and display the image acquired by the wide-angle lens on the auxiliary preview display interface.

[0150] It should be understood that the first preset zoom ratio may be 10, 8, etc. The embodiment of the present application does not limit the specific value of the first preset zoom ratio.

[0151] For example, referring to (b) in FIG3 , the main preview display interface may be the main preview display interface 221, which may be used to display an image of the moon captured by the mobile phone's telephoto lens according to the zoom magnification. The auxiliary preview display interface may be the auxiliary preview display interface 230, which may be used to display an image captured by the mobile phone's wide-angle lens.

[0152] It should be understood that the auxiliary preview interface can be displayed in the form of a picture-in-picture of the main preview interface, so as to facilitate the user to compose the final moon picture according to the auxiliary preview display interface.

[0153] It should be understood that before step 520, the method may further include: a focusing process.

[0154] The focusing process is the process of measuring the distance to the subject being photographed, and then adjusting the lens in the lens to form a focus, so that the image of the subject in the shooting preview interface looks clearer.

[0155] In an embodiment of the present application, the mobile phone can automatically focus after recognizing the moon, and the user can also focus by manually clicking on the moon in the camera interface, which is not limited in the embodiment of the present application.

[0156] It should be understood that in the processing flow shown in Figure 4, the electronic device does not support additional magnification of the moon subject at a fixed zoom factor. In other words, the camera interface of the electronic device only includes a zoom factor control for controlling the zoom factor of the telephoto lens.

[0157] 530. When it is determined that the zoom ratio is greater than or equal to the first preset ratio, in response to the user's shooting operation, an image of the moon is acquired with a first exposure parameter according to the zoom ratio through the telephoto lens, and an image of the foreground is acquired with a second exposure parameter.

[0158] The embodiment of the present application does not limit the specific value of the first preset magnification. For example, the first preset magnification can be 10, 8, etc.

[0159] Exemplarily, in response to a shooting operation of a user clicking a shooting control, the mobile phone acquires multiple frames of images through a telephoto lens according to a zoom ratio, the multiple frames of images including an image of the moon and an image of the foreground.

[0160] Since the main area of ​​the moon is brighter and the foreground area is darker, when a telephoto lens acquires an image of the moon according to the zoom ratio, a lower first exposure parameter is used to obtain a clear image of the main area of ​​the moon, and a higher second exposure parameter is used to acquire an image of the foreground to obtain a clear and bright foreground image.

[0161] In this case, the multiple frames of images acquired by the telephoto lens include a high-exposure frame image of the foreground and a low-exposure frame image of the moon.

[0162] In some examples, exposure parameters may include exposure time, ISO value, exposure compensation, white balance, and the like.

[0163] 540 , fuse the moon image acquired by the telephoto lens according to the zoom magnification and the foreground image acquired by the telephoto lens according to the zoom magnification to obtain a first picture.

[0164] For example, after the telephoto lens captures a high-exposure frame image of the moon and a low-exposure frame image of the foreground, the two can be fused to produce a final first image in which both the moon and the foreground are clear and bright. The technical solution for fusing the moon image with the foreground image will be described below in conjunction with specific embodiments and will not be detailed here.

[0165] In an embodiment of the present application, when photographing the moon, the mobile phone can display the image of the moon captured by the telephoto lens according to the zoom factor on the main preview display interface, and the image captured by the wide-angle lens on the auxiliary preview display interface, thereby facilitating the user's composition of the moon. During the shooting phase, the mobile phone can use the telephoto lens to capture a high-exposure frame of the foreground image and a low-exposure frame of the moon image based on the user's shooting operation, and merge the two to obtain a clear and bright image of both the foreground and the moon.

[0166] In some cases, the phone can also support additional zooming of the moon in the preview interface and captured pictures at a fixed zoom ratio. The following will introduce this technical solution with reference to Figures 5 to 12.

[0167] FIG5 is a schematic diagram of another set of GUIs provided by an embodiment of the present application, wherein (a) to (d) in FIG5 illustrate the process of a user using a mobile phone 300 to photograph the moon.

[0168] It should be understood that (a) in FIG. 5 can refer to the relevant description of (a) in FIG. 3 , and for the sake of brevity, details will not be repeated.

[0169] When the mobile phone 300 detects that the user clicks the camera icon 311 , the mobile phone 300 may display a GUI as shown in FIG. 5( b ).

[0170] 5( b ), the GUI is a display interface 320 of the camera of the mobile phone 300 with an optical zoom magnification of 10x and a moon magnification of 1x. The display interface 320 may include a main preview display interface 325, an auxiliary preview display interface 330, a shooting control 323, a function bar, a mode bar, and the like.

[0171] The main preview display interface 325 can display the image of the moon obtained by the telephoto lens, and can also include a zoom ratio control 322 and a moon magnification ratio control 321. The upper left corner of the main preview display interface 325 can also display an auxiliary preview display interface 330, which displays the image obtained by the wide-angle lens.

[0172] The user can select a zoom ratio through the zoom ratio control 322 , and can also select an additional magnification ratio for the moon on the main preview display interface under the above zoom ratio through the moon magnification ratio control 321 .

[0173] It should be understood that the zoom ratio may include an optical zoom ratio and a digital zoom ratio. The moon magnification ratio may be understood as a ratio at which the moon is further digitally zoomed under the above zoom ratio.

[0174] The preview display interface 331 is a part of the auxiliary preview display interface 330, which is used to indicate the size of the picture obtained after the user clicks the shooting control. In this case, the user can complete the composition of the moon according to the area of ​​the preview display interface 331.

[0175] In this way, the user can compose the moon and the foreground according to the preview display interface of the telephoto lens and the preview display interface of the wide-angle lens, which is conducive to taking beautiful pictures including the moon and the foreground.

[0176] It should be understood that in FIG5(b), when the zoom magnification is 10x, the additional magnification of the moon is 1. In other embodiments, the user can also adjust the additional magnification of the displayed moon in the moon magnification control 321. For example, when the user selects the moon magnification control 321 to 2x, the moon displayed in the main interface of the display interface 325 will become larger.

[0177] In other examples, when the user selects the moon magnification control 321 to pure, the moon magnification control 321 may be turned off.

[0178] In some cases, the positions of the moon image displayed in the main preview display interface and the image displayed in the auxiliary preview display interface can be switched. For example, when mobile phone 400 detects that the user clicks on preview display interface 331 or auxiliary preview display interface 330, the image captured by the wide-angle lens can be displayed in the camera's main preview display interface, and the image of the moon captured by the telephoto lens can be displayed in the auxiliary preview display interface. This embodiment of the present application is not limited to this.

[0179] After the mobile phone 300 detects that the user clicks the shooting control 323 , it may display a GUI as shown in FIG. 5 ( c ).

[0180] 5(c), the display control 324 in the display interface 320 may partially display a picture taken by the mobile phone 300. When the mobile phone 300 detects that the user clicks the display control 324, it may display a GUI as shown in FIG5(d).

[0181] In other examples, the user can also operate the phone to exit the camera, open the gallery, and view the taken pictures from the gallery.

[0182] Referring to (d) in FIG5 , the GUI is a mobile phone display interface 340. This display interface 340 can be used to display a picture 341 captured by the mobile phone. In this picture 341, the moon is clear and bright, with the foreground portion clearly visible. The moon's composition within the entire picture is also relatively harmonious, making the moon picture captured by the mobile phone more beautiful.

[0183] In an embodiment of the present application, when a user uses a mobile phone to photograph the moon, the main preview display interface of the mobile phone can display the image of the moon captured by the telephoto lens, and the auxiliary preview display interface can display the image captured by the wide-angle lens. The image captured by the wide-angle lens is displayed in a picture-in-picture format, thereby helping the user to compose the moon and foreground, and ultimately capture a beautiful picture that includes the moon and foreground. In addition, the user can also use the moon magnification control to further magnify the moon while keeping the foreground size unchanged, thereby increasing the user's flexibility in photographing the moon.

[0184] FIG6 is a schematic diagram of another set of GUIs provided by an embodiment of the present application, wherein (a) to (d) in FIG6 illustrate a process in which a user uses a mobile phone 500 to photograph the moon.

[0185] It should be understood that (a) in FIG. 6 can refer to the relevant description in (a) in FIG. 3 , and for the sake of brevity, details are not repeated here.

[0186] When the mobile phone 500 detects that the user clicks the camera icon 511 , the GUI shown in FIG. 6( b ) may be displayed.

[0187] 6( b ), the GUI is a display interface 520 of a camera of the mobile phone 500 with a zoom magnification of 20 times and a moon magnification of 2 times.

[0188] Different from the display interface 320 , the magnification of the moon magnification control 521 in the display interface 520 is 2 times, and the moon in the main preview display interface 525 in the display interface 520 is larger than the moon in the main preview display interface 325 in the display interface 320 .

[0189] In this way, when the magnification in the zoom ratio control 522 is 10 times, the user can further partially magnify the moon by selecting the moon magnification ratio to 2 times when the magnification in the zoom ratio control 522 is 10 times, which is conducive to improving the user's flexibility in photographing the moon.

[0190] For (c) in FIG. 6 , reference can be made to the relevant description in (c) in FIG. 5 .

[0191] When the mobile phone detects that the user clicks the shooting control 524, a GUI as shown in (d) in FIG. 6 may be displayed.

[0192] Referring to (d) in FIG6 , the GUI is a display interface 540 of the mobile phone 500. This display interface 540 can be used to display a picture 541 captured by the mobile phone 500. In this picture 541, the moon is large, clear, and bright, with the foreground portion clearly visible. The moon's composition within the entire picture is also relatively harmonious, making the moon picture captured by the mobile phone more beautiful.

[0193] In the embodiment of the present application, under a fixed zoom ratio, the mobile phone can also further partially magnify the moon part according to the user's operation, so as to obtain a larger moon, and the moon is also clear and bright, the foreground scenery is also clearly visible, and the composition of the moon in the entire picture is also relatively harmonious, making the entire moon picture more beautiful.

[0194] The following will introduce the implementation process of the method for photographing the moon in Figures 4 and 5 in conjunction with Figure 7.

[0195] FIG7 is a schematic flow chart of a method for photographing the moon provided by an embodiment of the present application. As shown in FIG7 , the method may include steps 710 to 760.

[0196] 710, determine the zoom ratio.

[0197] At 720 , the image of the moon acquired by the telephoto lens according to the zoom ratio is displayed on the main preview interface, and the image acquired by the wide-angle lens is displayed on the auxiliary preview interface.

[0198] It should be understood that steps 710 to 720 can refer to the relevant descriptions of steps 510 to 520 in the previous text and will not be repeated here.

[0199] 730, determine the moon magnification.

[0200] For example, referring to (b) in FIG6 , the moon magnification is controlled by the moon magnification control 521 , for example, the moon magnification is 2 times.

[0201] 740 , the moon image captured by the telephoto lens in the main preview display interface is magnified according to the moon magnification ratio.

[0202] In step 740, the mobile phone can further magnify the main body of the moon according to the magnification ratio of the moon based on the image of the moon obtained by the telephoto lens at a fixed zoom ratio. At this time, the image of the moon obtained by the telephoto lens displayed in the main preview display interface of the mobile phone will become larger.

[0203] It should be understood that the moon magnification ratio can be understood as a ratio for further digitally zooming the moon subject under the above zoom ratio.

[0204] In a possible implementation, when the mobile phone zooms in on the main body of the moon according to the moon magnification ratio, it can perform interpolation processing on the moon obtained at the above zoom ratio to obtain the magnified main body of the moon.

[0205] In another possible implementation, when the zoom magnification is 10x and the moon magnification is 2x, the mobile phone can perform a 20x digital zoom on the moon part in a scene with an optical zoom magnification of 10x, that is, the image obtained by fusing the foreground with an optical zoom magnification of 10 with the moon with a 20x digital zoom.

[0206] In another possible implementation, the phone may further include another telephoto lens. When the zoom ratio is 10x and the user selects a moon magnification of 2x, the telephoto lens can achieve a 20x zoom ratio, thereby magnifying the main body of the moon. It should be understood that when the zoom ratio is 10x and the moon magnification is 2x, the size of the main body of the moon displayed in the main preview display interface of the phone is the same as the size of the main body of the moon obtained when the zoom ratio is 20x.

[0207] In this way, in the main preview display interface of the mobile phone, users can flexibly adjust the size of the moon body through the moon magnification control.

[0208] 750. When it is determined that the zoom ratio is greater than or equal to the first preset ratio, in response to a user's shooting operation, an image of the moon is acquired with a third exposure parameter according to the zoom ratio through the telephoto lens, and an image of the foreground is acquired with a fourth exposure parameter.

[0209] It should be understood that the step 750 can refer to the relevant description of the step 530 in the previous text, and for the sake of brevity, it will not be repeated.

[0210] At 760, the image of the moon obtained by the telephoto lens and magnified according to the moon magnification factor is fused with the image of the foreground obtained by the telephoto lens to obtain a second image.

[0211] It should be understood that the image of the moon is obtained by the telephoto lens according to the zoom ratio and is magnified according to the magnification ratio of the moon, and the foreground image is obtained by the telephoto lens according to the zoom ratio.

[0212] The following will introduce the fusion technical solution in conjunction with specific embodiments, which will not be described in detail here.

[0213] In an embodiment of the present application, when photographing the moon, the mobile phone can display the image of the moon captured by the telephoto lens according to the zoom factor in the main preview display interface, magnify the main body of the moon according to the moon magnification factor, and display the image captured by the wide-angle lens in the auxiliary preview interface, thereby facilitating the user's composition of the moon. During the shooting phase, the mobile phone can, based on the user's shooting operation, combine the low-exposure frame image of the moon captured by the telephoto lens according to the moon magnification factor and the high-exposure frame image of the foreground captured by the telephoto lens, and fuse the two to obtain a clear and bright image of both the foreground and the moon.

[0214] FIG8 is an exemplary flow chart of a shooting phase provided by an embodiment of the present application. As shown in FIG8 , the shooting phase may include steps 901 to 908 .

[0215] Among them, step 901 includes steps 901a and 901b, step 902 includes steps 902a and 902b, step 903 includes steps 903a and 903b, and step 904 includes steps 904a and 904b.

[0216] 901a, multiple foreground image frames are acquired through a telephoto lens.

[0217] For example, when the electronic device detects that the user clicks the shooting control, it may start capturing multiple foreground image frames. For example, multiple foreground image frames may be captured according to different exposure parameters.

[0218] The embodiments of the present application do not limit the specific number of foreground image frames. For example, the number of foreground image frames can be 3, 5, etc. It should be understood that in some examples, the electronic device can also obtain a foreground image frame using a telephoto lens, which is not limited in the embodiments of the present application.

[0219] It should be understood that in the embodiment of the present application, the electronic device can determine the selection of a telephoto lens to capture multiple foreground image frames based on the zoom magnification.

[0220] In one example, when the electronic device determines that the zoom magnification is greater than or equal to a first preset magnification, the foreground image frame is captured by the electronic device through the telephoto lens. For example, the first preset magnification may be 10x. Referring to FIG5 , at a zoom magnification of 10x, the camera's primary preview display interface 325 includes an image of the moon captured by the telephoto lens, and the secondary preview display interface 330 includes an image captured by the wide-angle lens. When the user taps the capture control 323, the phone can capture multiple foreground image frames through the telephoto lens.

[0221] In step 901a, the electronic device may acquire multiple foreground image frames using a telephoto lens with high exposure parameters to make the foreground image clearer.

[0222] 901b, acquire multiple moon image frames through a telephoto lens.

[0223] For example, when the electronic device detects that the user clicks the shooting control, it can start collecting multiple moon image frames. For example, multiple moon image frames can be collected according to different exposure parameters.

[0224] The embodiments of the present application do not limit the specific number of the moon image frames. For example, the number of the moon image frames can be 3, 5, etc. In other examples, the electronic device can also capture a moon image frame using a telephoto lens, which is not limited in the embodiments of the present application.

[0225] It should be understood that the moon image frame can be obtained by the electronic device through a telephoto lens. For example, referring to FIG5 , when the mobile phone detects that the user clicks the shooting control, multiple moon image frames can be obtained through the telephoto lens.

[0226] In step 901b, the electronic device may acquire multiple moon image frames using a telephoto lens with low exposure parameters to make the moon image clearer, for example, by acquiring the moon image frames with a longer exposure time.

[0227] 902a, registering multiple foreground image frames.

[0228] It should be understood that when a user photographs the moon, there may be slight jitter, which may cause slight differences between the multiple foreground image frames captured by the electronic device. Therefore, in step 902a, the multiple foreground image frames are registered to facilitate the subsequent fusion of the multiple foreground image frames.

[0229] Since the exposure difference between the foreground image frames is small, registration can be performed based on the image information of the foreground image frames.

[0230] 902b, registering multiple moon image frames.

[0231] Similarly, considering that there may be slight differences between the multiple moon image frames, the multiple moon image frames are registered in step 902b, which is beneficial for the subsequent fusion of the multiple moon image frames.

[0232] For example, in the embodiment of the present application, the alignment can be performed by outlining the outline of the moon area in multiple moon image frames and selecting the moon center to align.

[0233] 903a, fusing multiple foreground image frames to obtain a first foreground image.

[0234] It should be understood that in step 903a, a first foreground image is obtained by fusing multiple foreground image frames, which can make the first foreground image clearer and include more details.

[0235] In other examples, multiple foreground image frames with the same exposure parameters may be fused to form a clear foreground image.

[0236] 903b, fusing multiple moon image frames to obtain a first moon image.

[0237] It should be understood that in step 903b, a first moon image is obtained by fusing multiple moon image frames, which can make the moon in the first moon image clearer and include more details.

[0238] In other examples, multiple moon image frames with the same exposure parameters can be fused to form a clear moon image.

[0239] 904a, performing brightness processing on the first foreground image.

[0240] Exemplarily, brightness adaptive processing may be performed on the first foreground image obtained in step 903a. For example, tone mapping technology may be used to perform brightness adaptive processing.

[0241] Tone mapping technology first calculates the average brightness of the scene based on the current scene, then selects a suitable brightness domain based on the average brightness, and then maps the entire scene to this brightness domain to obtain the correct result.

[0242] It should be understood that step 904a is an optional step. In some embodiments, step 904a may not be performed.

[0243] 904b, performing brightness processing on the first moon image.

[0244] Exemplarily, brightness adaptive processing may be performed on the first moon image obtained in step 903b. For example, tone mapping technology may be used to perform brightness adaptive processing.

[0245] It should be understood that step 904b is an optional step. In some embodiments, step 904b may not be performed.

[0246] 905 , align the first foreground image with the moon included in the first moon image.

[0247] Since the user may experience slight shaking when photographing the moon, there may be a slight difference in the position of the moon included in the first foreground image and the first moon image. In step 905, the first foreground image and the moon included in the first moon image may be aligned.

[0248] In one possible implementation, the moon regions in the first foreground image and the first moon image may be outlined, and the center point of the moon region may be selected to align the moon to ensure that the moon is in the same position when the two images are fused.

[0249] In other examples, in step 905 , the moon sizes in the first foreground image and the first moon image may be corrected.

[0250] 906 , fuse the first foreground image and the first moon image to obtain a first target image.

[0251] In step 906 , the first foreground image after the moon alignment and the first moon image may be fused to obtain a target image in which both the foreground and the moon are clear.

[0252] For example, referring to Figure 3, when the zoom magnification of the mobile phone is 10 times, it can be understood that the mobile phone is in a state with a higher zoom magnification. When the mobile phone detects that the user clicks the shooting control, the mobile phone can obtain the moon image through the telephoto lens with low exposure parameters, and obtain the foreground image through the telephoto lens with high exposure parameters, and fuse the foreground image with the moon image to obtain the target picture.

[0253] For example, referring to FIG6 , when the camera's display interface includes a zoom control and a moon magnification control, the first moon image is a moon image captured by the telephoto lens and magnified according to the moon magnification. When the phone detects that the user has clicked the capture control, the phone can capture the moon image using the telephoto lens at low exposure parameters, magnify the main body of the moon according to the moon magnification to obtain the first moon image, capture the first foreground image using the telephoto lens at high exposure parameters, and fuse the first foreground image with the first moon image to obtain the target image.

[0254] When fusing the first foreground image and the first moon image, the overexposed area of ​​the moon in the foreground image frame is generally slightly larger than the area of ​​the moon in the moon image frame. Therefore, when fusing the two images, there may be some holes around the edge of the moon. In the embodiments of the present application, the following methods can be used to address these holes around the edge of the moon.

[0255] Method 1: Multi-frame continuous exposure.

[0256] Exemplarily, multiple frames are continuously exposed from the first moon image frame to the first foreground image frame, so that the image difference between the two adjacent frames is small, thereby making the transition from the first moon image frame to the first foreground image frame natural, and then the multiple frames are fused to avoid the hollow phenomenon at the edge of the moon. The main body of the moon in the final picture is the same size as in the first moon image frame.

[0257] Method 2: Enlarge the moon in the first moon image.

[0258] For example, the moon in the first moon image may be magnified by 1.1 times or 1.2 times, etc., so that the magnified moon has the same size as the moon in the first foreground image.

[0259] Method 3: Use the sky around the moon to fill the holes on the edge of the moon.

[0260] Exemplarily, the third approach can be implemented by an algorithm. For example, a smooth transition from the sky around the moon to the moon can be achieved by the algorithm, so that the generated sky can fill the hole at the edge of the moon.

[0261] 907 , perform halo processing on the first target image.

[0262] Since there is a strong halo around the main body of the moon, in the embodiment of the present application, the halo can be suppressed by filtering, AI algorithm, etc. to make the moon halo natural.

[0263] It should be understood that step 907 is an optional step. In some examples, step 907 may not be performed.

[0264] 908, output the first target image.

[0265] After the above steps are processed, a beautiful and clear first target image can be obtained, and the mobile phone can save the first target image for the user to view.

[0266] In an embodiment of the present application, when photographing the moon, the electronic device is at a high zoom factor. The foreground image and the moon image are captured using a telephoto lens, and the foreground and moon images are fused together to produce a target image. In this target image, the moon is clear and bright, with a natural halo, and the foreground is clearly visible, resulting in a beautifully composed image.

[0267] In some cases, when photographing the moon, the user may wish to include as much of the foreground as possible due to the beauty of the foreground. This means that in the final image, the foreground will have a lower zoom ratio, occupying a larger portion of the image. For example, the zoom ratio for the foreground can be less than 5x, such as 1x or 2x. This technical solution will be described below in conjunction with Figure 9.

[0268] FIG9 is a schematic diagram of another set of GUIs provided by an embodiment of the present application, wherein (a) to (c) in FIG9 illustrate a process in which a user uses a mobile phone 600 to photograph the moon.

[0269] 9( a ), the GUI is a display interface 620 of the camera of the mobile phone 600. The display interface 620 may include a main preview display interface 625, an auxiliary preview display interface 623, a shooting control 626, a function bar, a mode bar, and the like.

[0270] The main preview display interface 625 may display the moon photographed by a telephoto lens, and may also include a zoom ratio control 622 and a moon magnification ratio control 621 .

[0271] Exemplarily, the optical zoom magnification 622 is 2 times, and the moon magnification control 621 is 10 times.

[0272] Because the auxiliary preview display 623 shows the wide-angle lens preview, the buildings and trees are clearly visible, but the moon is overexposed, and its details are not visible. In contrast, the telephoto lens captures the moon image at a 2x magnification, which is further magnified 10x using the moon magnification factor. As a result, the moon details in the main preview display 625 are clearly visible and beautiful.

[0273] In some examples, the display interface 620 is a display interface of the mobile phone in moon mode.

[0274] After the mobile phone detects that the user clicks the shooting control 626, a GUI as shown in FIG. 9(b) may be displayed.

[0275] 9( b ), the display control 627 in the display interface 620 may partially display a picture taken by the mobile phone 600. When the mobile phone 600 detects that the user clicks the display control 627 , it may display a GUI as shown in FIG9( c ).

[0276] In other examples, the user can also operate the phone to exit the camera, open the gallery, and view the taken pictures from the gallery.

[0277] Referring to FIG. 9 ( c ), the GUI is a mobile phone display interface 640. This display interface 640 can be used to display a picture 641 captured by the mobile phone 600. In this picture 641, the moon captured by the telephoto lens is clear and bright, and the foreground captured by the wide-angle lens is also clearly visible, making the moon picture taken by the mobile phone more beautiful.

[0278] In an embodiment of the present application, for example, when the mobile phone detects that a user has clicked a capture control, the image of the moon captured by the telephoto lens can be fused with the wide-angle image captured by the wide-angle lens to produce a final image. The final image then includes both the clear foreground portion captured by the wide-angle lens and the clear moon captured by the telephoto lens, thereby making the foreground occupy a larger proportion of the image and ensuring that the moon is clearly visible.

[0279] It should be understood that the technical solutions in Figures 3 to 9 can be used in combination with each other, and the embodiments of this application are not limited thereto.

[0280] In one example, in FIG5(b), when the mobile phone detects that the user slides the magnification in the moon magnification control 321 to 2 times, the mobile phone may display a GUI as shown in FIG6(b).

[0281] In another example, in (a) of FIG. 8 , when the mobile phone detects that the user slides the zoom ratio control 622 to 10 times and slides the moon magnification control 621 to 1 times, the mobile phone may display a GUI as shown in (b) of FIG. 5 .

[0282] The following will describe the implementation process of the method for photographing the moon in FIG9 in conjunction with FIG10.

[0283] FIG10 is a schematic flow chart of a method for photographing the moon provided in an embodiment of the present application. As shown in FIG10 , the method may include steps 810 to 860.

[0284] 810, determine the zoom ratio.

[0285] It should be understood that the step 810 may refer to the relevant description in step 510 .

[0286] 820. Display the moon image acquired by the telephoto lens according to the zoom ratio in the main preview display interface, and display the image acquired by the wide-angle lens in the auxiliary preview display interface.

[0287] In other examples, when the zoom ratio is small, for example, 2x, the moon in the main preview display interface is small, resulting in nothing but the small moon in the main preview display interface. In this case, the user can click the auxiliary preview display interface or the toggle button to display the image of the moon captured by the telephoto lens in the auxiliary display interface and the image captured by the wide-angle lens in the main preview display interface.

[0288] 830, determine the moon magnification.

[0289] 840, amplify the moon image obtained by the telephoto lens in the main preview display interface according to the moon magnification ratio.

[0290] It should be understood that steps 830-840 can refer to the relevant descriptions in steps 730-740, and for the sake of brevity, they will not be repeated here.

[0291] It should also be understood that the embodiment of the present application does not limit the specific execution order of steps 810 to 840. For example, step 810 and step 830 can be executed in the same step or simultaneously, or step 830 can be executed before or after step 810.

[0292] 850. When it is determined that the zoom ratio is less than the first preset ratio, in response to the user's shooting operation, an image of the moon is acquired with a fifth exposure parameter according to the zoom ratio through the telephoto lens, and an image is acquired with a sixth exposure parameter through the wide-angle lens.

[0293] In step 850, when it is determined that the zoom ratio is less than the first preset ratio, for example, the zoom ratio is 2 times, it can be determined that the telephoto lens is at a low ratio. When the user clicks the shooting button, the mobile phone can obtain an image of the moon in a high exposure frame according to the zoom ratio through the telephoto lens, and obtain an image normally through the wide-angle lens to obtain a richer foreground scenery.

[0294] The fifth exposure parameter and the sixth exposure parameter can be referred to the description above.

[0295] 860. The image of the moon captured by the telephoto lens and magnified according to the moon magnification factor is fused with the image captured by the wide-angle lens to obtain a third image. It should be understood that during the image fusion stage, the mobile phone may further magnify the main body of the moon in the image captured by the telephoto lens according to the moon magnification factor, and fuse the magnified image with the image captured by the wide-angle lens to obtain the final third image.

[0296] In an embodiment of the present application, in a scene of photographing the moon, when the zoom magnification of the telephoto lens of the mobile phone is at a low magnification, in response to the user's shooting operation, the mobile phone can magnify the moon image captured by the telephoto lens according to the moon magnification magnification, and fuse the magnified moon image with the image captured by the wide-angle lens to obtain a final image. This ensures that the final image includes rich foreground content and a bright and clear moon.

[0297] Fig. 11 is an exemplary flow chart of the photographing stage in Fig. 9. As shown in Fig. 11, the photographing stage may include steps 1010 to 1080.

[0298] Among them, step 1010 includes steps 1010a and 1010b, step 1020 includes steps 1020a and 1020b, step 1030 includes steps 1030a and 1030b, and step 1040 includes steps 1040a and 1040b.

[0299] 1010a, acquiring multiple wide-angle image frames through a wide-angle lens.

[0300] For example, when the electronic device detects that the user clicks the shooting control, multiple wide-angle image frames can be captured through the wide-angle lens. For example, multiple wide-angle image frames can be captured according to different exposure parameters or the same exposure parameters.

[0301] The embodiment of the present application does not limit the specific number of the wide-angle image frames. For example, the number of the foreground image frames can be 3, 5, or 1, etc.

[0302] In one example, when the electronic device determines that the zoom ratio is less than a first preset ratio, a wide-angle image frame may be captured using the wide-angle lens. For example, the first preset ratio may be 10x. Referring to FIG8 , when the zoom ratio is 2x, the camera's main preview display interface 625 includes an image of the moon captured by the telephoto lens, and the auxiliary preview display interface 623 includes a wide-angle image captured by the wide-angle lens. When the user taps the capture control 626, the phone can capture multiple wide-angle image frames using the wide-angle lens.

[0303] 1010b, multiple moon image frames are acquired through a telephoto lens.

[0304] For example, when the electronic device detects that the user clicks the shooting control, multiple moon image frames can be captured using the telephoto lens. For example, multiple moon image frames can be captured using different exposure parameters or the same exposure parameters.

[0305] The embodiment of the present application does not limit the specific number of the moon image frames. For example, the number of the moon image frames can be 3, 5, or 1, etc.

[0306] It should be understood that when the user clicks the shooting control, the electronic device can synchronously execute steps 1010a and 1010b.

[0307] 1020a, registering multiple wide-angle image frames.

[0308] 1020b, register multiple moon image frames.

[0309] It should be understood that the image registration method can refer to the relevant description of steps 902a and 902b in the above text, and for the sake of brevity, it will not be repeated here.

[0310] 1030a: Fuse multiple wide-angle image frames to obtain a first wide-angle image.

[0311] 1030b: Fuse multiple moon image frames to obtain a second moon image.

[0312] It should be understood that the fusion method can be found in the relevant description of steps 903a and 903b in the previous text, and for the sake of brevity, it will not be repeated here.

[0313] 1040a: Perform brightness processing on the first wide-angle image.

[0314] 1040b, performing brightness processing on the second moon image.

[0315] It should be understood that the brightness processing method can refer to the relevant description of steps 1040a and 1040b in the previous text, and for the sake of brevity, it will not be repeated here.

[0316] 1050: Align the first wide-angle image with the moon included in the second moon image.

[0317] It should be understood that the moon alignment processing method can refer to the relevant description of step 905 in the above text.

[0318] 1060 , fuse the first wide-angle image and the second moon image to obtain a second target image.

[0319] For example, referring to FIG9 , when the camera's display interface includes a zoom control and a moon magnification control, the second moon image is a moon image captured by the telephoto lens and magnified according to the moon magnification. If the phone's zoom is 2x, it can be understood that the phone is in a low zoom state. When the phone detects the user clicking the capture control, the phone can capture the moon image through the telephoto lens and magnify the main part of the moon according to the moon magnification to obtain the second moon image. The phone then captures a wide-angle image through the wide-angle lens, and fuses the wide-angle image with the moon image to obtain the second target image.

[0320] 1070 , perform halo processing on the second target image.

[0321] 1080, output the second target image.

[0322] It should be understood that steps 1070-1080 may refer to the relevant descriptions of steps 907-908.

[0323] In the embodiment of the present application, when photographing the moon, the electronic device is at a low zoom ratio. A wide-angle image can be obtained through a wide-angle lens, and a moon image can be obtained through a telephoto lens. The wide-angle image and the moon image are then merged to obtain a second target image. In the second target image, the moon is clear and bright, the halo is natural, the foreground is clearly visible, and the entire image has a beautiful composition.

[0324] In the embodiment of the present application, at a higher zoom ratio, due to the poor clarity of the wide-angle lens, the acquired foreground image may be blurred and have a lower clarity than the foreground image acquired by the telephoto lens. Therefore, by fusing the foreground image acquired by the telephoto lens with the moon image acquired by the telephoto lens, a target image in which both the moon main body and the foreground are clearly visible can be obtained. When the electronic device switches the zoom ratio to a lower ratio and selects a higher moon magnification ratio, the foreground image acquired by the wide-angle lens has a larger area and higher clarity. Fusion of the moon image acquired by the telephoto lens with the foreground image acquired by the wide-angle lens can make the foreground beautiful and the moon clear. This makes it possible to implement a fusion solution at all focal lengths.

[0325] FIG12 is a schematic diagram of another set of GUIs provided by an embodiment of the present application, wherein (a) to (d) in FIG12 illustrate a process in which a user uses a mobile phone 700 to photograph the moon to obtain a picture including a clear moon and a silhouette of the foreground.

[0326] It should be understood that (a) in FIG. 12 can refer to the relevant description of (a) in FIG. 3 , and for the sake of brevity, it will not be repeated.

[0327] When the mobile phone 700 detects that the user clicks the camera icon 711 , the GUI shown in FIG. 12( b ) may be displayed.

[0328] 12( b ), the GUI is a display interface 720 of the camera of the mobile phone 700 with a zoom magnification of 10 times and a moon magnification of 1 times.

[0329] In the display interface 720, the moon image captured by the telephoto lens is displayed in the main preview display interface 725, and the foreground image captured by the wide-angle lens is displayed as a picture-in-picture in the auxiliary preview display interface 730.

[0330] Referring to FIG12(b), unlike FIG5(b), the foreground portion of the preview interface is relatively dark, with only a few physical objects. In this case, the present application does not blindly increase the brightness of the foreground, but instead displays a silhouette effect in the preview interface. As shown in FIG12(b), the foreground portion of the auxiliary preview display interface 730 only has a small number of lights, and the foreground portion of the main preview display interface 731 also has a silhouette effect.

[0331] Thus, when the foreground includes fewer objects, such as a small number of trees, telephone poles, building lights, etc., the foreground can be displayed with a silhouette effect in the camera's preview interface to enhance the artistic beauty of the image.

[0332] In another possible implementation, the mobile phone can perform distribution statistics on the brightness values ​​of the foreground. When the statistical results determine that the foreground is dark and the signal-to-noise ratio is lower than a preset value, a silhouette effect can be displayed instead of blindly increasing the brightness.

[0333] For example, when the mobile phone displays the preview display interface, it can sum the brightness values ​​of the foreground. When the sum result is less than the preset brightness value A, a silhouette effect can be displayed instead of blindly increasing the brightness.

[0334] When the mobile phone 700 detects that the user clicks the shooting control 723, a GUI as shown in (c) of FIG. 12 may be displayed.

[0335] 12(c), the display control 724 in the display interface 725 can partially display the picture taken by the mobile phone 700. When the mobile phone 700 detects that the user clicks the display control 724, it can display the GUI shown in FIG12(d).

[0336] 12( d ), the GUI is a mobile phone display interface 740. The display interface 740 can be used to display a picture 741 taken by the mobile phone 700. In the picture 741, the moon captured by the telephoto lens is clear and bright, and the lights in the foreground are displayed as silhouettes.

[0337] In an embodiment of the present application, when the foreground includes fewer objects, forcibly increasing the foreground brightness will result in a poor display effect. The embodiment of the present application does not aim to increase the foreground brightness, but rather displays the objects in the foreground as silhouettes, so that the final image has a certain artistic beauty.

[0338] In other embodiments, after entering the camera preview interface, the mobile phone can sum the brightness of the foreground part. When it is determined that the summation result is less than the preset brightness value A, a silhouette effect can be displayed for the foreground part. When it is determined that the summation result is greater than or equal to the preset brightness value A, the foreground part can be displayed normally without displaying the silhouette effect.

[0339] Figure 13 is a schematic flow chart of a method for photographing the moon provided by an embodiment of the present application. As shown in Figure 13, the method 1300 can be applied to an electronic device that can include a telephoto lens and a wide-angle lens. The method 1300 can include steps 1310 to 1340.

[0340] 1310. The electronic device displays a preview display interface of the camera, where the preview display interface includes a first zoom ratio control, and the first zoom ratio control is used to control a first zoom ratio of the telephoto lens.

[0341] For example, the electronic device may display a preview display interface of the camera according to the user's operation of turning on the camera. The preview display interface may be called a viewfinder interface, a preview interface, a camera display interface, etc.

[0342] It should be understood that the user's operation of opening the camera can be that the user clicks on the camera application on the desktop, or the user calls the camera in other applications, which is not limited in the embodiments of the present application.

[0343] The preview display interface may include a first zoom ratio control. For example, referring to FIG3(b), the first zoom ratio control may be zoom ratio control 222. It should be understood that the zoom ratio control is used to control the first zoom ratio of the telephoto lens of the electronic device. The first zoom ratio may include an optical zoom ratio and / or a digital zoom ratio.

[0344] In other examples, the electronic device may also automatically enter moon mode after recognizing the moon. In moon mode, the following steps are performed.

[0345] 1320. When the electronic device determines that the captured scene is a moon scene, the main preview display interface of the preview display interface displays the image of the moon obtained by the telephoto lens, and the auxiliary preview display interface of the preview display interface displays the wide-angle image obtained by the wide-angle lens.

[0346] For example, referring to (b) in FIG. 3 and (b) in FIG. 5 , the image of the moon may be displayed in the main preview display interface of the camera, and the image of the foreground may be displayed in the auxiliary preview display interface.

[0347] In this way, the image obtained by the wide-angle lens is displayed in the auxiliary preview display interface of the camera in the form of picture-in-picture, which can assist the user in composing the moon when shooting the moon.

[0348] It should be understood that the way in which the electronic device determines that the photographed scene is a moon scene can be automatically determined based on the user's shooting scene, or it can be determined by the user selecting the moon mode. The embodiment of the present application does not limit the specific method of determining the moon scene.

[0349] 1330. When the electronic device determines that the first zoom ratio is greater than or equal to the first preset ratio, in response to the user's first shooting operation, the electronic device obtains a first moon image with a first exposure parameter according to the first zoom ratio through the telephoto lens, and obtains a first foreground image with a second exposure parameter.

[0350] For example, the first preset magnification is 10 times, 8 times, etc., and the embodiment of the present application does not limit the specific value of the first preset magnification. In other examples, the first zoom magnification needs to be less than the preset magnification B, for example, the preset magnification B is 20 times, 25 times, etc.

[0351] For example, referring to (b) to (d) in FIG3 , the user's shooting operation may be an operation in which the user clicks the shooting control 223. When the mobile phone 200 detects that the user clicks the shooting control 223, the image of the moon can be obtained through the telephoto lens according to the zoom ratio selected by the user, and the image of the foreground can be obtained through the telephoto lens.

[0352] It should be understood that since there is a large difference between the image of the moon and the image of the foreground when photographing the moon, the electronic device obtains the image of the moon with a first exposure parameter and obtains the image of the foreground with a second exposure parameter when photographing using a telephoto lens.

[0353] The exposure parameters may include exposure time, ISO value, exposure compensation, white balance, etc. The first exposure parameter may be a low exposure parameter, for example, a longer exposure time, such as 10 seconds, etc. The second exposure parameter may be a high exposure parameter.

[0354] At 1340 , the electronic device fuses the first moon image with the first foreground image to obtain a first target image.

[0355] It should be understood that the specific manner in which the electronic device fuses the first moon image with the first foreground image can be found in the relevant description above and will not be repeated here.

[0356] In an embodiment of the present application, when the electronic device determines to shoot the moon, the electronic device can display the image of the moon captured by the telephoto lens in the main preview display interface of the camera, and display the image captured by the wide-angle lens in the auxiliary preview display interface in the form of picture-in-picture. Therefore, when the user shoots the moon, the moon can be composed according to the foreground image, which is more conducive to the user taking a moon picture with a harmonious composition. In addition, when it is determined that the zoom ratio of the electronic device is greater than or equal to the first preset ratio, during the shooting phase, the electronic device uses the telephoto lens to capture the moon image with high exposure parameters and the foreground image with low exposure parameters, and fuses the moon image with the foreground image to obtain the final target image. This helps the user take a picture with clear moon subject and foreground scenery.

[0357] In some embodiments, the preview display interface also includes a second zoom ratio control, which is used to control a second zoom ratio for additionally magnifying the moon at the first zoom ratio. The main preview display interface of the preview display interface displays the image of the moon acquired by the telephoto lens, including: the first moon image magnified according to the second zoom ratio is displayed in the main preview display interface; the electronic device fuses the first moon image with the first foreground image, including: the electronic device fuses the first moon image magnified according to the second zoom ratio with the first foreground image.

[0358] For example, referring to FIG6 , the second zoom ratio control may be a moon magnification control 521, and the second zoom ratio may be 2. When the user adjusts the second zoom ratio from 1 to 2, the moon image in the main preview display interface 525 is magnified accordingly. When the user clicks the capture control 521, the mobile phone 500 may merge the moon image magnified by the second zoom ratio with the foreground image to obtain the final image.

[0359] It should be understood that the second zoom ratio may be the moon magnification ratio mentioned above. For details, please refer to the description above. For the sake of brevity, details will not be repeated here.

[0360] In an embodiment of the present application, the camera's preview display interface may further include a second zoom factor control for controlling the magnification of the moon's main body at the first zoom factor. The moon's main body in the main preview display interface can be magnified according to the second zoom factor. During the capture phase, the electronic device can merge the moon image magnified according to the second zoom factor with the foreground image to obtain the final image. This technical solution allows users to flexibly adjust the size of the moon's main body within the same foreground, which is conducive to improving the flexibility of moon photography.

[0361] In some embodiments, when the electronic device detects that the user adjusts the first zoom magnification to be less than the first preset magnification, the method 1300 may further include:

[0362] In response to a second shooting operation of the user, the electronic device acquires a second moon image through the telephoto lens according to the first zoom magnification, and acquires a first wide-angle image through the wide-angle lens;

[0363] The electronic device fuses the second moon image magnified according to the second zoom ratio with the first wide-angle image to obtain a second target image.

[0364] For example, assuming that the first preset magnification is 10, see Figure 9, when the user adjusts the first zoom magnification to 2x, after the user clicks the shooting control 626, the mobile phone can obtain the second moon image according to the first zoom magnification through the telephoto lens, obtain the first wide-angle image through the wide-angle lens, and fuse the second moon image magnified according to the second zoom magnification with the first wide-angle image to obtain the final second target picture.

[0365] In the embodiment of the present application, at higher zoom ratios, due to the poor clarity of the wide-angle lens, the captured foreground image may be blurred and have lower clarity than the foreground image captured by the telephoto lens. Therefore, by fusing the foreground image captured by the telephoto lens with the moon image captured by the telephoto lens, a target image in which both the moon main body and the foreground are clearly visible can be obtained. When the electronic device switches the zoom ratio to a lower ratio and selects a higher magnification ratio for the moon, the foreground image captured by the wide-angle lens has a larger area and higher clarity. Fusion of the moon image captured by the telephoto lens with the foreground image captured by the wide-angle lens can make the foreground beautiful and the moon clear.

[0366] In some embodiments, the wide-angle image further includes a first display frame, and the first display frame is used to indicate the framing size of the first target image.

[0367] For example, referring to (b) in FIG3 , the wide-angle image may be displayed on the auxiliary preview display interface 230 , the first display frame may be the display interface 231 , and the size of the display interface 231 is the framing size of the first target image.

[0368] In the embodiment of the present application, the first display frame allows the user to determine the size of the image captured by the telephoto lens, which is helpful for the user to compose the moon.

[0369] In some embodiments, the method 1300 may further include:

[0370] In response to the user clicking the wide-angle image or the switch button, the electronic device displays the image of the moon acquired by the telephoto lens in the auxiliary preview display interface and displays the wide-angle image in the main preview display interface.

[0371] In some examples, the toggle button can be located in the auxiliary preview display interface or in the main preview display interface.

[0372] In an embodiment of the present application, the electronic device can support the interchange of the preview display positions of the display interface of the moon image obtained by the telephoto lens and the wide-angle image obtained by the wide-angle lens, so that the user can flexibly switch the preview display interface of the lens when using the electronic device to shoot the moon.

[0373] In some embodiments, before the electronic device fuses the first moon image with the first foreground image, the method 1300 may further include:

[0374] The electronic device obtains the center point of the moon in the first moon image and the first foreground image;

[0375] The electronic device performs moon alignment processing on the moon in the first moon image and the moon in the first foreground image according to the center point of the moon.

[0376] It should be understood that because the moon's main body is bright, a telephoto lens requires a very low exposure to capture the moon image. The foreground image, however, is lower in brightness compared to the moon, so a very high exposure is required. Furthermore, due to slight camera shake, there may be slight discrepancies between the moon's main body and the foreground image. Therefore, the moon needs to be aligned during image fusion to achieve a clearer moon region in the final image.

[0377] It should be understood that the process of the electronic device aligning the moon can be found in the relevant description in the previous article. For the sake of brevity, it will not be repeated here.

[0378] In some embodiments, the method 1300 may further include:

[0379] After fusing the first moon image and the first foreground image, the electronic device suppresses the halo of the moon in the fused image.

[0380] Since there is a strong halo around the moon, in the embodiment of the present application, the halo can be processed by filtering, AI algorithm, etc. to make the moon halo natural.

[0381] In some embodiments, a main preview display interface of the preview display interface displays an image of the moon captured by a telephoto lens, and an auxiliary preview display interface of the preview display interface displays a wide-angle image captured by a wide-angle lens, including:

[0382] The electronic device performs distribution statistics on the brightness value of the first foreground image to obtain a first brightness value;

[0383] When it is determined that the first brightness value is less than the preset brightness value, the objects in the first foreground image except the moon are displayed with a silhouette effect.

[0384] In one possible implementation, the mobile phone can perform distribution statistics on the brightness value of the foreground to obtain a first brightness value. When it is determined that the first brightness value is less than a preset brightness value, it can be determined that the foreground is darker and a silhouette effect can be displayed instead of blindly increasing the brightness.

[0385] Thus, when the foreground includes fewer objects, such as a small number of trees, telephone poles, building lights, etc., the foreground can be displayed with a silhouette effect in the camera's preview interface to enhance the artistic beauty of the image.

[0386] In an embodiment of the present application, when the foreground includes fewer objects, forcibly increasing the foreground brightness will result in a poor display effect. The embodiment of the present application does not aim to increase the foreground brightness, but rather displays the objects in the foreground as silhouettes, so that the final image has a certain artistic beauty.

[0387] In some embodiments, objects other than the moon in the first target image are displayed as silhouettes.

[0388] For example, referring to (d) in FIG12 , in the picture 741 finally obtained by the mobile phone, the moon is clear and bright, and the lights in the foreground are displayed as silhouette effects.

[0389] An embodiment of the present application also provides an electronic device, comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs including instructions, which, when executed by the one or more processors, enable the method of photographing the moon as described in any possible implementation described above to be executed.

[0390] An embodiment of the present application also provides a device for photographing the moon, including a module for implementing the method for photographing the moon as described in any possible implementation manner described above.

[0391] An embodiment of the present application also provides a chip, which includes a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the method of photographing the moon as described in any possible implementation method described above is executed.

[0392] This embodiment also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method of photographing the moon in the above-mentioned embodiment.

[0393] This embodiment also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the above-mentioned related steps to implement the method for photographing the moon in the above-mentioned embodiment.

[0394] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the method of photographing the moon in the above-mentioned method embodiments.

[0395] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0396] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0397] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0398] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0399] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0400] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0401] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0402] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method for photographing the moon, characterized in that: The method is applied to an electronic device, wherein the electronic device includes a wide-angle lens and a telephoto lens, and the method includes: The electronic device displays a preview display interface of the camera, wherein the preview display interface includes a first zoom ratio control, and the first zoom ratio control is used to control a first zoom ratio of the telephoto lens; When the electronic device determines that the captured scene is a moon scene, the main preview display interface of the preview display interface displays the image of the moon captured by the telephoto lens, and the auxiliary preview display interface of the preview display interface displays the wide-angle image captured by the wide-angle lens; When the electronic device determines that the first zoom magnification is greater than or equal to a first preset magnification, in response to a first shooting operation of the user, the electronic device acquires, through the telephoto lens, a first moon image with a first exposure parameter according to the first zoom magnification and a first foreground image with a second exposure parameter; The electronic device fuses the first moon image with the first foreground image to obtain a first target image.

2. The method according to claim 1, characterized in that The preview display interface further includes a second zoom ratio control, the second zoom ratio control being used to control a second zoom ratio for additionally magnifying the moon at the first zoom ratio. The main preview display interface of the preview display interface displays an image of the moon captured by the telephoto lens, including: The main preview display interface displays the first moon image magnified according to the second zoom ratio; The electronic device fusing the first moon image with the first foreground image includes: The electronic device merges the first moon image magnified according to the second zoom ratio with the first foreground image.

3. The method according to claim 2, characterized in that When the electronic device detects that the user adjusts the first zoom magnification to be smaller than the first preset magnification, the method further includes: In response to a second shooting operation of the user, the electronic device acquires a second moon image through the telephoto lens according to the first zoom ratio, and acquires a first wide-angle image through the wide-angle lens; The electronic device fuses the second moon image magnified according to the second zoom ratio with the first wide-angle image to obtain a second target image.

4. The method according to any one of claims 1 to 3, characterized in that The wide-angle image also includes a first display frame, and the first display frame is used to indicate the framing size of the first target image.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: In response to a user clicking on the wide-angle image or a switch button, the electronic device displays the image of the moon captured by the telephoto lens in the auxiliary preview display interface and displays the wide-angle image in the main preview display interface.

6. The method according to any one of claims 1 to 5, characterized in that Before the electronic device fuses the first moon image with the first foreground image, the method further includes: The electronic device acquires the center point of the moon in the first moon image and the first foreground image; The electronic device performs moon alignment processing on the moon in the first moon image and the moon in the first foreground image according to the center point of the moon.

7. The method according to claim 6, characterized in that The method further comprises: After fusing the first moon image and the first foreground image, the electronic device suppresses the halo of the moon in the fused image.

8. The method according to any one of claims 1 to 7, characterized in that The main preview display interface of the preview display interface displays the image of the moon acquired by the telephoto lens, and the auxiliary preview display interface of the preview display interface displays the wide-angle image acquired by the wide-angle lens, including: The electronic device performs distribution statistics on the brightness value of the first foreground image to obtain a first brightness value; When it is determined that the first brightness value is less than a preset brightness value, the objects in the first foreground image except the moon are displayed with a silhouette effect.

9. The method according to claim 8, characterized in that The objects other than the moon in the first target image are displayed as silhouettes.

10. An electronic device, characterized in that: include: one or more processors; One or more memories; the one or more memories store one or more computer programs, the one or more computer programs including instructions, which, when executed by one or more processors, enable the method for photographing the moon as described in any one of claims 1 to 9 to be executed.

11. A device for photographing the moon, characterized in that: include: A module for implementing the method for photographing the moon according to any one of claims 1 to 9.

12. A chip, characterized in that: The chip includes a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the method for photographing the moon as described in any one of claims 1 to 9 is executed.

13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the method for photographing the moon according to any one of claims 1 to 9 is executed.