CN108763414B - Live-action display method and device, terminal equipment and storage medium - Google Patents

Live-action display method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN108763414B
CN108763414B CN201810501623.5A CN201810501623A CN108763414B CN 108763414 B CN108763414 B CN 108763414B CN 201810501623 A CN201810501623 A CN 201810501623A CN 108763414 B CN108763414 B CN 108763414B
Authority
CN
China
Prior art keywords
running
preset
user
map
route
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.)
Active
Application number
CN201810501623.5A
Other languages
Chinese (zh)
Other versions
CN108763414A (en
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810501623.5A priority Critical patent/CN108763414B/en
Publication of CN108763414A publication Critical patent/CN108763414A/en
Application granted granted Critical
Publication of CN108763414B publication Critical patent/CN108763414B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Navigation (AREA)
  • Instructional Devices (AREA)

Abstract

The invention discloses a live-action display method, a live-action display device, terminal equipment and a storage medium. The method comprises the following steps: acquiring the running distance of a user on the running machine; traversing distances from key points to starting points in a preset running route, and sequencing the distances from the key points to the starting points; traversing the distances from the sorted key points to the starting point from small to large according to the running distance until the target key point is confirmed; based on preset map data, extracting longitude and latitude and a live-action picture of a target key point; and updating the position of the user on the preset map according to the longitude and latitude, and displaying the position of the target key point on the preset map and the live-action picture on a display screen of the treadmill in real time. The invention solves the problems that the user cannot watch the real scene of the running route in real time in the running process on the running machine and the social attribute of the running behavior is poor, and achieves the purposes that the user can watch the real scene of the running route in the running process and can track and check the position of the user on the preset map in real time.

Description

Live-action display method and device, terminal equipment and storage medium
Technical Field
The embodiment of the invention relates to a communication technology, in particular to a live-action display method, a live-action display device, terminal equipment and a storage medium.
Background
Along with the continuous improvement of the living standard of people, the health consciousness of people is stronger and stronger. In order to improve the physical quality of the user, the user can select different sports modes such as badminton, running, swimming and the like to do activities. Especially convenient and easy running, and is popular with sporters.
At present, when a user runs outdoors, although the user can observe the scenery of the nature in the running process, the user is easily influenced by weather such as wind, rain, thunder and lightning and the like and the air quality, so that the user is difficult to run outdoors; when a user runs on the indoor treadmill, the treadmill generally can only provide some basic running functions, and even can set some programs to run, for example, set a target for counting down for 30 minutes and 5km, and display information of the user such as speed, time, calorie, running distance, and the like during running.
However, the inventor finds that the interestingness in the running process is reduced and the running experience of the user is further reduced because the user can only see the uninteresting numbers on the display screen of the running machine or the television above the running machine in the running process on the indoor running machine.
Disclosure of Invention
The invention provides a live-action display method, a live-action display device, terminal equipment and a storage medium, which are used for realizing that a user watches a live-action in a running route in the running process and tracking and checking the positioning of the user on a map in real time.
In a first aspect, an embodiment of the present invention provides a live-action display method, including:
acquiring the running distance of a user on the running machine; traversing distances from key points to starting points in a preset running route, and sequencing the distances from the key points to the starting points;
traversing the distances from the sorted key points to the starting point from small to large according to the running distance until a target key point is confirmed, wherein the difference between the distance from the target key point to the starting point and the running distance is the smallest positive number of the differences between the distances from all the key points to the starting point and the running distance;
based on preset map data, extracting longitude and latitude and a live-action picture of the target key point;
and updating the position of the user on a preset map according to the longitude and latitude, and displaying the position of the target key point on the preset map and the live-action picture on a display screen of the treadmill in real time.
In a second aspect, an embodiment of the present invention further provides a live-action display device, including:
the acquisition module is used for acquiring the running distance of a user on the running machine;
the traversing and sequencing module is used for traversing the distance from the key point to the starting point in the preset running route and sequencing the distance from the key point to the starting point;
the confirming module is used for traversing the distances from the sorted key points to the starting point according to the running distance from small to large until a target key point is confirmed, and the difference value between the distance from the target key point to the starting point and the running distance is the smallest positive number in the difference values between the distances from all the key points to the starting point and the running distance;
the first extraction module is used for extracting the longitude and latitude and the live-action map of the target key point based on preset map data;
and the display module is used for updating the position of the user on a preset map according to the longitude and latitude and displaying the position of the target key point on the preset map and the live-action picture on a display screen of the treadmill in real time.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the live-action display method of the first aspect.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the live-action display method according to the first aspect.
The method comprises the steps of obtaining the running distance of a user on a running machine, traversing the distances from key points to a starting point in a preset running route until the distance from a certain key point to the starting point is found to be just larger than or equal to the current running distance of the user, and determining the key point as a target key point; then, based on the preset map data, the longitude and latitude and the live-action map of the target key point are extracted, the position of the user on the preset map is updated according to the longitude and latitude, and the position of the target key point on the preset map and the live-action map are displayed on a display screen of the treadmill in real time, so that the technical problems that the live-action of a running route cannot be watched in real time in the running process of the user on the treadmill and the social attribute of the running behavior is poor in the prior art are solved, and the technical effects that the user can watch the live-action in the running route in the running process and can track and check the position of the user on the preset map in real time are achieved.
Drawings
Fig. 1 is a flowchart of a live-action display method according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a target key point in a preset running route according to an embodiment of the present invention;
fig. 3 is a flowchart of a live-action display method according to a second embodiment of the present invention;
fig. 4 is a block diagram of a real-scene display device according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a terminal device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Generally, since the user does not move the treadmill itself during running on the indoor treadmill, the user exercises in place on the treadmill. When the user runs on the indoor treadmill, the user cannot run outdoors, running software such as a running circle on a mobile phone can be used, and a running route of the user can be seen in real time through a Global Positioning System (GPS), so that the social attribute of the running behavior is poor. In view of this, the embodiment provides a method for a user to see a real street view in a running route in real time and update the position of the user on a map during running on an indoor treadmill, which includes:
example one
Fig. 1 is a flowchart of a live-action display method according to an embodiment of the present invention, where the method is applicable to a case where a user displays a live-action in a running route during running on a treadmill, and the method may be executed by a terminal device, where the terminal device may be implemented by hardware and/or software. In the embodiment, a treadmill is taken as a terminal device for exemplary description. As shown in fig. 1, the live-action display method provided in this embodiment specifically includes the following steps:
and S110, acquiring the running distance of the user on the running machine.
Wherein, the running distance is the distance that the user has run on the treadmill. In the embodiment, an Android platform is integrated on the treadmill, and specific application software is installed on the Android platform to specifically implement the live-action display method. Generally, after the treadmill is powered on, when it is detected that the user starts to exercise on the treadmill, the distance sensor in the treadmill automatically detects and calculates the distance that the user has run on the treadmill, and when the user opens the specific application software on the treadmill, the specific application software can acquire the data information of the distance that the user has run on the treadmill, which is detected by the distance sensor, in real time.
The specific application software can be understood as software for analyzing the running distance of the user on the treadmill and displaying the position and the real scene of the user in the running process according to a real scene display method.
And S120, traversing the distances from the key points to the starting points in the preset running route, and sequencing the distances from the key points to the starting points.
The preset running route can be understood as a running route which is selected by a user according to the preference or habit of the user according to the fact that a plurality of routes can be automatically generated according to the running starting point and the running end point after the user finishes setting the running starting point and the running end point. In general, when a map is drawn, a corresponding map is drawn according to a building on each street, and the building is set as a key point. And the distance between each key point in each street is set when a worker draws the map. Therefore, when the user completes the selection of the preset running route, the position information of all the key points in the preset running route and the distance information between each key point are preset. In general, the distance between each key point may be several tens of meters to about one hundred meters, which is not limited.
Specifically, after the user determines a preset running route, the specific application software on the treadmill calculates the distances from all the key points to the starting point according to all the extracted key points in the preset running route and based on the starting point of the preset running route, and then sorts the distances from all the key points to the starting point in the order from small to large.
And S130, traversing the distances from the sorted key points to the starting point from small to large according to the running distance until the target key point is confirmed.
And the difference between the distance from the target key point to the starting point and the running distance is the smallest positive number of the differences between the distances from all the key points to the starting point and the running distance. The minimum positive number can be understood as the minimum value of the positive numbers in the values of the distances from all the key points to the starting point and the running distance subtracted by the target key point to the starting point. Specifically, when the running distance of the user on the treadmill is greater than the distance from the first key points to the starting point in the preset running route, and the running distance is subtracted from the distance from the first key points to the starting point, the difference between the distances is a negative number, and at this time, the difference is not absolute-valued, so that there is a negative number in the difference between the running distances and the distances from all the key points to the starting point.
The target key point can be understood as a difference value comparison analysis between the running distance of the user on the running machine and the distances from all key points in the preset running route to the starting point, wherein the distance from a certain key point in the preset running route to the starting point is closest to the running distance, and at this time, the certain key point is the target key point.
Specifically, after the preset running route is determined, the distances from all key points in the preset running route to the starting point can be directly obtained through calculation, the distances from all key points to the starting point are sorted from small to large, the running distance of the user on the running machine is obtained in real time through a distance sensor on the running machine at the moment, the difference value between the obtained running distance and the distance from the key point to the starting point is compared and analyzed, the distance from one key point to the starting point is directly found to be just equal to or greater than the running distance, and the following key point is confirmed to be the target key point.
By way of example and not limitation, fig. 2 is a schematic diagram illustrating identification of a target key point in a preset running route according to an embodiment of the present invention. As shown in fig. 2, assume that a starting point in the preset running route is a and an end point is B, while there are 8 key points in the preset running route, wherein the distance between each key point is not fixed. Specifically, after the running route of the user is determined to be AB, the position information of the 8 key points C, D, E, F, G, H, I and J in the running route AB is automatically extracted, so that the distances from the 8 key points to the starting point a are respectively calculated, the distances from the 8 key points to the starting point a are sorted from small to large, then the running distance of the user on the treadmill is obtained, assuming that the running distance of the user at the moment is 390m, the distances from the key points sorted from small to large to the starting point and the running distance are compared and analyzed, and if the distance between AFs is detected to be 400m, the key point F is taken as a target key point. Specifically, when the distances from the key points C, D and E in the preset running route AB to the starting point are different from the running distance, the obtained values are negative numbers, and absolute values are not converted, and meanwhile, since the difference between the distance from the target key point to the starting point and the running distance is the minimum positive number, the difference between the distance from the key point F to the starting point and the running distance is calculated to be the minimum positive number, that is, the key point F is set as the target key point.
And S140, extracting the longitude and latitude and the live-action map of the target key point based on the preset map data.
The preset map data can be understood as map data information obtained according to a map database. The map database is a database based on map digital data, and is a set of digital information files, database management systems and other software and hardware of each element (such as control points, landforms, land types, residential areas, hydrology, vegetation, transportation, and country) of map contents stored in a computer. The data is mainly acquired by digitalizing on a map with a uniform scale and a geographic coordinate system according to a normalized and standardized requirement. The longitude and latitude are a coordinate system formed by combining longitude and latitude, and the spherical coordinate system is a spherical coordinate system which defines the space on the earth by utilizing a three-dimensional spherical surface and can mark any position on the earth. The real scene graph can be understood as a map that a user can see a real street scene.
Specifically, after a target key point in a preset running route is confirmed, the preset map data is accessed, and the longitude and latitude of the target key point on the preset map are extracted, so that the accurate position of the target key point on the preset map and the real street view corresponding to the target key point are obtained.
S150, updating the position of the user on the preset map according to the longitude and latitude, and displaying the position of the target key point on the preset map and the live-action picture on a display screen of the treadmill in real time.
The position of the user on the preset map can be understood as representing the user by a specified identifier, and displaying the position of the user on the preset map by the specified identifier. Generally, the designated identifier may be a dot icon or an arrow icon, which is not limited herein. Specifically, after the preset running route is confirmed, specific application software on the running machine automatically acquires a starting point in the preset running route, and the position of the starting point on a preset map and a live-action picture are displayed on a display screen of the running machine; then, the user starts to run on the running machine, the running distance of the user on the running machine is obtained in real time, and before the running distance of the user on the running machine does not reach a first key point in a preset running route, a live-action picture observed by the user on a display screen is always kept as a real street view of a starting point in the preset running route, so that the user can see the real street view in the preset route in the running process, and the interestingness in the running process is improved.
Similarly, in the running process of the user, when the running distance of the user does not reach the next target key point, the position of the user on the preset map of the current target key point and the real street view of the current target key point are displayed on the display screen of the running machine in real time, meanwhile, the designated mark of the user is not moved on the display screen, and only when the running distance of the user reaches the next target key point, the designated mark moves to the position of the next target key point and updates the real-scene graph to the real street view of the next target key point, so that the technical effect that the user can track the running route of the user in real time is indirectly achieved.
According to the technical scheme of the embodiment, the running distance of the user on the running machine is obtained, the distance from a key point in a preset running route to a starting point is traversed until the distance from a certain key point to the starting point is found to be just larger than or equal to the current running distance of the user, and the key point is confirmed as a target key point; then, based on the preset map data, the longitude and latitude and the live-action map of the target key point are extracted, the position of the user on the preset map is updated according to the longitude and latitude, and the position of the target key point on the preset map and the live-action map are displayed on a display screen of the treadmill in real time, so that the technical problems that the live-action of a running route cannot be watched in real time in the running process of the user on the treadmill and the social attribute of the running behavior is poor in the prior art are solved, and the technical effects that the user can watch the live-action in the running route in the running process and can track and check the position of the user on the preset map in real time are achieved.
Example two
Fig. 3 is a flowchart of a live-action display method according to a second embodiment of the present invention, which is further optimized based on the second embodiment. The method comprises the following steps: before acquiring the running distance of the user on the treadmill, the method further comprises the following steps: accessing preset map data based on a data interface integrated in the treadmill, and generating a preset running route on a preset map; all key points in the preset running route are extracted, and the live-action display method further comprises the following steps: when the running of the user is detected to be finished, generating a running route map on a preset map according to the target key points; receiving a screenshot instruction of a running route map, sending a screenshot picture to a preset social platform, and when the fact that the user runs and finishes running is detected, generating the running route map according to the target key points, further comprising: generating a first identification code according to the running route map; and displaying the first identification code so that the mobile terminal associated with the treadmill can identify the first identification code to obtain a running route map. The real scene display method comprises the following specific steps:
s201, accessing preset map data based on a data interface integrated in the treadmill, and generating a preset running route on a preset map.
The data interface is an application program interface based on map software, and comprises multiple versions such as JavaScript, iOS, android, static maps and Web services, and provides basic maps, position search, peripheral search and the like. By way of example and not limitation, the data interface may be a Baidu map API, a Goodpasture map API, an Tencent map API, or the like, and is not limited thereto. The map software is a map APP corresponding to the data interface or a webpage version of the map. For example, when the data interface is an Baidu map API, the corresponding map software is an Baidu map APP or a webpage version of the Baidu map.
The preset map can be understood as a map picture displayed on a display screen of the treadmill when a user opens the map software. Specifically, when a user accesses the map software through the map API at the treadmill, a display screen of the map may be seen on the display screen, a running start point and an end point may be input on a preset map through a finger or a touch pen to generate a plurality of routes, and then one route is selected therefrom and used as a preset running route, and the preset running route is displayed on the display screen of the map. Of course, in a specific embodiment of selecting the start point and the end point of running, two buildings may be directly selected as the start point and the end point of running on the display screen of the map.
S202, extracting all key points in the preset running route.
Specifically, after the user determines a preset running route according to a set running starting point and a set running end point, specific application software installed on the treadmill accesses the preset running route based on a map API, and extracts all key points in the preset running route.
S203, acquiring the running distance of the user on the running machine.
S204, traversing the distances from the key points to the starting points in the preset running route, and sequencing the distances from the key points to the starting points.
And S205, traversing the distances from the sorted key points to the starting point from small to large according to the running distance until the target key point is confirmed.
And the difference between the distance from the target key point to the starting point and the running distance is the smallest positive number of the differences between the distances from all the key points to the starting point and the running distance.
And S206, extracting the longitude and latitude and the live-action map of the target key point based on the preset map data.
And S207, updating the position of the user on the preset map according to the longitude and latitude, and displaying the position of the target key point on the preset map and the live-action picture on a display screen of the treadmill in real time.
S208, judging whether the user finishes running, and if so, executing a step S209; otherwise, step S203 is executed.
Generally, after the user sets the preset running route on the treadmill, the running distance that the user needs to move on the treadmill can be calculated according to the preset running route. When the running distance of the user on the treadmill, acquired through the distance sensor on the treadmill, is equal to the distance of the preset running route, a prompt box pops up on a display screen of the treadmill to prompt the user that the running movement of the preset running route is finished and prompt the user whether to continue running. If the user selects to end, go to step S209; otherwise, if the user selects to continue, step S203 is executed.
And S209, generating a running route map on a preset map according to the target key points.
The running route map can be understood as a route map generated by updating the position of the user on a preset map in real time according to the target key point. Specifically, when a user starts to exercise on the treadmill, a running starting point position preset by the user is displayed on a preset map by a designated mark, when the running distance of the user is just equal to or less than the distance from a first key point in a preset running route to a starting point, the first key point is set as a target key point, the designated mark representing the user is moved to the position of the first key point on the preset map, and so on, and when the running distance of the user on the treadmill is just equal to the distance from the running starting point to an end point, a running route map is generated according to the target key point passed by the user on the preset map.
For example, in the prior art, when a user runs outdoors, a running software such as a running circle installed on a mobile phone can be turned on, and the running route of the user can be seen in real time through GPS positioning. Similarly, according to the technical scheme in this embodiment, based on the map API, when the user runs on the treadmill, the position of the target key point is updated on the preset map in real time by calculating the distance between the key point and the starting point and the difference between the running distances, and a running route map is generated, so that the user can update the position of the user at any place around the world in real time and see the real street view of any place by running on the treadmill, thereby increasing the interest of the user during the running process and reducing the tediousness of the user in indoor running.
S210, judging whether a screenshot instruction of the running route map is received or not, and if the screenshot instruction is received, executing a step S211; otherwise, step S212 is executed.
The screenshot instruction can be understood as instruction information for screenshot of a picture on a display screen of the treadmill. Generally, the screenshot command may be a screenshot icon displayed on the display screen or a designated key on the treadmill, which is not limited herein. Specifically, when the user finishes running and generates a running route map according to the target key point, a prompt box pops up on the display screen to prompt the user whether to screenshot the running route map, and if the user clicks the screenshot, the step S211 is executed; otherwise, step S212 is executed.
And S211, sending the screenshot picture to a preset social platform.
The screenshot picture can be understood as a picture obtained by screenshot the current picture on the display screen of the treadmill when the treadmill receives the screenshot command. The preset social platform is a social platform installed on the treadmill, such as WeChat, Tencent QQ, and the like, and is not limited thereto.
It should be noted here that the Wi-Fi network module is installed on the treadmill, and when the treadmill is connected with the router through the Wi-Fi network module, the treadmill functions as an intelligent tablet computer, and various APPs can be installed on the treadmill, so that a user can conveniently send a running route map of the user to a social circle of the user, thereby improving the social attribute of the treadmill.
S212, generating a first identification code according to the running route map.
The first identification code is bar code information used for identifying a running route map generated according to the target key point. In general, the first identification code may be a two-dimensional code or a barcode, and is not limited herein.
Specifically, after a running route map is generated according to target key points in a preset running route, a prompt box is popped up to prompt a user to capture the running route map and send the captured running route map to a preset social platform; if the preset social platform is not installed on the treadmill, the user can choose not to capture the screen of the treadmill, the treadmill generates a URL address for a running route map at the moment, and then the processor of the treadmill encapsulates the URL address in the first identification code and displays the URL address to the user through the display screen.
S213, displaying the first identification code so that the mobile terminal associated with the treadmill can identify the first identification code to obtain a running route map.
Wherein, mobile terminal can be for carrying out the terminal equipment that links to each other through WIFI and treadmill. For example, the mobile terminal may be a mobile phone, a tablet, etc., and is not limited herein. Specifically, after a first identification code generated according to a running route pattern is displayed on a display screen, a user can scan the first identification code through a networked mobile terminal to obtain the running route pattern corresponding to the first identification code. Then, the user shares the running route map to the preset social platform through the preset social platform installed on the mobile terminal, so that the social attribute of the treadmill is improved.
According to the technical scheme of the embodiment, on the basis of the embodiment, by means of the technical means of capturing the running route map or generating the running route map into the first identification code, identifying and obtaining the running route map corresponding to the first identification code through the mobile terminal associated with the running machine, and then sharing the running route map to the preset social platform, the technical problem that the social attribute of the running machine in the prior art is poor is solved, the purpose that the screenshot of the current map of the user in the preset running route is shared to each social platform is achieved, and the technical effect of the social attribute of the running machine is improved.
On the basis of the above embodiment, the generation of the preset running route on the preset map is further optimized by accessing the preset map data based on the data interface integrated in the treadmill, specifically: accessing preset map data based on a data interface integrated in the treadmill, and confirming a starting point and an end point of a running route of a user; generating and displaying at least one running route according to the starting point and the end point; and receiving a route confirmation instruction, and taking the running route specified by the route confirmation instruction as a preset running route.
Wherein the starting point and the ending point of the running route of the user are confirmed by accessing preset map data based on a data interface integrated in the treadmill. The method specifically comprises the following steps: after a user opens and accesses a map API integrated on the treadmill and acquires map data information, the user sets a starting point and an end point of a running route of the user in the form of icons on a preset map or inputs addresses of the starting point and the end point on a display screen.
Exemplarily, when the user plans to run in Tianjin for one time, and sets the running starting point as the Tianjin museum and the running finishing point as the Tianjin library, the user can directly select icons of the two addresses on the preset map; or inputting 'Tianjin museum' in the starting point input box and 'Tianjin library' in the terminal point input box to finish the setting of the starting point and the terminal point of the running route.
Further, according to the starting point and the end point, at least one running route is generated and displayed, specifically: according to the starting point and the end point of the running route set by the user, a plurality of running routes are generated and displayed between two places based on the map API, and meanwhile, each running route generates a corresponding screen frame so as to be convenient for the user to select.
Further, receiving a route confirmation instruction, and taking a running route specified by the route confirmation instruction as a preset running route, specifically: the route confirmation instruction may be understood as instruction information for the user to select a running route. Specifically, after the generated running route is displayed on the preset map, the user selects an appropriate running route according to considerations of traffic, safety and the like, and uses the selected running route as the preset running route.
In the technical scheme of the embodiment, on the basis of the embodiment, preset map data are further accessed on the basis of a data interface integrated in the treadmill, and the starting point and the end point of the running route of the user are confirmed; generating and displaying at least one running route according to a starting point and the end point; and receiving a route confirmation instruction, and taking the running route specified by the route confirmation instruction as a preset running route, so that the user can select the running route according to the self condition.
EXAMPLE III
Fig. 4 is a block diagram of a real-scene display device according to a third embodiment of the present invention, which is suitable for a user to display a real scene in a running route during running on a treadmill, and the device may be implemented by hardware/software. As shown in fig. 4, the apparatus includes: an acquisition module 310, a traversal ranking module 320, a confirmation module 330, a first extraction module 340, and a display module 350.
The obtaining module 310 is configured to obtain a running distance of a user on the treadmill;
the traversal ordering module 320 is configured to traverse distances from the key points to the starting points in the preset running route, and order the distances from the key points to the starting points;
the confirming module 330 is configured to traverse the sorted distances from the key points to the starting point according to the running distance from small to large until the target key point is confirmed, where a difference between the distance from the target key point to the starting point and the running distance is a smallest positive number of differences between the distances from all the key points to the starting point and the running distance;
the first extraction module 340 is configured to extract longitude and latitude and a live-action map of a target key point based on preset map data;
the first display module 350 is configured to update the position of the user on the preset map according to the longitude and latitude, and display the position of the target key point on the preset map and the live-action image on the display screen of the treadmill in real time.
According to the technical scheme of the embodiment, the running distance of the user on the running machine is obtained, the distance from a key point in a preset running route to a starting point is traversed until the distance from a certain key point to the starting point is found to be just larger than or equal to the current running distance of the user, and the key point is confirmed as a target key point; then, based on the preset map data, the longitude and latitude and the live-action map of the target key point are extracted, the position of the user on the preset map is updated according to the longitude and latitude, and the position of the target key point on the preset map and the live-action map are displayed on a display screen of the treadmill in real time, so that the technical problems that the live-action of a running route cannot be watched in real time in the running process of the user on the treadmill and the social attribute of the running behavior is poor in the prior art are solved, and the technical effects that the user can watch the live-action in the running route in the running process and can track and check the position of the user on the preset map in real time are achieved.
On the basis of the above embodiment, the live-action display device further includes:
the first generation module is used for accessing preset map data based on a data interface integrated in the treadmill and generating a preset running route on a preset map;
and the second extraction module is used for extracting all key points in the preset running route.
On the basis of the above embodiment, the first generation module includes:
the system comprises a confirming unit, a display unit and a control unit, wherein the confirming unit is used for accessing preset map data based on a data interface integrated in the treadmill and confirming a starting point and an end point of a running route of a user;
the generating and displaying unit is used for generating and displaying at least one running route according to a starting point and the end point;
and the specifying unit is used for receiving the route confirmation instruction and taking the running route specified by the route confirmation instruction as a preset running route.
On the basis of the above embodiment, the live-action display device further includes:
the second generation module is used for generating a running route map in a preset map according to the target key point when the running of the user is detected to be finished;
and the receiving and sending module is used for receiving a screenshot instruction of the running route map and sending the screenshot picture to the preset social platform.
On the basis of the above embodiment, the live-action display device further includes: the third generation module is used for generating a first identification code according to the running route map;
and the second display module is used for displaying the first identification code so that the mobile terminal associated with the treadmill can identify the first identification code to obtain a running route map.
The live-action display device can execute the live-action display method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 5 is a schematic diagram of a hardware structure of a terminal device according to a fourth embodiment of the present invention. The terminal device in the fourth embodiment of the present invention is exemplified by a computer device, wherein the computer device is preferably a treadmill. As shown in fig. 5, a computer device provided in the fourth embodiment of the present invention includes: a processor 410 and a memory 420, an input device 430, and an output device 440. The processor 410 in the computer device may be one or more, and fig. 5 illustrates one processor 410, and the processor 410, the memory 420, the input device 430 and the output device 440 in the computer device may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus.
The memory 420 of the computer device, as a computer-readable storage medium, may be used to store one or more programs, which may be software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the real-scene display method according to one or two embodiments of the present invention (for example, modules in the real-scene display apparatus shown in fig. 4, including the obtaining module 310, the traversal ordering module 320, the confirming module 330, the first extracting module 340, and the displaying module 350). The processor 410 executes various functional applications and data processing of the computer device by executing the software programs, instructions and modules stored in the memory 420, that is, implements the live-action display method in the above method embodiment.
The memory 420 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 according to use of the device, and the like. Further, the memory 420 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 examples, memory 420 may further include memory located remotely from processor 410, which may be connected to devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 430 may be used to receive numeric or character information input by a user to generate key signal inputs related to user settings and function control of the terminal device. The output device 440 may include a display screen and other display devices, which are adapted to the specific application scenario of the terminal device in the present solution, such as a treadmill, and the display screen may be disposed in front of the treadmill.
And, when one or more programs included in the above-described computer device are executed by the one or more processors 410, the programs perform the following operations:
acquiring the running distance of a user on the running machine;
traversing distances from key points to starting points in a preset running route, and sequencing the distances from the key points to the starting points;
traversing the distances from the sorted key points to the starting point from small to large according to the running distance until the target key point is confirmed, wherein the difference between the distances from the target key point to the starting point and the running distance is the smallest positive number of the differences between the distances from all the key points to the starting point and the running distance;
based on preset map data, extracting longitude and latitude and a live-action picture of a target key point;
and updating the position of the user on the preset map according to the longitude and latitude, and displaying the position of the target key point on the preset map and the live-action picture on a display screen of the treadmill in real time.
EXAMPLE five
The fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the live-action display method provided in the fifth embodiment of the present invention, and the method includes:
acquiring the running distance of a user on the running machine;
traversing distances from key points to starting points in a preset running route, and sequencing the distances from the key points to the starting points;
traversing the distances from the sorted key points to the starting point from small to large according to the running distance until the target key point is confirmed, wherein the difference between the distances from the target key point to the starting point and the running distance is the smallest positive number of the differences between the distances from all the key points to the starting point and the running distance;
based on preset map data, extracting longitude and latitude and a live-action picture of a target key point;
and updating the position of the user on the preset map according to the longitude and latitude, and displaying the position of the target key point on the preset map and the live-action picture on a display screen of the treadmill in real time.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A live-action display method, comprising:
acquiring the running distance of a user on the running machine;
traversing distances from key points to starting points in a preset running route, and sequencing the distances from the key points to the starting points;
traversing the distances from the sorted key points to the starting point from small to large according to the running distance until a target key point is confirmed, wherein the difference between the distance from the target key point to the starting point and the running distance is the smallest positive number of the differences between the distances from all the key points to the starting point and the running distance;
based on preset map data, extracting longitude and latitude and a live-action picture of the target key point;
updating the position of the user on a preset map according to the longitude and latitude, and displaying the position of the target key point on the preset map and the live-action picture on a display screen of the treadmill in real time;
wherein before the obtaining of the running distance of the user on the treadmill, the method further comprises:
accessing preset map data based on a data interface integrated in the treadmill, and generating a preset running route on a preset map; extracting all key points in the preset running route;
wherein, the preset map data is accessed based on the data interface integrated in the treadmill, and a preset running route is generated on the preset map, comprising:
accessing preset map data based on a data interface integrated in the treadmill, and confirming a starting point and an end point of a running route of a user;
generating and displaying at least one running route according to the starting point and the end point;
and receiving a route confirmation instruction, and taking the running route specified by the route confirmation instruction as a preset running route.
2. The method of claim 1, further comprising:
when the running of the user is detected to be finished, generating a running route map on a preset map according to the target key points;
and receiving a screenshot instruction of the running route map, and sending a screenshot picture to a preset social platform.
3. The method of claim 2, further comprising, after generating a running roadmap from the target key points when an end of the user running is detected:
generating a first identification code according to the running route map;
and displaying the first identification code so that the mobile terminal associated with the running machine can identify the first identification code to acquire a running route map.
4. A live-action display device, comprising:
the acquisition module is used for acquiring the running distance of a user on the running machine;
the traversing and sequencing module is used for traversing the distance from the key point to the starting point in the preset running route and sequencing the distance from the key point to the starting point;
the confirming module is used for traversing the distances from the sorted key points to the starting point according to the running distance from small to large until a target key point is confirmed, and the difference value between the distance from the target key point to the starting point and the running distance is the smallest positive number in the difference values between the distances from all the key points to the starting point and the running distance;
the first extraction module is used for extracting the longitude and latitude and the live-action map of the target key point based on preset map data;
the display module is used for updating the position of the user on a preset map according to the longitude and latitude and displaying the position of the target key point on the preset map and the live-action picture on a display screen of the treadmill in real time;
the first generation module is used for accessing preset map data based on a data interface integrated in the treadmill and generating a preset running route on a preset map;
the second extraction module is used for extracting all key points in the preset running route;
the system comprises a determination unit, a display unit and a control unit, wherein the determination unit is used for accessing preset map data based on a data interface integrated in the treadmill and determining a starting point and an end point of a running route of a user;
the generating and displaying unit is used for generating and displaying at least one running route according to a starting point and the end point;
and the specifying unit is used for receiving the route confirmation instruction and taking the running route specified by the route confirmation instruction as a preset running route.
5. The apparatus of claim 4, further comprising:
the second generation module is used for generating a running route map according to the target key point in a preset map when the running of the user is detected to be finished;
and the receiving and sending module is used for receiving the screenshot instruction of the running route map and sending the screenshot picture to a preset social platform.
6. A terminal device, characterized in that the terminal device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the live-action display method of any one of claims 1-3.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the live-action display method according to any one of claims 1 to 3.
CN201810501623.5A 2018-05-23 2018-05-23 Live-action display method and device, terminal equipment and storage medium Active CN108763414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810501623.5A CN108763414B (en) 2018-05-23 2018-05-23 Live-action display method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810501623.5A CN108763414B (en) 2018-05-23 2018-05-23 Live-action display method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108763414A CN108763414A (en) 2018-11-06
CN108763414B true CN108763414B (en) 2021-07-06

Family

ID=64004777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810501623.5A Active CN108763414B (en) 2018-05-23 2018-05-23 Live-action display method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108763414B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110209751A (en) * 2019-05-20 2019-09-06 上海车轮互联网服务有限公司 Route sharing method and device suitable for Driving Test application
CN110457421A (en) * 2019-08-14 2019-11-15 广州视源电子科技股份有限公司 Methods of exhibiting and device, the treadmill of shift position

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2907771Y (en) * 2006-05-10 2007-06-06 池翰平 Real scene simulated treadle mill
CN105797349A (en) * 2016-03-17 2016-07-27 深圳市智游人科技有限公司 Live-action running device, method and system
CN105854267A (en) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 Data processing method and device and running machine

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260799A (en) * 2015-10-22 2016-01-20 海南图语地理信息技术有限公司 System and method for GIS-based tourism and sports route planning and positioning of real scene information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2907771Y (en) * 2006-05-10 2007-06-06 池翰平 Real scene simulated treadle mill
CN105797349A (en) * 2016-03-17 2016-07-27 深圳市智游人科技有限公司 Live-action running device, method and system
CN105854267A (en) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 Data processing method and device and running machine

Also Published As

Publication number Publication date
CN108763414A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
JP5334911B2 (en) 3D map image generation program and 3D map image generation system
US8164599B1 (en) Systems and methods for collecting and providing map images
KR102121361B1 (en) Method and device for identifying the type of geographic location where the user is located
CN106471548A (en) Acceleration template matching using peripheral information
CN109636868B (en) High-precision image map online construction method and device based on WebGIS and deep learning
JPWO2012127605A1 (en) Information processing apparatus and information processing method
CN107087263B (en) Automatic updating method and device for indoor wireless signal fingerprint data
CN105704675A (en) Scenic region information processing method and device
US9405770B2 (en) Three dimensional navigation among photos
US9396584B2 (en) Obtaining geographic-location related information based on shadow characteristics
CN107102833B (en) Line information interaction method and electronic equipment
CN110619027B (en) House source information recommendation method and device, terminal equipment and medium
CN108763414B (en) Live-action display method and device, terminal equipment and storage medium
KR101880168B1 (en) Real-time map data updating method
US20160050283A1 (en) System and Method for Automatically Pushing Location-Specific Content to Users
Frajberg et al. Heterogeneous information integration for mountain augmented reality mobile apps
JP5749057B2 (en) Navigation device
US8869058B1 (en) Interface elements for specifying pose information for photographs in an online map system
JP6066824B2 (en) Post information display system, server, terminal device, post information display method and program
US10108882B1 (en) Method to post and access information onto a map through pictures
JP6376654B2 (en) Route presentation device, mobile terminal, route presentation method, route display method, route presentation program, and route display program
KR102170629B1 (en) Method and system to searching personalized path
KR101963341B1 (en) Real-time map data updating method
KR101710489B1 (en) Real-time map data updating system and method
CN110580275A (en) Map display method and 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
GR01 Patent grant
GR01 Patent grant