Satellite search method, mobile terminal and computer-readable storage medium
By collecting starry sky preview images on mobile terminals, determining the preview star group and matching the coordinates of the star catalog star group, the problem of large differences between theoretical and actual starry sky preview images is solved, and the starry sky shooting effect and user experience are improved.
Patent Information
- Application Number
- CN202111418950.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-11-26
AI Technical Summary
In the existing technology, the theoretical starry sky preview image determined by astronomical data and device data is too different from the actual starry sky preview image, causing the starry sky enhancement processing to be inconsistent with user expectations and affecting the user experience.
Collect starry sky preview images through the camera, determine the preview star group, determine the star catalog star group based on device data and astronomical data, calculate the coordinate mapping relationship, correct the coordinates of the star catalog star group, and match the star group in the actual star sky preview image to achieve alignment Accurate matching of starry sky preview images.
Accurately determine the actual positions of stars in the starry sky preview image, improving the starry sky shooting effect and enhancing the user experience.
Smart Images

Figure CN114040112B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of camera technology, and in particular to a star-finding method, a mobile terminal and a computer-readable storage medium. Background Art
[0002] When shooting images of the starry sky, the shooting effect is often affected by multiple factors such as the hardware limitations of the mobile photography terminal device, weather conditions, ambient light interference, and limitations of factors such as user professional knowledge, and the captured starry sky effect may not be ideal.
[0003] In order to improve the starry sky shooting effect, the invention patent with application number 202110685652.3 provides a starry sky shooting method, device and computer-readable storage medium, which determines the theoretical starry sky preview image through astronomical data and equipment data, and then enhances the theoretical starry sky preview image to obtain a starry sky image.
[0004] For example, according to the device data, it is determined that the user is theoretically photographing starry sky area 1, and the theoretical starry sky preview image determined in combination with the astronomical data is an image of starry sky area 1; however, due to interference from factors such as the refraction of light during propagation caused by the atmosphere, what the user actually photographed through the device is an image of starry sky area 2, that is, the theoretical starry sky preview image determined based on the astronomical data and device data is too different from the actual starry sky preview image, which results in the application of the theoretical starry sky preview image for starry sky enhancement being inconsistent with user expectations, resulting in a bad user experience. Summary of the invention
[0005] The main purpose of the present invention is to provide a star-finding method, a mobile terminal and a computer-readable storage medium, aiming to solve the technical problem in the prior art that the theoretical starry sky preview image determined based on astronomical data and equipment data is too different from the actual starry sky preview image.
[0006] To achieve the above object, the present invention provides a satellite search method, which comprises:
[0007] Determine a preview star group according to the starry sky preview image collected by the camera;
[0008] Determine the star group in the star catalog corresponding to the starry sky preview image according to the device data and astronomical data;
[0009] Determine a matching star group from the catalog star group that matches the preview star group;
[0010] Calculate the coordinate mapping relationship between the preview star group and the matching star group;
[0011] Based on the coordinate mapping relationship, the coordinates of each star catalog star body in the star catalog star body group are corrected to obtain a new star catalog star body group;
[0012] The actual star catalog star group included in the star preview image is determined based on the new star catalog star group.
[0013] Optionally, the step of determining a matching star group that matches the preview star group from the star group in the star catalog includes:
[0014] Selecting from the star catalog star group the star catalog stars corresponding to each preview star in the preview star group, and constructing a candidate star group corresponding to each preview star;
[0015] Based on a preset selection strategy, a preset number of preview stars are selected from the preview star group to construct a feature star group, wherein the preset number is a positive integer greater than 1;
[0016] Calculate and obtain a first feature corresponding to the characteristic star group, where the first feature includes position information between every two preview stars in the characteristic star group;
[0017] Combining all the star bodies in the star catalog in the candidate star body group corresponding to the preview star body included in the feature star body group to obtain a plurality of star body groups to be matched, and calculating the second feature corresponding to each star body group to be matched, wherein the second feature includes the position information between every two star bodies in the star body group to be matched, and the number of star bodies in the star catalog included in each star body group to be matched is the same as the number of preview stars in the feature star body group;
[0018] Calculate the characteristic distance between each second characteristic and the first characteristic, and determine the target star group to be matched corresponding to the target second characteristic with the smallest characteristic distance to the first characteristic;
[0019] A preview star that has not been selected is selected from the preview star group and added to the feature star group, and the step of returning the first feature corresponding to the feature star group obtained by calculation, wherein the first feature includes position information between every two preview stars in the feature star group, until there are no preview stars that have not been selected in the preview star group, and the last determined target star group to be matched is used as the matching star group that matches the preview star group.
[0020] Optionally, the step of selecting from the star catalog star group the star catalog objects corresponding to each preview star in the preview star group to construct a candidate star group corresponding to each preview star includes:
[0021] Star catalog stars within the position neighborhood and brightness neighborhood of each preview star in the preview star group are selected from the star catalog star group to construct a candidate star group corresponding to each preview star.
[0022] Optionally, the step of selecting a preset number of preview stars from the preview star group based on a preset selection strategy includes:
[0023] According to the brightness priority principle, a preset number of preview stars are selected from the preview star group;
[0024] Alternatively, a preset number of preview stars located in a predetermined area are selected from the preview star group.
[0025] Optionally, the location information includes distance and angle.
[0026] In addition, to achieve the above-mentioned purpose, the present invention also provides a mobile terminal, which includes: a memory, a processor, and a star-seeking program stored in the memory and executable on the processor, and the star-seeking program implements the steps of the star-seeking method described above when executed by the processor.
[0027] In addition, to achieve the above-mentioned purpose, the present invention further provides a computer-readable storage medium, on which a star-finding program is stored, and when the star-finding program is executed by a processor, the steps of the star-finding method described above are implemented.
[0028] In the present invention, a preview star group is determined according to a preview image of the starry sky collected by a camera; a star catalog star group corresponding to the preview image of the starry sky is determined according to device data and astronomical data; a matching star group matching the preview star group is determined from the star catalog star group; a coordinate mapping relationship between the preview star group and the matching star group is calculated; based on the coordinate mapping relationship, the coordinates of each star catalog star in the star catalog star group are corrected to obtain a new star catalog star group; based on the new star catalog star group, the actual star catalog star group included in the preview image of the starry sky is determined. Through the present invention, the coordinates of each star catalog star in the star catalog star group are corrected based on the coordinate mapping relationship, so as to accurately determine the position distribution of each star catalog star relative to the preview image of the starry sky, and finally accurately determine the actual star catalog star group included in the preview image of the starry sky. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention;
[0030] Figure 2 A communication network system architecture diagram provided for an embodiment of the present invention;
[0031] Figure 3 Schematic diagram of a flow chart of an embodiment of a satellite search method of the present invention.
[0032] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0033] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0034] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.
[0035] In the embodiments of the present invention, the satellite search method is applied to a mobile terminal, which can be implemented in various forms. For example, the mobile terminal involved in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a personal digital assistant (PDA), etc.
[0036] The following description will be made by taking a tablet computer as an example. It will be understood by those skilled in the art that, in addition to components specifically used for mobile purposes, the configuration according to the embodiments of the present invention can also be applied to other types of mobile terminals.
[0037] See also Figure 1 , Figure 1 To implement the hardware structure diagram of the mobile terminal of each embodiment of the present invention, the 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 can understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0038] Combine the following Figure 1 The following is a detailed introduction to the various components of the mobile terminal:
[0039] The radio frequency unit 101 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, 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, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can 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), etc.
[0040] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.
[0041] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the terminal 100 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0042] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, and other operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.
[0043] 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, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the 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 all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the terminal, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0044] 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.
[0045] The user input unit 107 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 110, and can receive and execute the command sent by the processor 110. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.
[0046] 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 the touch event. Then, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Figure 1 In the figure, the touch panel 1071 and the display panel 1061 are used as two independent components to implement 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 implement the input and output functions of the mobile terminal, which is not limited here.
[0047] The interface unit 108 serves as an interface through which at least one external device can be 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 with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device 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 an external device.
[0048] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 109 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0049] The processor 110 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. By running or executing software programs and / or modules stored in the memory 109, and calling data stored in the memory 109, it executes various functions of the mobile terminal and processes data, thereby monitoring the main screen page display terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.
[0050] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.
[0051] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.
[0052] like Figure 1 As shown, the memory 109 as a computer storage medium may include an operating system, a network communication module, a user interface module and a satellite search program. The processor 110 may be used to call the satellite search program stored in the memory 109 and perform the following steps:
[0053] Determine a preview star group according to the starry sky preview image collected by the camera;
[0054] Determine the star group in the star catalog corresponding to the starry sky preview image according to the device data and astronomical data;
[0055] Determine a matching star group from the catalog star group that matches the preview star group;
[0056] Calculate the coordinate mapping relationship between the preview star group and the matching star group;
[0057] Based on the coordinate mapping relationship, the coordinates of each star catalog star body in the star catalog star body group are corrected to obtain a new star catalog star body group;
[0058] The actual star catalog star group included in the star preview image is determined based on the new star catalog star group.
[0059] Furthermore, the processor 110 may be used to call the satellite search program stored in the memory 109, and further perform the following steps:
[0060] Selecting from the star catalog star group the star catalog stars corresponding to each preview star in the preview star group, and constructing a candidate star group corresponding to each preview star;
[0061] Based on a preset selection strategy, a preset number of preview stars are selected from the preview star group to construct a feature star group, wherein the preset number is a positive integer greater than 1;
[0062] Calculate and obtain a first feature corresponding to the characteristic star group, where the first feature includes position information between every two preview stars in the characteristic star group;
[0063] Combining all the star bodies in the star catalog in the candidate star body group corresponding to the preview star body included in the feature star body group to obtain a plurality of star body groups to be matched, and calculating the second feature corresponding to each star body group to be matched, wherein the second feature includes the position information between every two star bodies in the star body group to be matched, and the number of star bodies in the star catalog included in each star body group to be matched is the same as the number of preview stars in the feature star body group;
[0064] Calculate the characteristic distance between each second characteristic and the first characteristic, and determine the target star group to be matched corresponding to the target second characteristic with the smallest characteristic distance to the first characteristic;
[0065] A preview star that has not been selected is selected from the preview star group and added to the feature star group, and the step of returning the first feature corresponding to the feature star group obtained by calculation, wherein the first feature includes position information between every two preview stars in the feature star group, until there are no preview stars that have not been selected in the preview star group, and the last determined target star group to be matched is used as the matching star group that matches the preview star group.
[0066] Furthermore, the processor 110 may be used to call the satellite search program stored in the memory 109, and further perform the following steps:
[0067] Star catalog stars within the position neighborhood and brightness neighborhood of each preview star in the preview star group are selected from the star catalog star group to construct a candidate star group corresponding to each preview star.
[0068] Furthermore, the processor 110 may be used to call the satellite search program stored in the memory 109, and further perform the following steps:
[0069] According to the brightness priority principle, a preset number of preview stars are selected from the preview star group;
[0070] Alternatively, a preset number of preview stars located in a predetermined area are selected from the preview star group.
[0071] Furthermore, the location information includes distance and angle.
[0072] 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.
[0073] See also Figure 2 , Figure 2 A communication network system architecture diagram is provided for an embodiment of the present invention. The communication network system is an LTE system of 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 an operator's IP service 204, which are sequentially connected for communication.
[0074] Specifically, UE201 may be the above-mentioned terminal 100, which will not be described in detail here.
[0075] E-UTRAN 202 includes eNodeB 2021 and other eNodeBs 2022 , etc. Among them, eNodeB 2021 can be connected to other eNodeBs 2022 through a backhaul (eg, an X2 interface), and eNodeB 2021 is connected to EPC 203 , and eNodeB 2021 can provide UE 201 with access to EPC 203 .
[0076] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, PGW (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management. HSS2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and save some user-specific information such as service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide IP address allocation and other functions for UE 201, PCRF2036 is the policy and charging control policy decision point for service data flow and IP bearer resources, which selects and provides available policy and charging control decisions for the policy and charging execution function unit (not shown in the figure).
[0077] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem) or other IP services.
[0078] Although the above introduction takes the LTE system as an example, those skilled in the art should know 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.
[0079] Based on the above mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.
[0080] In one embodiment, referring to Figure 3 , Figure 3 FIG. 1 is a flow chart of an embodiment of the satellite search method of the present invention. Figure 3 As shown, the star-finding method includes:
[0081] Step S10, determining a preview star group according to the starry sky preview image captured by the camera;
[0082] In this embodiment, the starry sky preview image captured by the camera is identified to determine a preview star group, which includes several preview stars in the starry sky preview image, for example, preview star 1, preview star 2, preview star 3...preview star m.
[0083] Step S20, determining the star group in the star catalog corresponding to the starry sky preview image according to the device data and the astronomical data;
[0084] In this embodiment, the device data includes time data, GPS data, WiFi data, gravity sensor data, and magnetic sensor data. The current location of the mobile terminal is obtained according to the GPS data or the WiFi data, and the shooting angle of the mobile terminal is obtained according to the gravity sensor data and the magnetic sensor data.
[0085] Astronomical data includes earth rotation angle data and star catalog data. The earth rotation angle at the current moment is obtained based on time data and earth rotation angle data, and the total number information, coding information, name information, location information, brightness information, color information, apparent size information, right ascension information and declination information of celestial bodies are obtained based on star catalog data, where star catalog data such as Hubble telescope guide star catalog
[0086] The star catalog star group corresponding to the starry sky preview image is determined according to the position information of the celestial body, the current position of the mobile terminal, the shooting angle, the field angle and the zoom factor. The star catalog star group includes several star catalog stars, for example, star catalog star 1, star catalog star 2, star catalog star 3...star catalog star n.
[0087] Step S30, determining a matching star group that matches the preview star group from the star group in the star catalog;
[0088] In this embodiment, it is easy to understand that the star catalog star group is determined based on the device data and astronomical data, and the number of stars it contains is generally greater than the number of stars contained in the preview star group. Therefore, it is necessary to determine a matching star group that matches the preview star group from the star catalog star group.
[0089] Furthermore, in an embodiment of the satellite search method of the present invention, step S30 includes:
[0090] Step S301, selecting from the star catalog star group the star catalog stars corresponding to each preview star in the preview star group, and constructing a candidate star group corresponding to each preview star;
[0091] In this embodiment, it is taken as an example that the star catalog star body group includes preview star body 1, preview star body 2, preview star body 3...preview star body m, and the star catalog star body group includes star catalog star body 1, star catalog star body 2, star catalog star body 3...star catalog star body n.
[0092] Select the star body corresponding to preview star body 1 from star body 1, star body 2, star body 3...star body n in the star catalog to construct a candidate star body group corresponding to preview star body 1; similarly, select the star body corresponding to preview star body 2 from star body 1, star body 2, star body 3...star body n in the star catalog to construct a candidate star body group corresponding to preview star body 2; and so on, the candidate star body group corresponding to each preview star can be constructed.
[0093] Furthermore, in an embodiment of the satellite search method of the present invention, step S301 includes:
[0094] Star catalog stars within the position neighborhood and brightness neighborhood of each preview star in the preview star group are selected from the star catalog star group to construct a candidate star group corresponding to each preview star.
[0095] In this embodiment, taking preview star 1 as an example, the star catalog stars in the candidate star group corresponding to preview star 1 are selected from star catalog star 1, star catalog star 2, star catalog star 3, ... star catalog star n, and must meet the following conditions:
[0096] Condition 1: Within the location neighborhood of preview star 1, for example, the horizontal and vertical coordinates of the star catalog star in the candidate star group corresponding to preview star 1 must meet the following requirements:
[0097] X c ≤MIN(X p1 +W*L,W)
[0098] Y c ≤MIN(Y p1 +H*M,H)
[0099] X c ≥MAX(X p1 -W*L,0)
[0100] Y c ≥MAX(Y p1 -H*M,0)
[0101] Among them, X c is the horizontal coordinate of the star in the candidate star group corresponding to preview star 1, X p1 is the horizontal coordinate of the preview star 1, W is the width of the star preview image, L is the width of the location neighborhood search range, Y c Y is the ordinate of the star in the candidate star group corresponding to preview star 1. p1 is the ordinate of the preview star 1, H is the height of the star preview image, and M is the height of the location neighborhood search range. L and M can be set according to actual needs.
[0102] It is easy to understand that the star catalog star group corresponds to the theoretical starry sky preview image, and a coordinate system 1 is established with the lower left corner of the theoretical starry sky preview image as the origin, the positive direction of the X axis to the right, and the positive direction of the Y axis upward. The coordinates of the star catalog stars are obtained based on coordinate system 1. The preview star group corresponds to the starry sky preview image, and a coordinate system 2 is established with the lower left corner of the starry sky preview image as the origin, the positive direction of the X axis to the right, and the positive direction of the Y axis upward. The coordinates of the preview stars are obtained based on coordinate system 2.
[0103] Condition 2: Within the brightness neighborhood of preview star 1, for example, the brightness of the star catalog in the candidate star group corresponding to preview star 1 must meet the following requirements:
[0104] MAX(V1*(1-V m ), 0)≤V c ≤MIN(V1*(1+V m ), 255)
[0105] Among them, V1 is the brightness of preview star 1, V m To preview the brightness neighborhood search range of star 1, V m Set according to actual needs, V c It is the brightness of the catalog star in the candidate star group corresponding to preview star 1.
[0106] Based on the above provisions, the star objects in the catalog within the position neighborhood and brightness neighborhood of preview star 1 can be selected from the star object group, so as to construct candidate star group 1 corresponding to preview star 1. Similarly, candidate star group 2 corresponding to preview star 2 and candidate star group 3 corresponding to preview star 3 can be obtained, and so on, to obtain candidate star groups corresponding to each preview star.
[0107] Step S302, selecting a preset number of preview stars from the preview star group based on a preset selection strategy to construct a feature star group, wherein the preset number is a positive integer greater than 1;
[0108] In this embodiment, the preset selection strategy is formulated according to actual needs, and the preset number is a positive integer greater than 1, for example, the preset number is 3.
[0109] Furthermore, in an embodiment of the star-finding method of the present invention, the step of selecting a preset number of preview stars from the preview star group based on a preset selection strategy includes:
[0110] According to the brightness priority principle, a preset number of preview stars are selected from the preview star group;
[0111] Alternatively, a preset number of preview stars located in a predetermined area are selected from the preview star group.
[0112] In this embodiment, taking the preset number of 3 as an example, the three preview stars with the largest brightness can be selected from the preview star group according to the brightness priority principle; or three preview stars can be selected from a predetermined area of the starry sky preview image, where the predetermined area is set according to actual conditions, such as the upper left area or the middle area, and there is no restriction here.
[0113] Step S303, calculating and obtaining a first feature corresponding to the characteristic star group, where the first feature includes position information between every two preview stars in the characteristic star group;
[0114] In this embodiment, taking the example that the feature star group includes preview star 1, preview star 2 and preview star 3, the first feature includes P 12 , P 13 and P 23 , where P 12 Represents the position information between preview star 1 and preview star 2, P 13 Represents the position information between preview star 1 and preview star 3, P 23 Represents the position information between preview star 2 and preview star 3. The position information includes distance and angle.
[0115] Among them, the distance between the two preview stars can be obtained based on the coordinates of the two preview stars through the distance formula; the angle between the two preview stars can be obtained based on the coordinates of the two preview stars, and the angle formed by the line connecting the origin to one preview star and the horizontal axis is obtained, and the angle formed by the line connecting the origin to the other preview star and the horizontal axis is obtained, and the absolute value of the difference between the two angles is used as the angle between the two preview stars. Of course, it is also possible to obtain the angle formed by the line connecting the origin to one preview star and the vertical axis, and the angle formed by the line connecting the origin to the other preview star and the vertical axis, and the absolute value of the difference between the two angles is used as the angle between the two preview stars.
[0116] Step S304, combining all the star objects in the star catalog in the candidate star group corresponding to the preview star included in the feature star group to obtain a plurality of star groups to be matched, and calculating the second feature corresponding to each star group to be matched, wherein the second feature includes the position information between every two star objects in the star catalog in the star group to be matched, and the number of star objects in the star catalog included in each star group to be matched is the same as the number of preview stars in the feature star group;
[0117] In this embodiment, taking the example that the feature star body group includes preview star 1, preview star 2 and preview star 3, all star bodies in the star catalogue in candidate star body group 1 corresponding to preview star 1, candidate star body group 2 corresponding to preview star 2 and candidate star body group 3 corresponding to preview star 3 are combined to obtain several star body groups to be matched, and the number of star catalogue stars included in each star body group to be matched is the same as the number of preview stars in the feature star body group.
[0118] For example, candidate star group 1 includes star 1, star 2 and star 3, candidate star group 2 includes star 4, star 5 and star 6, and candidate star group 3 includes star 7, star 8, star 9 and star 10; the number of preview stars in the feature star group is 3. That is, 3 are selected from star 1 to star 10 to be combined to obtain several matching star groups. According to the combination calculation formula, we have There are 120 matching star groups.
[0119] Then, the second feature corresponding to each matching star group is calculated, wherein the second feature includes the position information between each two star catalog stars in the star group to be matched. The specific method of calculating the second feature here can refer to the method of calculating the first feature above, and will not be repeated here.
[0120] Step S305, calculating the characteristic distance between each second characteristic and the first characteristic, and determining the target star group to be matched corresponding to the target second characteristic having the smallest characteristic distance with the first characteristic;
[0121] In this embodiment, after calculating the second feature of each matching star group, the feature distance between each second feature and the first feature is calculated, so as to determine the target second feature with the smallest feature distance to the first feature. For example, if there are 120 matching star groups, there are 120 second features, and 120 feature distances are calculated, among which the feature distance between the second feature of matching star group 77 and the first feature is the smallest among the 120 feature distances, then matching star group 77 is taken as the target star group to be matched.
[0122] Step S306, select a preview star that has not been selected from the preview star group to add to the feature star group, and return the step of calculating the first feature corresponding to the feature star group, the first feature including the position information between every two preview stars in the feature star group, until there are no preview stars that have not been selected in the preview star group, and the last determined target star group to be matched is used as the matching star group that matches the preview star group.
[0123] In this embodiment, after determining the target star group to be matched, first check whether there is a preview star in the preview star group that has not been selected. If so, select a preview star that has not been selected from the preview star group to add to the feature star group. For example, in the previous cycle, the feature star group includes preview star 1, preview star 2, and preview star 3. If preview stars 4 to m have not been selected, then one is randomly selected from preview stars 4 to m to add to the feature star group. For example, preview star 4 is added to the feature star group. At this time, the feature star group includes preview star 1, preview star 2, preview star 3, and preview star 4, and returns to step S303, that is, the calculation is completed. The first feature corresponding to the new feature star group is calculated, and then all the star groups in the candidate star group 1 corresponding to the preview star 1, the candidate star group 2 corresponding to the preview star 2, the candidate star group 3 corresponding to the preview star 3, and the candidate star group 4 corresponding to the preview star 4 are combined to obtain a number of star groups to be matched, and then the second feature corresponding to each star group to be matched is calculated. In this round of circulation, the number of preview stars in the new feature star group is 4, and the number of star groups included in the star group to be matched is also 4. Then, the target star group to be matched corresponding to the target second feature with the smallest feature distance from the first feature is determined, and then step S306 is entered. Until there is no preview star that has not been selected in the preview star group, the loop is terminated, and the target star group to be matched determined last time is used as the matching star group that matches the preview star group.
[0124] Step S40, calculating the coordinate mapping relationship between the preview star group and the matching star group;
[0125] In this embodiment, after determining the matching star group that matches the preview star group, the coordinate mapping relationship between the preview star group and the matching star group can be calculated based on the coordinates of each preview star in the preview star group and the coordinates of each catalog star in the matching star group.
[0126] It is easy to understand that the star catalog star group corresponds to the theoretical starry sky preview image, and a coordinate system 1 is established with the lower left corner of the theoretical starry sky preview image as the origin, the positive direction of the X axis to the right, and the positive direction of the Y axis upward. The coordinates of the star catalog stars are obtained based on coordinate system 1. The preview star group corresponds to the starry sky preview image, and a coordinate system 2 is established with the lower left corner of the starry sky preview image as the origin, the positive direction of the X axis to the right, and the positive direction of the Y axis upward. The coordinates of the preview stars are obtained based on coordinate system 2.
[0127] The coordinate mapping relationship between the preview star group and the matching star group is calculated here, which is equivalent to the mapping relationship between coordinate system 1 and coordinate system 2.
[0128] Step S50, based on the coordinate mapping relationship, the coordinates of each star in the star group are corrected to obtain a new star group;
[0129] In this embodiment, the coordinates of each star catalog star object in the star catalog star object group are corrected based on the coordinate mapping relationship, and the corrected coordinates of each star catalog star object are its coordinates in the coordinate system corresponding to the starry sky preview image.
[0130] Step S60: determining the actual star catalog star group included in the starry sky preview image based on the new star catalog star group.
[0131] In this embodiment, based on the corrected coordinates of each star catalog star object in the new star catalog star object group and in combination with the boundary range of the starry sky preview image, it is possible to determine which star catalog star objects are actually located within the boundary range of the starry sky preview image, thereby determining the actual star catalog star object group included in the starry sky preview image. In this way, starry sky enhancement processing can be performed based on the actual star catalog star object group.
[0132] In this embodiment, a preview star group is determined according to a preview image of the starry sky captured by a camera; a star group of star catalogs corresponding to the preview image of the starry sky is determined according to device data and astronomical data; a matching star group that matches the preview star group is determined from the star catalogs star group; a coordinate mapping relationship between the preview star group and the matching star group is calculated; based on the coordinate mapping relationship, the coordinates of each star catalog star in the star catalogs star group are corrected to obtain a new star catalogs star group; based on the new star catalogs star group, the actual star catalogs star group included in the preview image of the starry sky is determined. Through this embodiment, the coordinates of each star catalogs star in the star catalogs star group are corrected based on the coordinate mapping relationship, thereby accurately determining the position distribution of each star catalogs star relative to the preview image of the starry sky, and finally accurately determining the actual star catalogs star group included in the preview image of the starry sky.
[0133] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a satellite search program is stored. When the satellite search program is executed by a processor, each step of the above satellite search method is implemented.
[0134] The specific embodiments of the computer-readable storage medium of the present invention are substantially the same as the various embodiments of the above-mentioned satellite search method, and will not be described in detail herein.
[0135] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0136] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0138] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A star-finding method, characterized in that: The star-finding method comprises: Determine a preview star group according to the starry sky preview image collected by the camera; Determine the star group in the star catalog corresponding to the starry sky preview image according to the device data and astronomical data; Determine a matching star group from the catalog star group that matches the preview star group; Calculate the coordinate mapping relationship between the preview star group and the matching star group; Based on the coordinate mapping relationship, the coordinates of each star catalog star body in the star catalog star body group are corrected to obtain a new star catalog star body group; Determine the actual star catalog star group included in the star preview image based on the new star catalog star group; The step of determining a matching star group that matches the preview star group from the star catalog star group comprises: Selecting from the star catalog star group the star catalog stars corresponding to each preview star in the preview star group, and constructing a candidate star group corresponding to each preview star; Based on a preset selection strategy, a preset number of preview stars are selected from the preview star group to construct a feature star group, wherein the preset number is a positive integer greater than 1; Calculate and obtain a first feature corresponding to the characteristic star group, where the first feature includes position information between every two preview stars in the characteristic star group; Combining all the star bodies in the star catalog in the candidate star body group corresponding to the preview star body included in the feature star body group to obtain a plurality of star body groups to be matched, and calculating the second feature corresponding to each star body group to be matched, wherein the second feature includes the position information between every two star bodies in the star body group to be matched, and the number of star bodies in the star catalog included in each star body group to be matched is the same as the number of preview stars in the feature star body group; Calculate the characteristic distance between each second characteristic and the first characteristic, and determine the target star group to be matched corresponding to the target second characteristic with the smallest characteristic distance to the first characteristic; Selecting a preview star that has not been selected from the preview star group to add to the feature star group, and returning the step of calculating and obtaining the first feature corresponding to the feature star group, wherein the first feature includes position information between every two preview stars in the feature star group, until there are no preview stars that have not been selected in the preview star group, and taking the last determined target to-be-matched star group as the matching star group that matches the preview star group; The step of selecting from the star catalog star group the star catalog objects corresponding to each preview star in the preview star group to construct a candidate star group corresponding to each preview star includes: Selecting from the star catalog star group the star catalog stars within the position neighborhood and brightness neighborhood of each preview star in the preview star group, and constructing a candidate star group corresponding to each preview star; The step of selecting a preset number of preview stars from the preview star group based on a preset selection strategy comprises: According to the brightness priority principle, a preset number of preview stars are selected from the preview star group; Or, selecting a preset number of preview stars located in a predetermined area from the preview star group; The location information includes distance and angle.
2. A mobile terminal, characterized in that: The mobile terminal includes: a memory, a processor, and a star-finding program stored in the memory and executable on the processor, wherein the star-finding program implements the following steps when executed by the processor: Determine a preview star group according to the starry sky preview image collected by the camera; Determine the star group in the star catalog corresponding to the starry sky preview image according to the device data and astronomical data; Determine a matching star group from the catalog star group that matches the preview star group; Calculate the coordinate mapping relationship between the preview star group and the matching star group; Based on the coordinate mapping relationship, the coordinates of each star catalog star body in the star catalog star body group are corrected to obtain a new star catalog star body group; Determine the actual star catalog star group included in the star preview image based on the new star catalog star group; Selecting from the star catalog star group the star catalog stars corresponding to each preview star in the preview star group, and constructing a candidate star group corresponding to each preview star; Based on a preset selection strategy, a preset number of preview stars are selected from the preview star group to construct a feature star group, wherein the preset number is a positive integer greater than 1; Calculate and obtain a first feature corresponding to the characteristic star group, where the first feature includes position information between every two preview stars in the characteristic star group; Combining all the star bodies in the star catalog in the candidate star body group corresponding to the preview star body included in the feature star body group to obtain a plurality of star body groups to be matched, and calculating the second feature corresponding to each star body group to be matched, wherein the second feature includes the position information between every two star bodies in the star body group to be matched, and the number of star bodies in the star catalog included in each star body group to be matched is the same as the number of preview stars in the feature star body group; Calculate the characteristic distance between each second characteristic and the first characteristic, and determine the target star group to be matched corresponding to the target second characteristic with the smallest characteristic distance to the first characteristic; Selecting a preview star that has not been selected from the preview star group to add to the feature star group, and returning the step of calculating and obtaining the first feature corresponding to the feature star group, wherein the first feature includes position information between every two preview stars in the feature star group, until there are no preview stars that have not been selected in the preview star group, and taking the last determined target to-be-matched star group as the matching star group that matches the preview star group; Selecting from the star catalog star group the star catalog stars within the position neighborhood and brightness neighborhood of each preview star in the preview star group, and constructing a candidate star group corresponding to each preview star; According to the brightness priority principle, a preset number of preview stars are selected from the preview star group; Or, selecting a preset number of preview stars located in a predetermined area from the preview star group; The location information includes distance and angle.
3. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a star-finding program, and when the star-finding program is executed by the processor, the steps of the star-finding method according to claim 1 are implemented.
Citation Information
Patent Citations
Starry sky shooting method and device and computer readable storage medium
CN113452908A
Catalytic dehydrohalogenation process
EP0002021A1
Astronomical object imaging device, astronomical telescope controller, and astronomical telescope control method
JP2016102914A
System and Method for Observation of Constellation
KR1020130067972A
Rapid celestial body recognition method and device and telescope
WO2019047378A1
