CN115379075A - Moon shooting method and device, storage medium and shooting equipment - Google Patents

Moon shooting method and device, storage medium and shooting equipment Download PDF

Info

Publication number
CN115379075A
CN115379075A CN202110541013.XA CN202110541013A CN115379075A CN 115379075 A CN115379075 A CN 115379075A CN 202110541013 A CN202110541013 A CN 202110541013A CN 115379075 A CN115379075 A CN 115379075A
Authority
CN
China
Prior art keywords
moon
camera
window
image
shooting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110541013.XA
Other languages
Chinese (zh)
Inventor
纪德威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN202110541013.XA priority Critical patent/CN115379075A/en
Publication of CN115379075A publication Critical patent/CN115379075A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The embodiment of the application discloses a moon shooting method and device, a storage medium and shooting equipment, and belongs to the technical field of image processing. The method is used for shooting equipment comprising a first camera and a second camera, and comprises the following steps: when the shooting equipment is in a moon shooting mode, controlling the first camera to shoot a wide-angle image by using a first shooting parameter; controlling the second camera to shoot a tele image by using a second shooting parameter, wherein the tele image comprises a moon; determining a moon fusion position in the wide-angle image; and fusing the moon in the tele image to the moon fusion position in the wide image to obtain a target image. According to the embodiment of the application, the second camera can be used for shooting a large moon, and other scenes can be shot through the first camera, so that the shooting experience of a user can be improved.

Description

Moon shooting method and device, storage medium and shooting equipment
Technical Field
The embodiment of the application relates to the technical field of image processing, in particular to a moon shooting method and device, a storage medium and shooting equipment.
Scenery technique
Most of the photo fans like to shoot the moon, the scene is shot around the moon, and the investment of all major manufacturers on the software and hardware of the terminal is increased, so that the shooting experience of users is improved.
In recent years, with the continuous development of mobile phone imaging technology, a telephoto lens has become a standard configuration of a terminal, and a large moon can be photographed through the telephoto lens.
However, the shooting angle of view of the telephoto camera is narrow, so that other scenes cannot be shot when the moon is shot, thereby affecting the shooting experience.
Disclosure of Invention
The embodiment of the application provides a moon shooting method, a moon shooting device, a storage medium and a shooting device, and aims to solve the problems that a long-focus camera is narrow in shooting visual angle and cannot shoot other scenes when the moon is shot. The technical scheme is as follows:
in one aspect, a moon photographing method is provided for use in a photographing apparatus including a first camera and a second camera, the method including:
when the shooting equipment is in a moon shooting mode, controlling the first camera to shoot a wide-angle image by using a first shooting parameter;
controlling the second camera to shoot a tele image by using a second shooting parameter, wherein the tele image comprises a moon;
determining a moon fusion position in the wide-angle image;
and fusing the moon in the tele image to the moon fusion position in the wide image to obtain a target image.
In one possible implementation manner, when a first composition manner is adopted during shooting and the first composition manner is a composition manner for determining the moon fusion position according to the moon in the wide-angle image, the method further includes:
respectively displaying a first preview image corresponding to the first camera and a second preview image corresponding to the second camera on a screen;
and generating a first shooting parameter of the first camera according to the first preview image, and generating a second shooting parameter of the second camera according to the second preview image.
In a possible implementation manner, the displaying, on a screen, a first preview image corresponding to the first camera and a second preview image corresponding to the second camera respectively includes:
displaying a first preview image corresponding to the first camera in a first window on the screen;
displaying a second preview image corresponding to the second camera in a second window on the screen;
when the first window is smaller than the second window, the first window is superposed on the second window displayed in a full screen mode, or when the second window is smaller than the first window, the second window is superposed on the first window displayed in a full screen mode, or the first window and the second window are arranged side by side.
In one possible implementation, the method further includes:
calculating the visual angle range of the second camera relative to the first camera according to the visual angle and the positions of the first camera and the second camera;
and annotating the view angle range in the first window, wherein the view angle range refers to a region where the moon can be shot by the second camera when the first camera shoots.
In a possible implementation manner, the generating a first shooting parameter of the first camera according to the first preview image includes:
generating a first shooting parameter of the first camera;
if a first click instruction acting on the first preview image is received when the first window is overlaid on the second window displayed in a full screen mode, or if the first click instruction acting on the first preview image is received when the first window and the second window are arranged side by side, displaying the first window in the full screen mode, overlaying the second window on the first window displayed in the full screen mode, displaying a parameter adjusting control, receiving a first adjusting instruction acting on the parameter adjusting control, and updating the first shooting parameter according to the first adjusting instruction;
if the second window receives a second click instruction acting on the first preview image when being overlaid on the first window displayed in full screen, displaying a parameter adjusting control, receiving a second adjusting instruction acting on the parameter adjusting control, and updating the first shooting parameter according to the second adjusting instruction.
In a possible implementation manner, the generating a second shooting parameter of the second camera according to the second preview image includes:
generating a second shooting parameter of the second camera;
if a third click instruction acting on the second preview image is received when the second window is superposed on the first window displayed in full screen, or if a third click instruction acting on the second preview image is received when the first window and the second window are arranged side by side, displaying the second window in full screen, superposing the first window on the second window displayed in full screen, displaying a parameter adjusting control, receiving a third adjusting instruction acting on the parameter adjusting control, and updating the second shooting parameter according to the third adjusting instruction;
if the first window is superposed on the second window displayed in full screen and a fourth click instruction acting on the second preview image is received, displaying a parameter adjusting control, receiving a fourth adjusting instruction acting on the parameter adjusting control, and updating the second shooting parameter according to the fourth adjusting instruction.
In one possible implementation, the determining the moon fusion position in the wide-angle image includes: identifying the position of the moon in the wide-angle image, and determining the position of the moon as the moon fusion position;
the fusing the moon in the tele image to the moon fusion position in the wide image to obtain a target image, including: and processing the tele image by adopting an image enhancement algorithm, and fusing the moon in the processed tele image to the moon fusion position to obtain the target image.
In one possible implementation manner, when a second composition manner is adopted during shooting and the second composition manner is a composition manner for determining the moon fusion position according to user operation,
the method further comprises the following steps: displaying a first preview image corresponding to the first camera on a screen, and acquiring user operation acting on the first preview image;
the determining the moon fusion position in the wide-angle image comprises: and determining the moon fusion position in the wide-angle image according to the user operation.
In one possible implementation, the determining the moon fusion position in the wide-angle image according to the user operation includes:
when the user operation is a drawing operation, acquiring a drawing position of the drawing operation, and determining a position corresponding to the drawing position in the wide-angle image as the moon fusion position; alternatively, the first and second electrodes may be,
when the user operation is a selection operation, selecting a candidate position from at least one candidate position according to the selection operation, and determining a position corresponding to the selected candidate position in the wide-angle image as the moon fusion position.
In one possible implementation, the first camera is a wide-angle camera, and/or the second camera is a tele-lens camera.
In one aspect, a moon photographing apparatus is provided for use in a photographing device including a first camera and a second camera, the apparatus including:
the generating module is used for controlling the first camera to shoot a wide-angle image by utilizing a first shooting parameter when the shooting device is in a moon shooting mode;
the generation module is further used for controlling the second camera to shoot a tele image by using a second shooting parameter, wherein the tele image comprises a moon;
a determination module for determining a moon fusion position in the wide-angle image;
and the fusion module is used for fusing the moon in the tele image to the moon fusion position in the wide image to obtain a target image.
In one aspect, a computer-readable storage medium is provided having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by a processor to implement the method of moon shooting as described above.
In one aspect, a shooting device is provided, which includes a first camera, a second camera, a processor, and a memory, where at least one instruction is stored in the memory, and the instruction is loaded and executed by the processor to implement the moon shooting method as described above.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
when the shooting equipment is in a moon shooting mode, the first camera can be controlled to shoot the wide-angle image by utilizing the first shooting parameters, the second camera is controlled to shoot the tele image by utilizing the second shooting parameters, and the moon fusion position can be determined in the wide-angle image and then the moon in the tele image is fused to the moon fusion position in the wide-angle image, so that the target image can be obtained. Therefore, a large moon can be shot through the second camera, and other scenes can also be shot through the first camera, so that the shooting experience of a user can be improved.
When a first composition mode is adopted, determining the position of the moon in the wide-angle image as a moon fusion position; when the second composition mode is adopted, the moon fusion position is determined according to user operation, so that the moon fusion position can be determined according to different modes, and the shooting experience of a user is improved. In the second composition mode, the moon may not be included in the wide-angle image, and thus a fictive object image can be obtained.
Because the first preview image is displayed in the first window, the second preview image is displayed in the second window, and when the first window is smaller than the second window, the first window is superposed on the second window displayed in a full screen mode, or when the second window is smaller than the first window, the second window is superposed on the first window displayed in a full screen mode, or the first window and the second window are arranged side by side, the first preview image and the second preview image can have multiple display forms, and shooting experience of a user is improved.
Through annotating the visual angle scope in first window, like this, the user as long as guarantee that the formation of image position of moon is in the visual angle scope, can guarantee when first camera is shot, the moon can be shot to the second camera, has improved the success rate of shooting.
When the first shooting parameter is generated, the first window can be displayed in a full screen mode, then the parameter adjusting control is displayed, a user can conveniently control the parameter adjusting control, and the accuracy of parameter adjustment is improved. When the second shooting parameter is generated, the second window can be displayed in a full screen mode, and then the parameter adjusting control is displayed, so that a user can conveniently control the parameter adjusting control, and the accuracy of parameter adjustment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a method for moon photography according to an embodiment of the present application;
fig. 2 is a flowchart of a method for moon photography according to another embodiment of the present application;
FIG. 3 is a schematic view of a wide-angle image provided by another embodiment of the present application;
FIG. 4 is a schematic illustration of a tele image provided by another embodiment of the present application;
FIG. 5 is a schematic illustration of a target image provided by another embodiment of the present application;
fig. 6 is a schematic flowchart of a method for moon photography according to another embodiment of the present application;
FIG. 7 is a schematic view of a wide-angle image provided by another embodiment of the present application;
fig. 8 is a block diagram illustrating a moon photography apparatus according to still another embodiment of the present application;
fig. 9 is a block diagram of a moon photography device according to still another embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail with reference to the accompanying drawings.
The shooting equipment in this application contains first camera and second camera. In one embodiment, the shooting angle of view of the first camera is greater than that of the second camera, the focal length of the first camera is less than that of the second camera, and the shooting angle of view of the first camera is wider than that of the second camera. In other embodiments, the shooting parameters of the first camera and the second camera may be set according to actual settings.
In one embodiment, the first camera may be a wide-angle camera and/or the second camera may be a tele-camera. Wherein, wide angle camera is that the equivalent focal length is less than 50 mm's camera, and the long focus camera is that the equivalent focal length is greater than 50 mm's camera. Taking a 35mm camera as an example, a camera with an equivalent focal length smaller than 35mm or 40mm is a wide-angle camera, and a camera with an equivalent focal length larger than 80mm or 100mm or 135mm or 200mm is a telephoto camera.
In a moon shooting scene, a tele image can be shot by using the second camera, wherein the moon in the tele image is larger; shooting a wide-angle image by using a first camera, wherein the wide-angle image only contains a scenery but not contains a moon, or simultaneously contains a small moon and other scenery; and then fusing the larger moon in the tele image to the moon fusion position in the medium wide image to obtain the target image.
The flow of the present application is illustrated below by three examples. The first embodiment describes a technical scheme that a shooting device independently determines shooting parameters to shoot a target image, the second embodiment describes a technical scheme that the shooting device shoots the target image by adopting a first composition mode, and the third embodiment describes a technical scheme that the shooting device shoots the target image by adopting a second composition mode.
Referring to fig. 1, a method flowchart of a moon shooting method provided in an embodiment of the present application is shown, where the moon shooting method can be applied to a shooting device, and the shooting device at least includes a first camera and a second camera, where the first camera may be a main camera, and the second camera may also be a periscopic camera. The moon shooting method may include:
and step 101, when the shooting device is in a moon shooting mode, controlling a first camera to shoot a wide-angle image by using a first shooting parameter.
In this embodiment, the visible angle of the wide-angle image is greater than a preset value, and a camera capable of shooting a camera with a visible angle greater than a preset value may be referred to as a first camera. Wherein the preset value can be set according to actual.
The moon shooting mode refers to a shooting mode for shooting the moon by using the first camera and the second camera. The shooting device may enter the moon shooting mode by default after the camera program is opened, or may be switched to the moon shooting mode from another shooting mode, which is not limited in this embodiment.
The shooting device can independently generate first shooting parameters and then shoot a wide-angle image according to the first shooting parameters, wherein the wide-angle image may or may not contain the moon. The first shooting parameter may include an Optical Zoom (Optical Zoom) multiple, an exposure parameter, an auto Focus (Automatic Focus) lock, and the like, which is not limited in this embodiment.
And 102, controlling a second camera to shoot a tele image by using the second shooting parameter, wherein the tele image comprises the moon.
In this embodiment, the visible angle of the telephoto image is smaller than a predetermined value, and a camera capable of capturing images with a visible angle smaller than a predetermined value may be referred to as a second camera. Wherein the preset value can be set according to the actual situation.
The photographing apparatus may separately generate the second photographing parameters and then photograph a tele image including the moon according to the second photographing parameters. The second shooting parameter may include an optical zoom factor, an exposure parameter, an autofocus lock, and the like, which is not limited in this embodiment.
Since the shooting device can independently generate the second shooting parameters without depending on the first shooting parameters, the generated second shooting parameters can be suitable for the current moon shooting scene, and the optimal long-focus image can be shot.
And 103, determining a moon fusion position in the wide-angle image.
The moon fusion position refers to a position of a fused moon in the wide-angle image.
And 104, fusing the moon in the tele image to the moon fusion position in the wide image to obtain a target image.
The shooting visual angle of the second camera is narrow, so that the moon in the tele image is large, and the details of the moon can be reflected; the shooting visual angle of the first camera is wide, so that other scenes can be contained in the wide-angle image, after the moon in the tele image is fused at the moon fusion position in the wide-angle image, the obtained target image can contain the large moon and other scenes, and the shooting experience of a user is improved.
In this embodiment, an image with a visual angle larger than a preset value and an image with a visual angle smaller than a preset value are obtained by shooting, and a target image can be obtained by fusion.
To sum up, according to the moon shooting method provided by the embodiment of the application, when the shooting device is in the moon shooting mode, the first shooting parameter can be used to control the first camera to shoot the wide-angle image, and then the second shooting parameter is used to control the second camera to shoot the tele image. Therefore, the second camera can shoot a large moon, and other scenes can be shot through the first camera, so that the shooting experience of a user can be improved.
Please refer to fig. 2, which shows a flowchart of a method of a moon shooting method according to another embodiment of the present application, where the moon shooting method can be applied to a shooting device, and the shooting device at least includes a first camera and a second camera, where the first camera may be a main camera, and the second camera may also be a periscopic camera. The moon shooting method may include:
step 201, when the shooting device is in a moon shooting mode and a first composition mode is adopted during shooting, a first preview image corresponding to a first camera and a second preview image corresponding to a second camera are respectively displayed on a screen.
The moon shooting mode refers to a shooting mode for shooting the moon by using the first camera and the second camera. The shooting device may enter the moon shooting mode by default after the camera program is turned on, or may be switched to the moon shooting mode from another shooting mode, which is not limited in this embodiment.
If the other shooting mode is switched to the moon shooting mode, the shooting device can receive a moon shooting instruction, and the shooting device is set to be in the moon shooting mode according to the moon shooting instruction. The moon shooting instruction may be generated after the user operates the shooting device, and the specific operation manner is not limited in this embodiment.
The photographing apparatus may generate the target image in a plurality of composition manners, and the first composition manner is exemplified in the present embodiment. When the shooting device is in the moon shooting mode, shooting can be performed in a first composition mode by default, a selection control of the first composition mode can also be provided for a user to select, and when the user clicks the selection control, shooting is performed in the first composition mode. The first composition mode is a composition mode for determining the moon fusion position according to the moon in the wide-angle image, namely, the shooting device can identify the moon fusion position from the wide-angle image by itself without user participation.
In this embodiment, the shooting device may respectively display a first preview image corresponding to the first camera and a second preview image corresponding to the second camera on the screen. Specifically, the shooting device may display a first preview image corresponding to the first camera in a first window on the screen, and display a second preview image corresponding to the second camera in a second window on the screen. There are many display modes of the first window and the second window, and the present embodiment takes three of them as an example for description.
In a first display mode, when the first window is smaller than the second window, the first window is superposed on the second window displayed in full screen. The first window may be superimposed on any position on the second window, for example, an upper left corner position, an upper right corner position, a lower left corner position, a lower right corner position, a center position, and the like.
In a second display mode, when the second window is smaller than the first window, the second window is superimposed on the first window displayed in full screen. The second window may be superimposed on any position on the first window, for example, the upper left corner, the upper right corner, the lower left corner, the lower right corner, the center position, and the like.
In a third display mode, the first window and the second window are arranged side by side. The first windows and the second windows may be arranged in the same row or the same column, which is not limited in this embodiment.
Step 202, generating a first shooting parameter of the first camera according to the first preview image.
The photographing apparatus may generate the first photographing parameter alone when in the moon photographing mode, or may recognize a screen of the first preview image to generate the first photographing parameter.
After generating the first photographing parameter, the photographing apparatus may continue to perform step 203; or after the first shooting parameter is generated, the shooting device may further receive an adjustment instruction triggered by a user, and update the first shooting parameter according to the adjustment instruction. Specifically, generating a first shooting parameter of the first camera according to the first preview image may include: generating a first shooting parameter of a first camera; if a first click instruction acting on a first preview image is received when a first window is superposed on a second window displayed in full screen, or if the first click instruction acting on the first preview image is received when the first window and the second window are arranged side by side, displaying the first window in full screen, superposing the second window on the first window displayed in full screen, displaying a parameter adjusting control, receiving a first adjusting instruction acting on the parameter adjusting control, and updating a first shooting parameter according to the first adjusting instruction; and if the second window receives a second click instruction acting on the first preview image when being superposed on the first window displayed in full screen, displaying a parameter adjusting control, receiving a second adjusting instruction acting on the parameter adjusting control, and updating the first shooting parameter according to the second adjusting instruction.
Namely, when the first window is not displayed in a full screen mode, the first window can be displayed in the full screen mode first, and then the parameter adjusting control is displayed, so that a user can conveniently control the parameter adjusting control, and the accuracy of parameter adjustment is improved.
And 203, generating a second shooting parameter of the second camera according to the second preview image.
The photographing apparatus may generate the second photographing parameter alone when in the moon photographing mode, or may generate the second photographing parameter by recognizing a screen of the second preview image.
After generating the second photographing parameters, the photographing apparatus may continue to perform step 204; or after the second shooting parameter is generated, the shooting device may further receive an adjustment instruction triggered by the user, and update the second shooting parameter according to the adjustment instruction. Specifically, generating the second shooting parameter of the second camera according to the second preview image may include: generating a second shooting parameter of a second camera; if a third click instruction acting on the second preview image is received when the second window is superposed on the first window displayed in full screen, or if the third click instruction acting on the second preview image is received when the first window and the second window are arranged side by side, displaying the second window in full screen, superposing the first window on the second window displayed in full screen, displaying a parameter adjusting control, receiving a third adjusting instruction acting on the parameter adjusting control, and updating the second shooting parameter according to the third adjusting instruction; and if a fourth click instruction acting on the second preview image is received when the first window is superposed on the second window displayed in full screen, displaying a parameter adjusting control, receiving a fourth adjusting instruction acting on the parameter adjusting control, and updating the second shooting parameter according to the fourth adjusting instruction.
Namely, when the second window is not displayed in a full screen mode, the second window can be displayed in the full screen mode first, and then the parameter adjusting control is displayed, so that a user can conveniently control the parameter adjusting control, and the accuracy of parameter adjustment is improved.
After determining the first photographing parameter and the second photographing parameter, the user may select a photographing scene according to the first preview image and the second preview image. That is, the angle of the photographing apparatus is adjusted according to the position of the moon in the first preview image to ensure that the moon enters the photographing angle of view of the second camera.
In this embodiment, the shooting device may further calculate a viewing angle range of the second camera with respect to the first camera according to the viewing angle and the positions of the first camera and the second camera, and annotate the viewing angle range in the first window, where the viewing angle range refers to an area where the second camera can shoot the moon when the first camera shoots. Wherein, the shooting equipment can draw the prompt dialog box according to the visual angle scope to show this prompt box in first window, like this, when the user is adjusting the angle of shooting equipment, as long as guarantee that the position of moon is located the prompt box, just can guarantee when first camera is shot, the moon can be shot to the second camera, has improved the success rate of shooting.
And step 204, controlling the first camera to shoot the wide-angle image by using the first shooting parameter.
The user can click the shooting control, and the first camera shoots according to the first shooting parameter to obtain a wide-angle image, wherein the wide-angle image includes a moon, please refer to the wide-angle image shown in fig. 3.
And step 205, controlling the second camera to shoot a tele image by using the second shooting parameter, wherein the tele image comprises the moon.
The second camera performs shooting according to the second shooting parameters to obtain a tele image, please refer to the tele image shown in fig. 4.
And step 206, identifying the position of the moon in the wide-angle image, and determining the position of the moon as a moon fusion position.
The shooting device can identify the moon from the wide-angle image according to a preset moon identification algorithm, and then the position of the moon in the wide-angle image is determined as a moon fusion position. The moon identification algorithm may be implemented by various algorithms, and the embodiment is not limited.
And step 207, processing the tele image by adopting an image enhancement algorithm, and fusing the moon in the processed tele image to a moon fusion position to obtain a target image.
The photographing apparatus may also process the tele image using an image enhancement algorithm to enhance the details of the moon.
The photographing apparatus may fuse the moon in the tele image to a moon fusion position, and determine the fused wide image as a target image to be output, please refer to the target image shown in fig. 5.
Optionally, the shooting device may further output the image-enhanced tele image.
To sum up, when the shooting device is in the moon shooting mode, the moon shooting method provided in the embodiment of the present application may first utilize the first shooting parameter to control the first camera to shoot the wide-angle image, and then utilize the second shooting parameter to control the second camera to shoot the tele image. Therefore, a large moon can be shot through the second camera, and other scenes can also be shot through the first camera, so that the shooting experience of a user can be improved.
Because the first preview image is displayed in the first window, the second preview image is displayed in the second window, and when the first window is smaller than the second window, the first window is superposed on the second window displayed in a full screen mode, or when the second window is smaller than the first window, the second window is superposed on the first window displayed in a full screen mode, or the first window and the second window are arranged side by side, the first preview image and the second preview image can have multiple display forms, and shooting experience of a user is improved.
Through annotating the visual angle scope in first window, like this, the user as long as guarantee that the formation of image position of moon is in the visual angle scope, can guarantee when first camera is shot, the moon can be shot to the second camera, has improved the success rate of shooting.
When the first shooting parameter is generated, the first window can be displayed in a full screen mode, and then the parameter adjusting control is displayed, so that a user can conveniently control the parameter adjusting control, and the accuracy of parameter adjustment is improved.
Please refer to fig. 6, which shows a flowchart of a method of a moon shooting method according to another embodiment of the present application, where the moon shooting method can be applied to a shooting device, and the shooting device at least includes a first camera and a second camera, where the first camera may be a main camera, and the second camera may also be a periscopic camera. The moon shooting method may include:
step 601, when the shooting device is in a moon shooting mode and a second composition mode is adopted during shooting, displaying a first preview image corresponding to the first camera on the screen.
The moon shooting mode is a shooting mode in which the moon is shot by the first camera and the second camera. The shooting device may enter the moon shooting mode by default after the camera program is turned on, or may be switched to the moon shooting mode from another shooting mode, which is not limited in this embodiment.
If the other shooting mode is switched to the moon shooting mode, the shooting device can receive a moon shooting instruction, and the shooting device is set to be in the moon shooting mode according to the moon shooting instruction. The moon shooting instruction may be generated after the user operates the shooting device, and the embodiment does not limit a specific operation manner.
The photographing apparatus may generate the target image in a plurality of composition manners, and the second composition manner is exemplified in the present embodiment. When the shooting device is in the moon shooting mode, the shooting device can adopt a second composition mode by default, a selection control of the second composition mode can also be provided for a user to select, and when the user clicks the selection control, the shooting device is determined to adopt the second composition mode. The second composition mode is a composition mode for determining the moon fusion position according to the user operation, that is, the shooting device cannot identify the moon fusion position by itself, and the moon fusion position needs to be identified according to the user operation.
In this embodiment, the shooting device may display a first preview image corresponding to the first camera on the screen. The photographing apparatus may generate the first photographing parameter alone when in the moon photographing mode, or may generate the first photographing parameter by recognizing a screen of the first preview image.
After generating the first photographing parameters, the photographing apparatus may proceed to step 602; or after the first shooting parameter is generated, the shooting device may further receive an adjustment instruction triggered by a user, and update the first shooting parameter according to the adjustment instruction. Specifically, the shooting device may generate a first shooting parameter of the first camera; and if a fifth click instruction acting on the first preview image is received, displaying the parameter adjusting control, receiving a fifth adjusting instruction acting on the parameter adjusting control, and updating the first shooting parameter according to the fifth adjusting instruction.
Step 602, a user operation acting on the first preview image is acquired.
The user operation is used to determine the moon fusion location.
There are many kinds of user operations, and two of them are described as an example in this embodiment.
In a first implementation, the user operation is a drawing operation, and at this time, the photographing apparatus may receive a drawing operation applied to the first preview image. That is, the user can frame one moon fusion location in the screen.
In a second implementation manner, the user operation is a selection operation, in this case, the shooting device displays at least one preset candidate position on the first preview image, and receives a selection operation of the user, where the selection operation is used for selecting the moon fusion position from the at least one candidate position. That is, the user may select the moon fusion position from a plurality of preset candidate positions.
And step 603, controlling the first camera to shoot the wide-angle image by using the first shooting parameter.
The user can click the shooting control, and the first camera shoots according to the first shooting parameter to obtain a wide-angle image, please refer to the wide-angle image shown in fig. 7, which does not include the moon.
After the wide-angle image is shot, the shooting device may display a second preview image corresponding to the second camera on the screen.
The photographing apparatus may generate the second photographing parameter alone when in the moon photographing mode, or may generate the second photographing parameter by recognizing a screen of the second preview image.
After generating the second photographing parameters, the photographing apparatus may continue to perform step 604; or after the second shooting parameter is generated, the shooting device may further receive an adjustment instruction triggered by the user, and update the second shooting parameter according to the adjustment instruction. Specifically, the shooting device may generate a second shooting parameter of the second camera; and if a sixth click instruction acting on the second preview image is received, displaying the parameter adjusting control, receiving a sixth adjusting instruction acting on the parameter adjusting control, and updating the second shooting parameter according to the sixth adjusting instruction.
And step 604, controlling a second camera to shoot a tele image by using the second shooting parameter, wherein the tele image comprises the moon.
The user can click the shooting control, and the second camera shoots according to the second shooting parameter to obtain the tele image, please refer to the tele image shown in fig. 4.
Step 605, determining a moon fusion position in the wide-angle image according to the user operation.
Corresponding to the first implementation manner described above, when the user operation is a drawing operation, a drawing position of the drawing operation is acquired, and a position in the wide-angle image corresponding to the drawing position is determined as a moon fusion position.
Corresponding to the second implementation described above, when the user operation is a selection operation, one candidate position is selected from among the at least one candidate position according to the selection operation, and a position in the wide-angle image corresponding to the selected candidate position is determined as the moon fusion position.
And 606, fusing the moon in the tele image to the moon fusion position in the wide image to obtain a target image.
The photographing apparatus may also process the tele image using an image enhancement algorithm to enhance the details of the moon.
The photographing apparatus may fuse the moon in the tele image to the moon fusion position, and determine the fused wide image as the target image to be output, please refer to the target image shown in fig. 5.
Optionally, the shooting device may further output the image-enhanced tele image.
To sum up, according to the moon shooting method provided by the embodiment of the application, when the shooting device is in the moon shooting mode, the first shooting parameter can be used to control the first camera to shoot the wide-angle image, and then the second shooting parameter is used to control the second camera to shoot the tele image. Therefore, a large moon can be shot through the second camera, and other scenes can also be shot through the first camera, so that the shooting experience of a user can be improved.
In the second composition mode, the moon may not be included in the wide-angle image, so that an imaginary object image can be obtained.
When the second shooting parameter is generated, the second window can be displayed in a full screen mode, and then the parameter adjusting control is displayed, so that a user can conveniently control the parameter adjusting control, and the accuracy of parameter adjustment is improved.
Referring to fig. 8, a block diagram of a moon photography device according to an embodiment of the present application is shown, where the moon photography device may be applied to a photography apparatus, and the photography apparatus includes at least a first camera and a second camera, where the first camera may be a main camera, and the second camera may also be a periscopic second camera. The moon photographing apparatus may include:
a photographing module 810 for controlling the first camera to photograph the wide-angle image using the first photographing parameter when the photographing apparatus is in the moon photographing mode;
the shooting module 810 is further configured to control the second camera to shoot a tele image by using the second shooting parameter, where the tele image includes a moon;
a determining module 820 for determining a moon fusion location in the wide-angle image;
and a fusion module 830 configured to fuse the moon in the tele image to the moon fusion position in the wide image to obtain a target image.
Referring to fig. 9, in an alternative embodiment, when a first composition mode is adopted during shooting, and the first composition mode is a composition mode for determining the moon fusion position according to the moon in the wide-angle image, the apparatus further includes:
the display module 840 is used for respectively displaying a first preview image corresponding to the first camera and a second preview image corresponding to the second camera on the screen;
the generating module 850 is further configured to generate a first shooting parameter of the first camera according to the first preview image, and generate a second shooting parameter of the second camera according to the second preview image.
In an alternative embodiment, the display module 840 is further configured to:
displaying a first preview image corresponding to a first camera in a first window on a screen;
displaying a second preview image corresponding to a second camera in a second window on the screen;
when the first window is smaller than the second window, the first window is superposed on the second window displayed in a full screen mode, or when the second window is smaller than the first window, the second window is superposed on the first window displayed in a full screen mode, or the first window and the second window are arranged side by side.
In an optional embodiment, the apparatus further comprises:
a calculating module 860, configured to calculate a viewing angle range of the second camera with respect to the first camera according to the viewing angle and the positions of the first camera and the second camera;
the annotation module 870 is configured to annotate a viewing angle range within the first window, where the viewing angle range indicates an area where the moon can be captured by the second camera when the first camera captures the image.
In an alternative embodiment, the generating module 850 is further configured to:
generating a first shooting parameter of a first camera;
if a first click instruction acting on a first preview image is received when a first window is superposed on a second window displayed in a full screen mode, or if the first click instruction acting on the first preview image is received when the first window and the second window are arranged side by side, displaying the first window in the full screen mode, superposing the second window on the first window displayed in the full screen mode, displaying a parameter adjusting control, receiving a first adjusting instruction acting on the parameter adjusting control, and updating a first shooting parameter according to the first adjusting instruction;
and if the second window receives a second click instruction acting on the first preview image when being superposed on the first window displayed in full screen, displaying a parameter adjusting control, receiving a second adjusting instruction acting on the parameter adjusting control, and updating the first shooting parameter according to the second adjusting instruction.
In an optional embodiment, the generating module 850 is further configured to:
generating a second shooting parameter of a second camera;
if a third click instruction acting on the second preview image is received when the second window is superposed on the first window displayed in full screen, or if the third click instruction acting on the second preview image is received when the first window and the second window are arranged side by side, displaying the second window in full screen, superposing the first window on the second window displayed in full screen, displaying a parameter adjusting control, receiving a third adjusting instruction acting on the parameter adjusting control, and updating the second shooting parameter according to the third adjusting instruction;
and if the first window receives a fourth click instruction acting on the second preview image when being superposed on the second window displayed in full screen, displaying the parameter adjusting control, receiving a fourth adjusting instruction acting on the parameter adjusting control, and updating the second shooting parameter according to the fourth adjusting instruction.
In an optional embodiment, the determining module 820 is further configured to identify a location of the moon in the wide-angle image, and determine the location of the moon as a moon fusion location;
the fusion module 830 is further configured to process the tele image by using an image enhancement algorithm, and fuse the moon in the processed tele image to the moon fusion position to obtain the target image.
In an optional embodiment, when a second composition mode is adopted during shooting, and the second composition mode is a composition mode for determining the moon fusion position according to user operation, the apparatus further includes:
an obtaining module 880, configured to display a first preview image corresponding to the first camera on the screen, and obtain a user operation acting on the first preview image;
the determining module 820 is further configured to determine a moon fusion position in the wide-angle image according to a user operation.
In an optional embodiment, the determining module 820 is further configured to:
when the user operation is a drawing operation, acquiring a drawing position of the drawing operation, and determining a position corresponding to the drawing position in the wide-angle image as a moon fusion position; alternatively, the first and second liquid crystal display panels may be,
when the user operation is a selection operation, one candidate position is selected from the at least one candidate position according to the selection operation, and a position in the wide-angle image corresponding to the selected candidate position is determined as a moon fusion position.
In an alternative embodiment, the first camera is a wide-angle camera and/or the second camera is a tele-lens camera.
To sum up, the moon photographing device provided by the embodiment of the application can utilize the first photographing parameter to control the first camera to photograph the wide-angle image and then utilize the second photographing parameter to control the second camera to photograph the tele image when the photographing equipment is in the moon photographing mode. Therefore, the second camera can shoot a large moon, and other scenes can be shot through the first camera, so that the shooting experience of a user can be improved.
When a first composition mode is adopted, determining the position of the moon in the wide-angle image as a moon fusion position; when the second composition mode is adopted, the moon fusion position is determined according to user operation, so that the moon fusion position can be determined according to different modes, and the shooting experience of a user is improved. In the second composition mode, the moon may not be included in the wide-angle image, and thus a fictional target image can be obtained.
Because the first preview image is displayed in the first window, the second preview image is displayed in the second window, and when the first window is smaller than the second window, the first window is superposed on the second window displayed in a full screen mode, or when the second window is smaller than the first window, the second window is superposed on the first window displayed in a full screen mode, or the first window and the second window are arranged side by side, the first preview image and the second preview image can have multiple display forms, and shooting experience of a user is improved.
Through annotating visual angle scope in first window, like this, the user as long as guarantee that the formation of image position of moon is in visual angle scope, can guarantee when first camera is shot, the moon can be shot to the second camera, has improved the success rate of shooting.
When the first shooting parameter is generated, the first window can be displayed in a full screen mode, then the parameter adjusting control is displayed, a user can conveniently control the parameter adjusting control, and the accuracy of parameter adjustment is improved. When the second shooting parameter is generated, the second window can be displayed in a full screen mode, and then the parameter adjusting control is displayed, so that a user can conveniently control the parameter adjusting control, and the accuracy of parameter adjustment is improved.
An embodiment of the present application provides a computer-readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by a processor to implement the method of moon photography as described above.
One embodiment of the present application provides a shooting device, which includes a first camera, a second camera, a processor, and a memory, where the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the moon shooting method as described above.
It should be noted that: in the above-described embodiment, when the moon photographing device performs moon photographing, only the division of the above functional modules is illustrated, and in practical applications, the above functions may be distributed by different functional modules according to needs, that is, the internal structure of the moon photographing device may be divided into different functional modules to complete all or part of the above-described functions. In addition, the moon photographing device provided by the above embodiment and the moon photographing method embodiment belong to the same concept, and the specific implementation process thereof is described in detail in the method embodiment, and is not described again here.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description should not be taken as limiting the embodiments of the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the embodiments of the present application should be included in the scope of the embodiments of the present application.

Claims (13)

1. A moon photographing method for use in a photographing apparatus including a first camera and a second camera, the method comprising:
when the shooting equipment is in a moon shooting mode, controlling the first camera to shoot a wide-angle image by using a first shooting parameter;
controlling the second camera to shoot a tele image by using a second shooting parameter, wherein the tele image comprises a moon;
determining a moon fusion position in the wide-angle image;
and fusing the moon in the tele image to the moon fusion position in the wide image to obtain a target image.
2. The method according to claim 1, wherein when a first composition mode is adopted at the time of photographing and the first composition mode is a composition mode in which the moon fusion position is determined from the moon in the wide-angle image, the method further comprises:
respectively displaying a first preview image corresponding to the first camera and a second preview image corresponding to the second camera on a screen;
and generating a first shooting parameter of the first camera according to the first preview image, and generating a second shooting parameter of the second camera according to the second preview image.
3. The method according to claim 2, wherein the displaying a first preview image corresponding to the first camera and a second preview image corresponding to the second camera on the screen respectively comprises:
displaying a first preview image corresponding to the first camera in a first window on the screen;
displaying a second preview image corresponding to the second camera in a second window on the screen;
when the first window is smaller than the second window, the first window is superposed on the second window displayed in a full screen mode, or when the second window is smaller than the first window, the second window is superposed on the first window displayed in a full screen mode, or the first window and the second window are arranged side by side.
4. The method of claim 3, further comprising:
calculating the visual angle range of the second camera relative to the first camera according to the visual angle and the positions of the first camera and the second camera;
and annotating the visual angle range in the first window, wherein the visual angle range refers to the area of the moon which can be shot by the second camera when the first camera shoots.
5. The method of claim 3, wherein the generating the first shooting parameters of the first camera from the first preview image comprises:
generating a first shooting parameter of the first camera;
if a first click instruction acting on the first preview image is received when the first window is superposed on the second window displayed in full screen, or if the first click instruction acting on the first preview image is received when the first window and the second window are arranged side by side, displaying the first window in full screen, superposing the second window on the first window displayed in full screen, displaying a parameter adjusting control, receiving a first adjusting instruction acting on the parameter adjusting control, and updating the first shooting parameter according to the first adjusting instruction;
if a second click instruction acting on the first preview image is received when the second window is overlaid on the first window displayed in a full screen mode, a parameter adjusting control is displayed, a second adjusting instruction acting on the parameter adjusting control is received, and the first shooting parameter is updated according to the second adjusting instruction.
6. The method according to claim 3, wherein the generating of the second shooting parameters of the second camera from the second preview image comprises:
generating a second shooting parameter of the second camera;
if a third click instruction acting on the second preview image is received when the second window is superposed on the first window displayed in full screen, or if a third click instruction acting on the second preview image is received when the first window and the second window are arranged side by side, displaying the second window in full screen, superposing the first window on the second window displayed in full screen, displaying a parameter adjusting control, receiving a third adjusting instruction acting on the parameter adjusting control, and updating the second shooting parameter according to the third adjusting instruction;
if a fourth click instruction acting on the second preview image is received when the first window is overlaid on the second window displayed in a full screen mode, a parameter adjusting control is displayed, a fourth adjusting instruction acting on the parameter adjusting control is received, and the second shooting parameter is updated according to the fourth adjusting instruction.
7. The method of claim 2,
the determining a moon fusion position in the wide-angle image comprises: identifying the position of the moon in the wide-angle image, and determining the position of the moon as the moon fusion position;
the fusing the moon in the tele image to the moon fusion position in the wide image to obtain a target image, including: and processing the tele image by adopting an image enhancement algorithm, and fusing the moon in the processed tele image to the moon fusion position to obtain the target image.
8. The method according to claim 1, wherein when a second composition mode is adopted at the time of photographing and the second composition mode is a composition mode in which the moon fusion position is determined according to a user operation,
the method further comprises the following steps: displaying a first preview image corresponding to the first camera on a screen, and acquiring user operation acting on the first preview image;
the determining the moon fusion position in the wide-angle image comprises: and determining the moon fusion position in the wide-angle image according to the user operation.
9. The method of claim 8, wherein determining the moon fusion location in the wide-angle image according to the user manipulation comprises:
when the user operation is a drawing operation, acquiring a drawing position of the drawing operation, and determining a position corresponding to the drawing position in the wide-angle image as the moon fusion position; alternatively, the first and second electrodes may be,
when the user operation is a selection operation, selecting one candidate position from at least one candidate position according to the selection operation, and determining a position in the wide-angle image corresponding to the selected candidate position as the moon fusion position.
10. The method of any of claims 1 to 9, wherein the first camera is a wide-angle camera and/or the second camera is a tele camera.
11. A moon photographing apparatus for use in a photographing device including a first camera and a second camera, the apparatus comprising:
the generation module is used for controlling the first camera to shoot a wide-angle image by utilizing a first shooting parameter when the shooting device is in a moon shooting mode;
the generation module is further used for controlling the second camera to shoot a tele image by using a second shooting parameter, wherein the tele image comprises a moon;
a determining module for determining a moon fusion position in the wide-angle image;
and the fusion module is used for fusing the moon in the tele image to the moon fusion position in the wide image to obtain a target image.
12. A computer readable storage medium, characterized in that it has at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which are loaded and executed by a processor to implement a method of moon photographing according to any one of claims 1 to 10.
13. A photographing apparatus comprising a first camera, a second camera, a processor, and a memory having at least one instruction stored therein, the instruction being loaded and executed by the processor to implement the method of moon photographing according to any one of claims 1 to 10.
CN202110541013.XA 2021-05-18 2021-05-18 Moon shooting method and device, storage medium and shooting equipment Pending CN115379075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110541013.XA CN115379075A (en) 2021-05-18 2021-05-18 Moon shooting method and device, storage medium and shooting equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110541013.XA CN115379075A (en) 2021-05-18 2021-05-18 Moon shooting method and device, storage medium and shooting equipment

Publications (1)

Publication Number Publication Date
CN115379075A true CN115379075A (en) 2022-11-22

Family

ID=84058891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110541013.XA Pending CN115379075A (en) 2021-05-18 2021-05-18 Moon shooting method and device, storage medium and shooting equipment

Country Status (1)

Country Link
CN (1) CN115379075A (en)

Similar Documents

Publication Publication Date Title
CN107950018B (en) Image generation method and system, and computer readable medium
EP2840445B1 (en) Photograph shooting method and electronic device
JPH09181966A (en) Image processing method and device
CN107800951B (en) Electronic device and lens switching method thereof
CN112887617B (en) Shooting method and device and electronic equipment
JP4241460B2 (en) Electronic imaging device
CN112637515B (en) Shooting method and device and electronic equipment
CN112738397A (en) Shooting method, shooting device, electronic equipment and readable storage medium
US9177395B2 (en) Display device and display method for providing image display in first color mode and second color mode
CN112019734B (en) Image acquisition method and device, electronic equipment and computer readable storage medium
JP6389342B2 (en) Imaging apparatus and control method thereof
WO2018196854A1 (en) Photographing method, photographing apparatus and mobile terminal
CN112839166A (en) Shooting method and device and electronic equipment
CN116188343A (en) Image fusion method and device, electronic equipment, chip and medium
CN113473018B (en) Video shooting method and device, shooting terminal and storage medium
CN115134532A (en) Image processing method, image processing device, storage medium and electronic equipment
CN115379075A (en) Moon shooting method and device, storage medium and shooting equipment
CN114339022B (en) Camera shooting parameter determining method and neural network model training method
CN111654623B (en) Photographing method and device and electronic equipment
CN114430456A (en) Image capturing method, image capturing apparatus, and storage medium
CN112653841A (en) Shooting method and device and electronic equipment
CN114244999A (en) Automatic focusing method and device, camera equipment and storage medium
CN113873160B (en) Image processing method, device, electronic equipment and computer storage medium
CN113852752B (en) Photo taking method, photo taking device and storage medium
CN112911148B (en) Image processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination