CN114070998B - Moon shooting method and device, electronic equipment and medium - Google Patents

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

Info

Publication number
CN114070998B
CN114070998B CN202010753724.9A CN202010753724A CN114070998B CN 114070998 B CN114070998 B CN 114070998B CN 202010753724 A CN202010753724 A CN 202010753724A CN 114070998 B CN114070998 B CN 114070998B
Authority
CN
China
Prior art keywords
image
preset
moon
input information
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.)
Active
Application number
CN202010753724.9A
Other languages
Chinese (zh)
Other versions
CN114070998A (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010753724.9A priority Critical patent/CN114070998B/en
Publication of CN114070998A publication Critical patent/CN114070998A/en
Application granted granted Critical
Publication of CN114070998B publication Critical patent/CN114070998B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The disclosure relates to a method, a device, an electronic device and a medium for shooting moon, wherein the method comprises the following steps: when a shooting picture comprises a first image, adjusting the focal length of a camera according to a preset zooming rule, displaying the first image in a preset map area of a shooting interface, and generating a preview image; wherein the first image is a moon image; and generating a target image according to the preview image. By using the method disclosed by the application, the moon in the shooting picture can be automatically identified, the moon image is automatically regulated to be displayed in the preset picture area, and the shooting effect of the moon is improved.

Description

Moon shooting method and device, electronic equipment and medium
Technical Field
The disclosure relates to the field of terminals, and in particular relates to a method, a device, electronic equipment and a medium for shooting moon.
Background
Moon is a common shooting subject, and with the progress of technology, users have increasingly high requirements on the shooting effect of moon. In the related art, in order to obtain a better moon shooting effect, a professional shooting tool or mode is often required, and the operation is complex for an ordinary user.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method, an apparatus, an electronic device, and a medium for photographing moon.
According to a first aspect of an embodiment of the present disclosure, there is provided a method for capturing moon, applied to an electronic device, including:
when a shooting picture comprises a first image, adjusting the focal length of a camera according to a preset zooming rule, displaying the first image in a preset map area of a shooting interface, and generating a preview image; wherein the first image is a moon image;
and generating a target image according to the preview image.
Optionally, the method further comprises:
receiving input information of a user;
displaying a superimposed image of a preset mode on the photographing interface in response to the input information; wherein the preset mode comprises a dynamic mode or a static mode, and the superimposed image comprises at least one of a silhouette image, a watermark image and a weather effect image.
Optionally, the input information includes first input information and second input information, and the superimposed image includes a silhouette image;
the step of displaying a superimposed image of a preset mode on the shooting interface in response to the input information includes:
generating a preview floating window of at least one silhouette image on the shooting interface in response to first input information of a user;
and responding to second input information of the user in the preview floating window, and displaying a target silhouette image in at least one silhouette image to the shooting interface in a dynamic form.
Optionally, presenting a target silhouette image in at least one of the silhouette images to the capture interface in a dynamic form, including at least one of:
the display size of the target silhouette image is gradually enlarged from the initial position, laid and displayed on the shooting interface;
gradually reducing the display transparency of the target silhouette image from the first transparency to the second transparency from the initial position to the shooting interface;
the target silhouette image comprises a moving object, and the moving object is moved to a second preset position along a preset track from a first preset position in the target silhouette image on the shooting interface.
Optionally, the method further comprises: and canceling to display the target silhouette image in a dynamic form or a static form on the shooting interface in response to the third input information of the user.
Optionally, the adjusting the focal length of the camera according to a preset zoom rule, displaying the first image in a preset map area of the shooting interface, includes:
according to a preset zooming rule, the size of the first image is adjusted to be matched with the size of a preset composition area;
and adjusting the geometric center of the first image to coincide with the geometric center of the composition area according to the position of the preset composition area.
According to a second aspect of embodiments of the present disclosure, there is provided an apparatus for photographing moon, applied to an electronic device, including:
the adjusting module is used for adjusting the focal length of the camera according to a preset zooming rule when the shooting picture comprises a first image, displaying the first image in a preset picture forming area of a shooting interface and generating a preview image; wherein the first image is a moon image;
and the target image generation module is used for generating a target image according to the preview image.
Optionally, the apparatus further comprises:
the receiving module is used for receiving input information of a user;
the superposition module is used for responding to the input information and displaying superposition images of a preset mode on the shooting interface; wherein the preset mode comprises a dynamic mode or a static mode, and the superimposed image comprises at least one of a silhouette image, a watermark image and a weather effect image.
Optionally, the input information includes first input information and second input information, and the superimposed image includes a silhouette image;
the superposition module comprises:
a preview sub-module, configured to generate a preview floating window of at least one silhouette image on the shooting interface in response to first input information of a user;
and the display sub-module is used for responding to the second input information of the user in the preview floating window and presenting at least one target silhouette image determined in the plurality of silhouette images to the shooting interface in a dynamic form.
Optionally, the display sub-module is specifically configured to perform at least one of the following operations:
the display size of the target silhouette image is gradually enlarged from the initial position, laid and displayed on the shooting interface;
gradually reducing the display transparency of the target silhouette image from the first transparency to the second transparency from the initial position to the shooting interface;
the target silhouette image comprises a moving object, and the moving object is moved to a second preset position along a preset track from a first preset position in the target silhouette image on the shooting interface. Optionally, the apparatus further comprises:
and the cancellation module is used for canceling the display of the target silhouette image in a dynamic form or a static form on the shooting interface in response to the third input information of the user.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of shooting a moon as claimed in any one of the above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the method of photographing a moon as defined in any one of the above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: by using the method disclosed by the application, the moon in the shooting picture can be automatically identified, the display of the moon image in the preset composition area can be automatically regulated, and the shooting effect of the moon can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flow chart of a method shown according to an exemplary embodiment.
FIG. 2 is a flow chart of a method shown according to an exemplary embodiment.
FIG. 3 is a flow chart of a method shown according to an exemplary embodiment.
FIG. 4 is a flowchart illustrating a method according to an exemplary embodiment.
FIG. 5 is a flowchart illustrating a method according to an exemplary embodiment.
FIG. 6 is a schematic diagram of an interface shown according to an exemplary embodiment.
FIG. 7 is a schematic diagram of an interface shown according to an exemplary embodiment.
FIG. 8 is a schematic diagram of an interface shown according to an exemplary embodiment.
FIG. 9 is a schematic diagram of an interface shown according to an exemplary embodiment.
FIG. 10 is a schematic diagram of an interface shown according to an exemplary embodiment.
Fig. 11 is a block diagram of an apparatus according to an example embodiment.
Fig. 12 is a block diagram of an apparatus according to an example embodiment.
Fig. 13 is a block diagram of an apparatus according to an example embodiment.
Fig. 14 is a block diagram of an apparatus according to an example embodiment.
Fig. 15 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
In the process of shooting by using electronic equipment, moon is a common shooting subject, and with the progress of technology, users have higher and higher requirements on the shooting effect of moon. In the related art, in order to obtain a better moon shooting effect, a professional shooting mode is often required, and for an ordinary user, it is difficult to adjust shooting parameters, so that the clear moon image is not obtained.
In order to solve the above technical problems, the present disclosure provides a method for capturing moon, which is applied to an electronic device, and includes: when a shooting picture comprises a first image, adjusting the focal length of a camera according to a preset zooming rule, displaying the first image in a preset map area of the shooting picture, and generating a preview image; wherein the first image is a moon image; and generating a target image according to the preview image. By using the method disclosed by the application, the moon in the shooting picture can be automatically identified, the display of the moon image in the preset composition area can be automatically regulated, and the shooting effect of the moon can be improved.
In an exemplary embodiment, the method of the present embodiment is applied to an electronic device, and the electronic device may be, for example, a portable electronic device such as a mobile phone, a tablet computer, a notebook computer, and a wearable device.
The electronic device generally includes a processor, a memory, and a display screen, to enable operation of the electronic device system or operation of application programs. Wherein the processor performs various functions of the electronic device and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory, and invoking data stored in the memory. For example, the processor may include one or more of a Central Processing Unit (CPU), an image processor (GPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. The memory may be used to store instructions, programs, code sets, or instruction sets. For example, the storage program area of the memory may store instructions for implementing an operating system, instructions for performing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing a control method, and the like.
The electronic device may implement a photographing function through an image processor (GPU), an Image Signal Processor (ISP), a camera assembly, a display screen, a Central Processing Unit (CPU), and the like. The ISP is used for processing data fed back by the camera assembly (the ISP can also be arranged in the camera assembly), a photosensitive element (CCD or CMOS) of the camera assembly converts an optical signal into an electric signal, the electric signal is transmitted to the ISP to be converted into a digital image signal, the ISP outputs the digital image signal to a Digital Signal Processor (DSP) for processing, and the DSP converts the digital image signal into an image signal in a standard RGB format and the like, so that the display of a shooting image on the electronic equipment is finally realized.
Taking an intelligent device with an operating system as an android system as an example, a Linux kernel layer, a system operation library layer, an application framework layer and an application layer are stored in a memory. The Linux kernel layer provides a bottom layer of drive, such as a display drive, an audio drive and the like, for various hardware of the intelligent device. The system runtime layer provides main characteristic support for the Android system through some C/C++ libraries, such as the OpenGL/ES library provides support for 3D drawing. The application framework layer provides various APIs that may be used in building applications, such as building the following: window management, view management, etc. The application layer has at least one application running therein, which may be native to the operating system, such as a camera program.
As shown in fig. 1, the method of the present embodiment includes the following steps:
s110, when a shooting picture comprises a first image, adjusting the focal length of a camera according to a preset zooming rule, displaying the first image in a preset map area of a shooting interface, and generating a preview image; wherein the first image is a moon image;
s120, generating a target image according to the preview image.
When the operation that the user clicks the camera icon on the main interface of the display screen is received, the electronic device starts the camera application, and based on the shooting picture in the viewfinder of the camera, a shooting interface can be formed on the camera program, and the shooting interface of the camera is shown in fig. 6 to 10.
In step S110, whether the shot image includes the first image (i.e. the image of the moon) is identified by using a preset algorithm, for example, an AI algorithm is invoked to identify whether the preset object in the shot image is the moon: and acquiring the characteristics of the preset object in the shooting picture, judging whether the characteristics of the preset object are consistent with the characteristics of the pre-stored moon, and if so, determining that the preset object is the moon. After determining that the shooting picture contains the first image, the moon form (full moon or half moon, etc.) can be identified, namely, the image features of the moon are compared with the pre-stored moon form features. The function or algorithm for moon identification and the algorithm for processing the image may be provided at the application framework layer.
The preset zooming rule comprises focal length adjustment and focusing in the process of shooting the moon so as to shoot and obtain a moon image with proper size and definition. For example, the preset zoom rule may be: when the moon is identified to be contained in the shooting picture, an automatic shooting mode is selected based on the operation information of a user, the electronic equipment automatically invokes a long focus lens in the camera component, and adjusts zoom multiple (such as 30 times and above) in a mixed zooming mode (zooming is realized by using a mode of a lens focal length combining algorithm), and before or after the focal length is adjusted, the moon can be automatically focused. Alternatively, the preset zoom rule may be: when the moon is identified to be contained in the shooting picture, a user manually drags a focal length adjusting area of the shooting interface to control the zoom of the tele lens until the size of the moon image is matched with the size of the preset composition area, and the moon image can be clicked to be manually focused in the shooting process. And shooting a moon image by adopting a preset zooming rule, and displaying the obtained moon image in a preset map area in an adaptive manner.
The preset composition area is an area where the moon image (namely the first image) is displayed; when the first image is adaptively displayed in the preset composition area 1, a preview image is generated.
In one example, as shown in fig. 6 and fig. 7, after the user selects the automatic shooting mode (illustrating the clicking position) according to fig. 6, the electronic device automatically focuses according to fig. 7 and automatically triggers the shutter of the camera to continuously acquire a plurality of first images 2 including the preset composition area 1 and generate a plurality of corresponding preview images, so as to realize rapid capturing of moon images and avoid blurring of images caused by shaking.
In another example, as shown in fig. 8 and 9, the user may manually adjust the focal length as shown in fig. 8 and manually click the shutter of the photographing interface as shown in fig. 9 to photograph the moon 2 image. The display of the preview image on the shooting interface may be controlled and displayed by the instruction of the view management receiving processor.
In step S120, the electronic device invokes an AI image algorithm to perform screening comparison on the plurality of preview images, and selects and stores a frame image with the best display effect in the preview images as a target image. The frame image with the best display effect may be, for example, an image with the best definition of the moon, the best contrast between the moon image and the night sky background, and the best color of the moon surface in the preview image.
It is understood that the preview image or the target image is an image including a background image and a moon image within a preset composition area. Under the actual application scene, when the purpose of the user is to shoot the moon, before step S110, the electronic device may be first erected or fixed at the preset position, so as to prevent the shot picture from shaking due to the action of the user, and meanwhile, the moon should be ensured to appear in the preset map area during the fixing process of the electronic device.
In an exemplary embodiment, as shown in fig. 2, step S110 specifically includes the following steps:
s1101, adjusting the size of the first image to be matched with the preset composition area according to a preset zooming rule.
S1102, according to the position of a preset composition area, the geometric center of the first image is adjusted to coincide with the geometric center of the composition area.
In step S1101, the preset composition area is a composition reference area displayed in the shooting interface, and the preset composition area is used for indicating a reference position and a reference size of the moon in the shooting process. As shown in fig. 7, the adaptation of the first image 2 to the preset composition area 1 means that: when the moon is photographed, the reference position of the first image 2 is the position of the preset composition area, and the reference size of the first image 2 is adapted to the size of the preset composition area. For example, when the moon is full, the image of the moon coincides with the preset composition area and has the same area. For example, when the moon is in the form of a half-moon or a meniscus, the first image 2 is located at the center of the patterned area 1.
In step S1102, the size of the first image 2 obtained through zooming is adapted to the preset composition area 1, but there may be a deviation in the position of the first image 2. In this step, the image including the moon is cut or moved based on an algorithm so that the display position of the moon image is adapted to the position of the preset composition area. For example, when the moon is full, cutting the image containing the moon to enable the image of the moon to coincide with the preset composition area; when the moon is in the form of a half moon or a meniscus, the image containing the moon is cut so that the geometric center of the image of the moon coincides with the geometric center of the preset composition area, that is, the first image is located at the center of the composition area.
In this embodiment, when the first image is included in the photographed image, the display effect of the first image may also be optimized. The manner of optimizing the display effect of the image of the moon may include: the image (such as brightness, size and outline of the moon) of the moon is dynamically adjusted according to shooting scenes (such as ambient light conditions, shooting positions and the like) through an AI algorithm, so that details and resolution of the moon are enhanced. For example, during shooting, the exposure compensation (EV), the effect of intelligently strengthening or sharpening moon surfaces, the effect of intelligent color and white balance are intelligently increased or decreased. Wherein when the ambient light source is darker, the exposure compensation can be increased to highlight the image sharpness. The step aims to enhance the moon image and reduce the shooting background interference (such as the depression of the brightness of night sky) in the shooting process so as to shoot the clear and crystal beautiful moon image.
In an exemplary embodiment, as shown in fig. 3, the method of the present embodiment includes the steps of:
s210, when a shooting picture comprises a first image, adjusting the focal length of a camera according to a preset zooming rule, displaying the first image in a preset map area of a shooting interface, and generating a preview image; wherein the first image is a moon image;
s220, generating a target image according to the preview image.
S230, receiving input information of a user.
S240, responding to the input information, and displaying a superimposed image in a preset mode on a shooting interface; the preset mode comprises a dynamic mode or a static mode, and the superimposed image comprises at least one of a silhouette image, a watermark image and a weather effect image.
In this embodiment, the specific implementation of steps S210 to S220 may refer to steps S110 to S120, and will not be described in detail in this embodiment.
In step S230, the input information of the user may be an operation indicating the selection of the user, such as clicking or dragging the preset floating window area.
In step S240, based on the selection of the user, the superimposed image may be displayed on the photographing interface so that the target image has different artistic effects. For example, the superimposed image is a silhouette or a watermark, and the silhouette or the watermark is added to the moon image, so that the shooting effect and the shooting experience are effectively improved. In addition, in addition to the silhouette image, the watermark image (such as a text watermark), and the weather effect image, an audio effect may be superimposed on the target image to generate an audio file.
The static silhouette may be, for example, a JPG format of an aircraft, a branch, a window, or the like. The weather effect can be weather background such as rainy days, cloudy days, snowy days and the like, and supports static and dynamic effects and dynamic simulation of rainy and snowy weather. The audio effect may be, for example: the user selects the audio file preset by the system or stored by the electronic equipment to be overlapped to the reference display image; the use scene added with the audio effect is preferably used in the reference display image added with the dynamic artistic effect, and the length of the audio is matched with the duration of the dynamic effect file. It can be appreciated that the shape and size of the superimposed image such as silhouette, watermark, etc. can be adapted to the shape and size of the shooting interface, or to the shape and size of the image preview area in the shooting interface; and an area which is adapted to the preset composition area is set in the superimposed image.
The target image with the static mode overlay image may be in JPG format, compatible with static silhouettes or static watermarks. The target image with the dynamic mode overlay image may be a dynamic file in GIF format or MP4 format, compatible with dynamic silhouette, dynamic watermark, or dynamic weather effect. The target image of the superimposed audio effect may be a dynamic file in MP4 format, adapted to the audio effect.
For example, in some embodiments, before the first image is displayed in the preset map area of the photographing interface, or while the first image is displayed in the preset map area of the photographing interface, an initial overlay image of a preset mode may be displayed on the photographing interface by default, and the initial overlay image may be at least one of a silhouette image, a watermark image, and a weather effect image.
In an exemplary embodiment, as shown in fig. 4, the method of the present embodiment includes the steps of:
s310, when a shooting picture comprises a first image, adjusting the focal length of a camera according to a preset zooming rule, displaying the first image in a preset map area of a shooting interface, and generating a preview image; wherein the first image is a moon image;
s320, generating a target image according to the preview image.
S330, receiving input information of a user; the input information includes first input information and second input information.
S340, responding to the first input information of the user, and generating a preview floating window of at least one silhouette image on the shooting interface.
And S350, responding to second input information of the user in the preview floating window, and displaying the target silhouette image in the at least one silhouette image to the shooting interface in a dynamic mode.
In this embodiment, the specific implementation of steps S310 to S320 may refer to steps S210 to S230, which are not described in detail in this embodiment.
In step S340, the first input information may be, for example, an operation of clicking an icon of the superimposed image in the photographing interface by the user, or an operation of sliding the region of the superimposed image in the photographing interface by the user. Based on the first input information of the user, a preview floating window of each silhouette image is generated on the photographing interface. The preview floating window of each silhouette image may be: the plurality of silhouette images are displayed in a list form along a length direction or a width direction of the electronic device, including a dynamic mode or a static mode of silhouette images.
In this step, as shown in fig. 10, the preview floating window may be displayed above the photographing interface and along the width direction of the electronic device. For example, the user clicks the corresponding icon, and the preview floating window area of the various silhouettes may be displayed above the photographing interface in a popup window. For another example, the user may slide the superimposed image area, and the preview floating window area of each silhouette image may be displayed above the photographing interface in an animated form.
In step S350, the second input information may be any specific silhouette image in the preview floating window clicked by the user. For example, when the user clicks a floating window area corresponding to a static silhouette image in the preview floating window, the user determines to select the static silhouette, and presents the static silhouette to the shooting interface in a dynamic form.
In one example, in the process that the static target silhouette image is presented to the shooting interface in a dynamic form by an initial position (such as its position in the preview floating window), the dynamic form may be: and the display size of the static target silhouette image is gradually enlarged from the initial position, laid and displayed on a shooting interface.
In another example, in the process that the static target silhouette image is presented to the shooting interface in a dynamic form from the initial position, the dynamic form may also be: and gradually reducing the display transparency of the target silhouette image from the initial position to the shooting interface from the first transparency to the second transparency, for example, displaying the static target silhouette image on the preview floating window at the initial position with the first transparency, and gradually reducing the transparency of the floating window area of the static target silhouette image according to a preset proportion in the process of selection and movement until the target position in the preset structure area is displayed with the second transparency, so that the normal display effect of the silhouette image is restored. Illustratively, the first transparency may be 80% transparency and the second transparency may be 0% transparency.
In another example, after the static target silhouette image is selected, the manner in which the static target silhouette image is presented to the shooting interface may be: the user presses down the floating window area of the static target silhouette image, drags the floating window area to the user-defined position, and then the static target silhouette image is paved on the shooting interface.
In combination with the above two examples, the static silhouette image or the static watermark may have a preset display gray level, and be laid on the shooting interface in the manner of the above example, and be displayed on the shooting interface in a superimposed manner by the preset display gray level, for example, as shown in fig. 10, the first image in the preview image has a black silhouette effect.
In another example, a dynamic target silhouette image may also be selected, including moving objects (such as animals or people in the silhouette). On the shooting interface, the moving object can be moved from the first preset position to the second preset position along the preset track in the target silhouette image, so that the shooting artistic effect is further improved.
It will be appreciated that the dynamic display modes in the above examples may be used alone or in combination. For example, in the process of displaying the target silhouette image on the shooting interface, the display size of the target silhouette image may be gradually increased from the initial position to be displayed in a laying manner, and in this process, along with the change of the target silhouette image to the preset size, the moving object in the target silhouette image moves from the first preset position to the second preset position along the preset track. The target silhouette image may be changed to a preset size, and the size of the initial position of the target silhouette image may be increased by a preset proportion, changed to a preset size, or laid at a first preset position.
In an exemplary embodiment, as shown in fig. 5, after step S350, step S360 may further include:
s360, in response to the third input information of the user, displaying the target silhouette image in a dynamic form or a static form on the shooting interface is canceled.
In this step, the third input information may be, for example, the target silhouette image selected in step S350 is double-clicked by the user, or the user performs a sliding operation on the target silhouette image toward the edge of the shooting interface, so as to cancel and display the target silhouette image.
By way of example, the process of displaying the target silhouette image on the shooting interface is canceled, and the target silhouette image may disappear in one or several dynamic forms as follows: for example, the display size of the target silhouette image gradually decreases from the position where the target silhouette image is laid and displayed on the photographing interface to the initial position. For another example, the second transparency of the laying position of the shooting interface is gradually increased to the first transparency, and the target silhouette image returns to the initial position. For another example, the moving object in the target silhouette image moves from the second preset position along the preset track to return to the first preset position.
If it is desired to reselect the silhouette image, steps S340 to S350 may be performed again or step S350 may be performed again.
In combination with the above embodiment, the present disclosure may display the superimposed image of the preset mode on the photographing interface, which may be that the superimposed image is displayed on the photographing interface during the photographing process. After the preview image is generated, the superimposed image may be displayed on the preview image.
In an exemplary embodiment, the present embodiment proposes an apparatus for capturing moon, which is applied to an electronic device, as shown in fig. 11, and the apparatus includes: the device of this embodiment is used to implement the method shown in fig. 1, and the adjusting module 110 and the target image generating module 120. In an implementation process, the adjusting module 110 is configured to adjust a focal length of the camera according to a preset zoom rule when the shot frame includes the first image, display the first image in a preset map area of the shooting interface, and generate a preview image; wherein the first image is a moon image. The target image generation module 120 is configured to generate a target image according to the preview image.
In one exemplary embodiment, as shown in fig. 12, an apparatus includes: the system comprises an adjusting module 110, a target image generating module 120, a receiving module 130 and a superposition module 140. The apparatus of this embodiment is used to implement the method shown in fig. 2. In an implementation, the receiving module 130 is configured to receive input information of a user. The superimposing module 140 is configured to display a superimposed image of a preset mode on the shooting interface in response to the input information; the preset mode comprises a dynamic mode or a static mode, and the superimposed image comprises at least one of a silhouette image, a watermark image and a weather effect image.
In one exemplary embodiment, as shown in fig. 13, an apparatus includes: the system comprises an adjusting module 110, a target image generating module 120, a receiving module 130 and a superposition module 140, wherein the superposition module 140 comprises a preview sub-module 1401 and a display sub-module 1402. The apparatus of this embodiment is used to implement the method shown in fig. 3. In an implementation, the input information includes first input information and second input information, and the superimposed image includes a silhouette image. The preview sub-module 1401 is configured to generate a preview floating window of at least one silhouette image on the photographing interface in response to the first input information of the user. The display sub-module 1402 is configured to dynamically present a target silhouette image of the at least one silhouette image to the photographing interface in response to the second input information of the user in the preview floating window. The display sub-module 1402 is specifically configured to perform at least one of the following operations: and paving and displaying the display size of the target silhouette image on the shooting interface from the initial position to be gradually enlarged. And gradually reducing the display transparency of the target silhouette image from the first transparency to the second transparency from the initial position to the shooting interface. The target silhouette image comprises a moving object, and the moving object is moved to a second preset position along a preset track from a first preset position in the target silhouette image on a shooting interface.
In one exemplary embodiment, as shown in fig. 14, an apparatus includes: the device comprises: the system comprises an adjusting module 110, a target image generating module 120, a receiving module 130, a superposition module 140 and a cancellation module 150. The apparatus of this embodiment is used to implement the method shown in fig. 5. In an implementation, the cancellation module 150 is configured to cancel displaying the target silhouette image in a dynamic form or a static form on the capturing interface in response to the third input information of the user. The superimposing module 140 is specifically configured to display a superimposed image on a preset composition area of the shot picture, or display a superimposed image on a preset composition area of the preview image.
A block diagram of an electronic device is shown in fig. 15. The present disclosure also provides for an electronic device, for example, device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
The device 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interactions between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
Memory 504 is configured to store various types of data to support operations at device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, video, and the like. The memory 504 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 500.
The multimedia component 508 includes a screen between the device 500 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 508 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 500 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further comprises a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 514 includes one or more sensors for providing status assessment of various aspects of the device 500. For example, the sensor assembly 514 may detect the on/off state of the device 500, the relative positioning of the components, such as the display and keypad of the device 500, the sensor assembly 514 may also detect a change in position of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration/deceleration of the device 500, and a change in temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the device 500 and other devices, either wired or wireless. The device 500 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
A non-transitory computer readable storage medium, such as memory 504 including instructions, provided in another exemplary embodiment of the present disclosure, the instructions being executable by processor 520 of device 500 to perform the above-described method. For example, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc. The instructions in the storage medium, when executed by a processor of the electronic device, enable the electronic device to perform the method described above.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (12)

1. A method for photographing moon, applied to an electronic device, comprising:
when a shooting picture comprises a first image, adjusting the focal length of a camera according to a preset zooming rule, displaying the first image in a preset map area of a shooting interface, and generating a preview image; wherein the first image is a moon image;
generating a target image according to the preview image;
the adjusting the focal length of the camera according to the preset zooming rule, displaying the first image in a preset map area of the shooting interface, includes:
according to a preset zooming rule, the size of the first image is adjusted to be matched with the preset composition area;
and cutting the image containing the first image according to the position of the preset composition area, and adjusting the geometric center of the first image to be coincident with the geometric center of the preset composition area.
2. The method of capturing a moon according to claim 1, further comprising:
receiving input information of a user;
displaying a superimposed image of a preset mode on the photographing interface in response to the input information; wherein the preset mode comprises a dynamic mode or a static mode, and the superimposed image comprises at least one of a silhouette image, a watermark image and a weather effect image.
3. The method of photographing moon according to claim 2, wherein the input information includes first input information and second input information, and the superimposed image includes a silhouette image;
the step of displaying a superimposed image of a preset mode on the shooting interface in response to the input information includes:
generating a preview floating window of at least one silhouette image on the shooting interface in response to first input information of a user;
and responding to second input information of the user in the preview floating window, and displaying a target silhouette image in at least one silhouette image to the shooting interface in a dynamic form.
4. A method of capturing moon according to claim 3, wherein the presenting of the target silhouette image of at least one of the silhouette images to the capture interface in dynamic form comprises at least one of:
the display size of the target silhouette image is gradually enlarged from the initial position, laid and displayed on the shooting interface;
gradually reducing the display transparency of the target silhouette image from the first transparency to the second transparency from the initial position to the shooting interface;
the target silhouette image comprises a moving object, and the moving object is moved to a second preset position along a preset track from a first preset position in the target silhouette image on the shooting interface.
5. A method of capturing a moon according to claim 3, further comprising:
and canceling to display the target silhouette image in a dynamic form or a static form on the shooting interface in response to the third input information of the user.
6. An apparatus for photographing moon, applied to an electronic device, comprising:
the adjusting module is used for adjusting the focal length of the camera according to a preset zooming rule when the shooting picture comprises a first image, displaying the first image in a preset picture forming area of a shooting interface and generating a preview image; wherein the first image is a moon image;
the target image generation module is used for generating a target image according to the preview image;
the adjusting the focal length of the camera according to the preset zooming rule, displaying the first image in a preset map area of the shooting interface, includes:
according to a preset zooming rule, the size of the first image is adjusted to be matched with the preset composition area;
and cutting the image containing the first image according to the position of the preset composition area, and adjusting the geometric center of the first image to be coincident with the geometric center of the preset composition area.
7. The apparatus for photographing moon according to claim 6, further comprising:
the receiving module is used for receiving input information of a user;
the superposition module is used for responding to the input information and displaying superposition images of a preset mode on the shooting interface; wherein the preset mode comprises a dynamic mode or a static mode, and the superimposed image comprises at least one of a silhouette image, a watermark image and a weather effect image.
8. The apparatus for photographing moon according to claim 7, wherein the input information includes first input information and second input information, and the superimposed image includes a silhouette image;
the superposition module comprises:
a preview sub-module, configured to generate a preview floating window of at least one silhouette image on the shooting interface in response to first input information of a user;
and the display sub-module is used for responding to the second input information of the user in the preview floating window and presenting the target silhouette image in at least one silhouette image to the shooting interface in a dynamic form.
9. The device for capturing moon according to claim 8, wherein the display sub-module is specifically configured to perform at least one of the following operations:
the display size of the target silhouette image is gradually enlarged from the initial position, laid and displayed on the shooting interface;
gradually reducing the display transparency of the target silhouette image from the first transparency to the second transparency from the initial position to the shooting interface;
the target silhouette image comprises a moving object, and the moving object is moved to a second preset position along a preset track from a first preset position in the target silhouette image on the shooting interface.
10. The apparatus for photographing moon according to claim 8, wherein the apparatus further comprises:
and the cancellation module is used for canceling the display of the target silhouette image in a dynamic form or a static form on the shooting interface in response to the third input information of the user.
11. An electronic device, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of shooting a moon as claimed in any one of claims 1 to 5.
12. A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of capturing moon as claimed in any one of claims 1 to 5.
CN202010753724.9A 2020-07-30 2020-07-30 Moon shooting method and device, electronic equipment and medium Active CN114070998B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010753724.9A CN114070998B (en) 2020-07-30 2020-07-30 Moon shooting method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010753724.9A CN114070998B (en) 2020-07-30 2020-07-30 Moon shooting method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN114070998A CN114070998A (en) 2022-02-18
CN114070998B true CN114070998B (en) 2023-09-22

Family

ID=80227419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010753724.9A Active CN114070998B (en) 2020-07-30 2020-07-30 Moon shooting method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114070998B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116684726B (en) * 2022-11-18 2024-04-19 荣耀终端有限公司 Moon detection method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104886A (en) * 2014-07-24 2014-10-15 深圳市中兴移动通信有限公司 Overexposure shooting method and device
CN105279726A (en) * 2014-06-10 2016-01-27 腾讯科技(深圳)有限公司 Watermark layer and watermark image generating methods and systems
CN107566748A (en) * 2017-09-22 2018-01-09 维沃移动通信有限公司 A kind of image processing method, mobile terminal and computer-readable recording medium
CN107566742A (en) * 2017-10-27 2018-01-09 广东欧珀移动通信有限公司 Image pickup method, device, storage medium and electronic equipment
CN107786812A (en) * 2017-10-31 2018-03-09 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and computer-readable recording medium
CN109951633A (en) * 2019-02-18 2019-06-28 华为技术有限公司 A kind of method and electronic equipment shooting the moon

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012065263A (en) * 2010-09-17 2012-03-29 Olympus Imaging Corp Imaging apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279726A (en) * 2014-06-10 2016-01-27 腾讯科技(深圳)有限公司 Watermark layer and watermark image generating methods and systems
CN104104886A (en) * 2014-07-24 2014-10-15 深圳市中兴移动通信有限公司 Overexposure shooting method and device
CN107566748A (en) * 2017-09-22 2018-01-09 维沃移动通信有限公司 A kind of image processing method, mobile terminal and computer-readable recording medium
CN107566742A (en) * 2017-10-27 2018-01-09 广东欧珀移动通信有限公司 Image pickup method, device, storage medium and electronic equipment
CN107786812A (en) * 2017-10-31 2018-03-09 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and computer-readable recording medium
CN109951633A (en) * 2019-02-18 2019-06-28 华为技术有限公司 A kind of method and electronic equipment shooting the moon

Also Published As

Publication number Publication date
CN114070998A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN109600659B (en) Operation method, device and equipment for playing video and storage medium
CN110675310B (en) Video processing method and device, electronic equipment and storage medium
CN105282441B (en) Photographing method and device
CN106131441B (en) Photographing method and device and electronic equipment
US11770497B2 (en) Method and device for processing video, and storage medium
CN110677734B (en) Video synthesis method and device, electronic equipment and storage medium
US11310443B2 (en) Video processing method, apparatus and storage medium
CN108122195B (en) Picture processing method and device
CN107566878B (en) Method and device for displaying pictures in live broadcast
CN112669231B (en) Image processing method, training method, device and medium of image processing model
CN114070998B (en) Moon shooting method and device, electronic equipment and medium
CN111461950B (en) Image processing method and device
CN117119260A (en) Video control processing method and device
EP3905660A1 (en) Method and device for shooting image, and storage medium
CN114666490B (en) Focusing method, focusing device, electronic equipment and storage medium
CN114827721A (en) Video special effect processing method and device, storage medium and electronic equipment
CN114697517A (en) Video processing method and device, terminal equipment and storage medium
CN113315903A (en) Image acquisition method and device, electronic equipment and storage medium
CN111277754A (en) Mobile terminal shooting method and device
CN113256503B (en) Image optimization method and device, mobile terminal and storage medium
CN112188095B (en) Photographing method, photographing device and storage medium
CN113191994B (en) Image processing method, device and storage medium
CN118102080A (en) Image shooting method, device, terminal and storage medium
CN117835050A (en) Camera preview method, device and storage medium
CN117395505A (en) Image acquisition method, device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant