A star sky photographing method, device and computer readable storage medium

By acquiring a set of stars and their positions, setting rendering parameters, identifying preset constellations, eliminating motion blur, and generating an enhanced starry sky image, the hardware limitations and motion blur issues of shooting starry sky images on mobile devices are solved, improving shooting effects and user experience.

CN113452908BActive Publication Date: 2026-06-23NUBIA TECHNOLOGY CO LTD
3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NUBIA TECHNOLOGY CO LTD
Filing Date
2021-06-21
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

When shooting images of the night sky on mobile devices, existing technologies struggle to achieve ideal results due to limitations such as low light at night, hardware constraints, and motion blur caused by celestial bodies and the Earth's rotation, resulting in a poor user experience.

Method used

By acquiring the set of stars and their positions, setting the drawing parameters, identifying preset constellations, generating composition references, and combining the shooting parameters to eliminate motion blur, an enhanced starry sky image is generated.

Benefits of technology

It has achieved a user-friendly star trail shooting solution, saving shooting and adjustment time, reducing the user's operational burden, improving shooting effects and flexibility, and enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113452908B_ABST
    Figure CN113452908B_ABST
Patent Text Reader

Abstract

The application discloses a starry sky photographing method and device and a computer readable storage medium, wherein the method comprises the following steps: when entering a viewfinder interface of starry sky photographing, acquiring a star set, setting star drawing parameters, and determining the positions of celestial bodies in the star set; performing celestial body drawing according to the star drawing parameters and the positions of the celestial bodies, and displaying the drawn celestial body image in the viewfinder interface; when receiving a composition regulation instruction and a photographing instruction of the starry sky photographing, performing smear identification and elimination on the reconfigured celestial body image in combination with photographing parameters corresponding to the photographing instruction, to generate a starry sky image after enhancement processing. A humanized star track photographing scheme is realized, the photographing adjustment time during starry sky photographing is saved, the operation burden of a user is reduced, the effect of starry sky image photographing and the flexibility of production are improved, and the user experience is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of mobile communications, and more particularly to a method, device, and computer-readable storage medium for astrophotography. Background Technology

[0002] In the current technology, with the continuous development of smart terminal devices, users' demand for mobile device photography is also increasing. In particular, as an important photography project, the operation skills and shooting effects have become the fun pursued by users.

[0003] However, when shooting starry sky images on mobile devices, due to the weak ambient light at night, a longer exposure time is often required to obtain good results. Furthermore, auxiliary photography equipment (such as tripods and star trackers) must be used, which is not user-friendly. Additionally, the starry sky images may not be ideal due to the limitations of mobile photography terminal hardware, weather conditions, and ambient light interference. Moreover, the long exposure time can cause motion blur of celestial bodies due to the relative motion between celestial bodies and the Earth's rotation, which also affects the final image quality and results in a poor user experience. Summary of the Invention

[0004] To address the aforementioned technical deficiencies in the existing technology, this invention proposes a method for photographing the starry sky, the method comprising:

[0005] When entering the viewfinder for stargazing, the system acquires a set of celestial bodies, sets the celestial drawing parameters, and determines the celestial positions of each celestial body within the set of celestial bodies.

[0006] The system draws celestial bodies according to the star drawing parameters and the celestial body positions, and displays the drawn celestial body images in the viewfinder. At the same time, it identifies whether there are preset constellations in the celestial body images through a preset constellation list. If the preset constellations exist, it determines a target constellation in the preset constellations whose number of celestial bodies exceeds a preset number.

[0007] Obtain the relative direction between the center position of the viewfinder and the center area of ​​the target constellation, and generate corresponding composition references and composition previews based on the relative direction;

[0008] When a composition control command and a shooting command for starry sky photography are received, the motion blur of the reconstructed celestial image is identified and eliminated by combining the shooting parameters corresponding to the shooting command, so as to generate an enhanced starry sky image.

[0009] Optionally, the step of acquiring a set of celestial bodies and setting celestial body drawing parameters when entering the viewfinder for astrophotography, and determining the celestial positions of each celestial body in the set of celestial bodies, includes:

[0010] When entering the viewfinder for star trail photography, a list of celestial bodies within the viewfinder is obtained based on astronomical and equipment data, and the list of celestial bodies is sorted according to the star density parameter to obtain a set of stars.

[0011] The star rendering parameters are defined as consisting of star rendering brightness parameters, star rendering color parameters, and star rendering size parameters.

[0012] Optionally, the step of drawing celestial bodies based on the star drawing parameters and the celestial body positions, and displaying the drawn celestial body image in the viewfinder, while simultaneously identifying whether a preset constellation exists in the celestial body image through a preset constellation list, and if the preset constellation exists, determining a target constellation with more than a preset number of celestial bodies within the preset constellation, includes:

[0013] The preset constellation list is set according to constellation information and user selection instructions;

[0014] The preset constellation list is parsed to obtain the constellation code, constellation name, central region location, and list of celestial bodies.

[0015] Optionally, the step of drawing celestial bodies based on the star drawing parameters and the celestial body positions, and displaying the drawn celestial body image in the viewfinder, while simultaneously identifying whether a preset constellation exists in the celestial body image through a preset constellation list, and if the preset constellation exists, determining a target constellation in the preset constellation whose number of celestial bodies exceeds a preset number, further includes:

[0016] Determine whether each celestial body in the set of celestial bodies belongs to a constellation;

[0017] Determine the constellation to which the celestial bodies belong.

[0018] Optionally, the step of drawing celestial bodies based on the star drawing parameters and the celestial body positions, and displaying the drawn celestial body image in the viewfinder, while simultaneously identifying whether a preset constellation exists in the celestial body image through a preset constellation list, and if the preset constellation exists, determining a target constellation in the preset constellation whose number of celestial bodies exceeds a preset number, further includes:

[0019] A preset constellation list is set based on the constellation information and the user's selected instructions;

[0020] Determine any of the constellations included in the preset constellation list as the preset constellation.

[0021] Optionally, the step of drawing celestial bodies based on the star drawing parameters and the celestial body positions, and displaying the drawn celestial body image in the viewfinder, while simultaneously identifying whether a preset constellation exists in the celestial body image through a preset constellation list, and if the preset constellation exists, determining a target constellation in the preset constellation whose number of celestial bodies exceeds a preset number, further includes:

[0022] The number of celestial bodies included in each constellation is determined within the preset constellation;

[0023] The constellation with the largest number of celestial bodies is selected as the target constellation.

[0024] Optionally, obtaining the relative direction between the center position of the viewfinder and the center region of the target constellation, and generating corresponding composition references and composition previews based on the relative direction, includes:

[0025] Determine a preview image containing the target constellation;

[0026] A composition reference to be selected is generated on the preview image according to the relative direction, and a corresponding composition preview is generated according to the selection instruction.

[0027] Optionally, when receiving the composition control command and the shooting command for starry sky photography, the process of performing motion blur recognition and elimination on the reconstructed celestial image based on the shooting parameters corresponding to the shooting command to generate an enhanced starry sky image includes:

[0028] Obtain the shooting parameters consisting of the current exposure time and a preset exposure time threshold;

[0029] If the current exposure time is greater than the preset exposure time threshold, then the motion trajectory of each star in the star set and the preset trajectory range are compared, and if it is determined that there is a trailing shadow in the motion trajectory within the preset trajectory range, the trailing shadow is collected and eliminated.

[0030] The present invention also proposes a starry sky photography device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the starry sky photography method as described in any of the preceding claims.

[0031] The present invention also proposes a computer-readable storage medium storing a starry sky photography program, which, when executed by a processor, implements the steps of the starry sky photography method as described in any of the preceding claims.

[0032] The astrophotography method, device, and computer-readable storage medium of this invention involve: acquiring a set of celestial bodies and setting celestial body drawing parameters upon entering the astrophotography viewfinder, and determining the celestial positions of each celestial body in the set; drawing celestial bodies according to the celestial body drawing parameters and celestial body positions, and displaying the drawn celestial body image within the viewfinder; simultaneously identifying whether a preset constellation exists in the celestial body image through a preset constellation list; if the preset constellation exists, determining a target constellation with more than a preset number of celestial bodies within the preset constellation; acquiring the relative direction between the center position of the viewfinder and the center region position of the target constellation, and generating corresponding composition references and composition previews based on the relative direction; and when receiving composition adjustment instructions and astrophotography shooting instructions, combining the shooting parameters corresponding to the shooting instructions to perform motion blur recognition and elimination on the reconstructed celestial body image to generate an enhanced astrophotography image. This achieves a user-friendly star trail photography solution, saving shooting adjustment time during astrophotography, reducing the user's operational burden, improving the effect and flexibility of astrophotography image creation, and enhancing the user experience. Attached Figure Description

[0033] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:

[0034] Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal according to the present invention;

[0035] Figure 2 This is a communication network system architecture diagram provided in an embodiment of the present invention;

[0036] Figure 3 This is a flowchart of the first embodiment of the starry sky photography method of the present invention;

[0037] Figure 4 This is a flowchart of the second embodiment of the starry sky photography method of the present invention;

[0038] Figure 5 This is a flowchart of the third embodiment of the starry sky photography method of the present invention;

[0039] Figure 6 This is a flowchart of the fourth embodiment of the starry sky photography method of the present invention;

[0040] Figure 7 This is a flowchart of the fifth embodiment of the starry sky photography method of the present invention;

[0041] Figure 8 This is a flowchart of the sixth embodiment of the starry sky photography method of the present invention;

[0042] Figure 9 This is a flowchart of the seventh embodiment of the starry sky photography method of the present invention;

[0043] Figure 10 This is a flowchart of the eighth embodiment of the starry sky photography method of the present invention. Detailed Implementation

[0044] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.

[0045] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.

[0046] Terminals can be implemented in various forms. For example, the terminals described in this invention may include mobile terminals such as mobile phones, tablets, laptops, handheld computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.

[0047] The following description will use a mobile terminal as an example. Those skilled in the art will understand that, apart from elements specifically designed for mobile purposes, the construction according to embodiments of the present invention can also be applied to fixed-type terminals.

[0048] Please see Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present invention. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (Audio / Video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art will understand that... Figure 1 The mobile terminal structure shown does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0049] The following is combined Figure 1 A detailed introduction to each component of the mobile terminal:

[0050] The radio frequency unit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 110; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, and a duplexer. Furthermore, the radio frequency unit 101 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), 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 Duplexing-Long Term Evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution).

[0051] WiFi is a short-range wireless transmission technology. Mobile terminals, through the WiFi module 102, can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 1 WiFi module 102 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted as needed without changing the nature of the invention.

[0052] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into audio signals and output them as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, etc. Furthermore, the audio output unit 103 can also provide audio output related to specific functions performed by the mobile terminal 100 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.

[0053] 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 GPU 1041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can 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 can receive sound (audio data) in operating modes such as telephone call mode, recording mode, and voice recognition mode, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in telephone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.

[0054] 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 and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the ambient light level, and the proximity sensor can turn off the display panel 1061 and / or backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.

[0055] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0056] User input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, user input unit 107 may include touch panel 1071 and other input devices 1072. Touch panel 1071, also known as touch screen, can collect touch operations on or near the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 1071), and drive corresponding connection devices according to a pre-set program. Touch panel 1071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 110, and can receive and execute commands from processor 110. In addition, touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc., without being limited here.

[0057] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 based on the type of touch event. Although in Figure 1 In this embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal. The specific implementation is not limited here.

[0058] Interface unit 108 serves as an interface through which at least one external device can connect to 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 with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 108 may be used to receive input (e.g., data, power, etc.) from the external device and transmit the received input to one or more elements within mobile terminal 100, or it may be used to transmit data between mobile terminal 100 and the external device.

[0059] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0060] The processor 110 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 110.

[0061] The mobile terminal 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.

[0062] although Figure 1 As not shown, the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.

[0063] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.

[0064] Please see Figure 2 , Figure 2 This invention provides a communication network system architecture diagram. The communication network system is an LTE system based on the universal mobile communication technology. 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 the operator's IP services 204, which are connected in sequence.

[0065] Specifically, UE201 can be the aforementioned terminal 100, which will not be elaborated here.

[0066] E-UTRAN202 includes eNodeB2021 and other eNodeB2022s. Among them, eNodeB2021 can connect to other eNodeB2022s via backhaul (e.g., X2 interface), and eNodeB2021 connects to EPC203. eNodeB2021 can provide UE201 with access to EPC203.

[0067] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gateway) 2034, PGW (Packet Data Network Gateway) 2035, and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is the control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 provides registers to manage functions such as the Home Location Register (not shown in the diagram) and stores user-specific information such as service characteristics and data rates. All user data can be sent through SGW2034. PGW2035 can provide UE 201 IP address allocation and other functions. PCRF2036 is the policy and charging control decision point for service data flow and IP bearer resources. It selects and provides available policy and charging control decisions for the policy and charging enforcement function unit (not shown in the figure).

[0068] IP services 204 may include the Internet, intranet, IMS (IP Multimedia Subsystem), or other IP services.

[0069] Although the above description uses the LTE system as an example, those skilled in the art should understand that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, etc., which are not limited here.

[0070] Based on the aforementioned mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.

[0071] Example 1

[0072] Figure 3 This is a flowchart of the first embodiment of the starry sky photography method of the present invention. A starry sky photography method, the method comprising:

[0073] S1. When entering the viewfinder for star photography, obtain the set of celestial bodies, set the celestial body drawing parameters, and determine the celestial position of each celestial body in the set of celestial bodies.

[0074] S2. Render celestial bodies according to the celestial body rendering parameters and the celestial body position, and display the rendered celestial body image in the viewfinder. At the same time, identify whether there is a preset constellation in the celestial body image through a preset constellation list. If the preset constellation exists, determine a target constellation in the preset constellation whose number of celestial bodies exceeds a preset number.

[0075] S3. Obtain the relative direction between the center position of the viewfinder and the center area of ​​the target constellation, and generate corresponding composition reference and composition preview based on the relative direction;

[0076] S4. When a composition control command and a shooting command for starry sky photography are received, the motion blur recognition and elimination of the celestial image after reconstruction is performed in combination with the shooting parameters corresponding to the shooting command, so as to generate an enhanced starry sky image.

[0077] Optionally, in this embodiment, firstly, a list of celestial bodies in the viewfinder is obtained, and the list is traversed. If the traversal is not completed, the untraversed celestial bodies are obtained. Then, the user is prompted whether to draw celestial bodies. When it is determined that celestial bodies need to be drawn, the celestial body drawing parameters are obtained, and then the celestial bodies are drawn.

[0078] Optionally, in this embodiment, after the stars are drawn, a preview of the drawing effect is performed. At the same time, the user is further prompted whether a reconstruction image and a photograph are needed. When the starry sky image is finally photographed, an initial image of the starry sky is first generated. Then, based on the initial image, ghosting is identified and eliminated to generate an enhanced starry sky image.

[0079] Optionally, in this embodiment, an astronomical computing image-assisted system is used to determine a list of stars within the current field of view, as well as the position, brightness, color, apparent size, etc. of each star.

[0080] Optionally, in this embodiment, the starry sky is enhanced based on the position, brightness, color, apparent size, etc. of each star in the list, in order to shorten the shooting time and improve the shooting effect.

[0081] It can be seen that the above solution, to a certain extent, makes the shooting process less affected by factors such as the hardware limitations of mobile photography terminal equipment, weather conditions, and ambient light interference.

[0082] The beneficial effects of this embodiment are as follows: Upon entering the viewfinder for astrophotography, a set of celestial bodies is acquired, celestial drawing parameters are set, and the celestial positions of each celestial body within the set are determined. Celestial bodies are drawn according to the drawing parameters and their positions, and the drawn celestial images are displayed within the viewfinder. Simultaneously, a preset constellation list is used to identify whether a preset constellation exists within the celestial image. If the preset constellation exists, a target constellation with more than a preset number of celestial bodies is identified within it. The relative direction between the center position of the viewfinder and the center region of the target constellation is obtained, and a corresponding composition reference and composition preview are generated based on this relative direction. When a composition adjustment command and a astrophotography shooting command are received, the celestial image after reconstruction is processed using the shooting parameters corresponding to the shooting command to identify and eliminate motion blur, thereby generating an enhanced astrophotography image. This achieves a user-friendly star trail photography solution, saving shooting adjustment time during astrophotography, reducing the user's operational burden, improving the effect and flexibility of astrophotography image creation, and enhancing the user experience.

[0083] Example 2

[0084] Figure 4 This is a flowchart of the second embodiment of the starry sky photography method of the present invention. Based on the above embodiment, the step of acquiring a set of celestial bodies and setting celestial body drawing parameters when entering the viewfinder for starry sky photography, and determining the celestial position of each celestial body in the set of celestial bodies, includes:

[0085] S11. When entering the viewfinder for star trail photography, obtain the list of celestial bodies in the viewfinder based on astronomical data and equipment data, and sort the list of celestial bodies according to the star density parameter to obtain a set of stars.

[0086] S12. Set the star drawing parameters, which consist of star drawing brightness parameters, star drawing color parameters, and star drawing size parameters.

[0087] Optionally, in this embodiment, the device data is acquired, wherein the device data includes time data, GPS data, WiFi data, gravity sensor data, and magnetic sensor data.

[0088] Optionally, in this embodiment, the current location of the device is obtained based on the GPS data or the WiFi data, and the shooting angle of the device is obtained based on the gravity sensor data and the magnetic sensor data.

[0089] Optionally, in this embodiment, the longitude and latitude of the current location of the mobile terminal device are obtained based on GPS data or WIFI data, and are denoted as Position(latitude, longitude).

[0090] Optionally, in this embodiment, the current shooting angle α of the mobile terminal device is obtained based on data from sensors such as gravity sensor data and magnetic sensor data.

[0091] Optionally, in this embodiment, the astronomical data is acquired, including Earth rotation angle data and star catalog data.

[0092] Optionally, in this embodiment, the rotation angle of the Earth at the current time is obtained based on the time data and the Earth rotation angle data, and the total number of celestial bodies, their encoding information, name information, position information, brightness information, color information, apparent size information, right ascension information, and declination information are obtained based on the star catalog data.

[0093] Optionally, in this embodiment, the current rotation angle θ of the Earth is obtained based on the current time, etc.

[0094] Optionally, in this embodiment, star catalog data (such as the Hubble Telescope guide star catalog) is acquired, and the star catalog data should include, but is not limited to, the following information:

[0095] StarList={S1, S2, S3...S n};

[0096] S i ={index,name,location,Vmag,Bmag,VisualAngle,…};

[0097] location i ={RA, Dec};

[0098] Where n is the total number of celestial bodies recorded in the star catalog, and index, name, location, Vmag, Bmag, and VisualAngle are the celestial bodies S, respectively. i The encoding information, name information, location information, brightness information, color information, apparent size information, etc.; RA and Dec are for celestial body S. i Location information i The information on right ascension and declination.

[0099] Optionally, in this embodiment, a list of celestial bodies within the viewfinder is obtained based on the celestial body's position information, the device's current position, the device's shooting angle, the device's field of view, and the device's zoom level.

[0100] Optionally, in this embodiment, the celestial bodies in the celestial body list are sorted by brightness according to the brightness information, and the set of stars composed of displayable celestial bodies is obtained according to the star density parameter.

[0101] Optionally, in this embodiment, for each celestial body in the star catalog data: based on its location data, the current position and angle α of the mobile terminal device, the field of view (FOV) of the lens, the digital zoom factor (f), etc., it is calculated whether the celestial body is within the current viewfinder.

[0102] Optionally, in this embodiment, the list of celestial bodies in the current viewfinder is returned:

[0103] S inside ={S1,S2,S3,……,S m}

[0104] Where m represents the number of celestial bodies in the current viewfinder.

[0105] Optionally, in this embodiment, the star density parameter Tsparse is obtained; this parameter can be a fixed preset parameter, or a dynamically changing parameter based on the user's shooting time, region, weather conditions, etc., or a parameter set by the user; wherein: Tsparse∈[0,1].

[0106] Optionally, in this embodiment, for S inside The celestial bodies within the range are sorted according to their brightness parameter Vmag.

[0107] Optionally, in this embodiment, the number of stars that can be displayed is calculated as: m′=m*Tsparse.

[0108] Optionally, in this embodiment, after determining the number of displayable stars, the set S′ of stars within the sorted m′ is obtained. inside ={S1,S2,S3,……,S m′}

[0109] Optionally, in this embodiment, the star drawing brightness parameter, the star drawing color parameter, and the star drawing size parameter are set according to one or more of the following: fixed brightness, random brightness, fixed color, random color, fixed size, random size, the position information, the brightness information, the color information, and the apparent size information.

[0110] Optionally, in this embodiment, the brightness parameters of the celestial body are calculated according to predetermined rules; the calculation rules include, but are not limited to: fixed brightness, random brightness, brightness calculated from location and Vmag, etc.

[0111] Optionally, in this embodiment, the color parameters of the celestial body are calculated according to predetermined rules; the calculation rules include, but are not limited to: fixed color, random color, color calculated by location and Bmag, etc.

[0112] Optionally, in this embodiment, the size parameters of the celestial body are calculated according to predetermined rules; the calculation rules include, but are not limited to: fixed size, random size, size calculated by location, VisualAngle, etc.

[0113] The beneficial effects of this embodiment are as follows: upon entering the viewfinder for star trail photography, a list of celestial bodies within the viewfinder is obtained based on astronomical and device data. This list is then sorted according to star density parameters to obtain a set of stars. Star drawing parameters, consisting of star brightness, color, and size parameters, are set. This provides a data foundation for a user-friendly star trail photography solution, saving shooting and adjustment time during starry sky photography, reducing the user's operational burden, improving the quality and flexibility of star chart creation, and enhancing the user experience.

[0114] Example 3

[0115] Figure 5 This is a flowchart of the third embodiment of the starry sky photography method of the present invention. Based on the above embodiment, the steps of drawing celestial bodies according to the star drawing parameters and the celestial body positions, and displaying the drawn celestial body image in the viewfinder interface, while identifying whether a preset constellation exists in the celestial body image through a preset constellation list, and if the preset constellation exists, determining a target constellation in the preset constellation whose number of celestial bodies exceeds a preset number, includes:

[0116] S21. Set the preset constellation list according to constellation information and user selection instructions;

[0117] S22. Parse the preset constellation list to obtain the constellation code, constellation name, central region location, and list of celestial bodies.

[0118] Optionally, in this embodiment, the celestial position of the celestial body to be drawn is determined at a preset series of time points.

[0119] Optionally, in this embodiment, the celestial motion trajectory is obtained using an astronomical computation-assisted imaging system. iSpecifically, following established rules, the positional information of the celestial body at a series of time points is obtained:

[0120] R={r1, r2, r3,..., r n};

[0121] r i ={index, name, time, location}.

[0122] Where n is the number of location information records.

[0123] Optionally, in this embodiment, a preset constellation list is set up based on constellation information obtained from the network, consisting of one or more constellations that are well-known to users and frequently popularized in science.

[0124] Optionally, in this embodiment, the constellations in the preset constellation list downloaded from the network are further selected or deleted according to the user's selected instructions to generate a final preset constellation list suitable for the terminal device or for this starry sky shooting.

[0125] Optionally, in this embodiment, a preset constellation list is obtained:

[0126] C={cons1, cons2, cons3,...};

[0127] cons i ={index, name, location, StarList};

[0128] location i ={RA, Dec};

[0129] StarList = {S i ,1,S i,2 S i,3 , ......}.

[0130] Where index is the constellation code, name is the constellation name, location is the location of the central region of the constellation, and StarList is the list of celestial bodies within the constellation.

[0131] The beneficial effects of this embodiment are that by setting the preset constellation list according to constellation information and user selection instructions, and parsing the preset constellation list, constellation codes, constellation names, central region positions, and a list of celestial bodies are obtained. This provides a preset constellation list for a user-friendly star trail photography solution, saving shooting and adjustment time during starry sky photography, reducing the user's operational burden, improving the quality and flexibility of star chart photography and production, and enhancing the user experience.

[0132] Example 4

[0133] Figure 6 This is a flowchart of the fourth embodiment of the starry sky photography method of the present invention. Based on the above embodiment, the steps of drawing celestial bodies according to the star drawing parameters and the celestial body positions, and displaying the drawn celestial body image in the viewfinder interface, while identifying whether a preset constellation exists in the celestial body image through a preset constellation list, and if the preset constellation exists, determining a target constellation in the preset constellation whose number of celestial bodies exceeds a preset number, further include:

[0134] S23. Determine whether each of the celestial bodies in the set of celestial bodies belongs to a constellation;

[0135] S24. Determine the constellation to which the celestial bodies within the constellation belong.

[0136] Optionally, in this embodiment, for S′ inside For each celestial body within the system, it records whether it is within a constellation, and if so, which constellation it is within.

[0137] consRec i ={S i ,……}.

[0138] Wherein: S i ∈S′ inside , i≤m′.

[0139] Optionally, in this embodiment, if there exists In other words, the preview interface shows celestial bodies in their respective constellations.

[0140] The beneficial effect of this embodiment is that it determines whether each celestial body in the set of celestial bodies belongs to a constellation; and determines the constellation to which the celestial bodies belonging to a constellation belong. This provides a method for determining the constellation to achieve a user-friendly star trail photography solution, saving shooting and adjustment time during starry sky photography, reducing the user's operational burden, improving the effect and flexibility of star chart photography and production, and enhancing the user experience.

[0141] Example 5

[0142] Figure 7 This is a flowchart of the fifth embodiment of the starry sky photography method of the present invention. Based on the above embodiment, the steps of drawing celestial bodies according to the star drawing parameters and the celestial body positions, and displaying the drawn celestial body image in the viewfinder interface, while identifying whether a preset constellation exists in the celestial body image through a preset constellation list, and if the preset constellation exists, determining a target constellation in the preset constellation whose number of celestial bodies exceeds a preset number, further include:

[0143] S25. Set a preset constellation list based on the constellation information and the user's selected instruction;

[0144] S26. Determine any of the constellations included in the preset constellation list as the preset constellation.

[0145] Optionally, in this embodiment, a preset constellation list is set up based on constellation information obtained from the network, consisting of one or more constellations that are well-known to users and frequently popularized in science.

[0146] Optionally, in this embodiment, the constellations in the preset constellation list downloaded from the network are further selected or deleted according to the user's selected instructions to generate a final preset constellation list suitable for the terminal device or the current starry sky shooting.

[0147] Optionally, in this embodiment, considering the hardware limitations of mobile devices in capturing celestial images, selecting fewer celestial bodies or constellations can lead to better shooting or display effects when selecting the final celestial or constellation objects for shooting. Therefore, in this embodiment, the aforementioned preset constellation list is a further selection of the aforementioned preset constellation list.

[0148] The beneficial effect of this embodiment is that, by setting a preset constellation list based on the constellation information and the user's selected instructions, and determining any constellation included in the preset constellation list as the preset constellation, a preset constellation is provided for achieving a user-friendly star trail photography solution. This saves shooting and adjustment time during starry sky photography, reduces the user's operational burden, improves the effect and flexibility of starry sky image creation, and enhances the user experience.

[0149] Example 6

[0150] Figure 8 This is a flowchart of the sixth embodiment of the starry sky photography method of the present invention. Based on the above embodiment, the steps of drawing celestial bodies according to the star drawing parameters and the celestial body positions, and displaying the drawn celestial body image in the viewfinder interface, while identifying whether a preset constellation exists in the celestial body image through a preset constellation list, and if the preset constellation exists, determining a target constellation in the preset constellation whose number of celestial bodies exceeds a preset number, further include:

[0151] S27. Determine the number of celestial bodies included in each constellation in the preset constellation;

[0152] S28. The preset constellation with the largest number of celestial bodies is taken as the target constellation.

[0153] Optionally, in this embodiment, the consRec containing the most celestial bodies is obtained.i The corresponding const i That is, the constellation with the most celestial bodies in the preview interface.

[0154] Optionally, in this embodiment, in order to obtain the best constellation shooting effect, the preset constellation with the largest number of celestial bodies is selected as the target constellation.

[0155] The beneficial effect of this embodiment is that by determining the number of celestial bodies contained in each constellation within the preset constellations, the preset constellation with the largest number of celestial bodies is selected as the target constellation. This provides a method for determining the target constellation to achieve a user-friendly star trail photography solution, saving shooting and adjustment time during starry sky photography, reducing the user's operational burden, improving the effect and flexibility of star chart photography and production, and enhancing the user experience.

[0156] Example 7

[0157] Figure 9 This is a flowchart of the seventh embodiment of the starry sky photography method of the present invention. Based on the above embodiment, the step of obtaining the relative direction between the center position of the viewfinder and the center region position of the target constellation, and generating corresponding composition references and composition previews based on the relative direction, includes:

[0158] S31. Determine a preview image containing the target constellation;

[0159] S32. Generate a composition reference to be selected on the preview image according to the relative direction, and generate a corresponding composition preview according to the selection instruction.

[0160] Optionally, in this embodiment, the center position of the preview interface (center(x,y)) is obtained, and the location of the center region of the constellation is obtained. i .

[0161] Optionally, in this embodiment, the relative direction between the constellation center position and the image center position is calculated.

[0162] Optionally, in this embodiment, the preview prompts the user with the constellation area and the recommended composition of the terminal device's movement direction, progress, and other movement methods.

[0163] The beneficial effects of this embodiment are that it determines a preview image containing the target constellation; generates a composition reference to be selected based on the relative direction on the preview image; and generates a corresponding composition preview based on the selection instruction. This provides a preview adjustment method for achieving a user-friendly star trail photography solution, saving shooting and adjustment time during starry sky photography, reducing the user's operational burden, improving the effect and flexibility of starry sky image shooting and production, and enhancing the user experience.

[0164] Example 8

[0165] Figure 10 This is a flowchart of the eighth embodiment of the starry sky photography method of the present invention. Based on the above embodiment, when a composition control command and a starry sky photography command are received, the motion blur recognition and elimination of the reconstructed celestial image are performed in combination with the shooting parameters corresponding to the shooting command to generate an enhanced starry sky image, including:

[0166] S33. Obtain the shooting parameters consisting of the current exposure time and a preset exposure time threshold;

[0167] S34. If the current exposure time is greater than the preset exposure time threshold, then the motion trajectory of each star in the star set and the preset trajectory range are compared, and if it is determined that there is a trailing shadow in the motion trajectory within the preset trajectory range, the trailing shadow is collected and eliminated.

[0168] Optionally, in this embodiment, when the user clicks to take a picture, the image is taken using predetermined parameters;

[0169] Optionally, in this embodiment, the captured starry sky image is enhanced; the image enhancement includes, but is not limited to, trajectory removal; firstly, it is determined whether trajectory removal is necessary:

[0170] Optionally, in this embodiment, firstly, the exposure time Exp during shooting is obtained; then, a predetermined exposure time threshold T is obtained. exp If Exp > T exp If so, trajectory elimination is required.

[0171] Optionally, in this embodiment, the celestial motion trajectory is obtained using an astronomical computation-assisted imaging system. i .

[0172] Optionally, in this embodiment, for S′ inside For each celestial body within the range, determine whether there is a trailing shadow within its trajectory range.

[0173] Optionally, in this embodiment, if ghosting exists, it is eliminated by aggregation.

[0174] Optionally, in this embodiment, the image enhancement includes, but is not limited to: star enhancement; for S′ insideM Each celestial body within the drawing is drawn based on its position, brightness, color, and size.

[0175] Optionally, in this embodiment, the image enhancement includes, but is not limited to: constellation enhancement; for S′ insideWithin a constellation, draw the constellation shape based on the positions of the main celestial bodies within the constellation;

[0176] Optionally, in this embodiment, the image containing the starry sky enhancement effect is output, saved, or compared with the shooting effect of the original image.

[0177] The beneficial effect of this embodiment is that by acquiring the shooting parameters composed of the current exposure time and a preset exposure time threshold; if the current exposure time is greater than the preset exposure time threshold, the motion trajectory and preset trajectory range of each star in the star set are analyzed, and when it is determined that there is a trailing effect in the motion trajectory within the preset trajectory range, the trailing effect is eliminated. This provides a starry sky image enhancement processing method to achieve a user-friendly star trail shooting solution, saving shooting adjustment time during starry sky shooting, reducing the user's operational burden, improving the effect and flexibility of starry sky image shooting and production, and enhancing the user experience.

[0178] Example 9

[0179] Based on the above embodiments, the present invention also proposes a starry sky photography device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the starry sky photography method as described in any of the above embodiments.

[0180] It should be noted that the above-described device embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the device embodiments, which will not be repeated here.

[0181] Example 10

[0182] Based on the above embodiments, the present invention also proposes a computer-readable storage medium storing a starry sky photography program, which, when executed by a processor, implements the steps of the starry sky photography method as described in any of the above embodiments.

[0183] It should be noted that the above-described medium embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the medium embodiments, which will not be repeated here.

[0184] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0185] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0186] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0187] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.

Claims

1. A method for photographing the starry sky, characterized in that, The method includes: When entering the viewfinder for astrophotography, a set of celestial bodies is acquired, and celestial body rendering parameters are set. The celestial positions of each celestial body in the set are then determined. Conversely, when entering the viewfinder for star trail photography, a list of celestial bodies within the viewfinder is acquired based on astronomical and equipment data. This list is then sorted according to star density parameters to obtain a set of celestial bodies. The celestial body rendering parameters are then set, consisting of celestial body rendering brightness parameters, celestial body rendering color parameters, and celestial body rendering size parameters. The system performs celestial drawing based on the star drawing parameters and the celestial positions, and displays the drawn celestial images in the viewfinder. Simultaneously, it identifies whether a preset constellation exists in the celestial image through a preset constellation list. If the preset constellation exists, it determines the number of celestial bodies contained in each constellation and designates constellations with a number exceeding a preset number as target constellations. Specifically, the preset constellation list is set based on constellation information and user selection instructions, and parsed to obtain constellation codes, constellation names, central region positions, and a list of stars. It determines whether each star belongs to a constellation within the star set and identifies the constellation to which the stars belonging to a constellation belong. The preset constellation list is then set based on the constellation information and user selection instructions, and any constellation included in the preset constellation list is designated as the preset constellation. Obtain the relative direction between the center position of the viewfinder and the center area of ​​the target constellation, and generate corresponding composition references and composition previews based on the relative direction; When a composition control command and a shooting command for starry sky photography are received, the motion blur of the reconstructed celestial image is identified and eliminated by combining the shooting parameters corresponding to the shooting command, so as to generate an enhanced starry sky image.

2. The method for photographing the starry sky according to claim 1, characterized in that, The step of obtaining the relative direction between the center position of the viewfinder and the center region of the target constellation, and generating corresponding composition references and composition previews based on the relative direction, includes: Determine a preview image containing the target constellation; A composition reference to be selected is generated on the preview image according to the relative direction, and a corresponding composition preview is generated according to the selection instruction.

3. The method for photographing the starry sky according to claim 2, characterized in that, When a composition control command and a starry sky shooting command are received, the process of recognizing and eliminating motion blur in the reconstructed celestial image by combining the shooting parameters corresponding to the shooting command, in order to generate an enhanced starry sky image, includes: Obtain the shooting parameters consisting of the current exposure time and a preset exposure time threshold; If the current exposure time is greater than the preset exposure time threshold, the motion trajectory and preset trajectory range of each star in the star set are obtained, and when it is determined that there is a trailing shadow in the motion trajectory within the preset trajectory range, the trailing shadow is collected and eliminated.

4. A astrophotography device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the starry sky photography method as described in any one of claims 1 to 3.

5. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a starry sky photography program, which, when executed by a processor, implements the steps of the starry sky photography method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Shooting method and device and electronic equipment

    CN112261294A

  • Electronic apparatus, image correction method, and image correction program

    JP2019029753A

  • Capturing apparatus with a star observing function and a star observing method

    US20080131856A1