Method, device and mobile terminal for acquiring images containing stars

By acquiring and merging starry sky images captured by multiple devices on mobile terminals, it solves the problem of difficulty in observing stars caused by urbanization and pollution, realizes a virtual starry sky experience, and provides more star observation effects.

CN115834798BActive Publication Date: 2024-10-22GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111093085.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-17
Publication Date
2024-10-22
Estimated Expiration
2041-09-17

AI Technical Summary

Technical Problem

Under the influence of urbanization and industrial pollution, it is difficult for people to observe stars at night, especially due to weather conditions and light pollution.

Method used

Obtain the initial starry sky image and its orientation information through the mobile terminal, search and obtain images taken by other terminal devices in the same direction and geographical location, fuse the position and brightness information of the stars, generate a target starry sky image containing more star points, and add it to the image Remove the clouds and mark the constellations.

Benefits of technology

It realizes the display of virtual starry sky images on mobile terminals, allowing users to see more stars through mobile terminals at night, providing a realistic experience of starry sky observation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115834798B_ABST
    Figure CN115834798B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention relate to the technical field of image recognition, and disclose a method, device and mobile terminal for obtaining an image containing stars. The method first obtains an initial starry sky image taken by the mobile terminal, and the orientation information when the mobile terminal takes the initial starry sky image, then obtains an overlay image according to the orientation information, and finally fuses the overlay image with the initial starry sky image to obtain a target starry sky image, wherein the initial starry sky image contains more star point information than the target starry sky image. The method provided by the embodiments of the present invention enables users who cannot see the complete starry sky image to see more stars through the mobile terminal, thereby realizing the virtual display of the starry sky on the mobile terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of image recognition technology, and in particular to a method, device and mobile terminal for acquiring an image containing stars. Background Art

[0002] Stars, in physics, refer to celestial bodies in the universe that are visible to the naked eye. The activity of energy inside stars makes the stars irregular in shape. The brighter the star, the smaller its magnitude. Stars are also a romantic existence. When people look up at the starry sky at night, they can usually feel the beauty of the stars shining like gemstones, and realize their own insignificance through the stars. Since ancient times, there have been countless poems praising the starry sky. With the progress of urbanization, the starry sky has also become a place where people living in cities are closest to nature and a spiritual harbor for people.

[0003] In the process of implementing the embodiments of the present invention, the inventors found that there are at least the following problems in the above-mentioned related technologies: However, at present, at night, there is sometimes fog or clouds in the sky, and people cannot observe the stars at night. With the development of industry, cities have suffered from serious industrial pollution and light pollution, which will further make it more difficult for users to observe the stars at night. Summary of the invention

[0004] Embodiments of the present application provide a method, device, and mobile terminal for acquiring an image containing stars.

[0005] The purpose of the embodiment of the present invention is achieved through the following technical solutions:

[0006] To solve the above technical problems, in the first aspect, an embodiment of the present invention provides a method for acquiring an image containing stars, which is applied to a mobile terminal, and the method includes: acquiring an initial starry sky image taken by the mobile terminal, and the azimuth information when the mobile terminal took the initial starry sky image; acquiring a superimposed image according to the azimuth information; and fusing the superimposed image with the initial starry sky image to obtain a target starry sky image, wherein the initial starry sky image contains more star point information than the target starry sky image.

[0007] In some embodiments, the orientation information includes the geographic location and shooting direction of the mobile terminal, and obtaining the superimposed image based on the orientation information includes: searching for other terminal devices within a preset range around the geographic location of the mobile terminal based on the geographic location of the mobile terminal; screening terminal devices with the same shooting direction as the mobile terminal from the other terminal devices, and obtaining images taken by the terminal devices with the same shooting direction to obtain the superimposed image.

[0008] In some embodiments, the star point information includes the relative positions and brightness levels of stars, and the fusing the overlaid image with the initial starry sky image to obtain the target starry sky image includes: extracting the relative positions of the stars and the brightness levels of the stars in the overlaid image and the initial starry sky image to obtain the star point information of the overlaid image and the initial starry sky image; and superimposing the star point information in the overlaid image on the initial starry sky image to obtain the target starry sky image.

[0009] In some embodiments, extracting the relative positions of stars and the brightness levels of stars in the superimposed image and the initial starry sky image includes: obtaining the coordinates of each star in the superimposed image and the initial starry sky image in the image, and determining the relative positions of each star in the superimposed image and the initial starry sky image according to the coordinates; obtaining the pixel value size of each star in the superimposed image and the initial starry sky image to obtain the brightness level of each star in the superimposed image and the initial starry sky image.

[0010] In some embodiments, superimposing the star point information in the superimposed image on the initial starry sky image to obtain the target starry sky image includes: comparing the positions and brightness of the stars in the initial starry sky image and the superimposed image to determine the superimposed positions and sizes of the stars; superimposing the stars in the initial starry sky image according to the superimposed positions and sizes, combined with the relative positions of the stars in the initial starry sky image and the brightness levels of the stars, to obtain the target starry sky image.

[0011] In some embodiments, before fusing the superimposed image with the initial starry sky image to obtain the target starry sky image, the method further includes: accepting an erasing instruction issued by a user; determining whether the captured initial starry sky image contains clouds; and if so, removing the clouds in the initial starry sky image according to the erasing instruction.

[0012] In some embodiments, removing clouds in the initial starry sky image according to the erasing instruction includes: determining an erasing position and a corresponding number of erasing times in the initial starry sky image according to the erasing instruction; and adjusting the brightness of the erasing position in the initial starry sky image according to the number of erasing times to remove clouds in the initial starry sky image.

[0013] In some embodiments, the method also includes: obtaining time information of the mobile terminal; obtaining the relative positions of all stars in the target starry sky image; determining the constellations appearing in the target starry sky image in combination with the geographic location and time information of the mobile terminal and the relative positions of all stars in the target starry sky image; marking and displaying the constellations.

[0014] To solve the above technical problems, in a second aspect, an embodiment of the present invention provides a device for acquiring an image containing stars, which is applied to a mobile terminal, and the device includes: a first acquisition module, used to acquire an initial starry sky image taken by the mobile terminal, and the azimuth information when the mobile terminal took the initial starry sky image; a second acquisition module, used to acquire a superimposed image according to the azimuth information; and a fusion module, used to fuse the superimposed image with the initial starry sky image to obtain a target starry sky image, wherein the initial starry sky image contains more star point information than the target starry sky image.

[0015] To solve the above technical problems, in a third aspect, an embodiment of the present invention provides a mobile terminal, including:

[0016] at least one processor; and,

[0017] a memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect above.

[0019] To solve the above technical problems, in a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method described in the first aspect above.

[0020] To solve the above technical problems, in the fifth aspect, an embodiment of the present invention further provides a computer program product, wherein the computer program product includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the method described in the first aspect above.

[0021] Compared with the prior art, the beneficial effects of the present invention are as follows: different from the prior art, an embodiment of the present invention provides a method, device and mobile terminal for obtaining an image containing stars, the method first obtains an initial starry sky image taken by the mobile terminal, and the azimuth information when the mobile terminal takes the initial starry sky image, then obtains a superimposed image according to the azimuth information, and finally merges the superimposed image with the initial starry sky image to obtain a target starry sky image, wherein the initial starry sky image contains more star point information than the target starry sky image. The method provided by the embodiment of the present invention enables users who cannot see the complete starry sky image to see more stars through the mobile terminal, thereby realizing the virtual display of the starry sky on the mobile terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements / modules and steps with the same reference numerals in the drawings are represented as similar elements / modules and steps. Unless otherwise specified, the figures in the drawings do not constitute proportional limitations.

[0023] Figure 1 is a schematic diagram of one application scenario of the method for acquiring an image containing stars provided in an embodiment of the present invention;

[0024] Figure 2 is a flowchart of a method for acquiring an image containing stars provided in Embodiment 1 of the present invention;

[0025] Figure 3 yes Figure 2 A schematic diagram of a sub-process of step 120 in the method shown;

[0026] Figure 4 is a schematic diagram of an image fusion process in a method for acquiring an image containing stars provided in Embodiment 1 of the present invention;

[0027] Figure 5 yes Figure 2 A schematic diagram of a sub-process of step 130 in the method shown;

[0028] Figure 6 yes Figure 5 A schematic diagram of a sub-process of step 132 in the method shown;

[0029] Figure 7 is a schematic diagram of an image erasing process in a method for acquiring an image containing stars provided in Embodiment 1 of the present invention;

[0030] Figure 8 is a schematic diagram of an image erasing process in a method for acquiring an image containing stars provided in Embodiment 1 of the present invention;

[0031] Fig. 9 is a schematic diagram of a flow chart of displaying constellations in a method for acquiring an image containing stars provided in Embodiment 1 of the present invention;

[0032] Fig.10 is a schematic diagram of a process of marking and displaying constellations in a method for acquiring an image containing stars provided in Embodiment 1 of the present invention;

[0033] Fig.11 is a schematic structural diagram of a device for acquiring an image containing stars provided in Embodiment 2 of the present invention;

[0034] Fig.12is a schematic structural diagram of another device for acquiring an image containing stars provided in Embodiment 2 of the present invention;

[0035] Fig.13 It is a structural diagram of a mobile terminal provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0036] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0037] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0038] It should be noted that, if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, and all are within the scope of protection of this application. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the device or the order in the flow chart.

[0039] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in this specification and in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.

[0040] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0041] In order to solve the problem that people living in cities or other areas cannot watch the starry sky due to bad weather conditions, an embodiment of the present invention provides a method for acquiring an image containing stars, which can display a virtual initial starry sky image with a real experience on a mobile terminal, so that users can watch the stars at night through a mobile terminal. An embodiment of the present invention provides a virtual display experience of the starry sky.

[0042] Figure 1A schematic diagram of one application environment for acquiring an image containing stars provided by an embodiment of the present invention, wherein the application environment includes: a mobile terminal 10, wherein the method for acquiring an image containing stars provided by an embodiment of the present invention is mainly executed by a mobile terminal 10a, and an acquisition device for an image containing stars is also set in the mobile terminal 10a, and the mobile terminal 10a can communicate with other mobile terminals within a preset range, namely, mobile terminal 10b and mobile terminal 10c, to acquire a target starry sky image containing stars, and after acquiring the target starry sky image, the mobile terminal 10a processes the image and the initial starry sky image acquired by itself, thereby obtaining a target starry sky image containing stars. The communication connection can be a wired connection or a wireless connection, for example, the communication connection can be realized by Bluetooth, WiFi, the Internet, etc., and can be specifically set according to actual needs. The mobile terminal 10a, the mobile terminal 10b and / or the mobile terminal 10c can be mobile electronic devices such as mobile phones and tablets, and can be specifically set according to actual needs.

[0043] Preferably, in order to minimize the computing work of the processor, the mobile terminal 10b and the mobile terminal 10c are preferably mobile terminals within a preset range of the mobile terminal 10a. For example, they may be mobile terminals within 50 kilometers around the mobile terminal 10a. At this time, the photos taken by each mobile terminal in a given direction have basically the same relative positions of the stars, which is beneficial for comparing the positions of the stars when the stars are superimposed later.

[0044] It should be noted that the embodiments of the present invention are not limited to application only in the mobile terminal 10a, but can also be applied to other mobile terminals, such as mobile terminal 10b and / or mobile terminal 10c. Corresponding applications can be developed according to the methods provided in the embodiments of the present invention, so that multiple mobile terminals can use the method for obtaining images containing stars provided in the embodiments of the present invention to achieve interaction between multiple mobile terminals, or the target starry sky image containing stars can also be obtained through other devices, etc. The specific settings can be made according to actual needs without being restricted to the limitations of this application scenario.

[0045] Specifically, the embodiments of the present invention are further described below in conjunction with the accompanying drawings.

[0046] Embodiment 1

[0047] The embodiment of the present invention provides a method for obtaining an image containing stars, which can be applied to the mobile terminal 10 described in the above application scenario, see Figure 2 , which shows the process of the method for obtaining an image containing stars provided by an embodiment of the present invention, the method includes but is not limited to the following steps:

[0048] Step 110: Acquire an initial starry sky image taken by the mobile terminal and the orientation information when the mobile terminal takes the initial starry sky image;

[0049] In the embodiment of the present invention, first, it is necessary to obtain the initial starry sky image taken by the mobile terminal and the orientation information when the initial starry sky image is taken, wherein the initial starry sky image is an image of the sky currently visible and taken by the mobile terminal currently used by the user, and the image may contain stars or may not contain stars, and is the initial image to be processed. The orientation information includes the geographical location and shooting direction of the mobile terminal, and includes the information of the starry sky currently photographed by the user.

[0050] Step 120: Acquire a superimposed image according to the orientation information;

[0051] In the embodiment of the present invention, after obtaining the initial starry sky image and its orientation information taken by the mobile terminal, that is, the initial starry sky image taken at the current geographical location and the current shooting direction of the mobile terminal, the superimposed images taken by other terminal devices shooting the same starry sky can be further obtained according to the orientation information. Specifically, see Figure 3 , which shows Figure 2 A sub-process of step 120 in the method shown, wherein obtaining a superimposed image according to the position information comprises:

[0052] Step 121: searching for other terminal devices within a preset range around the geographical location of the mobile terminal according to the geographical location of the mobile terminal;

[0053] In an embodiment of the present invention, it is necessary to obtain a target sky image containing stars taken by other terminal devices within a preset range of the mobile terminal. The other terminal devices are electronic devices that can take pictures or save target sky images containing stars in device albums. Users of other device terminals can actively or according to needs upload the target sky image containing stars, or feed back the target sky image containing stars to the mobile terminal after the mobile terminal sends a request to obtain the target sky image containing stars. For example, it can be the mobile terminal 10b and the mobile terminal 10c shown in the above application scenario. Specifically, it can be set according to actual needs.

[0054] Usually, due to the better air quality in the suburbs around the city, more stars can be observed at night. Therefore, the preset range can be set according to the size of the city where the mobile terminal is located, and a range larger than the area of ​​the city is selected as the preset range, so as to obtain the target starry sky images taken or saved by other terminals in the surrounding suburban area as much as possible, so as to restore the sky as much as possible.

[0055] Step 122: Filter terminal devices having the same shooting direction as the mobile terminal from the other terminal devices, and obtain images shot by the terminal devices having the same shooting direction to obtain the superimposed image.

[0056] In an embodiment of the present invention, limited by the viewing angle of the mobile terminal, the image captured by the mobile terminal has certain directionality and limitations, and can only capture a piece of sky in a certain direction above the user's head or a certain field of view. In order to ensure that the sky contained in the superimposed image captured on other terminal devices is the same sky as the image captured by the mobile terminal or overlaps with it, it is also necessary to screen the terminal devices with the same shooting direction as the mobile terminal among the other terminal devices. Specifically, the current shooting direction of the mobile device can be determined by the parameters collected by the gyroscope and compass on the mobile device. Similarly, the other terminal devices can also obtain their shooting directions in this way.

[0057] In addition, since the positions of stars change with the passage of time, it is also possible to obtain target starry sky images containing stars obtained by other terminals within the same time period. For example, the current week can be used as the same time period, and the target starry sky images taken by other terminal devices within the current week can be obtained as images for processing and overlaying.

[0058] Step 130: Fusing the superimposed image with the initial starry sky image to obtain a target starry sky image;

[0059] The initial starry sky image contains more star point information than the target starry sky image. The star point information includes the relative positions and brightness levels of stars. In an embodiment of the present invention, after obtaining a superimposed image having more star point information than the initial starry sky image, the superimposed image can be fused with the initial starry sky image to obtain the target starry sky image.

[0060] Please also see Figure 4 , which shows an example of the image fusion process in the method for acquiring an image containing stars provided in the first embodiment of the present invention, such as Figure 4 As shown in the figure, the initial starry sky image captured by the user through the mobile terminal is image b. Due to the presence of fog and clouds, some stars with lower brightness in the initial starry sky image b cannot be observed, and the brightness of the observable stars is also low. The superimposed image a containing more star point information captured by other terminal devices is obtained. Here, it is assumed to be an image of the suburbs, which can obtain a clear image containing most of the stars without cloud cover.

[0061] Furthermore, the number of target sky images containing stars acquired by the other terminal devices may be more than one, and the number of other terminals may be more than one. Specifically, it can be set according to actual needs without being constrained by the limitations of the embodiments of the present invention.

[0062] For details, please refer to Figure 5 , which shows Figure 2 A sub-process of step 130 in the method shown, wherein the superimposed image is fused with the initial starry sky image to obtain a target starry sky image, comprises:

[0063] Step 131: extracting the relative positions of stars and the brightness levels of stars in the superimposed image and the initial starry sky image to obtain star point information of the superimposed image and the initial starry sky image;

[0064] Specifically, the coordinates of each star in the superimposed image and the initial starry sky image are obtained, and the relative positions of each star in the superimposed image and the initial starry sky image are determined according to the coordinates; the pixel value of each star in the superimposed image and the initial starry sky image is obtained to obtain the brightness level of each star in the superimposed image and the initial starry sky image.

[0065] In the embodiment of the present invention, Figure 4 For example, it is necessary to obtain the relative position of each star in the superimposed image a and mark the brightness level of each star. At the same time, it is necessary to obtain the relative position of each star in the initial starry sky image b and mark the brightness level of each star, so as to match the position and brightness of each star in the image b taken by the mobile terminal and merge it with the initial starry sky image b.

[0066] Step 132: superimposing the star point information in the superimposed image on the initial starry sky image to obtain the target starry sky image.

[0067] After obtaining the star point information in the superimposed image, please refer to Figure 6 , which shows a sub-process of step 132, wherein the star point information in the superimposed image is superimposed on the initial starry sky image to obtain the target starry sky image, specifically comprising:

[0068] Step 1321: comparing the positions and brightness of stars in the initial starry sky image and the superimposed image to determine the superimposed positions and sizes of the stars;

[0069] In the embodiment of the present invention, Figure 4For example, since the stars that can be photographed in the initial starry sky image b can be determined to be basically stars with higher brightness, therefore, according to the brightness level of the stars in the superimposed image a, a certain number of stars with higher brightness levels can be selected, and their relative positions can be compared with all the stars photographed in the initial starry sky image b, so as to determine the positions of the stars that need to be superimposed in the initial starry sky image b. At the same time, usually in photos, the larger the star, the brighter it is, so the size of the stars that need to be superimposed in the initial starry sky image a is also determined according to the brightness level difference of each star in the superimposed image a. Furthermore, if the brightness of the stars in the initial starry sky image a is low, the brightness of the stars in the initial starry sky image, that is, the size of the stars, can also be appropriately adjusted.

[0070] Step 1322: According to the superimposed position and size, combined with the relative positions of the stars in the initial starry sky image and the brightness levels of the stars, the stars are superimposed in the initial starry sky image to obtain the target starry sky image.

[0071] After determining the positions of the stars to be superimposed according to the relative positions of the stars with higher brightness, and determining the sizes of the stars to be superimposed according to the brightness levels of the stars in the superimposed image a, as shown in FIG. Figure 4 As shown, stars are superimposed on the initial starry sky image b, and a target starry sky image c containing stars is obtained, and the image is output so that the user of the mobile terminal can observe the stars through the mobile terminal.

[0072] In some embodiments, please see Figure 7 and Figure 8 , Figure 7 is an image erasing process in the method for acquiring an image containing stars provided by an embodiment of the present invention, Figure 8 This is the image erasing process in the method for acquiring an image containing stars provided by an embodiment of the present invention. Before fusing the superimposed image with the initial starry sky image to obtain the target starry sky image, the method further includes the following steps:

[0073] Step 141: accepting the erasure instruction issued by the user;

[0074] Step 142: determining whether the initial starry sky image contains clouds;

[0075] Step 143: If yes, remove the clouds in the initial starry sky image according to the erase instruction.

[0076] Wherein, removing clouds in the initial starry sky image according to the erasing instruction includes: determining an erasing position and a corresponding number of erasing times in the initial starry sky image according to the erasing instruction; and adjusting the brightness of the erasing position in the initial starry sky image according to the number of erasing times to remove clouds in the initial starry sky image.

[0077] In the embodiment of the present invention, further, due to the following Figure 4 As shown, the acquired superimposed image a taken by other terminals may also capture stars that are blocked by clouds in the initial starry sky image b taken by the mobile terminal. In order to avoid the blockage of clouds affecting the user's observation, a function of erasing clouds can also be set. Figure 8 As shown, when observing, the user can perform an erase operation through an application capable of executing the method for obtaining an image containing stars provided by an embodiment of the present invention, and erase the image as shown in FIG. Figure 8 The clouds in the dotted frame are superimposed on the erased image with the brightness and position of the stars at the position of the dotted frame obtained from the initial starry sky image a, thereby realizing the function of displaying after erasure.

[0078] Among them, since stars are usually observed at night, the initial starry sky image captured is also a night scene image. In the night scene image, the sky is usually dark blue or black, and the clouds are usually white objects with a certain degree of transparency. Therefore, when the mobile terminal erases the clouds, it can directly adjust the brightness of the erased position. When a large area of ​​white pixels, that is, clouds, is detected at the erased position, the blue or black of the position is deepened to show the original appearance of the sky, and then the stars are superimposed. Among them, the brightness of the sky background and the brightness of the stars at the erased position can be further adjusted according to the number of times the user performs the erasing action. The more times the erasure is performed, the darker the sky background and the brighter the stars, until the set limit value, so that the image presents more changes.

[0079] It should be noted that the above-mentioned erasing function may be implemented before superimposing stars to generate a target starry sky image containing stars, and / or after superimposing stars to generate a target starry sky image containing stars. Specifically, it may be set according to actual needs.

[0080] In some embodiments, please see Fig. 9 and Fig.10 , Fig. 9 is a process for marking and displaying constellations in a method for acquiring an image containing stars provided by an embodiment of the present invention, Fig.10 The present invention provides a method for obtaining an image containing stars in which a constellation is marked and displayed. The method further includes the following steps:

[0081] Step 151: Acquire time information of the mobile terminal;

[0082] Step 152: Obtaining the relative positions of all stars in the target starry sky image;

[0083] Step 153: Determine the constellations appearing in the target starry sky image by combining the geographical location and time information of the mobile terminal and the relative positions of all the stars in the target starry sky image;

[0084] Step 154: Mark and display the constellation.

[0085] In the embodiment of the present invention, further, the constellations in the target sky image d containing stars can be identified, so that the user can more easily observe the sky, have more experience about the sky, and learn more about the sky. Specifically, the user's current longitude and latitude can be obtained according to the global positioning system (GPS) loaded in the user's current mobile device, the user's accurate location information can be determined, and the current time information of the mobile terminal can be obtained. Then, according to the astronomical map, combined with the relative positions of all stars in the initial sky image after superposition processing, the constellations appearing in the initial sky image are determined by comparison and the constellations are marked and displayed.

[0086] For example, Fig.10 For example, according to the positioning of the mobile device, the longitude and latitude of the mobile device are determined, and then by comparing the astronomical map, the positions of the stars appearing in the initial starry sky image d at the longitude and latitude corresponding to the positions in the astronomical map can be determined. Then, according to the field of view of the image sensor in the current mobile terminal, the constellations in the initial starry sky image d can be marked to obtain an image e with marked constellations, wherein image e marks the Draco (Northern constellation) and the Ursa Minor.

[0087] It should be noted that the above-mentioned method of obtaining stars by combining the positioning of the mobile device and the astronomical map can also be used as a method of obtaining star point information when the overlay image cannot be obtained in the above-mentioned step 110. Specifically, it can be set according to actual needs without being restricted to the limitations of the embodiments of the present invention.

[0088] Embodiment 2

[0089] The embodiment of the present invention provides a device for acquiring an image containing stars, which can be applied to the mobile terminal 10 described in the above application scenario, see Fig.11 , which shows the structure of a device for acquiring an image containing stars provided by an embodiment of the present invention. The device 200 for acquiring an image containing stars includes: a first acquisition module 210, a second acquisition module 220 and a fusion module 230.

[0090] The first acquisition module 210 is used to acquire the initial starry sky image taken by the mobile terminal and the azimuth information when the mobile terminal took the initial starry sky image;

[0091] The second acquisition module 220 is used to acquire a superimposed image according to the orientation information;

[0092] The fusion module 230 is used to fuse the superimposed image with the initial starry sky image to obtain a target starry sky image, wherein the initial starry sky image contains more star point information than the target starry sky image.

[0093] In some embodiments, the position information includes the geographical location and shooting direction of the mobile terminal.

[0094] The second acquisition module 220 is further configured to search for other terminal devices within a preset range around the geographical location of the mobile terminal according to the geographical location of the mobile terminal;

[0095] Terminal devices having the same shooting direction as that of the mobile terminal are screened from the other terminal devices, and images shot by the terminal devices having the same shooting direction are acquired to obtain the superimposed image.

[0096] In some embodiments, the star point information includes the relative positions and brightness levels of the stars.

[0097] The second acquisition module 220 is further used to extract the relative positions of the stars and the brightness levels of the stars in the superimposed image and the initial starry sky image to obtain the star point information of the superimposed image and the initial starry sky image;

[0098] The star point information in the superimposed image is superimposed on the initial starry sky image to obtain the target starry sky image.

[0099] In some embodiments, the second acquisition module 220 is further used to acquire the coordinates of each star in the superimposed image and the initial starry sky image in the image, and determine the relative position of each star in the superimposed image and the initial starry sky image according to the coordinates;

[0100] The pixel value of each star in the superimposed image and the initial starry sky image is obtained to obtain the brightness level of each star in the superimposed image and the initial starry sky image.

[0101] In some embodiments, the fusion module 230 is further used to compare the positions and brightness of stars in the initial starry sky image and the superimposed image to determine the superimposed positions and sizes of the stars;

[0102] According to the superimposed position and size, combined with the relative positions of the stars in the initial starry sky image and the brightness levels of the stars, the stars are superimposed in the initial starry sky image to obtain the target starry sky image.

[0103] In some embodiments, see Fig.12 , which shows the structure of another device for acquiring an image containing stars provided by an embodiment of the present invention, wherein the device 200 for acquiring an image containing stars further includes:

[0104] The erasing module 240 is used to receive an erasing instruction issued by a user;

[0105] Determining whether the initial starry sky image contains clouds;

[0106] If yes, remove the clouds in the initial starry sky image according to the erasing instruction.

[0107] In some embodiments, the erasing module 240 is further used to determine an erasing position and a corresponding erasing number in the initial starry sky image according to the erasing instruction;

[0108] According to the number of erasures, the brightness of the erased position in the initial starry sky image is adjusted to remove clouds in the initial starry sky image.

[0109] In some embodiments, see Fig.12 , the device 200 for acquiring the image containing stars further comprises:

[0110] The marking module 250 is used to obtain the time information of the mobile terminal;

[0111] Obtaining the relative positions of all stars in the target starry sky image;

[0112] Determine the constellations appearing in the target starry sky image by combining the geographical location and time information of the mobile terminal and the relative positions of all the stars in the target starry sky image;

[0113] The constellation is labeled and displayed.

[0114] Embodiment 3

[0115] The present invention also provides a mobile terminal. Fig.13 , which shows that it is possible to execute Figures 2 to 10 The hardware structure of the mobile terminal of the method for acquiring the image of the stars. The mobile terminal 10 may be Figure 1 The mobile terminal 10 is shown.

[0116] The mobile terminal 10 includes: at least one processor 11; and a memory 12 communicatively connected to the at least one processor 11. Fig.13 The memory 12 stores instructions that can be executed by the at least one processor 11, and the instructions are executed by the at least one processor 11 so that the at least one processor 11 can perform the above Figures 2 to 10 The method for acquiring the image containing stars. The processor 11 and the memory 12 can be connected via a bus or other means. Fig.13 The example of connecting through bus is taken in the following.

[0117] The memory 12 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the method for obtaining an image containing stars in the embodiment of the present application, for example, Figure 11 to Figure 12 The processor 11 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 12, that is, the method for acquiring the image of the star included in the above method embodiment is implemented.

[0118] The memory 12 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created according to the use of the acquisition device containing images of stars, etc. In addition, the memory 12 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 12 may optionally include a memory remotely arranged relative to the processor 11, and these remote memories may be connected to the acquisition device containing images of stars via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0119] The one or more modules are stored in the memory 12, and when executed by the one or more processors 11, execute the method for acquiring an image containing stars in any of the above method embodiments, for example, executing the above described Figures 2 to 10 Steps to achieve Figure 11 to Figure 12 The functions of each module and unit in it.

[0120] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0121] The present application also provides a non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, for example, to execute the above-described Figures 2 to 10 Steps to achieve Figure 11 to Figure 12 The functions of each module in.

[0122] The present application also provides a computer program product, including a computer program stored on a non-volatile computer-readable storage medium, wherein the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the method for acquiring an image containing stars in any of the above method embodiments, for example, executing the above described Figures 2 to 10 Steps to achieve Figure 11 to Figure 12 The functions of each module in.

[0123] An embodiment of the present invention provides a method, device and mobile terminal for obtaining an image containing stars. The method first obtains an initial starry sky image taken by the mobile terminal and the orientation information when the mobile terminal took the initial starry sky image, then obtains an overlay image according to the orientation information, and finally fuses the overlay image with the initial starry sky image to obtain a target starry sky image, wherein the initial starry sky image contains more star point information than the target starry sky image. The method provided by the embodiment of the present invention enables users who cannot see the complete starry sky image to see more stars through the mobile terminal, thereby realizing the virtual display of the starry sky on the mobile terminal.

[0124] It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0125] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for acquiring an image containing stars, characterized in that: Applied to a mobile terminal, the method comprises: Acquire an initial starry sky image taken by the mobile terminal, and the orientation information of the mobile terminal when taking the initial starry sky image, wherein the orientation information includes the geographical location and shooting direction of the mobile terminal; Acquire a superimposed image according to the orientation information; The step of acquiring a superimposed image according to the position information comprises: According to the geographical location of the mobile terminal, searching for other terminal devices within a preset range around the geographical location of the mobile terminal; Screening terminal devices having the same shooting direction as the mobile terminal from the other terminal devices, and acquiring images shot by the terminal devices having the same shooting direction to obtain the superimposed image; The superimposed image is fused with the initial starry sky image to obtain a target starry sky image, wherein the star point information contained in the superimposed image is more than the star point information contained in the initial starry sky image.

2. The acquisition method according to claim 1, characterized in that: The star point information includes the relative position and brightness level of the stars, The step of fusing the superimposed image with the initial starry sky image to obtain a target starry sky image comprises: Extracting the relative positions of stars and the brightness levels of stars in the superimposed image and the initial starry sky image to obtain star point information of the superimposed image and the initial starry sky image; The star point information in the superimposed image is superimposed on the initial starry sky image to obtain the target starry sky image.

3. The acquisition method according to claim 2, characterized in that: The extracting the relative positions of stars in the superimposed image and the initial starry sky image and the brightness levels of the stars comprises: Acquire the coordinates of each star in the superimposed image and the initial starry sky image, and determine the relative position of each star in the superimposed image and the initial starry sky image according to the coordinates; The pixel value of each star in the superimposed image and the initial starry sky image is obtained to obtain the brightness level of each star in the superimposed image and the initial starry sky image.

4. The acquisition method according to claim 3, characterized in that: The step of superimposing the star point information in the superimposed image on the initial starry sky image to obtain the target starry sky image includes: Comparing the positions and brightness of stars in the initial starry sky image and the superimposed image to determine the superimposed positions and sizes of the stars; According to the superimposed position and size, combined with the relative positions of the stars in the initial starry sky image and the brightness levels of the stars, the stars are superimposed in the initial starry sky image to obtain the target starry sky image.

5. The acquisition method according to any one of claims 1 to 4, characterized in that: Before fusing the superimposed image with the initial starry sky image to obtain the target starry sky image, the method further includes: Accept erasure instructions issued by users; Determining whether the initial starry sky image contains clouds; If yes, remove the clouds in the initial starry sky image according to the erasing instruction.

6. The acquisition method according to claim 5, characterized in that: The step of removing clouds from the initial starry sky image according to the erasing instruction comprises: According to the erasing instruction, determining an erasing position in the initial starry sky image and a corresponding erasing number; According to the number of erasures, the brightness of the erased position in the initial starry sky image is adjusted to remove clouds in the initial starry sky image.

7. The acquisition method according to claim 5, characterized in that: The method further comprises: Acquiring time information of the mobile terminal; Obtaining the relative positions of all stars in the target starry sky image; Determine the constellations appearing in the target starry sky image by combining the geographical location and time information of the mobile terminal and the relative positions of all the stars in the target starry sky image; The constellation is labeled and displayed.

8. A device for acquiring an image containing stars, characterized in that: Applied to a mobile terminal, the device comprises: A first acquisition module, used to acquire an initial starry sky image taken by the mobile terminal, and the orientation information when the mobile terminal takes the initial starry sky image, wherein the orientation information includes the geographical location and shooting direction of the mobile terminal; A second acquisition module is configured to acquire a superimposed image according to the orientation information; the acquiring of the superimposed image according to the orientation information comprises: searching for other terminal devices within a preset range around the geographical location of the mobile terminal according to the geographical location of the mobile terminal; screening terminal devices having the same shooting direction as the mobile terminal from the other terminal devices, and acquiring images shot by the terminal devices having the same shooting direction to obtain the superimposed image; A fusion module is used to fuse the superimposed image with the initial starry sky image to obtain a target starry sky image, wherein the star point information contained in the superimposed image is more than the star point information contained in the initial starry sky image.

9. A mobile terminal, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the processor, and the instructions are executed by the processor to enable the processor to perform the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.