CN115834798A - Method and device for acquiring image containing stars and mobile terminal - Google Patents

Method and device for acquiring image containing stars and mobile terminal Download PDF

Info

Publication number
CN115834798A
CN115834798A CN202111093085.9A CN202111093085A CN115834798A CN 115834798 A CN115834798 A CN 115834798A CN 202111093085 A CN202111093085 A CN 202111093085A CN 115834798 A CN115834798 A CN 115834798A
Authority
CN
China
Prior art keywords
image
starry sky
initial
sky image
stars
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111093085.9A
Other languages
Chinese (zh)
Inventor
希曼舒·辛格
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202111093085.9A priority Critical patent/CN115834798A/en
Publication of CN115834798A publication Critical patent/CN115834798A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The embodiment of the invention relates to the technical field of image recognition, and discloses a method, a device and a mobile terminal for acquiring an image containing stars.

Description

Method and device for acquiring image containing stars and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of image recognition, in particular to a method and a device for acquiring an image containing stars and a mobile terminal.
Background
Stars, physically referring to celestial bodies in the universe visible to the naked eye, are irregular in shape due to the movement of energy inside the stars, and become brighter and smaller. The star is also a romantic existence, when people look at the space at night, people can usually feel the wonderful beauty of the star like gems, people feel the faint like the gems through the star, the star can feel the faint of the star, countless poems praise the space from ancient times to the present, along with the process of urbanization, the space also becomes a place where people living in cities are closest to nature, and becomes a soul estuary of people.
In implementing the embodiments of the present invention, the inventors have found that at least the following problems exist in the above related art: however, at present, there are sometimes misty or cloud in the sky at night, people cannot observe stars at night, and with the development of industry, cities are seriously polluted by industrial pollution and light, which further makes it more difficult for users to observe stars at night.
Disclosure of Invention
The embodiment of the application provides a method and a device for acquiring an image containing stars and a mobile terminal.
The purpose of the embodiment of the invention is realized by the following technical scheme:
in order to solve the above technical problem, in a first aspect, an embodiment of the present invention provides a method for acquiring an image including stars, where the method is applied to a mobile terminal, and the method includes: acquiring an initial starry sky image shot by the mobile terminal and azimuth information when the initial starry sky image is shot by the mobile terminal; acquiring a superposed image according to the azimuth information; and fusing the superposed image and the initial starry sky image to obtain a target starry sky image, wherein the starry information contained in the initial starry sky image is more than the starry information contained in the target starry sky image.
In some embodiments, the orientation information includes a geographic location and a shooting direction of the mobile terminal, and the obtaining of the overlay image according to the orientation information includes: searching other terminal equipment in a preset range around the geographical position of the mobile terminal according to the geographical position of the mobile terminal; and screening the terminal equipment in the same shooting direction as the mobile terminal from the other terminal equipment, and acquiring the image shot by the terminal equipment in the same shooting direction to obtain the superposed image.
In some embodiments, the star point information includes relative positions and brightness levels of stars, and the fusing the overlay image and the initial starry sky image to obtain a target starry sky image includes: extracting relative positions of stars and brightness levels of stars in the superposed image and the initial starry sky image to obtain starpoint information of the superposed image and the initial starry sky image; and superposing the star point information in the superposed image on the initial starry sky image to obtain the target starry sky image.
In some embodiments, the extracting the relative positions of stars and the brightness levels of stars in the overlay image and the initial starry sky image comprises: acquiring coordinates of each star in the superposed image and the initial starry sky image in the image, and determining the relative position of each star in the superposed image and the initial starry sky image according to the coordinates; and acquiring the pixel value of each star in the superposed image and the initial starry sky image to obtain the brightness level of each star in the superposed image and the initial starry sky image.
In some embodiments, the superimposing, on the initial starry sky image, the star point information in the superimposed image to obtain the target starry sky image includes: comparing the positions and the brightness of the stars in the initial starry sky image and the superposed image, and determining the superposed positions and the superposed sizes of the stars; and according to the superposition position and size, combining the relative positions of the stars in the initial starry sky image and the brightness levels of the stars, and superposing the stars in the initial starry sky image to obtain the target starry sky image.
In some embodiments, before the fusing the overlay image with the initial starry sky image to obtain the target starry sky image, the method further includes: receiving an erasing instruction issued by a user; judging whether the shot initial starry sky image contains a cloud or not; and if so, removing the clouds in the initial starry sky image according to the erasing instruction.
In some embodiments, the removing the clouds in the initial starry sky image according to the erasing instruction comprises: determining an erasing position and corresponding 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 erasing times so as to remove the cloud in the initial starry sky image.
In some embodiments, the method further comprises: acquiring time information of the mobile terminal; acquiring the relative positions of all stars in the target starry sky image; determining a constellation appearing in the target starry sky image by combining the geographic position and the time information of the mobile terminal and the relative positions of all stars in the target starry sky image; the constellation is marked and displayed.
In order to solve the above technical problem, in a second aspect, an embodiment of the present invention provides an apparatus for acquiring an image including stars, which is applied to a mobile terminal, and the apparatus includes: the first acquisition module is used for acquiring an initial starry sky image shot by the mobile terminal and azimuth information when the initial starry sky image is shot by the mobile terminal; the second acquisition module is used for acquiring a superposed image according to the azimuth information; and the fusion module is used for fusing the superposed image with the initial starry sky image to obtain a target starry sky image, wherein the starry information contained in the initial starry sky image is more than the starry information contained in the target starry sky image.
In order to solve the foregoing technical problem, in a third aspect, an embodiment of the present invention provides a mobile terminal, including:
at least one processor; and (c) a second step of,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect as described above.
In order to solve the above technical problem, in a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method according to the first aspect.
In order to solve the above technical problem, in a fifth aspect, the present invention further provides a computer program product, which includes a computer program stored on a computer-readable storage medium, the computer program including program instructions, which, when executed by a computer, cause the computer to execute the method according to the first aspect.
Compared with the prior art, the invention has the beneficial effects that: the method comprises the steps of firstly obtaining an initial starry sky image shot by the mobile terminal and azimuth information of the mobile terminal when the initial starry sky image is shot, then obtaining a superposed image according to the azimuth information, and finally fusing the superposed image and the initial starry sky image to obtain a target starry sky image, wherein the star point information contained in the initial starry sky image is more than the star point information contained in the target starry sky image.
Drawings
One or more embodiments are illustrated by the accompanying figures in the drawings that correspond thereto and are not to be construed as limiting the embodiments, wherein elements/modules and steps having the same reference numerals are represented by like elements/modules and steps, unless otherwise specified, and the drawings are not to scale.
Fig. 1 is a schematic diagram of one application scenario of the method for acquiring an image including stars according to the embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for acquiring an image including stars according to an embodiment of the present invention;
FIG. 3 is a schematic sub-flow chart of step 120 of the method of FIG. 2;
fig. 4 is a schematic diagram of an image fusion process in an acquisition method of an image including stars according to an embodiment of the present invention;
FIG. 5 is a schematic sub-flow chart of step 130 of the method of FIG. 2;
FIG. 6 is a schematic sub-flow chart of step 132 of the method of FIG. 5;
fig. 7 is a schematic diagram illustrating an erasing flow of an image in the method for acquiring an image including stars according to an embodiment of the present invention;
fig. 8 is a schematic diagram of an erasing process of an image in the method for acquiring an image including stars according to an embodiment of the present invention;
fig. 9 is a schematic diagram illustrating a mark display flow of a constellation in the method for acquiring an image including stars according to an embodiment of the present invention;
fig. 10 is a schematic diagram illustrating a process of displaying a constellation mark in the method for acquiring an image including a star according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an apparatus for acquiring an image including stars according to a second embodiment of the present invention;
fig. 12 is a schematic structural diagram of another acquisition apparatus for an image containing stars according to a second embodiment of the present invention;
fig. 13 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that variations and modifications can be made by persons skilled in the art without departing from the spirit of the invention. All falling within the scope of the present invention.
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that, if not conflicted, the various features of the embodiments of the invention may be combined with each other within the scope of protection of the present application. Additionally, while functional block divisions are performed in apparatus schematics, with logical sequences shown in flowcharts, in some cases, steps shown or described may be performed in sequences other than block divisions in apparatus or flowcharts.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
In order to solve the problem that people living in cities or people living in other areas cannot watch starry sky due to bad weather conditions at present, the embodiment of the invention provides an acquisition method of an image containing stars, which can display a virtual initial starry sky image with real experience on a mobile terminal, so that a user can watch the stars at night through the mobile terminal.
Fig. 1 is a schematic diagram of an application environment for acquiring an image including stars, provided by an embodiment of the present invention, where the application environment includes: the mobile terminal 10, wherein the method for acquiring an image including a star provided in the embodiment of the present invention is mainly executed by a mobile terminal 10a, an acquiring apparatus for an image including a star is also arranged in the mobile terminal 10a, the mobile terminal 10a can be in communication connection with other mobile terminals in a preset range, that is, a mobile terminal 10b and a mobile terminal 10c, to acquire a target starry sky image including a star, and the mobile terminal 10a processes the image and an initial starry sky image acquired by itself after acquiring the target starry sky image, so as to obtain the target starry sky image including a star. The communication connection may be a wired connection or a wireless connection, for example, the communication connection may be implemented through bluetooth, wiFi, internet, or the like, and may be specifically set according to actual needs. The mobile terminal 10a, the mobile terminal 10b and/or the mobile terminal 10c may be a mobile electronic device such as a mobile phone, a tablet, and the like, and specifically, may be configured according to actual needs.
Preferably, to reduce the calculation work of the processor as much as possible, the mobile terminal 10b and the mobile terminal 10c are preferably mobile terminals within a preset range of the mobile terminal 10a, and may be, for example, mobile terminals within 50 kilometers of the mobile terminal 10a, at this time, when the pictures taken by the mobile terminals are in a given direction, the relative positions of the stars taken by the mobile terminals are substantially the same, which is beneficial to comparing the positions of the stars during the later superposition processing of the stars.
It should be noted that the embodiment of the present invention is not limited to be applied only to the mobile terminal 10a, and may also be applied to other mobile terminals, such as the mobile terminal 10b and/or the mobile terminal 10c, and a corresponding application program may be developed according to the method provided by the embodiment of the present invention, so that a plurality of mobile terminals may all use the method for acquiring an image including stars provided by the embodiment of the present invention to realize interaction between the plurality of mobile terminals, or may also acquire the target starry sky image including stars and the like through other devices, which may be specifically set according to actual needs, and does not need to be limited by the application scenario.
Specifically, the embodiments of the present invention will be further explained below with reference to the drawings.
Example one
An embodiment of the present invention provides a method for acquiring an image including stars, which can be applied to the mobile terminal 10 in the above application scenario, please refer to fig. 2, which shows a flow of the method for acquiring an image including stars according to the embodiment of the present invention, where the method includes, but is not limited to, the following steps:
step 110: acquiring an initial starry sky image shot by the mobile terminal and azimuth information when the initial starry sky image is shot by the mobile terminal;
in the embodiment of the present invention, first, an initial starry sky image shot by the mobile terminal and azimuth information when shooting the initial starry sky image need to be obtained, where the initial starry sky image is an image of a currently visible sky shot by a mobile terminal currently used by a user, and the image may include a starry or no starry and is an initial image that needs to be processed. The azimuth information comprises the geographic position and the shooting direction of the mobile terminal and comprises the information of the starry sky shot by the user at present.
Step 120: acquiring a superposed image according to the azimuth information;
in the embodiment of the present invention, after obtaining an initial starry sky image shot by the mobile terminal and its azimuth information, that is, an initial starry sky image shot by the mobile terminal at the current geographic location and in the current shooting direction, a superimposed image shot by other terminal devices shooting the same starry sky may be further obtained according to the azimuth information, specifically, refer to fig. 3, which shows a sub-process of step 120 in the method shown in fig. 2, where obtaining the superimposed image according to the azimuth information includes:
step 121: searching other terminal equipment in a preset range around the geographical position of the mobile terminal according to the geographical position of the mobile terminal;
in the embodiment of the present invention, in a preset range of the mobile terminal, a target starry sky image including stars captured by another terminal device is required to be obtained, the another terminal device is an electronic device capable of capturing or storing the target starry sky image including stars in a device album, and a user of the another terminal device may actively upload the target starry sky image including stars or upload the target starry sky image including stars according to a requirement, or send a request for obtaining the target starry sky image including stars to the mobile terminal and then feed back the target starry sky image to the mobile terminal, for example, the target starry sky image may be a mobile terminal 10b and a mobile terminal 10c shown in the above application scenario, and specifically, the target starry sky image including stars may be set according to an actual requirement.
Generally, because the air quality of suburbs around a city is good, more stars can be observed at night, 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 where the mobile terminal is located is selected as the preset range, so that target starry sky images shot or stored by other terminals in the suburb range around the city are obtained as much as possible, and the sky is restored as much as possible.
Step 122: and screening the terminal equipment in the same shooting direction as the mobile terminal from the other terminal equipment, and acquiring the image shot by the terminal equipment in the same shooting direction to obtain the superposed image.
In the embodiment of the present invention, limited by the viewing angle of the mobile terminal, the image captured by the mobile terminal has a certain directionality and a certain limitation, and only a certain azimuth of the top of the head of the user or a certain sky in a certain field of view can be captured, in order to ensure that the sky included in the superimposed image captured by other terminal devices is the same sky as or coincides with the image captured by the mobile terminal, it is further necessary to screen terminal devices in the other terminal devices that have the same capturing direction as the mobile terminal, specifically, the capturing direction of the mobile device may be determined by parameters acquired by a gyroscope and a compass on the mobile device, and similarly, the capturing direction of the other terminal devices may also be acquired by this method.
In addition, since the positions of the stars may change with the passage of time, target starry sky images including stars acquired by other terminals in the same time period may also be acquired, for example, target starry sky images captured by other terminal devices in the current week may be acquired as images for processing superimposition with the same time period in the current week.
Step 130: fusing the superposed image with the initial starry sky image to obtain a target starry sky image;
and the star point information contained in the initial star field image is more than the star point information contained in the target star field image. The star point information includes relative positions of stars and brightness levels. In the embodiment of the invention, after the superposed image with more star point information than the initial starry sky image is obtained, the superposed image and the initial starry sky image can be fused to obtain the target starry sky image.
Referring to fig. 4, which shows an example of an image fusion process in the method for acquiring an image including stars according to an embodiment of the present invention, as shown in fig. 4, an initial starry sky image captured by a user through a mobile terminal is an image b, and due to the existence of fog and clouds, some stars with lower brightness in the initial starry sky image b cannot be observed, and the brightness of observable stars is also lower. The obtained superposed image a containing more star point information shot by other terminal equipment is assumed to be a suburban image, and a clear image containing most stars can be obtained without cloud occlusion.
The number of the target starry sky images including the stars, which are acquired by the other terminal devices, may be more than one, and the number of the other terminals may also be more than one, specifically, the number may be set according to actual needs, and the limitation of the embodiment of the present invention is not required.
Specifically, referring to fig. 5, it shows a sub-process of step 130 in the method shown in fig. 2, where the fusing the overlay image and the initial starry sky image to obtain the target starry sky image includes:
step 131: extracting relative positions of stars and brightness levels of stars in the superposed image and the initial starry sky image to obtain starpoint information of the superposed image and the initial starry sky image;
specifically, coordinates of each star in the superposed image and the initial starry sky image in the image are obtained, and the relative position of each star in the superposed image and the initial starry sky image is determined according to the coordinates; and acquiring the pixel value of each star in the superposed image and the initial starry sky image to obtain the brightness level of each star in the superposed image and the initial starry sky image.
In the embodiment of the present invention, still taking fig. 4 as an example, it is necessary to obtain the relative position of each star in the superimposed image a, mark each star with a brightness level, obtain the relative position of each star in the initial starry sky image b, and mark each star with a brightness level, so as to match the position and brightness of each star in the image b captured by the mobile terminal and fuse the position and brightness with the initial starry sky image b.
Step 132: and superposing the star point information in the superposed image on the initial starry sky image to obtain the target starry sky image.
After the star point information in the superimposed image is obtained, further specifically, please refer to fig. 6 together, which shows a sub-process of step 132, where superimposing the star point information in the superimposed image on the initial star field image to obtain the target star field image specifically includes:
step 1321: comparing the positions and the brightness of the stars in the initial starry sky image and the superposed image, and determining the superposed positions and the superposed sizes of the stars;
in the embodiment of the present invention, still taking fig. 4 as an example, since the stars that can be captured in the initial starry sky image b can be determined to be the stars with higher brightness, a certain number of stars with higher brightness levels can be selected according to the brightness levels of the stars in the superimposed image a, and the relative positions of the stars are compared with all the stars captured 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. Meanwhile, generally, in the photo, the bigger the star is, the brighter the star is, so the size of the star 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. Further, 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, may also be appropriately adjusted.
Step 1322: and according to the superposition position and size, combining the relative positions of the stars in the initial starry sky image and the brightness levels of the stars, and superposing the stars in the initial starry sky image to obtain the target starry sky image.
After determining the position of the stars to be superimposed according to the relative positions of the stars with higher brightness and determining the size of the stars to be low-priced according to the brightness levels of the stars in the superimposed image a, as shown in fig. 4, the stars are superimposed on the initial starry sky image b to obtain a target starry sky image c containing the stars, and the target starry sky image c is output so that the user of the mobile terminal can observe the stars through the mobile terminal.
In some embodiments, please refer to fig. 7 and fig. 8 together, fig. 7 is an image erasing flow in the method for acquiring an image including stars according to the embodiment of the present invention, fig. 8 is an image erasing process in the method for acquiring an image including stars according to the embodiment of the present invention, before the overlaying image and the initial starry sky image are fused to obtain the target starry sky image, the method further includes the following steps:
step 141: receiving an erasing instruction issued by a user;
step 142: judging whether the initial starry sky image contains a cloud or not;
step 143: and if so, removing the clouds in the initial starry sky image according to the erasing instruction.
Wherein the removing the clouds in the initial starry sky image according to the erasing instruction comprises: determining an erasing position and corresponding 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 erasing times so as to remove the cloud in the initial starry sky image.
In the embodiment of the present invention, further, as shown in fig. 4, in the acquired superimposed image a captured by the other terminal, it is also possible to capture a star which is occluded by the cloud in the initial starry sky image b captured by the mobile terminal, so as to avoid that the occlusion of the cloud affects the observation of the user, a function of erasing the cloud may be further provided. As shown in fig. 8, the user may perform an erasing operation through an application program capable of executing the method for acquiring an image including stars according to the embodiment of the present invention, erase the clouds in the dashed box shown in fig. 8, and superimpose the brightness and the position of the stars in the dashed box position acquired in the initial starry sky image a on the erased image, thereby implementing the function of displaying after erasing.
The method comprises the steps of shooting a cloud, wherein the cloud is shot at night, and the shot initial starry sky image is a night scene image, wherein the sky is dark blue or black in the night scene image, and the cloud is a white object with certain transparency, so that when the mobile terminal erases the cloud, the brightness degree of the erasing position can be directly adjusted, and when a large-area white pixel, namely the cloud, is detected to exist in the erasing position, the blue or black of the erasing position is deepened, so that the original sky pattern is displayed, and then the stars are superposed. The brightness of the sky background and the brightness of the stars at the erasing position can be further adjusted according to the number of times of erasing actions performed by the user, and the darker the sky background and the brighter the stars are when the number of times of erasing is more, until a set limit value is reached, so that the image presents more changes.
It should be noted that, the erasing function may be implemented before the superimposing star generates the target starry sky image containing the stars, and/or after the superimposing star generates the target starry sky image containing the stars, and specifically, the erasing function may be set according to actual needs.
In some embodiments, please refer to fig. 9 and fig. 10 together, where fig. 9 is a process of displaying a mark of a constellation in the method for acquiring an image including a star according to an embodiment of the present invention, and fig. 10 is a process of displaying a mark of a constellation in the method for acquiring an image including a star according to an embodiment of the present invention, the method further includes the following steps:
step 151: acquiring time information of the mobile terminal;
step 152: acquiring the relative positions of all stars in the target starry sky image;
step 153: determining a constellation appearing in the target starry sky image by combining the geographic position and the time information of the mobile terminal and the relative positions of all stars in the target starry sky image;
step 154: the constellation is marked and displayed.
In the embodiment of the invention, further, the constellation in the finally obtained target starry sky image d containing the stars can be identified, so that a user can observe the starry sky more easily, have more experiences about the starry sky and know more knowledge about the starry sky. Specifically, the latitude and longitude of the current location of the user may be obtained according to a Global Positioning System (GPS) loaded in the current mobile device of the user, so as to determine the accurate location information of the user, and obtain the current time information of the mobile terminal. And then, according to the astronomical map, combining the relative positions of all stars in the initial starry sky image after the superposition processing, determining a constellation appearing in the initial starry sky image through comparison, and marking and displaying the constellation.
For example, taking fig. 10 as an example, according to the positioning of the mobile device, determining a longitude and a latitude of the mobile device, then by comparing an astronomical map, determining the longitude and the latitude, where a star appearing in the initial starry sky image d corresponds to a position in the astronomical map, and then labeling a constellation in the initial starry sky image d according to a field angle of an image sensor in the current mobile terminal, thereby obtaining an image e with the marked constellation, where the image e marks a dragon seat (north celestial star seat) and a small bear seat.
It should be noted that the method for obtaining stars by combining the positioning of the mobile device and the astronomical map can also be applied to the method for obtaining star point information when the overlay image is not obtained in the step 110, and specifically, the method can be set according to actual needs and does not need to be limited by the embodiments of the present invention.
Example two
An embodiment of the present invention provides an apparatus for acquiring an image containing stars, which can be applied to the mobile terminal 10 in the above application scenario, and referring to fig. 11, it shows a structure of an apparatus for acquiring an image containing stars according to an embodiment of the present invention, where the apparatus 200 for acquiring an image containing stars includes: a first acquisition module 210, a second acquisition module 220, and a fusion module 230.
The first obtaining module 210 is configured to obtain an initial starry sky image shot by the mobile terminal, and azimuth information when the mobile terminal shoots the initial starry sky image;
the second obtaining module 220 is configured to obtain a superimposed image according to the orientation information;
the fusion module 230 is configured to fuse the overlay image and the initial starry sky image to obtain a target starry sky image, where the starry information included in the initial starry sky image is more than the starry information included in the target starry sky image.
In some embodiments, the orientation information includes a geographical location and a photographing direction of the mobile terminal,
the second obtaining module 220 is further configured to search, according to the geographic position of the mobile terminal, for other terminal devices within a preset range around the geographic position where the mobile terminal is located;
and screening the terminal equipment in the same shooting direction as the mobile terminal from the other terminal equipment, and acquiring the image shot by the terminal equipment in the same shooting direction to obtain the superposed image.
In some embodiments, the star point information includes relative positions of stars and brightness levels,
the second obtaining module 220 is further configured to extract relative positions of stars and brightness levels of stars in the overlay image and the initial starry sky image, so as to obtain star point information of the overlay image and the initial starry sky image;
and superposing the star point information in the superposed image on the initial starry sky image to obtain the target starry sky image.
In some embodiments, the second obtaining module 220 is further configured to obtain coordinates of each star in the overlay image and the initial starry sky image in the image, and determine a relative position of each star in the overlay image and the initial starry sky image according to the coordinates;
and acquiring the pixel value of each star in the superposed image and the initial starry sky image to obtain the brightness level of each star in the superposed image and the initial starry sky image.
In some embodiments, the fusion module 230 is further configured to compare the positions and intensities of the stars in the initial starry sky image and the overlay image, and determine the overlay positions and sizes of the stars;
and according to the superposition position and size, combining the relative positions of the stars in the initial starry sky image and the brightness levels of the stars, and superposing the stars in the initial starry sky image to obtain the target starry sky image.
In some embodiments, please refer to fig. 12, which illustrates a structure of another apparatus for acquiring an image containing stars according to an embodiment of the present invention, where the apparatus 200 for acquiring an image containing stars further includes:
the erasing module 240 is configured to accept an erasing instruction issued by a user;
judging whether the initial starry sky image contains a cloud or not;
and if so, removing the clouds in the initial starry sky image according to the erasing instruction.
In some embodiments, the erasing module 240 is further configured to determine an erasing position and a corresponding erasing number 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 erasing times so as to remove the cloud in the initial starry sky image.
In some embodiments, with continued reference to fig. 12, the apparatus 200 for obtaining an image containing stars further comprises:
a marking module 250, configured to obtain time information of the mobile terminal;
acquiring the relative positions of all stars in the target starry sky image;
determining a constellation appearing in the target starry sky image by combining the geographic position and the time information of the mobile terminal and the relative positions of all stars in the target starry sky image;
the constellation is marked and displayed.
EXAMPLE III
An embodiment of the present invention further provides a mobile terminal, please refer to fig. 13, which shows a hardware structure of the mobile terminal capable of executing the method for acquiring an image including stars described in fig. 2 to fig. 10. The mobile terminal 10 may be the mobile terminal 10 shown in fig. 1.
The mobile terminal 10 includes: at least one processor 11; and a memory 12 communicatively coupled to the at least one processor 11, with one processor 11 being illustrated in fig. 13. The memory 12 stores instructions executable 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 execute the method for acquiring the image containing the stars described in fig. 2 to 10. The processor 11 and the memory 12 may be connected by a bus or other means, and fig. 13 illustrates the connection by a bus as an example.
The memory 12, which is a non-volatile computer-readable storage medium, may be used to store a non-volatile software program, a non-volatile computer-executable program, and modules, such as program instructions/modules corresponding to the method for acquiring an image including stars in the embodiment of the present application, for example, the modules shown in fig. 11 to 12. The processor 11 executes various functional applications and data processing of the server by running the nonvolatile software program, instructions and modules stored in the memory 12, that is, the method for acquiring the images including stars in the above method embodiment is realized.
The memory 12 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of an acquisition device including an image of a star, and the like. Further, the memory 12 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 12 optionally includes a memory remotely located from the processor 11, and these remote memories may be connected over a network to an acquisition device containing an image of a star. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 12, and when executed by the one or more processors 11, perform the method for acquiring an image including stars in any of the above-described method embodiments, for example, perform the method steps of fig. 2 to 10 described above, and implement the functions of each module and each unit in fig. 11 to 12.
The product can execute the method provided by the embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
Embodiments of the present application also provide a non-transitory computer-readable storage medium storing computer-executable instructions for execution by one or more processors, for example, to perform the method steps of fig. 2-10 described above to implement the functions of the modules of fig. 11-12.
Embodiments of the present application further provide a computer program product comprising a computer program stored on a non-volatile computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method for acquiring an image containing stars in any of the above-mentioned method embodiments, for example, to perform the method steps of fig. 2 to 10 described above, and to implement the functions of the respective modules in fig. 11 to 12.
The embodiment of the invention provides a method, a device and a mobile terminal for acquiring an image containing stars, wherein the method comprises the steps of firstly acquiring an initial starry sky image shot by the mobile terminal and azimuth information when the initial starry sky image is shot by the mobile terminal, then acquiring a superposed image according to the azimuth information, and finally fusing the superposed image and the initial starry sky image to obtain a target starry sky image, wherein the starry information contained in the initial starry sky image is more than the starry information contained in the target starry sky image.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, 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 the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.

Claims (11)

1. A method for acquiring an image containing stars is applied to a mobile terminal, and the method comprises the following steps:
acquiring an initial starry sky image shot by the mobile terminal and azimuth information when the initial starry sky image is shot by the mobile terminal;
acquiring a superposed image according to the azimuth information;
and fusing the superposed image and the initial starry sky image to obtain a target starry sky image, wherein the starry information contained in the initial starry sky image is more than the starry information contained in the target starry sky image.
2. The acquisition method according to claim 1,
the orientation information includes a geographical location and a photographing direction of the mobile terminal,
the acquiring of the superimposed image according to the orientation information includes:
searching other terminal equipment in a preset range around the geographical position of the mobile terminal according to the geographical position of the mobile terminal;
and screening the terminal equipment in the same shooting direction as the mobile terminal from the other terminal equipment, and acquiring the image shot by the terminal equipment in the same shooting direction to obtain the superposed image.
3. The acquisition method according to claim 1,
the star point information includes relative positions of stars and brightness levels,
the fusing the superposed image with the initial starry sky image to obtain a target starry sky image comprises:
extracting relative positions of stars and brightness levels of stars in the superposed image and the initial starry sky image to obtain starpoint information of the superposed image and the initial starry sky image;
and superposing the star point information in the superposed image on the initial starry sky image to obtain the target starry sky image.
4. The acquisition method according to claim 3,
the extracting the relative positions of the stars and the brightness levels of the stars in the superposition image and the initial starry sky image comprises:
acquiring coordinates of each star in the superposed image and the initial starry sky image in the image, and determining the relative position of each star in the superposed image and the initial starry sky image according to the coordinates;
and acquiring the pixel value of each star in the superposed image and the initial starry sky image to obtain the brightness level of each star in the superposed image and the initial starry sky image.
5. The acquisition method according to claim 4,
the 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 the brightness of the stars in the initial starry sky image and the superposed image, and determining the superposed positions and the superposed sizes of the stars;
and according to the superposition position and size, combining the relative positions of the stars in the initial starry sky image and the brightness levels of the stars, and superposing the stars in the initial starry sky image to obtain the target starry sky image.
6. The acquisition method according to any one of claims 1 to 5,
before the fusion of the superimposed image and the initial starry sky image to obtain a target starry sky image, the method further includes:
receiving an erasing instruction issued by a user;
judging whether the initial starry sky image contains a cloud or not;
and if so, removing the clouds in the initial starry sky image according to the erasing instruction.
7. The acquisition method according to claim 6,
removing the clouds in the initial starry sky image according to the erasing instruction comprises:
determining an erasing position and corresponding 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 erasing times so as to remove the cloud in the initial starry sky image.
8. The acquisition method according to any one of claims 2 to 7, characterized in that the method further comprises:
acquiring time information of the mobile terminal;
acquiring the relative positions of all stars in the target starry sky image;
determining a constellation appearing in the target starry sky image by combining the geographic position and the time information of the mobile terminal and the relative positions of all stars in the target starry sky image;
the constellation is marked and displayed.
9. An apparatus for acquiring an image containing stars, which is applied to a mobile terminal, the apparatus comprising:
the first acquisition module is used for acquiring an initial starry sky image shot by the mobile terminal and azimuth information when the initial starry sky image is shot by the mobile terminal;
the second acquisition module is used for acquiring a superposed image according to the azimuth information;
and the fusion module is used for fusing the superposed image with the initial starry sky image to obtain a target starry sky image, wherein the starry information contained in the initial starry sky image is more than the starry information contained in the target starry sky image.
10. A mobile terminal, comprising:
at least one processor; and (c) a second step of,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the processor to enable the processor to perform the method of any one of claims 1-8.
11. A computer-readable storage medium having computer-executable instructions stored thereon for causing a computer to perform the method of any one of claims 1-8.
CN202111093085.9A 2021-09-17 2021-09-17 Method and device for acquiring image containing stars and mobile terminal Pending CN115834798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111093085.9A CN115834798A (en) 2021-09-17 2021-09-17 Method and device for acquiring image containing stars and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111093085.9A CN115834798A (en) 2021-09-17 2021-09-17 Method and device for acquiring image containing stars and mobile terminal

Publications (1)

Publication Number Publication Date
CN115834798A true CN115834798A (en) 2023-03-21

Family

ID=85515845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111093085.9A Pending CN115834798A (en) 2021-09-17 2021-09-17 Method and device for acquiring image containing stars and mobile terminal

Country Status (1)

Country Link
CN (1) CN115834798A (en)

Similar Documents

Publication Publication Date Title
US9766712B2 (en) Systems and methods for orienting a user in a map display
CN110168616B (en) Overlay contrast control in augmented reality displays
CN108702444B (en) Image processing method, unmanned aerial vehicle and system
CN108932051B (en) Augmented reality image processing method, apparatus and storage medium
CN110716646A (en) Augmented reality data presentation method, device, equipment and storage medium
CN106249918B (en) Virtual reality image display method and device and terminal equipment applying same
JP4969053B2 (en) Portable terminal device and display method
CN110858414A (en) Image processing method and device, readable storage medium and augmented reality system
CN110199319B (en) Overlay emphasis modification in augmented reality displays
JP6397617B2 (en) Method and apparatus for removing shadows from aerial or satellite photographs
CN113240615B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CA2993265C (en) Systems and methods for northfinding
WO2019097742A1 (en) Program, information processing device, and information processing method
CN109916415B (en) Road type determination method, device, equipment and storage medium
CN111815785A (en) Method and device for presenting reality model, electronic equipment and storage medium
GB2537886A (en) An image acquisition technique
IL267309B (en) Terrestrial observation device having location determination functionality
CN115834798A (en) Method and device for acquiring image containing stars and mobile terminal
Luley et al. Mobile augmented reality for tourists–MARFT
CN114520903A (en) Rendering display method, device, storage medium and computer program product
JP3569097B2 (en) Imaging device and digital still camera
US11899195B2 (en) Information technology based astronomical telescope system
RU2504833C1 (en) Method of displaying surrounding environment
CN110276837B (en) Information processing method and electronic equipment
JP2011069773A (en) Information terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination