Disclosure of Invention
The invention aims to provide a recording method, a recording device, mobile equipment and a readable storage medium capable of accurately recording night movement tracks.
In order to achieve the above object, the present invention provides a night movement track recording method, which is applied to a mobile device, the night movement track recording method comprising:
Acquiring position coordinates of a plurality of position points and photosensitive information of the plurality of position points, wherein the photosensitive information comprises light intensity information;
Determining a first distance between a first position point and a street lamp corresponding to the first position point according to the photosensitive information of the first position point in the plurality of position points;
Determining a correction coordinate of the first position point according to the position coordinate of the first position point, the first distance and the coordinate value of the street lamp corresponding to the first position point;
And drawing a motion track according to the correction coordinates of the plurality of position points.
In some embodiments, the night movement track recording method further comprises the step of collecting coordinate values of the street lamp corresponding to the plurality of position points in advance and light intensity information when the mobile equipment is at different distances from the street lamp.
In some embodiments, the light sensitive information further includes a height of the mobile device that acquired the light intensity information.
In some embodiments, the sensitization information further includes an angle of the mobile device that acquired the light intensity information.
In some embodiments, the night movement track recording method further comprises the step of collecting coordinate values of the street lamp corresponding to the plurality of position points in advance and the step of collecting light intensity information of the mobile equipment at different distances from the street lamp at a plurality of heights and angles.
In some embodiments, the determining the correction coordinates of the first location point according to the location coordinates of the first location point, the first distance, and the coordinate values of the street lamp corresponding to the first location point includes obtaining an arc track with the coordinate values of the street lamp corresponding to the first location point as a center and the first distance as a radius, and taking the coordinates of a point closest to the location coordinates of the first location point on the arc track as the correction coordinates of the first location point.
In some embodiments, the location coordinates are GPS coordinates.
To achieve the above object, the present invention provides a night movement trace recording apparatus including a module for performing the night movement trace recording method as described above.
To achieve the above object, the present invention provides a mobile device including a light sensor for sensing light intensity information of a plurality of position points, a coordinate acquisition means for acquiring position coordinates of the plurality of position points, a processor, a memory, and one or more computer programs stored in the memory and configured to be executed by the processor, the processor executing the one or more computer programs to perform the night motion trajectory recording method as described above.
To achieve the above object, the present invention provides a computer-readable storage medium storing a computer program executable by a processor to implement the night motion profile recording method as described above.
Compared with the prior art, the invention is based on the light beam emitted by the street lamp during night movement, the street lamp coordinates are used as a reference, the street lamp corresponding to each position point is obtained through the position coordinates of each position point, the distance between each position point and the corresponding street lamp is obtained through the photosensitive information of each position point, then the correction coordinates of each position point are obtained according to the position coordinates of each position point, the distance between each position point and the corresponding street lamp and the coordinate values of the corresponding street lamp, and finally the movement track is drawn according to the correction coordinates of a plurality of position points. By correcting the position coordinates of each position point, inaccurate movement tracks caused by inaccurate position coordinates due to factors such as weak position positioning signals and the like can be avoided, and more accurate movement tracks can be formed.
Detailed Description
For a detailed description of the contents, construction features, achieved objects and effects of the present invention, a technical solution of the embodiments of the present invention will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The night movement track recording method provided by the embodiment is applied to mobile equipment, and the mobile equipment is suitable for being carried about so as to record movement data of a user, thereby recording movement tracks. As shown in fig. 1, the night movement track recording method includes a pre-acquisition step, an information acquisition step, a street lamp and distance confirmation step, a correction coordinate calculation step, and a movement track drawing step.
The pre-collecting step comprises the step of pre-collecting coordinate values of each street lamp on a road and the step of sensing light intensity information of the mobile equipment at different heights, angles and different distances from the street lamp. Specifically, before the sports, at least one of the GPS module, the WIFI module, the base station positioning module, and the bluetooth module collects coordinate values of each street lamp, where the collected coordinate values of each street lamp should be accurate coordinate values.
The information acquisition step comprises the steps of acquiring position coordinates of a plurality of position points and photosensitive information of the plurality of position points, wherein the photosensitive information comprises light intensity information and the height and the angle of the mobile equipment for acquiring the light intensity information.
The street lamp and distance confirming step comprises the step of confirming a first distance between a first position point and a street lamp corresponding to the first position point according to the photosensitive information of the first position point in the plurality of position points. Wherein the "first distance" is a distance in a horizontal direction.
It should be noted that the first location point may be any one of a plurality of location points, and the following description is given with respect to the first location point for convenience of description, but the present application is not limited thereto.
The correction coordinate calculation step comprises the step of determining the correction coordinate of the first position point according to the position coordinate of the first position point, the first distance and the coordinate value of the street lamp corresponding to the first position point.
The street lamp and distance confirming step and the correction coordinate calculating step are repeatedly executed to determine the correction coordinates of other position points in the plurality of position points.
The motion trajectory drawing step includes drawing a motion trajectory based on corrected coordinates of the plurality of position points. That is, the correction coordinates of the plurality of position points are formed as a line.
It can be understood that the street lamp corresponding to the position point is the street lamp closest to the position point, and the street lamp is a type of light source which can play a role in illumination on the road, and is not a specific type of lamp.
The distance between the mobile device (sporter) and the street lamp is different, the sensed light intensity is different, the angle or the height of the mobile device is different when the distance is equal to that of the street lamp, for example, the sensed light intensity is stronger when a light sensor of the mobile device faces the street lamp, the sensed light intensity is weaker and even zero when the light sensor of the mobile device faces away from the street lamp, for example, the sensed light intensity is stronger when the height of the mobile device is closer to the street lamp in the vertical direction, otherwise, the sensed light intensity is weaker, and the three factors of the distance from the street lamp, the height and the angle of the mobile device affecting the acquired light intensity are comprehensively considered.
Of course, in some embodiments, the distance between each location point and the corresponding street lamp may be obtained only according to the light intensity information and the height of the mobile device that obtains the light intensity information, in some embodiments, the distance between each location point and the corresponding street lamp may be obtained only according to the angle between the light intensity information and the mobile device that obtains the light intensity information, and in some embodiments, the distance between each location point and the corresponding street lamp may be obtained only according to the light intensity information.
It can be understood that the distance between each position point and the corresponding street lamp can be obtained by acquiring the light intensity information of the mobile device in enough scenes, such as the light intensity information sensed in enough heights, enough angles and different distances from the street lamp, matching the light intensity information and the height and the angle of the mobile device when acquiring the light intensity information in the street lamp and distance confirmation step, or by utilizing a neural network model, training the neural network model through the light intensity information corresponding to the light intensity information of the mobile device acquired in the pre-acquisition step in different heights, angles and different distances from the street lamp, and in the street lamp and distance confirmation step, taking the light intensity information, the height and the angle of the mobile device as the input of the neural network model, and calculating the distance between each position point and the corresponding street lamp by utilizing the neural network model.
In this embodiment, the pre-collecting step collects light intensity information of the mobile device at different distances from the street lamp, and the distance confirming step obtains more accurate distances between each position point and the corresponding street lamp by collecting light intensity information at various distances, which can be understood that in some embodiments, only light intensity information of the mobile device and the street lamp at a certain distance value, for example, light intensity information of the mobile device located under the street lamp, at this time, in the street lamp and distance confirming step, the distance between each position point and the street lamp is calculated based on the light intensity information of the certain distance value.
In this embodiment, the position coordinates acquired in the information acquisition step are GPS coordinates, that is, the position coordinates are acquired by positioning by a GPS module, and of course, the position coordinates may also be acquired by a WIFI module, a base station positioning module, a bluetooth module, or the like. In some embodiments, the position coordinates of each position point may also be estimated by obtaining the distance of motion through an acceleration sensor of the mobile device, obtaining the direction of motion through a gyroscope, a magnetometer, and the like.
In this embodiment, in the step of calculating the corrected coordinates, the method specifically includes obtaining an arc track with the coordinate value (x 1, y 1) of the street lamp corresponding to the first position point as a center and the first distance L as a radius, and calculating the corrected coordinates of the first position point with the coordinate (x 2, y 2) of the point closest to the position coordinate (x 0, y 0) of the first position point on the arc track as the corrected coordinates of the first position point according to the position coordinate of the first position point, the first distance and the coordinate value of the street lamp corresponding to the first position point.
It will be appreciated that the correction coordinate calculation step may be performed once after each position coordinate and photosensitive information of a position point are acquired during the movement process, or may be performed after the movement is finished, for example, the position coordinates of a certain position point, such as the coordinates of a corner, the coordinates of a track overlapping position, etc. may be selectively corrected. For example, as shown in fig. 3, the motion trajectories partially overlap before correction, with poor accuracy, and the motion trajectories at the corners are close to right angles, not conforming to the normal cornering characteristics during motion. FIG. 4 is a schematic diagram of a motion track corrected by photosensitive information, as shown in FIG. 4, a plurality of motion tracks are separated, accuracy is high, and corners conform to turning characteristics during motion.
In summary, the invention is based on the light beam emitted by the street lamp during night movement, the street lamp coordinates are used as a reference, the street lamp corresponding to each position point is obtained through the position coordinates of each position point, the distance between each position point and the street lamp corresponding to each position point is obtained through the photosensitive information of each position point, then the correction coordinates of each position point are obtained according to the position coordinates of each position point, the distance between each position point and the street lamp corresponding to each position point and the coordinate values of the street lamp corresponding to each position point, and finally the movement track is drawn according to the correction coordinates of a plurality of position points. By correcting the position coordinates of each position point, the problem of inaccurate movement track in the running process of the night between the high-rise buildings in the district can be solved, and the inaccurate movement track caused by inaccurate position coordinates due to factors such as weak positioning signals of certain positions/certain time can be avoided. Meanwhile, the GPS module does not need to be the highest precision in the whole movement process, the power consumption is lower, and the service life is longer. Further, the photosensitive information comprises light intensity information and the height and angle of the mobile device for acquiring the light intensity information, three factors affecting the acquired light intensity, namely the distance between the mobile device and the street lamp, the height and angle of the mobile device for acquiring the light intensity information are comprehensively considered, the distance between each position point and the corresponding street lamp is acquired according to the light intensity information and the height and angle of the mobile device for acquiring the light intensity information, the acquired distance value is more accurate, and therefore calculated correction coordinates are more accurate, and further more accurate movement tracks can be acquired.
Referring next to fig. 5, the night motion trajectory recording device 10 of the present embodiment includes a pre-acquisition module 11, an information acquisition module 12, a first processing module 13, a second processing module 14, and a trajectory drawing module 15, corresponding to the aforementioned night motion trajectory recording method.
The pre-acquisition module 11 is used for pre-acquiring coordinate values of each street lamp on a road before moving, and light intensity information sensed by the mobile device at different heights, angles and different distances from the street lamp.
The information acquisition module 12 is used for acquiring position coordinates of a plurality of position points in the movement process and photosensitive information of the plurality of position points, wherein the photosensitive information comprises light intensity information and the height and the angle of the mobile device for acquiring the light intensity information.
The first processing module 13 is configured to determine a first distance between a first location point and a street lamp corresponding to the first location point according to the photosensitive information of the first location point.
The second processing module 14 is configured to determine a correction coordinate of the first location point according to the location coordinate of the first location point, the first distance, and a coordinate value of the street lamp corresponding to the first location point.
The trajectory drawing module 15 is configured to draw a motion trajectory according to the corrected coordinates of the plurality of position points.
The specific working processes of the pre-acquisition module 11, the information acquisition module 12, the first processing module 13, the second processing module 14, and the track drawing module 15 refer to the description of the night movement track recording method, and are not repeated herein.
Referring next to fig. 6, a mobile device 20 according to an embodiment of the present invention includes a light sensor 21, a GPS module 22, an acceleration sensor 23, a gyroscope 24, a magnetometer 25, a processor 26, and a memory 27. The mobile device 20 may be, for example, a smart phone, a smart bracelet, a smart watch, or the like, having the above-described components. The light sensor 21 is used for sensing light intensity information of a plurality of position points, the GPS module 22 is used for acquiring position coordinates of the plurality of position points, the acceleration sensor 23 is used for acquiring motion acceleration, and the gyroscope 24 and the magnetometer 25 are used for acquiring the orientation/direction of the mobile device 20. The processor 26 obtains light intensity information of a plurality of location points by receiving information transmitted from the light sensor 21, obtains location coordinates of the plurality of location points by receiving information transmitted from the GPS module 22, estimates the height of the mobile device 20 by receiving input height of a user, information transmitted from the gyroscope 24 and the like, estimates the angle of the mobile device 20 by receiving information transmitted from the gyroscope 24 and the magnetometer 25, obtains a street lamp corresponding to the first location point according to the location coordinates of the first location point, obtains a first distance between the first location point and the street lamp corresponding to the first location point according to the light intensity information and the height and the angle of the mobile device when obtaining the light intensity information, then determines correction coordinates of the first location point according to the location coordinates of the first location point, the first distance and the coordinate values of the street lamp corresponding to the first location point, and finally draws a motion trail according to the correction coordinates of the plurality of location points. The memory 27 is used to store one or more computer programs, such as a night motion profile recording program, which when executed by the processor 26 causes the processor 26 to implement the night motion profile recording method described above.
Memory 27 may be any form of random access memory, read only memory, flash memory or other similar device integrated into mobile device 20. The processor 26 may be a central processing unit or other programmable general purpose or special purpose microprocessor, digital signal processor, programmable controller, special integrated circuit or other similar device, or a combination of such devices.
It will be understood that the mobile device 20 shown in fig. 6 includes a GPS module 22, an acceleration sensor 23, a gyroscope 24 and a magnetometer 25, and during the movement process, the GPS module 22 may be turned on to obtain the position coordinates of each position point, or the GPS module 22 may not be turned on, but the distance of the movement may be obtained through the acceleration sensor 23, and the direction of the movement may be obtained through the gyroscope 24, the magnetometer 25 and the like, so as to estimate the position coordinates of each position point.
It will be appreciated that the coordinate values of the respective street lamps may be obtained with the highest accuracy by turning on the GPS module 22 prior to the movement, or may be obtained by using other positioning means than the mobile device 20.
The embodiment of the invention also discloses a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and when the computer program is executed by the processor 26, the night movement track recording method in the embodiment is implemented. The computer program includes computer instructions, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable storage medium may include any entity or device capable of carrying computer program code, a recording medium, a USB flash disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read Only Memory (ROM), a Random Access Memory (RAM), and so forth.
Embodiments of the present invention also disclose a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor 26 of the mobile device 20 reads the computer instructions from the computer readable storage medium and the processor 26 executes the computer instructions to cause the mobile device 20 to perform the night motion profile recording method described above.
The foregoing disclosure is only illustrative of the preferred embodiments of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims.