Nighttime motion trajectory recording method, device, mobile device and storage medium
By using photosensitive information and street light coordinates to correct position coordinates during night motion, the problem of inaccurate motion trajectory at night is solved, and more accurate motion trajectory recording and lower power consumption are achieved.
Patent Information
- Application Number
- CN202111631787.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2041-12-28
AI Technical Summary
During nighttime movement, especially among high-rise buildings in the community, the positioning signal may be weak or there are blind spots, resulting in inaccurate movement trajectory and reducing the user experience of wearable devices.
By obtaining the position coordinates and photosensitive information of multiple position points, including light intensity information, the distance between each position point and the corresponding street light is determined, and the correction coordinates are calculated based on this information, and finally a more accurate motion trajectory is drawn.
By correcting the position coordinates, the problem of inaccurate motion trajectory caused by weak positioning signals is avoided, the accuracy of motion trajectory is improved, and the power consumption of the GPS module is reduced.
Smart Images

Figure CN114296115B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mobile equipment, and in particular to a method and device for recording nighttime motion tracks, a mobile equipment and a storage medium. Background Art
[0002] With the development of science and technology, various mobile devices are becoming more and more popular, such as smart phones, and wearable devices such as smart bracelets and smart watches. These smart wearable devices can run a variety of application software. Users can use these application software to count their own sports data, listen to music, check text messages, etc., to enrich their lifestyle and improve their life experience.
[0003] Since wearable devices such as smart bracelets and smart watches are relatively small in size, users can wear these wearable devices for outdoor sports, such as running and cycling, and use the wearable devices to locate themselves, draw movement trajectories, etc., and share them in social programs, which increases the fun of sports. In the prior art, Bluetooth modules, WIFI modules, base station positioning modules, or GPS modules are usually used for positioning to obtain multiple position coordinates, and then the coordinates are connected to draw the movement trajectory; however, during the exercise, there may be some locations with weak positioning signals or positioning blind spots, especially when running between high-rise buildings in a community, it is easy for the position points to fail to update, resulting in inaccurate movement trajectories, which reduces the user experience of wearable devices. Summary of the invention
[0004] The object of the present invention is to provide a recording method, device, mobile device and readable storage medium capable of accurately recording nighttime motion trajectories.
[0005] To achieve the above object, the present invention provides a nighttime motion track recording method, which is applied to a mobile device. The nighttime motion track recording method comprises:
[0006] Acquire position coordinates of a plurality of position points and light-sensitive information of the plurality of position points, wherein the light-sensitive information includes light intensity information;
[0007] Determine, according to light-sensing information of a first position point among the plurality of position points, a first distance between the first position point and a street lamp corresponding to the first position point;
[0008] Determine the corrected coordinates of the first location point according to the location coordinates of the first location point, the first distance, and the coordinate value of the street lamp corresponding to the first location point;
[0009] The motion trajectory is drawn according to the corrected coordinates of the multiple position points.
[0010] In some embodiments, the nighttime motion trajectory recording method further includes: pre-collecting the coordinate values of the street lamps corresponding to the multiple location points, and the light intensity information of the mobile device at different distances from the street lamps.
[0011] In some embodiments, the light-sensing information also includes the height of the mobile device when the light intensity information is acquired.
[0012] In some embodiments, the light-sensing information also includes the angle of the mobile device when acquiring the light intensity information.
[0013] In some embodiments, the nighttime motion trajectory recording method further includes: pre-collecting the coordinate values of the street lamps corresponding to the multiple location points, and the light intensity information of the mobile device at multiple heights and angles and at different distances from the street lamps.
[0014] In some embodiments, determining the corrected coordinates of the first position point based on the position coordinates of the first position point, the first distance and the coordinate value of the street lamp corresponding to the first position point includes: obtaining an arc trajectory with the coordinate value of the street lamp corresponding to the first position point as the center and the first distance as the radius; and taking the coordinates of the point on the arc trajectory closest to the position coordinates of the first position point as the corrected coordinates of the first position point.
[0015] In some embodiments, the location coordinates are GPS coordinates.
[0016] To achieve the above objectives, the present invention provides a nighttime motion trajectory recording device, comprising a module for executing the nighttime motion trajectory recording method as described above.
[0017] To achieve the above-mentioned objectives, the present invention provides a mobile device, including a light sensor, a coordinate acquisition device, a processor, a memory and one or more computer programs, wherein the light sensor is used to sense the light intensity information of multiple location points; the coordinate acquisition device is used to acquire the position coordinates of the multiple location points; the one or more computer programs are stored in the memory and are configured to be executed by the processor, and when the processor executes the one or more computer programs, it executes the night motion trajectory recording method as described above.
[0018] To achieve the above objectives, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement the nighttime motion trajectory recording method as described above.
[0019] Compared with the prior art, the present invention is based on the light beams emitted by street lamps during nighttime movement, and uses the street lamp coordinates as a reference. The street lamp corresponding to each position point is obtained through the position coordinates of each position point, and the distance between each position point and the street lamp corresponding to it is obtained through the photosensitive information of each position point. Then, according to the position coordinates of each position point, the distance between each position point and the street lamp corresponding to it, and the coordinate value of the street lamp corresponding to it, the corrected coordinates of each position point are obtained, and finally the motion trajectory is drawn according to the corrected coordinates of multiple position points. By correcting the position coordinates of each position point, the inaccurate motion trajectory caused by inaccurate position coordinates due to factors such as weak positioning signals at certain positions can be avoided, and a more accurate motion trajectory can be formed. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a flow chart of a method for recording nighttime motion trajectory according to an embodiment of the present invention.
[0021] Figure 2 It is a schematic diagram of the correction coordinate calculation according to an embodiment of the present invention.
[0022] Figure 3 It is a schematic diagram of a motion trajectory drawn based on position coordinates according to an embodiment of the present invention.
[0023] Figure 4 It is a schematic diagram of a motion trajectory corrected by using photosensitive information according to an embodiment of the present invention.
[0024] Figure 5 It is a structural block diagram of a nighttime motion trajectory recording device according to an embodiment of the present invention.
[0025] Figure 6 It is a structural block diagram of a mobile device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to explain the content, structural features, achieved purposes and effects of the present invention in detail, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] The nighttime motion track recording method provided in this embodiment is applied to a mobile device, which is suitable for being carried around, so as to record the user's motion data and thus record the motion track. Figure 1 As shown, the nighttime motion trajectory recording method includes a pre-collection step, an information acquisition step, a street light and distance confirmation step, a correction coordinate calculation step, and a motion trajectory drawing step.
[0028] The pre-collection step includes: pre-collecting the coordinate values of each street lamp on the road, and the light intensity information sensed by the mobile device at multiple different heights, angles, and different distances from the street lamp. Specifically, before the movement, the coordinate values of each street lamp are collected through at least one of a GPS module, a WIFI module, a base station positioning module, and a Bluetooth module, and the collected coordinate values of each street lamp should be accurate coordinate values.
[0029] The information acquisition step includes: acquiring position coordinates of multiple position points and light-sensitive information of the multiple position points, wherein the light-sensitive information includes light intensity information and the height and angle of the mobile device when acquiring the light intensity information.
[0030] The street lamp and distance confirmation step includes: determining a first distance between the first position point and the street lamp corresponding to the first position point according to the light sensing information of the first position point among the multiple position points, wherein the "first distance" is the distance in the horizontal direction.
[0031] It should be noted that the first position point may be any one of a plurality of position points. For the convenience of description, the following description is based on the first position point, but the present application is not limited thereto.
[0032] The correction coordinate calculation step includes: determining the correction coordinates of the first position point according to the position coordinates of the first position point, the first distance and the coordinate value of the street lamp corresponding to the first position point.
[0033] The street light and distance confirmation steps and the correction coordinate calculation steps are repeatedly executed to determine the correction coordinates of other position points among the multiple position points.
[0034] The motion trajectory drawing step includes: drawing the motion trajectory according to the corrected coordinates of the plurality of position points, that is, connecting the corrected coordinates of the plurality of position points into a line.
[0035] It can be understood that the street lamp corresponding to the location point is the street lamp closest to the location point. The street lamp is a type of light source that can provide lighting on the road, and does not refer to a specific type of lamp.
[0036] Due to the different distances between the mobile device (the athlete) and the street lamp, the sensed light intensity will be different. When the distance from the street lamp is the same, the angle or height of the mobile device will be different, and the sensed light intensity will also be different. For example, when the light sensor of the mobile device faces the street lamp, the sensed light intensity is strong, and when the light sensor of the mobile device is facing away from the street lamp, the sensed light intensity is weak or even zero. For another example, when the height of the mobile device is closer to the street lamp in the vertical direction, the sensed light intensity is strong, and vice versa, the sensed light intensity is weak. This embodiment comprehensively considers the three factors that affect the acquired light intensity, namely the distance from the street lamp, the height and angle of the mobile device, and obtains the distance between each position point and the corresponding street lamp based on the light intensity information and the height and angle of the mobile device when acquiring the light intensity information. The obtained distance value is more accurate, so that the calculated correction coordinates can be more accurate, and thus a more precise motion trajectory can be obtained.
[0037] Of course, in some embodiments, the distance between each location point and the corresponding street lamp can be obtained only based on the light intensity information and the height of the mobile device when the light intensity information is obtained; in some embodiments, the distance between each location point and the corresponding street lamp can be obtained only based on the light intensity information and the angle of the mobile device when the light intensity information is obtained; in some embodiments, the distance between each location point and the corresponding street lamp can be obtained only based on the light intensity information.
[0038] It is understandable that the light intensity information of the mobile device in sufficient scenarios can be collected in advance, such as the light intensity information sensed at sufficient heights, sufficient angles, and different distances from the street lamps. In the street lamp and distance confirmation step, the distance between each position point and the corresponding street lamp can be obtained according to the light intensity information and the height and angle of the mobile device when the light intensity information is obtained by matching with each scene. It is also possible to use a neural network model to train a neural network model using the light intensity information corresponding to the mobile device at multiple different heights, angles, and different distances from the street lamps collected in the pre-collection step. In the street lamp and distance confirmation step, the light intensity information, the height and angle of the mobile device are used as inputs of the neural network model, and the distance between each position point and the corresponding street lamp is obtained by calculation using the neural network model.
[0039] In this embodiment, the pre-collection step collects light intensity information at different distances between the mobile device and the street lamp. By collecting light intensity information at multiple distances, a more accurate distance between each position point and the corresponding street lamp can be obtained in the street lamp and distance confirmation step. It can be understood that in some embodiments, only the light intensity information at a certain distance value between the mobile device and the street lamp can be obtained. For example, the light intensity information when the mobile device is directly under the street lamp. In this case, in the street lamp and distance confirmation step, the distance between each position point and the street lamp is calculated based on the light intensity information at the certain distance value.
[0040] In this embodiment, the location coordinates obtained in the information acquisition step are GPS coordinates, that is, the location coordinates are obtained by positioning the GPS module; of course, the location coordinates can also be obtained through a WIFI module, a base station positioning module, a Bluetooth module, etc. In some embodiments, the location coordinates of each location point can also be estimated by obtaining the movement distance through an acceleration sensor of the mobile device itself, and obtaining the movement direction through a gyroscope, a magnetometer, etc.
[0041] In this embodiment, in the correction coordinate calculation step, "determining the correction coordinates of the first position point according to the position coordinates of the first position point, the first distance and the coordinate value of the street lamp corresponding to the first position point" specifically includes: obtaining an arc trajectory with the coordinate value (x1, y1) of the street lamp corresponding to the first position point as the center and the first distance L as the radius; taking the coordinates (x2, y2) of the point on the arc trajectory closest to the position coordinates (x0, y0) of the first position point as the correction coordinates of the first position point. The schematic diagram of the correction coordinate calculation is shown in FIG. Figure 2 shown.
[0042] It is understandable that the coordinate correction calculation step can be performed once each time the position coordinates and light-sensing information of a position point are acquired during the movement, or it can be performed after the movement is finished to selectively correct the position coordinates of certain positions, such as the coordinates at the corners, the coordinates at the overlapping track, etc. Figure 3 As shown, before the correction, the motion trajectories partially overlapped with each other, the accuracy was poor, and the motion trajectory was close to a right angle at the corner, which did not conform to the normal turning characteristics during the movement. Figure 4 is a schematic diagram of the motion trajectory after correction using photosensitive information, such as Figure 4 As shown, multiple motion trajectories are separated with high accuracy, and the corners conform to the turning characteristics during motion.
[0043] In summary, the present invention is based on the light beams emitted by street lamps during nighttime exercise, and uses the coordinates of the street lamps as a reference. The street lamps corresponding to each position point are obtained through the position coordinates of each position point, and the distance between each position point and the street lamp corresponding to it is obtained through the photosensitive information of each position point. Then, according to the position coordinates of each position point, the distance between each position point and the street lamp corresponding to it, and the coordinate values of the street lamp corresponding to it, the corrected coordinates of each position point are obtained, and finally the motion trajectory is drawn according to the corrected coordinates of multiple position points. By correcting the position coordinates of each position point, it is possible to avoid inaccurate motion trajectories caused by inaccurate position coordinates due to factors such as weak positioning signals at certain positions / at a certain time, and a more accurate motion trajectory can be formed, which can solve the problem of inaccurate motion trajectories during night running between high-rise buildings in a residential area. At the same time, it is not necessary to use the GPS module with the highest accuracy throughout the entire exercise, and the power consumption is lower, and the usage time is longer. Furthermore, the photosensitive information includes light intensity information and the height and angle of the mobile device when obtaining the light intensity information. The three factors affecting the obtained light intensity, namely the distance from the street lamp, the height and angle of the mobile device, are comprehensively considered. The distance between each position point and the corresponding street lamp is obtained based on the light intensity information and the height and angle of the mobile device when obtaining the light intensity information. The obtained distance value is more accurate, thereby making the calculated correction coordinates more accurate, and thus a more precise motion trajectory can be obtained.
[0044] See next Figure 5 Corresponding to the aforementioned nighttime motion trajectory recording method, the nighttime motion trajectory recording device 10 of this embodiment includes a pre-collection module 11, an information acquisition module 12, a first processing module 13, a second processing module 14 and a trajectory drawing module 15.
[0045] The pre-collection module 11 is used to collect the coordinate values of each street lamp on the road before the movement, as well as the light intensity information sensed by the mobile device at multiple different heights, angles, and different distances from the street lamp.
[0046] The information acquisition module 12 is used to acquire the position coordinates of multiple position points and the light-sensitive information of multiple position points during the movement, and the light-sensitive information includes light intensity information and the height and angle of the mobile device when acquiring the light intensity information.
[0047] The first processing module 13 is used to determine a first distance between the first position point and a street lamp corresponding to the first position point according to light sensing information of the first position point among the multiple position points.
[0048] The second processing module 14 is used to determine the corrected coordinates of the first location point according to the location coordinates of the first location point, the first distance, and the coordinate value of the street lamp corresponding to the first location point.
[0049] The trajectory drawing module 15 is used to draw the motion trajectory according to the corrected coordinates of multiple position points.
[0050] Among them, the specific working processes of the pre-collection module 11, the information acquisition module 12, the first processing module 13, the second processing module 14 and the trajectory drawing module 15 refer to the description of the aforementioned nighttime motion trajectory recording method, which will not be repeated here.
[0051] See next Figure 6 The mobile device 20 of 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 can be, for example, a mobile device having the above components, such as a smart phone, a smart bracelet, a smart watch, etc. Among them, the light sensor 21 is used to sense the light intensity information of multiple location points, the GPS module 22 is used to collect the location coordinates of multiple location points, the acceleration sensor 23 is used to obtain motion acceleration, and the gyroscope 24 and the magnetometer 25 are used to obtain the direction / orientation of the mobile device 20. The processor 26 obtains the light intensity information of multiple positions by receiving the information sent by the light sensor 21, obtains the position coordinates of multiple positions by receiving the information sent by the GPS module 22, calculates the height of the mobile device 20 by receiving the input of the height of the athlete, the information sent by the gyroscope 24, etc., and calculates the angle of the mobile device 20 by receiving the information sent by the gyroscope 24 and the magnetometer 25; then, the street lamp corresponding to the first position point is obtained according to the position coordinates of the first position point, and the first distance between the first position point and the street lamp corresponding to the first position point is obtained according to the light intensity information and the height and angle of the mobile device when the light intensity information is obtained; then, the corrected coordinates of the first position point are determined according to the position coordinates of the first position point, the first distance and the coordinate value of the street lamp corresponding to the first position point; finally, the motion trajectory is drawn according to the corrected coordinates of the multiple position points. The memory 27 is used to store one or more computer programs, such as a night motion trajectory recording program. When the one or more computer programs are executed by the processor 26, the processor 26 implements the above-mentioned night motion trajectory recording method.
[0052] The memory 27 may be any form of random access memory, read-only memory, flash memory or other similar device integrated in the 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 these devices.
[0053] Understandably, Figure 6The mobile device 20 shown includes a GPS module 22, an acceleration sensor 23, a gyroscope 24 and a magnetometer 25. During the movement, the GPS module 22 can be turned on to obtain the position coordinates of each location point, or the GPS module 22 can be turned off, and the movement distance can be obtained through the acceleration sensor 23, and the movement direction can be obtained through the gyroscope 24, the magnetometer 25, etc., to estimate the position coordinates of each location point.
[0054] It is understandable that the coordinate values of each street lamp can be obtained with the highest accuracy by turning on the GPS module 22 before the movement, or by using other positioning devices other than the mobile device 20.
[0055] The embodiment of the present invention further discloses a computer-readable storage medium, which stores a computer program. When the computer program is executed by the processor 26, the nighttime motion trajectory recording method in the above 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. The computer-readable storage medium may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), etc.
[0056] The embodiment of the present invention also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor 26 of the mobile device 20 reads the computer instruction from the computer-readable storage medium, and the processor 26 executes the computer instruction, so that the mobile device 20 executes the above-mentioned nighttime motion trajectory recording method.
[0057] The above disclosure is only a preferred embodiment of the present invention, which cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are all within the scope of the present invention.
Claims
1. A nighttime motion trajectory recording method, applied to a mobile device, characterized in that: The nighttime motion trajectory recording method comprises: Acquire position coordinates of a plurality of position points and light-sensitive information of the plurality of position points, wherein the light-sensitive information includes light intensity information; Determine, according to light-sensing information of a first position point among the plurality of position points, a first distance between the first position point and a street lamp corresponding to the first position point; Determine the corrected coordinates of the first location point according to the location coordinates of the first location point, the first distance, and the coordinate value of the street lamp corresponding to the first location point; Draw a motion trajectory according to the corrected coordinates of the multiple position points; Determining the corrected coordinates of the first location point according to the location coordinates of the first location point, the first distance, and the coordinate value of the street lamp corresponding to the first location point includes: Acquire an arc trajectory with the coordinate value of the street lamp corresponding to the first position point as the center and the first distance as the radius; The coordinates of the point on the arc trajectory that is closest to the position coordinates of the first position point are used as the correction coordinates of the first position point.
2. The nighttime motion trajectory recording method according to claim 1, characterized in that: Also includes: The coordinate values of the street lamps corresponding to the multiple location points and the light intensity information when the mobile device is at different distances from the street lamps are collected in advance.
3. The nighttime motion trajectory recording method according to claim 1 or 2, characterized in that: The light-sensing information also includes the height of the mobile device when the light intensity information is acquired.
4. The nighttime motion trajectory recording method according to any one of claims 1 to 3, characterized in that: The light-sensing information also includes the angle of the mobile device when acquiring the light intensity information.
5. The nighttime motion trajectory recording method according to claim 4, characterized in that: Also includes: The coordinate values of the street lamps corresponding to the multiple location points are collected in advance, as well as the light intensity information of the mobile device at multiple heights and angles and at different distances from the street lamps.
6. The nighttime motion trajectory recording method according to any one of claims 1 to 5, characterized in that: The location coordinates are GPS coordinates.
7. A nighttime motion trajectory recording device, applied to a mobile device, characterized in that: The method comprises a module for executing the nighttime motion trajectory recording method according to any one of claims 1 to 6.
8. A mobile device, characterized in that: include: Light sensor, used to sense light intensity information at multiple locations; A coordinate acquisition device, used for acquiring the position coordinates of the plurality of position points; processor; Memory; as well as One or more computer programs, wherein the one or more computer programs are stored in the memory and are configured to be executed by the processor, and when the processor executes the one or more computer programs, the night motion trajectory recording method according to any one of claims 1 to 6 is executed.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement the nighttime motion trajectory recording method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Visible light-based spread spectrum locating method
CN107064982A
High-precision positioning method and device, terminal device and computer readable storage medium
CN108897025A
Indoor positioning method, indoor navigation method and indoor positioning navigation system
CN110174647A
Indoor positioning method and device, computer equipment and storage medium
CN110798796A