CN113347364A - Moon image shooting method and device and computer readable storage medium - Google Patents

Moon image shooting method and device and computer readable storage medium Download PDF

Info

Publication number
CN113347364A
CN113347364A CN202110685658.0A CN202110685658A CN113347364A CN 113347364 A CN113347364 A CN 113347364A CN 202110685658 A CN202110685658 A CN 202110685658A CN 113347364 A CN113347364 A CN 113347364A
Authority
CN
China
Prior art keywords
image
moon
shooting
astronomical
capturing
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
CN202110685658.0A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202110685658.0A priority Critical patent/CN113347364A/en
Publication of CN113347364A publication Critical patent/CN113347364A/en
Pending legal-status Critical Current

Links

Images

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/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
    • 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/61Control of cameras or camera modules based on recognised objects
    • 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/62Control of parameters via user interfaces
    • 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/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects

Abstract

The invention discloses a moon image shooting method, equipment and a computer readable storage medium, wherein the method comprises the following steps: judging whether the view interface contains a moon image according to astronomical auxiliary information; if yes, controlling a first camera to shoot a first image according to shooting parameters corresponding to the shooting instruction, controlling a second camera to shoot a second image, and acquiring a first moon position coverage area in the first image and a second moon position coverage area in the second image according to the astronomical auxiliary information; and covering the image of the second moon position coverage area in the second image to the first moon position coverage area in the first image to obtain a fused moon shooting image. The humanized moon image shooting scheme is realized, the moon image shooting precision and imaging effect are improved, the operation difficulty of a user is reduced, and the shooting experience of the user is enhanced.

Description

Moon image shooting method and device and computer readable storage medium
Technical Field
The present invention relates to the field of mobile communications, and in particular, to a method and apparatus for capturing a moon image, and a computer-readable storage medium.
Background
In the prior art, with the continuous development of intelligent terminal equipment, the shooting requirements of users on mobile equipment are higher and higher, particularly, moon shooting is taken as an important shooting item, and the operation skills and the shooting effect of the moon shooting become the interests pursued by the users.
However, when the mobile device takes a moon image, a photographer often needs to take a long time under a given exposure parameter to obtain a good shooting effect, and auxiliary shooting devices such as a tripod and a star tracker must be used in the period, so that the operation is complicated, the cost is high, and the mobile device is not user-friendly; in addition, the effect of the moon may not be ideal, which is limited by various factors such as hardware limitations of the mobile photographing terminal device, weather conditions, and ambient light interference. In order to solve the technical problem, one solution in the prior art is to obtain a plurality of pictures by multi-camera cooperation and shooting under different parameters, and obtain a picture with a clear background and a clear moon by fusing the plurality of pictures, thereby simplifying user operation to a certain extent and improving imaging effect. However, the determination of the position of the moon subject by the conventional image recognition method often results in a serious false fusion effect due to a wrong calculation of the moon position, for example, when a street lamp is recognized as a moon, the fused image replaces the street lamp with the moon.
In view of the foregoing, there is a need in the art for a lunar image capturing scheme with better user experience.
Disclosure of Invention
In order to solve the technical defects in the prior art, the invention provides a moon image shooting method, which comprises the following steps:
opening a viewing interface of moon shooting, acquiring astronomical auxiliary information, and judging whether a moon image is contained in the viewing interface according to the astronomical auxiliary information.
And if the moon image is contained in the viewing interface, carrying out composition adjustment and focusing adjustment according to the position of the moon image in the viewing interface, and receiving a shooting instruction after adjustment.
And controlling a first camera to shoot a first image and a second camera to shoot a second image according to shooting parameters corresponding to the shooting instruction, and acquiring a first moon position coverage area in the first image and a second moon position coverage area in the second image according to the astronomical auxiliary information.
And covering the image of the second moon position coverage area in the second image to the first moon position coverage area in the first image to obtain a fused moon shooting image.
Optionally, the opening a viewing interface for moon shooting, acquiring astronomical auxiliary information, and determining whether the viewing interface includes a moon image according to the astronomical auxiliary information includes:
and acquiring the position information of the shooting equipment according to the GPS data or the WiFi data.
And acquiring shooting angle information of the shooting equipment according to the gravity sensor data and the magnetic sensor data of the shooting equipment.
Optionally, the opening a viewing interface for moon shooting, acquiring astronomical auxiliary information, and determining whether the viewing interface includes a moon image according to the astronomical auxiliary information, further includes:
and acquiring current earth rotation angle information according to the current time information.
And acquiring current star catalogue data information according to the astronomical auxiliary information.
Optionally, the opening a viewing interface for moon shooting, acquiring astronomical auxiliary information, and determining whether the viewing interface includes a moon image according to the astronomical auxiliary information, further includes:
and determining whether the central position of the moon is in the viewing interface according to the position information, the shooting angle information, the earth rotation angle information, the field angle information of the shooting equipment and the zoom multiple information.
And if the central position of the moon is determined to be positioned in the viewing interface, determining that the moon image is contained in the viewing interface.
Optionally, the opening a viewing interface for moon shooting, acquiring astronomical auxiliary information, and determining whether the viewing interface includes a moon image according to the astronomical auxiliary information, further includes:
and if the central position of the moon is not in the viewing interface, determining whether the edge position of the moon is in the viewing interface according to the radius of the moon.
And if the moon edge position is determined to be in the viewing interface, determining that the moon image is contained in the viewing interface, and if the moon edge position is determined not to be in the viewing interface, determining that the moon image is not contained in the viewing interface.
Optionally, the controlling a first camera to capture a first image according to the capture parameters corresponding to the capture instruction, and controlling a second camera to capture a second image, and acquiring a first moon position coverage area in the first image and a second moon position coverage area in the second image according to the astronomical assistance information includes:
when the shooting instruction is acquired, determining a first shooting parameter for performing focusing shooting at a picture center position by the first camera with a standard focal length, and determining a second shooting parameter for performing focusing shooting at a moon center position by the second camera with a long focal length.
And controlling the first camera to shoot according to the first shooting parameter to obtain the first image, and controlling the second camera to shoot according to the second shooting parameter to obtain the second image.
Optionally, the controlling a first camera to capture a first image according to the capture parameter corresponding to the capture instruction, and controlling a second camera to capture a second image, and acquiring a first bright location coverage area in the first image and a second bright location coverage area in the second image according to the astronomical assistance information, further includes:
determining the position and size of the moon in the first image and the second image respectively through the astronomical auxiliary information.
And determining the morphology of the moon in the first image and the second image respectively according to the relative position relation of the moon, the earth and the sun in the astronomical auxiliary information.
Optionally, the controlling a first camera to capture a first image according to the capture parameter corresponding to the capture instruction, and controlling a second camera to capture a second image, and acquiring a first bright location coverage area in the first image and a second bright location coverage area in the second image according to the astronomical assistance information, further includes:
and respectively carrying out edge detection and threshold analysis on the first image and the second image by combining the position, the size and the form.
Obtaining the first crescent moon position coverage area in the first image and the second crescent moon position coverage area in the second image according to the detection and the analysis.
The invention also proposes a moon image capturing device comprising a memory, a processor and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the moon image capturing method as defined in any one of the above.
The invention also proposes a computer-readable storage medium having stored thereon a moon image capturing program which, when executed by a processor, implements the steps of the moon image capturing method as defined in any one of the preceding claims.
By implementing the moon image shooting method, the moon image shooting equipment and the computer readable storage medium, astronomical auxiliary information is obtained by opening a view finding interface of moon shooting, and whether a moon image is contained in the view finding interface is judged according to the astronomical auxiliary information; if the moon image is contained in the view interface, carrying out composition adjustment and focusing adjustment according to the position of the moon image in the view interface, and receiving a shooting instruction after adjustment; controlling a first camera to shoot a first image according to shooting parameters corresponding to the shooting instruction, controlling a second camera to shoot a second image, and acquiring a first moon position coverage area in the first image and a second moon position coverage area in the second image according to the astronomical auxiliary information; and covering the image of the second moon position coverage area in the second image to the first moon position coverage area in the first image to obtain a fused moon shooting image. The humanized moon image shooting scheme is realized, the moon image shooting precision and imaging effect are improved, the operation difficulty of a user is reduced, and the shooting experience of the user is enhanced.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to the present invention;
fig. 2 is a communication network system architecture diagram provided by an embodiment of the present invention;
FIG. 3 is a flowchart of a first embodiment of a method of capturing a moon image in accordance with the present invention;
FIG. 4 is a flowchart of a second embodiment of a method of capturing a moon image in accordance with the present invention;
FIG. 5 is a flowchart of a third embodiment of a method for capturing a moon image in accordance with the present invention;
FIG. 6 is a flowchart of a fourth embodiment of a method for capturing a moon image in accordance with the present invention;
fig. 7 is a flowchart of a fifth embodiment of a moon image photographing method of the present invention;
FIG. 8 is a flowchart of a sixth embodiment of a method of capturing a moon image in accordance with the present invention;
fig. 9 is a flowchart of a seventh embodiment of a moon image photographing method of the present invention;
fig. 10 is a flowchart of an eighth embodiment of a moon image photographing method of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Example one
Fig. 3 is a flowchart of a first embodiment of a method for capturing a moon image according to the present invention. A method of capturing a moon image, the method comprising:
and S1, opening a view interface of moon shooting, acquiring astronomical auxiliary information, and judging whether the moon image is contained in the view interface according to the astronomical auxiliary information.
And S2, if the moon image is contained in the view interface, carrying out composition adjustment and focusing adjustment according to the position of the moon image in the view interface, and receiving a shooting instruction after adjustment.
And S3, controlling a first camera to shoot a first image and a second camera to shoot a second image according to shooting parameters corresponding to the shooting instruction, and acquiring a first crescent position coverage area in the first image and a second crescent position coverage area in the second image according to the astronomical auxiliary information.
And S4, covering the second moon position coverage area in the second image to the first moon position coverage area in the first image to obtain a fused moon shooting image.
Optionally, in this embodiment, it is considered that the moon shooting is one of the usage scenarios of many mobile terminal device users, and when the moon is shot by using a mobile terminal device such as a mobile phone, a clear moon can be shot only by the user adjusting relatively complex shooting parameters in a professional mode; in order to reduce the operation difficulty, in some optional alternative schemes, multiple cameras work cooperatively, namely, multiple pictures are obtained by shooting under different parameters, and the pictures with clear backgrounds and clear moons are obtained by fusing the multiple pictures, so that the user operation is simplified to a certain extent, and the imaging effect is improved. However, in the image fusion process, because the position of the moon main body is determined by adopting a traditional image recognition mode, a relatively serious wrong fusion effect is often caused by a wrong calculation of the moon position, for example, a street lamp, a window with a bright lamp, or other bright objects are likely to be recognized as the moon, so that the fused image can replace the bright objects of various types with the moon, great trouble is brought to a user, and the shooting experience is seriously reduced.
Therefore, the embodiment provides a moon image shooting scheme, which includes firstly, opening a view interface of moon shooting, acquiring astronomical auxiliary information, and judging whether a moon image is included in the view interface according to the astronomical auxiliary information; then, if the moon image is contained in the view interface, composition adjustment and focusing adjustment are carried out according to the position of the moon image in the view interface, and a shooting instruction is received after adjustment; then, controlling a first camera to shoot a first image according to shooting parameters corresponding to the shooting instruction, controlling a second camera to shoot a second image, and acquiring a first moon position coverage area in the first image and a second moon position coverage area in the second image according to the astronomical auxiliary information; and finally, covering the image of the second moon position coverage area in the second image to the first moon position coverage area in the first image to obtain a fused moon shooting image.
Alternatively, in the present embodiment, if it is detected that the moon is within the viewing interface, the moon image capturing mode is automatically turned on.
Optionally, in this embodiment, in the moon image capturing mode, the user is prompted to move the terminal device in the direction according to the position of the moon in the viewing interface and a predetermined or preset composition rule, so as to help the user obtain a better composition.
Optionally, in this embodiment, after determining that the composition is complete, the focus is adjusted to capture the first image and the second image according to the position of the moon within the viewing interface.
Optionally, in this embodiment, an astronomical auxiliary image system is obtained based on the astronomical auxiliary information, and the position and shape of the moon, for example, the round sky, etc., are obtained by the system.
Alternatively, in the present embodiment, when the moon is recognized, the moon image capturing mode is automatically turned on; under the support of the astronomical calculation auxiliary image system, scene error identification is effectively avoided.
Alternatively, in the present embodiment, multiple images are captured under different parameters by using multiple cameras in cooperation with each other.
Optionally, in this embodiment, a plurality of images are fused according to the position, size, and shape of the moon, so as to obtain a moon image with a clear background and a clear and beautiful moon, wherein under the support of the astronomical computation aided imaging system, the occurrence of image fusion errors is effectively avoided.
The method has the advantages that astronomical auxiliary information is acquired by opening a viewing interface shot by the moon, and whether the moon image is contained in the viewing interface is judged according to the astronomical auxiliary information; if the moon image is contained in the view interface, carrying out composition adjustment and focusing adjustment according to the position of the moon image in the view interface, and receiving a shooting instruction after adjustment; controlling a first camera to shoot a first image according to shooting parameters corresponding to the shooting instruction, controlling a second camera to shoot a second image, and acquiring a first moon position coverage area in the first image and a second moon position coverage area in the second image according to the astronomical auxiliary information; and covering the image of the second moon position coverage area in the second image to the first moon position coverage area in the first image to obtain a fused moon shooting image. The humanized moon image shooting scheme is realized, the moon image shooting precision and imaging effect are improved, the operation difficulty of a user is reduced, and the shooting experience of the user is enhanced.
Example two
Fig. 4 is a flowchart of a second embodiment of a method for capturing a moon image according to the present invention, where based on the above embodiments, the method for opening a viewing interface of moon image capturing, acquiring astronomical auxiliary information, and determining whether a moon image is included in the viewing interface according to the astronomical auxiliary information includes:
and S11, acquiring the position information of the shooting device according to the GPS data or the WiFi data.
And S12, acquiring the shooting angle information of the shooting equipment according to the gravity sensor data and the magnetic sensor data of the shooting equipment.
Optionally, in this embodiment, the longitude and the latitude of the current location of the mobile terminal device are obtained according to the GPS data or the WIFI data, and are denoted as Position.
Optionally, in this embodiment, the shooting angle α of the current mobile terminal device is obtained according to sensor data such as gravity sensor data and magnetic sensor data.
The embodiment has the advantages that the position information of the shooting equipment is obtained according to the GPS data or the WiFi data; and acquiring shooting angle information of the shooting equipment according to the gravity sensor data and the magnetic sensor data of the shooting equipment. The method provides a mode for acquiring the position information and the shooting angle information for realizing a humanized moon image shooting scheme, improves the moon image shooting precision and imaging effect, reduces the operation difficulty of the user, and enhances the shooting experience of the user.
EXAMPLE III
Fig. 5 is a flowchart of a method for capturing a moon image according to a third embodiment of the present invention, where based on the above embodiment, the method opens a viewing interface captured by the moon, obtains astronomical auxiliary information, and determines whether a moon image is included in the viewing interface according to the astronomical auxiliary information, and further includes:
and S13, acquiring the current rotation angle information of the earth according to the current time information.
And S14, acquiring the current star catalogue data information according to the astronomical auxiliary information.
Alternatively, in this embodiment, the current rotation angle θ of the earth rotation is acquired according to information such as the current time.
Optionally, in this embodiment, the star catalogue data information is obtained, where the star catalogue data information includes, but is not limited to, the following information:
StarList={S1,S2,S3……Sn};
Si={index,name,location,Vmag,Bmag,VisualAngle,……};
locationi={RA,Dec}。
wherein n is the total number of celestial bodies recorded in the star table, and index, name, location, Vmag, Bmag and VisualAngle are celestial bodies SiInformation of the code, name, position, brightness, color, apparent size, etc.; RA and Dec are celestial bodies SiLocation information location ofiThe right ascension and the declination.
The method has the advantages that the current earth rotation angle information is obtained according to the current time information; and acquiring current star catalogue data information according to the astronomical auxiliary information. The method and the device provide the earth rotation angle information and the star catalogue data information for realizing a humanized moon image shooting scheme, improve the moon image shooting precision and imaging effect, reduce the operation difficulty of a user, and enhance the shooting experience of the user.
Example four
Fig. 6 is a flowchart of a fourth embodiment of a method for capturing a moon image according to the present invention, where based on the above embodiments, the method opens a viewing interface captured by the moon, obtains astronomical auxiliary information, and determines whether a moon image is included in the viewing interface according to the astronomical auxiliary information, and further includes:
and S15, determining whether the moon center position is in the view interface according to the position information, the shooting angle information, the earth rotation angle information, the field angle information of the shooting equipment and the zoom multiple information.
And S16, if the central position of the moon is determined to be in the viewing interface, determining that the moon image is contained in the viewing interface.
Optionally, in this embodiment, after the star catalogue data information is acquired, position data of a corresponding moon is determined in the information, and specifically, whether the moon center position is in the viewing interface is determined according to the position information, the shooting angle information, the earth rotation angle information, the field angle information of the shooting device, and the zoom factor information.
Alternatively, in this embodiment, if the moon center position (location) is within the preview interface, the moon is considered to be within the preview interface.
The embodiment has the advantages that whether the moon center position is in the view interface is determined according to the position information, the shooting angle information, the earth rotation angle information, the field angle information of the shooting equipment and the zoom multiple information; and if the central position of the moon is determined to be positioned in the viewing interface, determining that the moon image is contained in the viewing interface. The moon center position judging method is provided for realizing a humanized moon image shooting scheme, the moon image shooting accuracy and imaging effect are improved, the operation difficulty of a user is reduced, and the shooting experience of the user is enhanced.
EXAMPLE five
Fig. 7 is a flowchart of a method for capturing a moon image according to a fifth embodiment of the present invention, where based on the foregoing embodiment, the method opens a viewing interface for moon image capture, obtains astronomical auxiliary information, and determines whether a moon image is included in the viewing interface according to the astronomical auxiliary information, and further includes:
and S17, if the central position of the moon is not in the viewing interface, determining whether the edge position of the moon is in the viewing interface according to the radius of the moon.
And S18, if the moon edge position is determined to be in the framing interface, determining that the moon image is contained in the framing interface, and if the moon edge position is not determined to be in the framing interface, determining that the moon image is not contained in the framing interface.
Alternatively, in the present embodiment, if the moon center position (location) is not within the preview interface, the moon view size VisualAngle is acquired; then, the moon radius (or diameter) is calculated, and whether the moon edge is within the preview interface is calculated.
Optionally, in this embodiment, if it is determined that the moon edge position is located in the viewing interface, it is determined that the moon image is included in the viewing interface, and if it is determined that the moon edge position is not located in the viewing interface, it is determined that the moon image is not included in the viewing interface.
The method has the advantages that by determining that the center position of the moon is not located in the viewing interface, whether the edge position of the moon is located in the viewing interface is determined according to the radius of the moon; and if the moon edge position is determined to be in the viewing interface, determining that the moon image is contained in the viewing interface, and if the moon edge position is determined not to be in the viewing interface, determining that the moon image is not contained in the viewing interface. The moon edge position judging method is provided for realizing a humanized moon image shooting scheme, the moon image shooting accuracy and imaging effect are improved, the operation difficulty of a user is reduced, and the shooting experience of the user is enhanced.
EXAMPLE six
Fig. 8 is a flowchart of a sixth embodiment of a moon image capturing method according to the present invention, wherein based on the above embodiments, the controlling a first camera to capture a first image and a second camera to capture a second image according to capturing parameters corresponding to the capturing instruction, and acquiring a first moon position coverage area in the first image and a second moon position coverage area in the second image according to the astronomical assistance information includes:
and S31, when the shooting instruction is acquired, determining a first shooting parameter for carrying out focusing shooting by the first camera with the standard focal length at the center position of the picture, and determining a second shooting parameter for carrying out focusing shooting by the second camera with the long focal length at the center position of the moon.
And S32, controlling the first camera to shoot according to the first shooting parameters to obtain the first image, and controlling the second camera to shoot according to the second shooting parameters to obtain the second image.
Optionally, in this embodiment, according to preset shooting parameters, the first camera with the standard focal length is selected, for example, the camera with the standard focal length performs shooting on the center position of the focusing frame.
Optionally, in this embodiment, according to preset shooting parameters, the second camera with the long focal length is selected, for example, the long focal length camera shoots the center position of the focused picture.
Optionally, in this embodiment, the shooting instruction is generated by one touch of the user, and the two shooting actions are performed immediately.
The method has the advantages that when the shooting instruction is obtained, a first shooting parameter for performing focusing shooting by the first camera with the standard focal length at the picture center position is determined, and a second shooting parameter for performing focusing shooting by the second camera with the long focal length at the moon center position is determined; and controlling the first camera to shoot according to the first shooting parameter to obtain the first image, and controlling the second camera to shoot according to the second shooting parameter to obtain the second image. Two different shooting strategies are provided for realizing a humanized moon image shooting scheme, so that a subsequent fused image basis is obtained, the moon image shooting precision and imaging effect are improved, the operation difficulty of a user is reduced, and the shooting experience of the user is enhanced.
EXAMPLE seven
Fig. 9 is a flowchart of a seventh embodiment of a moon image capturing method according to the present invention, based on the above embodiment, where the method further includes controlling a first camera to capture a first image and a second camera to capture a second image according to capturing parameters corresponding to the capturing instruction, and acquiring a first moon position coverage area in the first image and a second moon position coverage area in the second image according to the astronomical assistance information, and further includes:
and S33, determining the position and the size of the moon in the first image and the second image respectively through the astronomical auxiliary information.
And S34, determining the morphology of the moon in the first image and the second image respectively according to the relative position relation of the moon, the earth and the sun in the astronomical auxiliary information.
Optionally, in this embodiment, firstly, the position of the moon in the first image and the second image is determined by the astronomical calculation aided imaging system; secondly, determining the size of the moon in the first image and the second image through the astronomical calculation auxiliary image system; thirdly, the astronomical computation aided imaging system acquires the relative positions of the moon, the earth and the sun at the current time, and computes the shape of the current moon, such as the shape of a cloudy or sunny moon.
The method has the advantages that the position and the size of the moon in the first image and the second image are determined through the astronomical auxiliary information; and determining the morphology of the moon in the first image and the second image respectively according to the relative position relation of the moon, the earth and the sun in the astronomical auxiliary information. The method provides a determination mode of the moon coverage area for realizing a humanized moon image shooting scheme, improves the moon image shooting precision and imaging effect, reduces the operation difficulty of the user, and enhances the shooting experience of the user.
Example eight
Fig. 10 is a flowchart of an eighth embodiment of a moon image capturing method according to the present invention, based on the above embodiments, where the method further includes controlling a first camera to capture a first image and a second camera to capture a second image according to capturing parameters corresponding to the capturing instruction, and acquiring a first moon position coverage area in the first image and a second moon position coverage area in the second image according to the astronomical assistance information, further including:
and S35, combining the position, the size and the form, and respectively carrying out edge detection and threshold analysis on the first image and the second image.
S36, obtaining the first crescent moon position covering area in the first image and the second crescent moon position covering area in the second image according to the detection and the analysis.
Optionally, in this embodiment, the same manner is adopted for the first image and the second image, that is, the edge detection and the threshold analysis are respectively performed on the first image and the second image by combining the position, the size, and the form.
Optionally, in this embodiment, according to the detecting and the analyzing, the first bright month position coverage area in the first image and the second bright month position coverage area in the second image are obtained. Therefore, in the image fusion process, the image of the second moon position coverage area in the second image can be overlaid to the first moon position coverage area in the first image, so as to obtain a fused moon captured image. Therefore, the detection of other light sources as the moon is avoided, and the position and the shape of the moon are calculated through astronomical auxiliary information, so that on one hand, auxiliary composition is realized, and on the other hand, fusion errors are avoided.
The embodiment has the advantages that the edge detection and the threshold analysis are respectively carried out on the first image and the second image by combining the position, the size and the form; obtaining the first crescent moon position coverage area in the first image and the second crescent moon position coverage area in the second image according to the detection and the analysis. The method provides a fused image foundation and a fused mode for realizing a humanized moon image shooting scheme, improves the moon image shooting precision and imaging effect, reduces the operation difficulty of a user, and enhances the shooting experience of the user.
Example nine
Based on the above embodiments, the present invention also provides a moon image capturing apparatus, which includes a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the computer program, when executed by the processor, implements the steps of the moon image capturing method as described in any one of the above.
It should be noted that the device embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are correspondingly applicable in the device embodiment, which is not described herein again.
Example ten
Based on the above embodiments, the present invention also proposes a computer readable storage medium having stored thereon a lunar image capturing program which, when executed by a processor, implements the steps of the lunar image capturing method as described in any one of the above.
It should be noted that the media embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are correspondingly applicable in the media embodiment, which is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for capturing a moon image, the method comprising:
opening a viewing interface of moon shooting, acquiring astronomical auxiliary information, and judging whether a moon image is contained in the viewing interface according to the astronomical auxiliary information;
if the moon image is contained in the view interface, carrying out composition adjustment and focusing adjustment according to the position of the moon image in the view interface, and receiving a shooting instruction after adjustment;
controlling a first camera to shoot a first image according to shooting parameters corresponding to the shooting instruction, controlling a second camera to shoot a second image, and acquiring a first moon position coverage area in the first image and a second moon position coverage area in the second image according to the astronomical auxiliary information;
and covering the image of the second moon position coverage area in the second image to the first moon position coverage area in the first image to obtain a fused moon shooting image.
2. The method for capturing the moon image according to claim 1, wherein the opening a viewing interface of the moon image, acquiring astronomical assistance information, and determining whether the moon image is included in the viewing interface according to the astronomical assistance information includes:
acquiring the position information of the shooting equipment according to the GPS data or the WiFi data;
and acquiring shooting angle information of the shooting equipment according to the gravity sensor data and the magnetic sensor data of the shooting equipment.
3. The method for capturing the moon image according to claim 2, wherein the step of opening a viewing interface for capturing the moon image, acquiring astronomical assistance information, and determining whether the moon image is included in the viewing interface according to the astronomical assistance information further comprises:
acquiring current earth rotation angle information according to current time information;
and acquiring current star catalogue data information according to the astronomical auxiliary information.
4. The method for capturing the moon image according to claim 3, wherein the step of opening a viewing interface for capturing the moon image, acquiring astronomical assistance information, and determining whether the moon image is included in the viewing interface according to the astronomical assistance information further comprises:
determining whether the central position of the moon is in the view finding interface or not according to the position information, the shooting angle information, the earth rotation angle information, the field angle information of the shooting equipment and the zoom multiple information;
and if the central position of the moon is determined to be positioned in the viewing interface, determining that the moon image is contained in the viewing interface.
5. The method for capturing the moon image according to claim 4, wherein the step of opening a viewing interface for capturing the moon image, acquiring astronomical assistance information, and determining whether the moon image is included in the viewing interface according to the astronomical assistance information further comprises:
if the central position of the moon is not in the viewing interface, determining whether the edge position of the moon is in the viewing interface according to the radius of the moon;
and if the moon edge position is determined to be in the viewing interface, determining that the moon image is contained in the viewing interface, and if the moon edge position is determined not to be in the viewing interface, determining that the moon image is not contained in the viewing interface.
6. The method for capturing lunar images according to claim 1, wherein the controlling a first camera to capture a first image and a second camera to capture a second image according to the capturing parameters corresponding to the capturing instruction, and acquiring a first lunar position coverage area in the first image and a second lunar position coverage area in the second image according to the astronomical assistance information comprises:
when the shooting instruction is acquired, determining a first shooting parameter for performing focusing shooting by the first camera with a standard focal length at a picture center position, and determining a second shooting parameter for performing focusing shooting by the second camera with a long focal length at a moon center position;
and controlling the first camera to shoot according to the first shooting parameter to obtain the first image, and controlling the second camera to shoot according to the second shooting parameter to obtain the second image.
7. The method for capturing lunar images according to claim 6, wherein the controlling a first camera to capture a first image and a second camera to capture a second image according to the capturing parameters corresponding to the capturing instruction, and acquiring a first lunar position coverage area in the first image and a second lunar position coverage area in the second image according to the astronomical assistance information further comprises:
determining the position and size of the moon in the first image and the second image respectively through the astronomical auxiliary information;
and determining the morphology of the moon in the first image and the second image respectively according to the relative position relation of the moon, the earth and the sun in the astronomical auxiliary information.
8. The method for capturing lunar images according to claim 7, wherein the controlling a first camera to capture a first image and a second camera to capture a second image according to the capturing parameters corresponding to the capturing instruction, and acquiring a first lunar position coverage area in the first image and a second lunar position coverage area in the second image according to the astronomical assistance information further comprises:
performing edge detection and threshold analysis on the first image and the second image respectively by combining the position, the size and the morphology;
obtaining the first crescent moon position coverage area in the first image and the second crescent moon position coverage area in the second image according to the detection and the analysis.
9. A moon image capturing apparatus, characterized in that the apparatus comprises a memory, a processor and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the moon image capturing method as claimed in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a lunar image capturing program which, when executed by a processor, implements the steps of the lunar image capturing method as claimed in any one of claims 1 to 8.
CN202110685658.0A 2021-06-21 2021-06-21 Moon image shooting method and device and computer readable storage medium Pending CN113347364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110685658.0A CN113347364A (en) 2021-06-21 2021-06-21 Moon image shooting method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110685658.0A CN113347364A (en) 2021-06-21 2021-06-21 Moon image shooting method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113347364A true CN113347364A (en) 2021-09-03

Family

ID=77478315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110685658.0A Pending CN113347364A (en) 2021-06-21 2021-06-21 Moon image shooting method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113347364A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114926351A (en) * 2022-04-12 2022-08-19 荣耀终端有限公司 Image processing method, electronic device, and computer storage medium
CN116684726A (en) * 2022-11-18 2023-09-01 荣耀终端有限公司 Moon detection method and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114926351A (en) * 2022-04-12 2022-08-19 荣耀终端有限公司 Image processing method, electronic device, and computer storage medium
CN116684726A (en) * 2022-11-18 2023-09-01 荣耀终端有限公司 Moon detection method and electronic equipment
CN116684726B (en) * 2022-11-18 2024-04-19 荣耀终端有限公司 Moon detection method and electronic equipment

Similar Documents

Publication Publication Date Title
CN107820014B (en) Shooting method, mobile terminal and computer storage medium
CN108419008B (en) Shooting method, terminal and computer readable storage medium
CN107566734B (en) Intelligent control method, terminal and computer readable storage medium for portrait photographing
CN111885307B (en) Depth-of-field shooting method and device and computer readable storage medium
CN111866388B (en) Multiple exposure shooting method, equipment and computer readable storage medium
CN107896304B (en) Image shooting method and device and computer readable storage medium
CN112188082A (en) High dynamic range image shooting method, shooting device, terminal and storage medium
CN113347364A (en) Moon image shooting method and device and computer readable storage medium
CN108848321B (en) Exposure optimization method, device and computer-readable storage medium
CN113301253B (en) Auxiliary shooting method for astronomical image, mobile terminal and storage medium
CN112135060B (en) Focusing processing method, mobile terminal and computer storage medium
CN112135045A (en) Video processing method, mobile terminal and computer storage medium
CN112153305A (en) Camera starting method, mobile terminal and computer storage medium
CN111787234A (en) Shooting control method and device and computer readable storage medium
CN109510941B (en) Shooting processing method and device and computer readable storage medium
CN108495033B (en) Photographing regulation and control method and device and computer readable storage medium
CN115205436A (en) Self-adaptive constellation mapping method, equipment and computer readable storage medium
CN112040134B (en) Micro-holder shooting control method and device and computer readable storage medium
CN113572916B (en) Shooting method, terminal equipment and storage medium
CN112449112B (en) Camera white balance adjusting method, mobile terminal and computer readable storage medium
CN112532838B (en) Image processing method, mobile terminal and computer storage medium
CN108600629B (en) Photographing method, mobile terminal and computer-readable storage medium
CN108989695B (en) Initial automatic exposure convergence method, mobile terminal and computer-readable storage medium
CN113473029A (en) Lightning image shooting method and device and computer readable storage medium
CN109215004B (en) Image synthesis method, mobile terminal and computer readable 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