Motion thermodynamic diagram generation method and device, electronic equipment and storage medium

By acquiring and mapping the positioning data of moving objects, dynamic motion heat maps are generated, which solves the problems of high cost and insufficient dynamics of heat map generation in the prior art, and realizes portable and low-cost dynamic heat map generation, helping users improve Mode of exercise.

CN119494852APending Publication Date: 2025-02-21BEIJING XIAOMI PAYMENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311001371.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-09
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

The prior art cannot easily and quickly generate dynamic heat maps, and it relies on large hardware equipment, which is costly and complex to maintain.

Method used

By obtaining multiple positioning data of moving objects in the target area, mapping them to the area diagram, object coordinate data are generated, and the data is displayed on the area diagram based on sampling time to create a moving heat map.

Benefits of technology

It realizes portable and low-cost generation of dynamic motion heat maps, helping users intuitively understand the motion trajectory and state, improve their movement methods, and improve their own strength.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119494852A_ABST
    Figure CN119494852A_ABST
Patent Text Reader

Abstract

The invention relates to a motion thermodynamic diagram generation method and device, electronic equipment and a storage medium, and belongs to the technical field of image processing. The method comprises the following steps: acquiring multiple pieces of first object positioning data when a moving object moves in a target area; aiming at each piece of first object positioning data, mapping on an area schematic diagram corresponding to the target area to obtain object coordinate data of each piece of first object positioning data on the area schematic diagram; and based on the respective sampling moments of the plurality of first object positioning data, displaying the object coordinate data on the area schematic diagram to generate a motion thermodynamic diagram of the moving object on the target area. Therefore, according to the scheme, the first object positioning data is mapped to the regional schematic diagram to obtain the object coordinate data on the regional schematic diagram. According to the first object positioning data and the object coordinate data, a motion thermodynamic diagram can be generated, a motion track and a motion state can be visually seen, and a user is helped to know own motion conditions and improve a motion mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, device, electronic device and storage medium for generating a motion thermogram. Background Art

[0002] In the prior art, the generation of sports heat maps mainly relies on the positioning function of large-scale hardware equipment (such as several positioning base stations, gateways, servers, etc.) for moving objects (such as athletes, etc.), as well as the function of interactively processing the positioning information of moving objects. Large-scale hardware equipment is expensive, equipment deployment and maintenance are complex, and the generated heat map is a static map without dynamic effects. Summary of the invention

[0003] The present application provides a motion heat map generation method, device, electronic device, computer-readable storage medium and computer program product to solve the problem that a dynamic heat map cannot be generated conveniently and quickly. The technical solution of the present application is as follows:

[0004] According to a first aspect of an embodiment of the present application, a motion heat map generation method is provided, including: obtaining multiple first object positioning data when a moving object moves in a target area; for each of the first object positioning data, mapping it to an area schematic diagram corresponding to the target area, to obtain object coordinate data of each of the first object positioning data on the area schematic diagram; based on the respective sampling moments of the multiple first object positioning data, displaying the object coordinate data on the area schematic diagram, to generate a motion heat map of the moving object in the target area.

[0005] In one embodiment of the present application, before obtaining multiple object positioning data when a moving object moves in a target area, it also includes: obtaining first vertex positioning data of multiple first vertices of the target area; based on the first vertex positioning data, determining first vertex coordinate data of multiple second vertices of the area schematic diagram; based on the first vertex coordinate data of the multiple second vertices, generating the area schematic diagram.

[0006] In one embodiment of the present application, the generating of the area schematic diagram based on the first vertex coordinate data of the multiple second vertices includes: generating an initial area schematic diagram based on the first vertex coordinate data of the multiple second vertices; determining two vertices located on the long side of the target area from the multiple second vertices, and obtaining the inclination angle of the long side based on the first vertex coordinate data of the two vertices; and rotating the initial area schematic diagram based on the inclination angle to generate the area schematic diagram.

[0007] In one embodiment of the present application, the initial area schematic diagram is rotated based on the tilt angle to generate the area schematic diagram, including: based on the first vertex coordinate data, determining the vertex closest to the coordinate origin from the multiple second vertices as a target vertex; rotating the initial area schematic diagram clockwise around the target vertex until the rotation angle reaches the tilt angle and stops rotating to generate the area schematic diagram.

[0008] In one embodiment of the present application, the method further includes: obtaining second vertex coordinate data of the second vertex after rotation according to the tilt angle and first vertex coordinate data of the second vertex.

[0009] In one embodiment of the present application, determining the first vertex coordinate data of multiple second vertices on the area schematic diagram based on the first vertex positioning data includes: mapping the first vertex positioning data of the first vertex to the coordinate system where the area schematic diagram is located; arranging and marking the mapped first vertices in a counterclockwise direction to determine the second vertex and the first vertex coordinate data of the second vertex.

[0010] In one embodiment of the present application, the mapping first vertices are arranged and marked in a counterclockwise direction to determine the second vertex and the first vertex coordinate data of the second vertex, including: obtaining a vertex with a minimum Y value among the first vertices, and if there are multiple vertices with the minimum Y value, selecting a vertex with a minimum X value from the multiple vertices with the minimum Y value as the first second vertex of the region schematic diagram; obtaining a vertex with a maximum X value among the first vertices, and if there are multiple vertices with the maximum X value, selecting a vertex with a minimum Y value from the multiple vertices with the maximum X value as the second second vertex of the region schematic diagram; obtaining a vertex with a maximum Y value among the first vertices, and if there are multiple vertices with the maximum Y value, selecting a vertex with a maximum X value from the multiple vertices with the maximum Y value as the third second vertex of the region schematic diagram; obtaining a vertex with a minimum X value among the first vertices, and if there are multiple vertices with the minimum X value, selecting a vertex with a maximum Y value from the multiple vertices with the maximum X value as the fourth second vertex of the region schematic diagram.

[0011] In one embodiment of the present application, the obtaining of first vertex positioning data of multiple first vertices of the target area includes: obtaining second vertex positioning data of multiple vertices of the target area measured; generating a simulation graphic of the target area based on the second vertex positioning data; performing a rotating caliper algorithm on the simulation graphic to obtain a regular graphic of the target area; and determining the positioning data of multiple vertices of the regular graphic as the first vertex positioning data.

[0012] In one embodiment of the present application, the rotating caliper algorithm is performed on the simulation figure to obtain a regular figure of the target area, including: for each edge of the simulation figure, obtaining the anti-podal point of the edge, and generating a parallel line parallel to the edge and passing through the anti-podal point; constructing a candidate figure between the edge and the parallel line, wherein the other two edges of the candidate figure pass through the remaining vertices of the simulation figure except the vertex on the edge; calculating and comparing the areas of the candidate figures corresponding to each edge of the simulation figure, and selecting the candidate figure with the smallest area as the regular figure of the target area.

[0013] In one embodiment of the present application, the mapping onto the area schematic diagram corresponding to the target area to obtain the object coordinate data of each first object positioning data on the area schematic diagram includes: rotating the first object positioning data clockwise around the target vertex according to the inclination angle to obtain the rotated second object positioning data; determining the length and width of the target area based on the second vertex coordinate data of the second vertex; and mapping the second object positioning data according to the length and width to obtain the object coordinate data.

[0014] In one embodiment of the present application, the object coordinate data is displayed on the area schematic diagram based on the respective sampling moments of the multiple first object positioning data to generate a motion heat map of the moving object in the target area, including: determining the display moment of each object coordinate data on the area schematic diagram based on the respective sampling moments of the multiple first object positioning data; and displaying the object coordinate data on the area schematic diagram in the order of the display moments to generate the motion heat map.

[0015] In one embodiment of the present application, determining the display time of each object coordinate data on the area schematic diagram based on the respective sampling times of the multiple first object positioning data includes: determining the sampling time interval between adjacent first object positioning data based on the respective sampling times; determining the display time interval of the object coordinate data on the area schematic diagram based on the sampling time interval; determining the display order of the object coordinate data based on the respective sampling times; and determining the display time of each object coordinate data on the area schematic diagram based on the display order and the display time interval of each object coordinate data.

[0016] In one embodiment of the present application, determining the display time interval of the object coordinate data on the area schematic diagram based on the sampling time interval includes: determining a minimum sampling time interval from the obtained sampling time intervals; determining the display time interval of the object coordinate data corresponding to the minimum sampling time interval on the area schematic diagram as a unit display time interval; and determining, for each object coordinate data, the display time interval of the object coordinate data on the area schematic diagram based on the sampling time interval corresponding to the object coordinate data and the minimum sampling time interval, as well as the unit display time interval.

[0017] In one embodiment of the present application, determining the display time of each object coordinate data on the area schematic diagram based on the display order and the display time interval of each object coordinate data includes: determining the first object coordinate data displayed on the area schematic diagram based on the display order, and determining the display time of the first object coordinate data; starting from the second object coordinate data, determining the display time of the object coordinate data to be displayed currently based on the display time of the last displayed object coordinate data and the display time interval of the object coordinate data to be displayed currently.

[0018] In one embodiment of the present application, the object coordinate data is displayed on the area schematic diagram in the order of the display moments to generate the motion heat map, including: starting from the first object coordinate data, drawing a color gradient display area corresponding to the object coordinate data on the area schematic diagram according to the display moment, and continuing to display on the area schematic diagram; after completing the drawing of the display area of ​​the object coordinate data, performing Gaussian blur processing to obtain the motion heat map.

[0019] In one embodiment of the present application, the method also includes: if the currently drawn display area overlaps with the existing display area, determining a first area where no overlap occurs and a second area where overlap occurs; determining that the pixels within the first area maintain the original pixel color; and performing pixel color overlay and deepening on the pixels within the second area by increasing the transparency of the second area.

[0020] In one embodiment of the present application, the method further includes: adjusting the display speed of the motion heat map by adjusting the unit display time interval.

[0021] In one embodiment of the present application, the unit display time interval is negatively correlated with the display speed.

[0022] According to a second aspect of an embodiment of the present application, a motion heat map generating device is provided, comprising: an acquisition module for acquiring a plurality of first object positioning data when a moving object moves in a target area; a mapping module for mapping each of the first object positioning data onto a region schematic diagram corresponding to the target area, to obtain object coordinate data of each of the first object positioning data on the region schematic diagram; and a generation module for displaying the object coordinate data on the region schematic diagram based on respective sampling moments of the plurality of first object positioning data, to generate a motion heat map of the moving object in the target area.

[0023] In one embodiment of the present application, the acquisition module is also used to: acquire first vertex positioning data of multiple first vertices of the target area; determine first vertex coordinate data of multiple second vertices of the area schematic diagram based on the first vertex positioning data; and generate the area schematic diagram based on the first vertex coordinate data of the multiple second vertices.

[0024] In one embodiment of the present application, the acquisition module is also used to: generate an initial area schematic diagram based on the first vertex coordinate data of the multiple second vertices; determine two vertices located on the long side of the target area from the multiple second vertices, and acquire the inclination angle of the long side based on the first vertex coordinate data of the two vertices; and rotate the initial area schematic diagram based on the inclination angle to generate the area schematic diagram.

[0025] In one embodiment of the present application, the acquisition module is also used to: based on the first vertex coordinate data, determine the vertex closest to the coordinate origin from the multiple second vertices as a target vertex; rotate the initial area schematic diagram clockwise around the target vertex until the rotation angle reaches the tilt angle and stops rotating, thereby generating the area schematic diagram.

[0026] In one embodiment of the present application, the acquisition module is further used to obtain second vertex coordinate data of the second vertex after rotation according to the tilt angle and the first vertex coordinate data of the second vertex.

[0027] In one embodiment of the present application, the acquisition module is also used to: map the first vertex positioning data of the first vertex to the coordinate system of the area schematic diagram; arrange and mark the mapped first vertex in a counterclockwise direction to determine the second vertex and the first vertex coordinate data of the second vertex.

[0028] In one embodiment of the present application, the acquisition module is further used to: acquire the vertex with the smallest Y value from the first vertices, and if there are multiple vertices with the smallest Y value, select the vertex with the smallest X value from the multiple vertices with the smallest Y value as the first second vertex of the area schematic diagram; acquire the vertex with the largest X value from the first vertex, and if there are multiple vertices with the largest X value, select the vertex with the smallest Y value from the multiple vertices with the largest X value as the second second vertex of the area schematic diagram; acquire the vertex with the largest Y value from the first vertex, and if there are multiple vertices with the largest Y value, select the vertex with the largest X value from the multiple vertices with the largest Y value as the third second vertex of the area schematic diagram; acquire the vertex with the smallest X value from the first vertex, and if there are multiple vertices with the smallest X value, select the vertex with the largest X value from the multiple vertices with the largest X value as the fourth second vertex of the area schematic diagram.

[0029] In one embodiment of the present application, the acquisition module is also used to: obtain second vertex positioning data of multiple vertices of the target area; generate a simulation graphic of the target area based on the second vertex positioning data; perform a rotating caliper algorithm on the simulation graphic to obtain a regular graphic of the target area; and determine the positioning data of multiple vertices of the regular graphic as the first vertex positioning data.

[0030] In one embodiment of the present application, the acquisition module is also used to: for each edge of the simulated figure, obtain the anti-podal point of the edge, and generate a parallel line parallel to the edge and passing through the anti-podal point; construct a candidate figure between the edge and the parallel line, wherein the other two edges of the candidate figure pass through the remaining vertices of the simulated figure except the vertex on the edge; calculate and compare the area of ​​the candidate figures corresponding to each edge of the simulated figure, and select the candidate figure with the smallest area as the regular figure of the target area.

[0031] In one embodiment of the present application, the mapping module is also used to: rotate the first object positioning data clockwise around the target vertex according to the inclination angle to obtain the rotated second object positioning data; determine the length and width of the target area based on the second vertex coordinate data of the second vertex; and map the second object positioning data according to the length and width to obtain the object coordinate data.

[0032] In one embodiment of the present application, the generation module is also used to: determine the display time of each object coordinate data on the area schematic diagram based on the respective sampling times of the multiple first object positioning data; and display the object coordinate data on the area schematic diagram in the order of the display times to generate the motion heat map.

[0033] In one embodiment of the present application, the generation module is also used to: determine the sampling time interval between adjacent first object positioning data based on the respective sampling moments; determine the display time interval of the object coordinate data on the area schematic diagram based on the sampling time interval; determine the display order of the object coordinate data based on the respective sampling moments; determine the display time of each object coordinate data on the area schematic diagram based on the display order and the display time interval of each object coordinate data.

[0034] In one embodiment of the present application, the generation module is also used to: determine the minimum sampling time interval from the obtained sampling time intervals; determine the display time interval of the object coordinate data corresponding to the minimum sampling time interval on the area schematic diagram as the unit display time interval; for each object coordinate data, determine the display time interval of the object coordinate data on the area schematic diagram based on the sampling time interval corresponding to the object coordinate data and the minimum sampling time interval, as well as the unit display time interval.

[0035] In one embodiment of the present application, the generation module is also used to: determine the first object coordinate data displayed on the area schematic diagram based on the display order, and determine the display time of the first object coordinate data; starting from the second object coordinate data, determine the display time of the object coordinate data to be displayed based on the display time of the last displayed object coordinate data and the display time interval of the object coordinate data to be displayed currently.

[0036] In one embodiment of the present application, the generation module is also used to: start from the first object coordinate data, draw a display area with a color gradient corresponding to the object coordinate data on the area schematic diagram according to the display time, and continue to display it on the area schematic diagram; after completing the drawing of the display area of ​​the object coordinate data, perform Gaussian blur processing to obtain the motion heat map.

[0037] In one embodiment of the present application, the generation module is also used to: if the currently drawn display area overlaps with the existing display area, determine a first area where no overlap occurs and a second area where overlap occurs; determine that the pixels within the first area maintain the original pixel color; and perform pixel color overlay and deepening on the pixels within the second area by increasing the transparency of the second area.

[0038] In one embodiment of the present application, the generating module is further used to adjust the display speed of the motion heat map by adjusting the unit display time interval.

[0039] In one embodiment of the present application, the unit display time interval is negatively correlated with the display speed.

[0040] According to a third aspect of an embodiment of the present application, there is provided an electronic device, comprising a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the steps of the method of the first aspect of the embodiment of the present application.

[0041] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the method of the first aspect of the embodiment of the present application are implemented.

[0042] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor of an electronic device, the steps of the method of the first aspect of the embodiment of the present application are implemented.

[0043] The technical solution provided by the embodiment of the present application brings at least the following beneficial effects: a portable GPS positioning device can be used to obtain the first object positioning data of a moving object, avoiding dependence on large hardware equipment and saving use costs. The first object positioning data is mapped to the regional schematic diagram to obtain the object coordinate data on the regional schematic diagram. Then, based on the respective sampling moments and object coordinate data of the first object positioning data, a motion heat map of the moving object in the target area is generated. Through the motion heat map, the motion trajectory and motion state can be intuitively seen, which helps users understand their own motion conditions, improve their motion methods, and help improve their own strength.

[0044] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.

[0046] Figure 1 The present invention is a flowchart of a method for generating a motion heat map according to an exemplary embodiment.

[0047] Figure 2 The present invention is a flow chart of a method for generating a motion heat map according to another exemplary embodiment.

[0048] Figure 3 is a schematic diagram of a court according to an exemplary embodiment.

[0049] Figure 4It is a flowchart of a process of generating regional intent in a method for generating a motion heat map according to another exemplary embodiment.

[0050] Figure 5 The present invention is a flow chart of a method for generating a motion heat map according to another exemplary embodiment.

[0051] Figure 6 is a schematic diagram showing how to determine a candidate rectangle according to an exemplary embodiment.

[0052] Figure 7 The present invention is a flowchart of a method for generating a motion heat map according to another exemplary embodiment.

[0053] Figure 8 The present invention is a flowchart of a method for generating a motion heat map according to another exemplary embodiment.

[0054] Fig. 9 The present invention is a flowchart of a method for generating a motion heat map according to another exemplary embodiment.

[0055] Fig.10 It is a structural block diagram of a motion heat map generating device according to an exemplary embodiment.

[0056] Fig.11 It is a block diagram of an electronic device according to an exemplary embodiment.

[0057] Fig.12 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0058] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0059] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0060] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0061] Figure 1 is a flow chart of a method for generating a motion heat map according to an exemplary embodiment. Figure 1 As shown, the method for generating a motion heat map in the embodiment of the present application includes but is not limited to the following steps:

[0062] S101, acquiring a plurality of first object positioning data when a moving object moves in a target area.

[0063] It should be noted that the execution subject of the motion heat map generation method provided in the embodiment of the present application is an electronic device, which can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0064] In some implementations, a plurality of first object positioning data when a moving object moves in a target area can be obtained based on a global positioning system (GPS), wherein the first object positioning data refers to data collected by a sensor to describe the position of the moving object when the moving object moves in the target area.

[0065] Optionally, the first object positioning data of the moving object moving in the target area can be collected by installing a GPS chip on an item required by the moving object during its movement. For example, the GPS positioning chip can be installed in a sports bracelet or on a jersey or sneakers. The target area refers to a court, including but not limited to football fields, basketball courts, tennis courts and other court areas.

[0066] It is understandable that the first object positioning data includes geographic location longitude and latitude information, movement time information and other data. Among them, the geographic location longitude information can be accurate to six decimal places with an error of 0.1 meters, the geographic location latitude information can be accurate to eight decimal places with an error of 0.001 meters, and the movement time information is a timestamp, which can be accurate to seconds. Optionally, the geographic location longitude information can also be accurate to four decimal places, and the geographic location latitude information can also be accurate to seven decimal places. This application does not impose too many restrictions on accuracy.

[0067] For example, the movement time: 1684741271, the geographic location longitude: 116.3126831, and the geographic location latitude: 40.04859543 constitute a first object positioning data. The movement time 1684741271 represents 15:41:11 on May 22, 2023 Beijing time, as shown in Table 1.

[0068] Table 1

[0069] Exercise time Geographic location longitude Geographical location latitude 1684741271 116.3126831 40.04859543

[0070] S102 : mapping each object positioning data onto a region schematic diagram corresponding to the target region to obtain object coordinate data of the first object positioning data on the region schematic diagram.

[0071] In some implementations, a schematic diagram of the region may be generated in advance on the electronic device according to the region. Optionally, the schematic diagram of the region may be obtained by mapping the positioning data of the designated position points of the region to the coordinate system constructed by the electronic device. For example, the positioning data of the vertices on the region may be mapped to the coordinate system constructed by the electronic device to obtain the schematic diagram of the region.

[0072] Furthermore, each object positioning data can be mapped onto the regional schematic diagram according to the proportional relationship between the region and the regional schematic diagram, that is, each first object positioning data is calculated proportionally to obtain the object coordinate data of each first object positioning data on the regional schematic diagram.

[0073] S103, based on the respective sampling moments of the plurality of first object positioning data, displaying the object coordinate data on the area schematic diagram to generate a motion heat map of the moving object in the target area.

[0074] In some implementations, the display area of ​​each object coordinate data at each display time can be drawn on the regional schematic diagram according to the display time of the object coordinate data on the regional schematic diagram, thereby obtaining a motion heat map of the moving object in the target area.

[0075] Optionally, the display time of the object coordinate data on the regional schematic diagram can be determined according to the sampling time of each of the multiple first object positioning data, and then the display area is drawn on the regional schematic diagram according to the display time and each object coordinate data, and all the display areas are further Gaussian blurred to obtain a motion heat map of the moving object in the target area. For example, taking the stadium as an example, there are multiple positioning data such as A, B, C, D, and E for the moving object A. The display time corresponding to the positioning data can be determined based on the sampling time of the multiple positioning data. Then, according to the display time and the positioning data, the display area is drawn in the stadium schematic diagram, and the display area is Gaussian blurred, so that a motion heat map of the moving object A moving on the stadium can be obtained, which intuitively shows the movement process of the moving object A.

[0076] The drawn display area is a color gradient from the center to the edge, showing the color effect of heat from strong to weak. For example, it can be a gradient of red, yellow, and green. Optionally, the display area can be a circle, rectangle, ellipse, etc. of a set size.

[0077] It is understandable that following the movement of the moving object can form a dynamic display effect of a motion heat map, which reflects the movement process and movement intensity of the moving object in the target area. The darker color area indicates that the moving object moves frequently and strongly in this area, while the lighter color area indicates that the moving object has less movement in this area.

[0078] In the motion heat map generation method provided in the embodiment of the present application, a portable GPS positioning device is used to obtain the first object positioning data of the moving object, avoiding the dependence on large hardware equipment and saving the use cost. The first object positioning data is mapped to the regional schematic diagram to obtain the object coordinate data on the regional schematic diagram. Then, based on the respective sampling moments and object coordinate data of the first object positioning data, a motion heat map of the moving object in the target area is generated. Through the motion heat map, the motion trajectory and motion state can be intuitively seen, which helps users understand their own motion situation, improve their motion methods, and help improve their own strength.

[0079] Figure 2 is a flow chart of a method for generating a motion heat map according to an exemplary embodiment. Figure 2 As shown, the method for generating a motion heat map in the embodiment of the present application includes but is not limited to the following steps:

[0080] S201, obtaining first vertex positioning data of a plurality of first vertices in a target area.

[0081] In some implementations, the target area can be set to be a regular shape, such as a regular rectangle, and the first vertex positioning data of the first vertex of the target area is determined by collecting the geographic longitude and latitude coordinates of the first vertex of the target area. The first vertex positioning data is in the form of (x, y), where x is the latitude coordinate and y is the longitude coordinate.

[0082] It can be understood that the first vertex is a physical vertex, which refers to multiple vertices of the target area, and the first vertex positioning data refers to the coordinates of multiple vertices of the target area collected by the GPS positioning device. For example, if the target area is a court, the first vertices are the four corner points on the court.

[0083] S202: Determine first vertex coordinate data of a second vertex of the area schematic diagram based on the first vertex positioning data.

[0084] In some implementations, the first vertex location data of the first vertex can be mapped to the coordinate system of the region schematic diagram to obtain the first vertex location data of the first vertex in the rectangular coordinate system. Further, the mapped first vertices are arranged and marked in a counterclockwise direction to determine the second vertex and the first vertex coordinate data of the second vertex.

[0085] It can be understood that the second vertex refers to the vertex that maps the first vertex to the region diagram, that is, the second vertex is the vertex in the coordinate system where the region diagram is located. The first vertex coordinate data of the second vertex is the coordinate data mapped from the first vertex to the coordinate system, and the coordinate data is determined by arranging and marking in a counterclockwise direction.

[0086] In some implementations, the coordinate feature can be set, and the first vertex coordinate data of the second vertex can be determined from the first vertex location data of the first vertex based on the set feature. That is, the first vertex coordinate data of the second vertex is the first vertex location data of the first vertex with the feature.

[0087] Optionally, a vertex with the smallest Y value among the first vertices is obtained. If there are multiple vertices with the smallest Y values, a vertex with the smallest X value is selected from the multiple vertices with the smallest Y values ​​as the first second vertex of the region schematic diagram.

[0088] Optionally, a vertex with the largest X value among the first vertices is obtained. If there are multiple vertices with the largest X values, a vertex with the smallest Y value is selected from the multiple vertices with the largest X values ​​as the second second vertex of the region schematic diagram.

[0089] Optionally, the vertex with the largest Y value of the first vertex is obtained. If there are multiple vertices with the largest Y values, the vertex with the largest X value is selected from the multiple vertices with the largest Y values ​​as the third second vertex of the region schematic diagram.

[0090] Optionally, a vertex with the smallest X value among the first vertices is obtained. If there are multiple vertices with the smallest X values, a vertex with the largest Y value is selected from the multiple vertices with the smallest X values ​​as the fourth second vertex of the region schematic diagram.

[0091] For example, Figure 3 The area diagrams in a and b are schematic diagrams of the stadium, such as Figure 3 The first vertex location data of the first vertex shown in a are arranged in a counterclockwise direction as A(x1,y1), B(x2,y2), C(x3,y3), and D(x4,y4), where x4<x1<x3<x2, y1<y4<y2<y3. Let a be the first second vertex, because y1 is the vertex with the smallest Y value, then Figure 3 The coordinates of point A in a are the coordinates of point a, and the coordinates are (x1, y1); let b be the second second vertex, because x2 is the vertex with the largest X value, then Figure 3 The coordinates of point B in a are the coordinates of point b, and the coordinates are (x2, y2); let c be the third second vertex, because y1 is the vertex with the largest Y value, then Figure 3 The coordinates of point C in a are the coordinates of point c, and the coordinates are (x3, y3); let d be the fourth second vertex, because y1 is the vertex with the smallest X value, then Figure 3 The coordinates of point D in a are the coordinates of point d, and the coordinates are (x4,y4).

[0092] It can be understood that after A(x1,y1), B(x2,y2), C(x3,y3), and D(x4,y4) are mapped to the electronic device, the coordinates of a, b, c, and d can be obtained as (x1,y1), (x2,y2), (x3,y3), and (x4,y4), respectively, where a, b, c, and d are the second vertices, and (x1,y1), (x2,y2), (x3,y3), and (x4,y4) are the first vertex coordinate data of the second vertex. Based on a, b, c, and d, a schematic diagram of the court can be obtained, such as Figure 3 As shown in b.

[0093] Optionally, the origin of the coordinate system constructed by the electronic device is 0° north latitude and 0° east longitude, the horizontal coordinate x is the latitude value, and the vertical coordinate y is the longitude value. It can be understood that the coordinate values ​​of A, B, C, and D are marked by the above rules or strategies and will not change. Figure 3 The coordinates of a, b, c, and d shown in b are (x1, y1), (x2, y2), (x3, y3), and (x4, y4), which are the same as the coordinates of A, B, C, and D, which are (x1, y1), (x2, y2), (x3, y3), and (x4, y4), respectively. It can be understood that by marking A, B, C, and D using the above rules or strategies, the coordinate values ​​will not change, and only the labels of the four vertices may change.

[0094] It is understandable that the origin of the coordinate system of the electronic device is not 0° north latitude and 0° east longitude, so a coordinate system conversion is required. In this case, the coordinate values ​​of A, B, C, and D will change in the coordinate system of the electronic device. The coordinate system conversion calibration can be performed in advance to obtain a coordinate coefficient conversion matrix. Based on the coordinate system conversion matrix, the positioning coordinate data of the actual vertex of the court is mapped to the coordinate system constructed by the electronic device.

[0095] S203: Generate a region schematic diagram based on the first vertex coordinate data of the plurality of second vertices.

[0096] In the embodiment of the present application, the region schematic diagram displayed on the electronic device should be kept horizontal, and there is no tilt angle with the electronic device. Optionally, a regular pattern can be directly formed based on the first vertex coordinate data of the second vertex.

[0097] Optionally, if any side of the regular figure formed by the first vertex coordinate data of the second vertex is parallel to the horizontal axis and perpendicular to the vertical axis, or parallel to the vertical axis and perpendicular to the horizontal axis, the regular figure is determined to be a regional schematic diagram.

[0098] Optionally, if any side of the regular figure forms an angle with the horizontal axis, the angle between the longer side and the horizontal axis is taken as the inclination angle, and the regular figure is rotated by the inclination angle so that the longer side is parallel to the horizontal axis. The rotated regular figure is then a regional schematic diagram.

[0099] S204, acquiring a plurality of first object positioning data when the moving object moves in the target area.

[0100] In the embodiment of the present application, the implementation method of step S204 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0101] S205 , mapping each first object positioning data onto the region schematic diagram corresponding to the target region to obtain object coordinate data of each first object positioning data on the region schematic diagram.

[0102] In the embodiment of the present application, the implementation method of step S205 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0103] S206 , based on the respective sampling moments of the plurality of first object positioning data, display the object coordinate data on the area schematic diagram to generate a motion heat map of the moving object in the target area.

[0104] In the embodiment of the present application, the implementation method of step S206 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0105] In the motion heat map generation method provided in the embodiment of the present application, a portable GPS positioning device is used to obtain the first vertex positioning data of the target area, and a regional schematic diagram is generated on the electronic device, thereby avoiding dependence on large hardware equipment and saving use costs. By obtaining the first object positioning data of the moving object, the first object positioning data is mapped to the regional schematic diagram to obtain the object coordinate data on the regional schematic diagram. Then, based on the respective sampling moments and object coordinate data of the first object positioning data, a motion heat map of the moving object in the target area is generated. Through the motion heat map, the motion trajectory and motion state can be intuitively seen, which helps users understand their own motion conditions, improve their motion methods, and help improve their own strength.

[0106] Based on the above embodiments, the present application embodiment explains the process of generating a regional schematic diagram in the method for generating a motion heat map. Figure 4 As shown, the process of generating a regional schematic diagram includes but is not limited to the following steps:

[0107] S401, generating an initial area schematic diagram based on first vertex coordinate data of a plurality of second vertices.

[0108] In some implementations, a regular shape can be obtained based on the coordinate points included in the first vertex coordinate data of the second vertex, and used as the initial area schematic diagram. For example, if the target area is a court, a regular rectangle can be obtained based on the coordinate data of the four corner points included in the first vertex coordinate data of the second vertex of the court, and used as the initial court schematic diagram, that is, the initial area schematic diagram.

[0109] S402: Determine two vertices located on the long side of the target area from the plurality of second vertices, and obtain the inclination angle of the long side of the area based on the first vertex coordinate data of the two vertices.

[0110] In some implementations, the lengths of any two intersecting sides in the initial region schematic diagram can be calculated based on the first vertex coordinate data of the second vertex, and the long side of the region can be determined by comparing the side lengths. Figure 3 In b, the ab side and the cd side are long sides. Further, two vertices on any long side are determined, and the angle between the long side of the region and the horizontal axis, that is, the inclination angle of the long side of the region, can be calculated based on the first vertex coordinate data of the two vertices.

[0111] For example, Figure 3 Taking the ab side in b as an example, the formula for calculating the inclination angle of the ab side is as follows:

[0112]

[0113] Among them, θ is the inclination angle of the long side, (x1, y1) is the coordinate of vertex a, and (x2, y2) is the coordinate of vertex b.

[0114] S403: Rotate the initial region schematic diagram based on the tilt angle to generate a region schematic diagram.

[0115] In some implementations, the initial region schematic diagram needs to be rotated around a target vertex, and the rotation angle is a certain tilt angle, and finally the region schematic diagram is obtained.

[0116] Optionally, based on the first vertex coordinate data, the vertex closest to the coordinate origin can be determined from the plurality of second vertices as a target vertex, and then the initial region diagram is rotated clockwise around the target vertex until the rotation angle reaches the tilt angle and the rotation stops, thereby generating a region diagram.

[0117] Optionally, according to the tilt angle and the first vertex coordinate data of the second vertex, the second vertex coordinate data after rotation of the second vertex can be obtained, thereby generating a region schematic diagram. It is understandable that the second vertex coordinate data of the second vertex refers to the second vertex coordinate data obtained after rotating the first vertex coordinate data.

[0118] By way of example, it can be determined Figure 3 The vertex closest to the coordinate origin in b is vertex a, then vertex a is used as the target vertex, and the coordinate data of the second vertex after rotation is obtained by rotating around vertex a clockwise. The formula for calculating the coordinate data of the second vertex after rotation of vertex b is as follows:

[0119] x2′=(x1-x2)cos+(y1-y2)sinθ+x2 (2)

[0120] y2′=(y1-y2)cosθ+(x1-x2)sinθ+y2 (3)

[0121] Among them, (x1, y1) is the coordinate of vertex a, (x2′, y2′) is the coordinate data of the second vertex after vertex b is rotated, and (x2, y2) is the coordinate value of vertex b. If the coordinate system of the electronic device is 0° north latitude and 0° east longitude, then (x2, y2) is also the longitude and latitude coordinates of vertex B corresponding to vertex b.

[0122] It can be understood that the coordinate data of the second vertices after rotation of vertices c and vertices d can be calculated according to formulas (2) and (3), which will not be repeated here. Assume that the coordinate data of the second vertices after rotation of the second vertices are a′(x1′, y1′), b′(x2′, y2′), c′(x3′, y3′), d′(x4′, y4′), where the coordinates of vertices a and a′ are the same. Then, a regional schematic diagram can be generated based on the coordinate data of the second vertices after rotation.

[0123] In the motion heat map generation method provided in the embodiment of the present application, a portable GPS positioning device is used to obtain the first vertex positioning data of the target area, avoiding the dependence on large hardware equipment and saving the use cost. An initial area schematic diagram is generated on the electronic device based on the first vertex positioning data, and the initial area schematic diagram is rotated to obtain a regional schematic diagram, so that the structure of the area can be displayed in a graphical form, thereby enhancing the visualization effect of the regional layout. The regional schematic diagram can be used as a tool to assist teaching and training, helping athletes to better understand their own exercise process, which is conducive to improving their own strength.

[0124] Figure 5 is a flow chart of a method for generating a motion heat map according to an exemplary embodiment. Figure 5 As shown, the method for generating a motion heat map in the embodiment of the present application includes but is not limited to the following steps:

[0125] S501, obtaining second vertex positioning data of a plurality of vertices actually measured in a target area.

[0126] In some implementations, a GPS positioning device may be used to collect the geographic location coordinates of multiple vertices of the target area as the second vertex positioning data actually measured for the multiple vertices of the target area. The multiple vertices are physical vertices, which refer to multiple corner points of the target area. Taking a court as an example, the multiple vertices refer to the four corner points of the court, and the geographic location coordinates of the four corner points are the second vertex positioning data of the court.

[0127] As an example, an automatic mobile device or a manually carried GPS positioning device can be used to successively go to the four vertices of the court, and after standing still, the geographical location coordinates displayed on the GPS device can be recorded as the second vertex positioning data of the four vertices of the court. Alternatively, a large hardware GPS positioning device can also be used to locate the four vertices of the court to obtain the second vertex positioning data.

[0128] S502: Generate a simulation graph of the target area based on the second vertex positioning data.

[0129] S503, performing a rotating caliper algorithm on the simulated graph to obtain a regular graph of the target area.

[0130] In some implementations, a quadrilateral may be generated based on the collected second vertex positioning data, and the quadrilateral is also a simulated shape of the court.

[0131] It is understandable that the simulated figure generated based on the second vertex positioning data is not a regular figure due to positioning errors. Optionally, a rotating caliper algorithm can be used to calculate a rectangle with the smallest area connecting four vertices as a regular figure of the court.

[0132] Optionally, for each edge of the simulated figure, the anti-podal point of the edge is obtained, and a parallel line parallel to the edge and passing through the anti-podal point is generated. The anti-podal point refers to the vertex farthest from the edge. A candidate rectangle is constructed between the edge and the parallel line, wherein the other two sides of the candidate rectangle pass through the remaining vertices of the simulated figure except the vertex on the edge, and the other two sides of the candidate rectangle are perpendicular to the parallel line.

[0133] For example, Figure 6 The irregular quadrilateral shown has four vertex coordinates a(x a ,y a )、b(x b ,y b )、c(x c ,y c )、d(x d ,y d ), the antipodal point of side ab is vertex c, then draw a line through vertex c parallel to side ab, and draw perpendicular lines between the parallel lines through vertex c and vertex d respectively, and get a candidate rectangle. Figure 6 The dotted line portion is a candidate rectangle.

[0134] Furthermore, the areas of the candidate rectangles corresponding to each side of the simulated figure are calculated and compared, and the candidate rectangle with the smallest area is selected as the regular rectangle of the court. Figure 6 For example, a candidate rectangle is generated for each edge. By calculating the area of ​​the candidate matrix corresponding to each edge and comparing the sizes of the areas, the candidate rectangle with the smallest area is selected as the regular rectangle of the court.

[0135] S504, determining the positioning data of a plurality of vertices of the regular graph, which is the first vertex positioning data.

[0136] In some implementations, the geographic location coordinates of a plurality of vertices in the regular graph are calculated based on the second vertex location data, and are used as the first vertex location data of the court.

[0137] S505: Determine first vertex coordinate data of a second vertex of the area schematic diagram based on the first vertex positioning data.

[0138] In the embodiment of the present application, the implementation method of step S505 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0139] S506: Generate a region schematic diagram based on the first vertex coordinate data of the second vertex.

[0140] In the embodiment of the present application, the implementation method of step S506 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0141] S507, acquiring a plurality of first object positioning data when the moving object moves in the target area.

[0142] In the embodiment of the present application, the implementation method of step S507 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0143] S508 : Map each first object positioning data onto the region schematic diagram corresponding to the target region to obtain object coordinate data of the first object positioning data on the region schematic diagram.

[0144] In the embodiment of the present application, the implementation method of step S508 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0145] S509, based on the respective sampling moments of the plurality of first object positioning data, display the object coordinate data on the area schematic diagram to generate a motion heat map of the moving object in the target area.

[0146] In the embodiment of the present application, the implementation method of step S509 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0147] In the motion heat map generation method provided in the embodiment of the present application, a portable GPS positioning device is used to obtain the first object positioning data of the moving object, avoiding the dependence on large hardware equipment and saving the use cost. The first object positioning data is mapped to the regional schematic diagram to obtain the object coordinate data on the regional schematic diagram. Then, based on the respective sampling moments and object coordinate data of the first object positioning data, a motion heat map of the moving object in the target area is generated. Through the motion heat map, the motion trajectory and motion state can be intuitively seen, which helps users understand their own motion situation, improve their motion methods, and help improve their own strength.

[0148] Figure 7 is a flow chart of a method for generating a motion heat map according to an exemplary embodiment. Figure 7 As shown, the method for generating a motion heat map in the embodiment of the present application includes but is not limited to the following steps:

[0149] S701, acquiring a plurality of first object positioning data when a moving object moves in a target area.

[0150] In the embodiment of the present application, the implementation method of step S701 can be implemented by any method in the various embodiments of the present application, which is not limited here and will not be repeated.

[0151] S702: Rotate the first object positioning data clockwise around the target vertex according to the tilt angle to obtain rotated second object positioning data.

[0152] It can be understood that since the moving object moves in the target area, the inclination angle of the moving object is the same as the inclination angle of the initial schematic diagram of the area, the moving object can also rotate clockwise around the target vertex according to the inclination angle to obtain the second object positioning data of the first object on the area schematic diagram.

[0153] Optionally, the above formulas (2) and (3) may be used to calculate the second object positioning data of the moving object on the area schematic diagram.

[0154] S703: Determine the length and width of the target area based on the second vertex coordinate data of the second vertex.

[0155] In some implementations, the width and length of the region diagram can be calculated based on the rotated second vertex coordinate data. It is understandable that the region diagram is a regular shape with the same length and width, so only the length of one long side and one short side need to be calculated as the length and width of the target region.

[0156] Optionally, two vertices located on the long side of the target area are determined from the second vertices, and the length of the target area is calculated based on the second vertex coordinate data of the two vertices, that is, the X-axis coordinates of the two vertices on any long side are subtracted to obtain the length of the target area.

[0157] Optionally, two vertices located on the short side of the target area are determined from the second vertices, and based on the second vertex coordinate data of the two vertices, the short side of the target area is calculated, that is, the Y-axis coordinates of the two vertices on any short side are subtracted to obtain the width of the target area.

[0158] For example, Figure 3 The target area in is a court. Let the width of the court be Width and the length of the court be Length. Figure 3 In the schematic diagram of the rotated court shown in b, the width Width of the court is the difference between the vertex a′ and the vertex d′ on the Y axis (y4′-y1′), and the length Length of the court is the difference between the vertex a′ and the vertex b′ on the X axis (x2′-x1′).

[0159] S704, mapping the second object positioning data according to the length and the width to obtain object coordinate data.

[0160] In some implementations, the second object location data may be mapped according to the ratio between the target area and the area schematic diagram to obtain the object coordinate data. Using the same ratio for the object and the court on the same schematic diagram can maintain the consistency of the object and make the presentation effect more realistic.

[0161] For example, Figure 3 Taking the stadium schematic diagram shown in b as an example, the formula for calculating the object coordinate data after the second object positioning data is mapped is as follows:

[0162] x new =(x′-x1) / Length*Length new (4)

[0163] y new =(y′-y1) / Width*Width new (5)

[0164] Among them, (x new ,y new ) is the object coordinate data, (x′, y′) is the second object positioning data, (x1, y1) is the coordinates of vertex a, Width is the width of the court, Length is the length of the court, Width new is the width of the stadium diagram, Length new is the length of the court diagram.

[0165] S705 , based on the respective sampling moments of the plurality of first object positioning data, display the object coordinate data on the area schematic diagram to generate a motion heat map of the moving object in the target area.

[0166] In the embodiment of the present application, the implementation method of step S705 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0167] In the motion heat map generation method provided in the embodiment of the present application, a portable GPS positioning device is used to obtain the first object positioning data of the moving object, avoiding the dependence on large hardware equipment and saving the use cost. The first object positioning data is mapped to the regional schematic diagram to obtain the object coordinate data on the regional schematic diagram. Then, based on the respective sampling moments and object coordinate data of the first object positioning data, a motion heat map of the moving object in the target area is generated. Through the motion heat map, the motion trajectory and motion state can be intuitively seen, which helps users understand their own motion situation, improve their motion methods, and help improve their own strength.

[0168] Figure 8 is a flow chart of a method for generating a motion heat map according to an exemplary embodiment. Figure 8 As shown, the method for generating a motion heat map in the embodiment of the present application includes but is not limited to the following steps:

[0169] S801, acquiring a plurality of first object positioning data when a moving object moves in a target area.

[0170] In the embodiment of the present application, the implementation method of step S801 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0171] S802 : Map each first object positioning data onto a region schematic diagram corresponding to the target region to obtain object coordinate data of the first object positioning data on the region schematic diagram.

[0172] In the embodiment of the present application, the implementation method of step S802 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0173] S803: Determine a display time of each object coordinate data on the area schematic diagram based on respective sampling times of the plurality of first object positioning data.

[0174] In some implementations, the display time of each object coordinate data on the area schematic diagram may be determined according to the display order and display time interval of each object coordinate data on the area schematic diagram.

[0175] Optionally, the sampling moments of the plurality of object positioning data can be obtained from the first object positioning data, thereby determining the sampling time interval. Further, the display time interval of the object coordinate data on the region schematic diagram is determined according to the sampling time interval.

[0176] Optionally, the display order of the plurality of object coordinate data may be determined according to respective sampling moments of the plurality of first object positioning data.

[0177] S804, displaying the object coordinate data on the regional schematic diagram in the order of display time to generate a motion heat map.

[0178] In some implementations, starting from the first object coordinate data, a display area with a color gradient corresponding to the object coordinate data is drawn on the regional schematic diagram according to the display time, and the display is continued on the regional schematic diagram. After the display area of ​​the object coordinate data is drawn, Gaussian blur processing is performed to obtain a motion heat map.

[0179] Optionally, a circle with a given radius can be drawn by setting a radial gradient color to draw a display area to display the thermal effect of a certain object coordinate data. The center position of the circle is the position of a certain object coordinate data on the area schematic diagram, and the radius of the circle can be set by the configuration of the electronic device application.

[0180] Optionally, you can set the colors of three places in the gradient color circle. The center of the circle is red to indicate that the heat value is very strong, the halfway point from the center of the circle to the edge is yellow to indicate that the heat value is in the middle, and the edge of the circle is green to indicate that the heat value is weak. From the center point to the edge, the color gradient of red, yellow, and green is used to show the color effect of heat from strong to weak.

[0181] In some implementations, if the currently drawn display area overlaps with the existing display area, a first area without overlap and a second area with overlap are determined. The pixels in the first area are determined to maintain the original pixel color, and the pixels in the second area are increased in transparency by adding and deepening the pixel color, thereby obtaining the overlapping display area. Then, Gaussian blur processing is performed to obtain a motion heat map.

[0182] In the motion heat map generation method provided in the embodiment of the present application, a portable GPS positioning device is used to obtain the first object positioning data of the moving object, avoiding the dependence on large hardware equipment and saving the use cost. The first object positioning data is mapped to the regional schematic diagram to obtain the object coordinate data on the regional schematic diagram. Then, based on the respective sampling moments and object coordinate data of the first object positioning data, a motion heat map of the moving object in the area is generated. Through the motion heat map, the motion trajectory and motion state can be intuitively seen, which helps users understand their own motion situation, improve their motion methods, and help improve their own strength.

[0183] Fig. 9 is a flow chart of a method for generating a motion heat map according to an exemplary embodiment. Fig. 9 As shown, the method for generating a motion heat map in the embodiment of the present application includes but is not limited to the following steps:

[0184] S901, acquiring a plurality of first object positioning data when a moving object moves in a target area.

[0185] In the embodiment of the present application, the implementation method of step S901 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0186] S902 : Map each object positioning data onto a region schematic diagram corresponding to the target region to obtain object coordinate data of the first object positioning data on the region schematic diagram.

[0187] In the embodiment of the present application, the implementation method of step S902 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0188] S903: Determine a sampling time interval between adjacent first object positioning data based on respective sampling moments.

[0189] It is understandable that the first object positioning data includes geographic location longitude and latitude information and movement time information, and the corresponding sampling moments can be determined from multiple first object positioning data, and then the sampling time interval between adjacent first object positioning data can be calculated based on the sampling moments.

[0190] For example, suppose that the sampling times of the first object positioning data are t1, t2, t3, ..., t N , where t1<=t2<=t3<=...<=t N The formula for calculating the sampling time interval is as follows:

[0191] d i =t i -t (i-1) (6)

[0192] Among them, d i is the sampling time interval, and i is greater than 1 and less than N. Thus, N-1 sampling time intervals can be calculated, and all sampling time intervals are d2, d3, d4, ..., d N .

[0193] S904: Determine a display time interval for the object coordinate data on the region schematic diagram based on the sampling time interval.

[0194] In some implementations, the minimum sampling time interval may be determined from the obtained sampling time intervals, and then the object coordinate data corresponding to the minimum sampling time interval may be determined, and the display time interval on the region schematic diagram may be used as the unit display time interval.

[0195] Further, for each object coordinate data, based on the sampling time interval and the minimum sampling time interval corresponding to the object coordinate data, and the unit display time interval, the display time interval of the object coordinate data on the area schematic diagram is determined. The display time interval of the object coordinate data on the area schematic diagram can be set by the configuration of the application of the electronic device.

[0196] For example, let the minimum sampling time interval be d M, the display time interval on the regional diagram is interval, and its unit is milliseconds. The formula for calculating the display time interval of the object coordinate data on the regional diagram is as follows:

[0197] interval i =d i *interval / d M (7)

[0198] Among them, interval i is the display time interval of the object coordinate data on the regional schematic diagram, d i is the sampling time interval corresponding to the object coordinate data.

[0199] S905, determining the display order of the object coordinate data based on the respective sampling times.

[0200] In some implementations, the time points at which the multiple object positioning data appear on the court diagram can be calculated based on the respective sampling moments of the multiple object positioning data, and the multiple object coordinate data can be sorted in order from small to large at the time points to determine the display order of the multiple object coordinate data.

[0201] For example, assume that the time point at which the object coordinate data appears on the court diagram is T i , then the display order of multiple object coordinate data is T1, T2, T3, ..., T N , where T1<=T2<=T3<=...<=T N ,

[0202] S906: Determine a display time of each object coordinate data on the area schematic diagram based on the display sequence and the display time interval of each object coordinate data.

[0203] In some implementations, based on the display order, the first object coordinate data displayed on the area schematic diagram is determined, and the display time of the first object coordinate data is determined. For example, T1 represents the first object coordinate data displayed, that is, the object coordinate data appearing at 0 milliseconds on the area schematic diagram.

[0204] Further, starting from the second object coordinate data, based on the display time of the last displayed object coordinate data and the display time interval of the object coordinate data to be displayed, the display time of the object coordinate data to be displayed is determined. The formula for calculating the display time of each object coordinate data on the area schematic diagram is as follows:

[0205] T i =interval i +T (i-1)

[0206] Among them, T i Indicates the display time of the i-th object coordinate data on the area schematic diagram, i is greater than 1 and less than N. For example, T2=interval2, T3=interval3+T2, where the display time is in milliseconds.

[0207] S907, displaying the object coordinate data on the regional schematic diagram in the order of display time to generate a motion heat map.

[0208] In the embodiments of the present application, the method of generating a motion heat map can be implemented by using any of the methods in the embodiments of the present application, which is not limited here and will not be described in detail.

[0209] In some implementations, in order to meet the demand for display speed of the motion heat map, the display speed of the motion heat map can be adjusted by adjusting the unit display time interval. The display speed is similar to the video speed, and the motion heat map can be viewed at different speeds.

[0210] Optionally, a multiple relationship of the display speed may be achieved by adjusting the unit display time interval.

[0211] It is understandable that the unit display time interval is negatively correlated with the display speed. Optionally, the display speed of the motion heat map can be increased by reducing the unit display time interval. The display speed of the motion heat map can be reduced by increasing the unit display time interval. For example, if a user wants to gradually analyze his or her own motion status, the display speed of the motion heat map needs to be slowed down, that is, the unit display time interval needs to be increased.

[0212] In the motion heat map generation method provided in the embodiment of the present application, a portable GPS positioning device is used to obtain the first object positioning data of the moving object, avoiding the dependence on large hardware equipment and saving the use cost. The first object positioning data is mapped to the regional schematic diagram to obtain the object coordinate data on the regional schematic diagram. Then, based on the respective sampling moments and object coordinate data of the first object positioning data, a motion heat map of the moving object in the target area is generated. Through the motion heat map, the motion trajectory and motion state can be intuitively seen, which helps users understand their own motion situation, improve their motion methods, and help improve their own strength.

[0213] Fig.10 is a structural block diagram of a motion heat map generating device according to an exemplary embodiment. Fig.10 The motion heat map generating device 1000 of the embodiment of the present application includes: an acquisition module 1001 , a mapping module 1002 and a generation module 1003 .

[0214] The acquisition module 1001 is used to acquire a plurality of first object positioning data when a moving object moves in a target area.

[0215] The mapping module 1002 is used to map each first object positioning data onto the area schematic diagram corresponding to the target area to obtain object coordinate data of each first object positioning data on the area schematic diagram.

[0216] The generating module 1003 is used to display the object coordinate data on the area schematic diagram based on the respective sampling moments of the plurality of first object positioning data, so as to generate a motion heat map of the moving object in the target area.

[0217] In one embodiment of the present application, the acquisition module 1001 is also used to: obtain first vertex positioning data of multiple first vertices of the target area; determine first vertex coordinate data of multiple second vertices of the area schematic diagram based on the first vertex positioning data; and generate the area schematic diagram based on the first vertex coordinate data of the multiple second vertices.

[0218] In one embodiment of the present application, the acquisition module 1001 is also used to: generate an initial area schematic diagram based on the first vertex coordinate data of the multiple second vertices; determine two vertices located on the long side of the target area from the multiple second vertices, and obtain the inclination angle of the long side based on the first vertex coordinate data of the two vertices; and rotate the initial area schematic diagram based on the inclination angle to generate the area schematic diagram.

[0219] In one embodiment of the present application, the acquisition module 1001 is also used to: based on the first vertex coordinate data, determine the vertex closest to the coordinate origin from the multiple second vertices as a target vertex; rotate the initial area schematic diagram clockwise around the target vertex until the rotation angle reaches the tilt angle and stops rotating, thereby generating the area schematic diagram.

[0220] In one embodiment of the present application, the acquisition module 1001 is further used to obtain second vertex coordinate data of the second vertex after rotation according to the tilt angle and the first vertex coordinate data of the second vertex.

[0221] In one embodiment of the present application, the acquisition module 1001 is also used to: map the first vertex positioning data of the first vertex to the coordinate system of the area schematic diagram; arrange and mark the mapped first vertex in a counterclockwise direction to determine the second vertex and the first vertex coordinate data of the second vertex.

[0222] In one embodiment of the present application, the acquisition module 1001 is further used to: acquire the vertex with the smallest Y value from the first vertices, if there are multiple vertices with the smallest Y value, select the vertex with the smallest X value from the multiple vertices with the smallest Y value as the first second vertex of the area schematic diagram; acquire the vertex with the largest X value from the first vertex, if there are multiple vertices with the largest X value, select the vertex with the smallest Y value from the multiple vertices with the largest X value as the second second vertex of the area schematic diagram; acquire the vertex with the largest Y value from the first vertex, if there are multiple vertices with the largest Y value, select the vertex with the largest X value from the multiple vertices with the largest Y value as the third second vertex of the area schematic diagram; acquire the vertex with the smallest X value from the first vertex, if there are multiple vertices with the smallest X value, select the vertex with the largest X value from the multiple vertices with the largest X value as the fourth second vertex of the area schematic diagram.

[0223] In one embodiment of the present application, the acquisition module 1001 is also used to: obtain second vertex positioning data of multiple vertices of the target area; generate a simulation graphic of the target area based on the second vertex positioning data; perform a rotating caliper algorithm on the simulation graphic to obtain a regular graphic of the target area; and determine the positioning data of multiple vertices of the regular graphic as the first vertex positioning data.

[0224] In one embodiment of the present application, the acquisition module 1001 is also used to: for each edge of the simulated figure, obtain the anti-podal point of the edge, and generate a parallel line parallel to the edge and passing through the anti-podal point; construct a candidate figure between the edge and the parallel line, wherein the other two edges of the candidate figure pass through the remaining vertices of the simulated figure except the vertex on the edge; calculate and compare the area of ​​the candidate figures corresponding to each edge of the simulated figure, and select the candidate figure with the smallest area as the regular figure of the target area.

[0225] In one embodiment of the present application, the mapping module 1002 is also used to: rotate the first object positioning data clockwise around the target vertex according to the inclination angle to obtain the rotated second object positioning data; determine the length and width of the target area based on the second vertex coordinate data of the second vertex; and map the second object positioning data according to the length and width to obtain the object coordinate data.

[0226] In one embodiment of the present application, the generation module 1003 is also used to: determine the display time of each object coordinate data on the area schematic diagram based on the respective sampling times of the multiple first object positioning data; and display the object coordinate data on the area schematic diagram in the order of the display times to generate the motion heat map.

[0227] In one embodiment of the present application, the generation module 1003 is also used to: determine the sampling time interval between adjacent first object positioning data based on the respective sampling moments; determine the display time interval of the object coordinate data on the area schematic diagram based on the sampling time interval; determine the display order of the object coordinate data based on the respective sampling moments; determine the display time of each object coordinate data on the area schematic diagram based on the display order and the display time interval of each object coordinate data.

[0228] In one embodiment of the present application, the generation module 1003 is also used to: determine the minimum sampling time interval from the obtained sampling time intervals; determine the display time interval of the object coordinate data corresponding to the minimum sampling time interval on the area schematic diagram as the unit display time interval; for each object coordinate data, determine the display time interval of the object coordinate data on the area schematic diagram based on the sampling time interval corresponding to the object coordinate data and the minimum sampling time interval, as well as the unit display time interval.

[0229] In one embodiment of the present application, the generation module 1003 is also used to: determine the first object coordinate data displayed on the area schematic diagram based on the display order, and determine the display time of the first object coordinate data; starting from the second object coordinate data, based on the display time of the last displayed object coordinate data and the display time interval of the object coordinate data to be displayed currently, determine the display time of the object coordinate data to be displayed currently.

[0230] In one embodiment of the present application, the generation module 1003 is also used to: start from the first object coordinate data, draw a display area with a color gradient corresponding to the object coordinate data on the area schematic diagram according to the display time, and continue to display it on the area schematic diagram; after completing the drawing of the display area of ​​the object coordinate data, perform Gaussian blur processing to obtain the motion heat map.

[0231] In one embodiment of the present application, the generation module 1003 is also used to: if the currently drawn display area overlaps with the existing display area, determine a first area that does not overlap and a second area that overlaps; determine that the pixels within the first area maintain the original pixel color; and perform pixel color overlay and deepening on the pixels within the second area by increasing the transparency of the second area.

[0232] In one embodiment of the present application, the generating module 1003 is further used to adjust the display speed of the motion heat map by adjusting the unit display time interval.

[0233] In one embodiment of the present application, the unit display time interval is negatively correlated with the display speed.

[0234] In the motion heat map generation method provided in the embodiment of the present application, a portable GPS positioning device is used to obtain the first object positioning data of the moving object, avoiding the dependence on large hardware equipment and saving the use cost. The first object positioning data is mapped to the regional schematic diagram to obtain the object coordinate data on the regional schematic diagram. Then, based on the respective sampling moments and object coordinate data of the first object positioning data, a motion heat map of the moving object in the target area is generated. Through the motion heat map, the motion trajectory and motion state can be intuitively seen, which helps users understand their own motion situation, improve their motion methods, and help improve their own strength.

[0235] Fig.11 It is a block diagram of an electronic device according to an exemplary embodiment. Fig.11 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0236] like Fig.11 As shown, the electronic device 1100 includes a processor 1101, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1102 or the program loaded from the memory 1106 to the random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the electronic device 1100 are also stored. The processor 1101, the ROM 1102 and the RAM 1103 are connected to each other through a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0237] The following components are connected to the I / O interface 1105: a memory 1106 including a hard disk, etc.; and a communication part 1107 including a network interface card such as a local area network (LAN) card, a modem, etc., and the communication part 1107 performs communication processing via a network such as the Internet; a drive 1108 is also connected to the I / O interface 1105 as needed.

[0238] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1107. When the computer program is executed by the processor 1101, the above-mentioned functions defined in the method of the present application are executed.

[0239] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory including instructions, and the instructions can be executed by the processor 1101 of the electronic device 1100 to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0240] In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0241] Fig.12 It is a structural block diagram of an electronic device according to an exemplary embodiment. Fig.12 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present application. Fig.12 As shown, the electronic device 1200 includes a processor 1201 and a memory 1202. The memory 1202 is used to store program codes, and the processor 1201 is connected to the memory 1202 to read the program codes from the memory 1202 to implement the motion heat map generation method in the above embodiment.

[0242] Optionally, the number of processors 1201 may be one or more.

[0243] Optionally, the electronic device may further include an interface 1203, and the number of the interface 1203 may be multiple. The interface 1203 may be connected to an application program and may receive data from an external device such as a sensor.

[0244] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0245] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for generating a motion heat map, characterized in that: The method comprises: Acquire a plurality of first object positioning data when the moving object moves in the target area; For each of the first object positioning data, mapping is performed onto the area schematic diagram corresponding to the target area to obtain object coordinate data of each of the first object positioning data on the area schematic diagram; Based on the respective sampling moments of the plurality of first object positioning data, the object coordinate data are displayed on the area schematic diagram to generate a motion heat map of the moving object in the target area.

2. The method according to claim 1, characterized in that Before acquiring the positioning data of multiple objects when the moving object moves in the target area, the method further includes: Acquire first vertex positioning data of a plurality of first vertices of the target area; Determining first vertex coordinate data of a plurality of second vertices of the area schematic diagram based on the first vertex positioning data; The region schematic diagram is generated based on the first vertex coordinate data of the plurality of second vertices.

3. The method according to claim 2, characterized in that The generating the region schematic diagram based on the first vertex coordinate data of the plurality of second vertices comprises: generating an initial area schematic diagram based on the first vertex coordinate data of the plurality of second vertices; Determine two vertices located on the long side of the target area from the plurality of second vertices, and acquire the inclination angle of the long side based on the first vertex coordinate data of the two vertices; Based on the tilt angle, the initial region schematic diagram is rotated to generate the region schematic diagram.

4. The method according to claim 3, characterized in that The step of rotating the initial region schematic diagram based on the tilt angle to generate the region schematic diagram includes: Based on the first vertex coordinate data, determine a vertex closest to the coordinate origin from the plurality of second vertices as a target vertex; The initial region schematic diagram is rotated clockwise around the target vertex until the rotation angle reaches the tilt angle and the rotation stops, thereby generating the region schematic diagram.

5. The method according to claim 4, characterized in that The method further comprises: According to the tilt angle and the first vertex coordinate data of the second vertex, the second vertex coordinate data after the second vertex is rotated is obtained.

6. The method according to claim 2, characterized in that The determining, based on the first vertex positioning data, first vertex coordinate data of a plurality of second vertices on the area schematic diagram comprises: Mapping the first vertex location data of the first vertex to the coordinate system of the area schematic diagram; The mapped first vertices are arranged and marked in a counterclockwise direction to determine the second vertices and the first vertex coordinate data of the second vertices.

7. The method according to claim 6, characterized in that The step of arranging and marking the mapped first vertices in a counterclockwise direction to determine the second vertices and the first vertex coordinate data of the second vertices includes: Obtaining a vertex with the smallest Y value among the first vertices, and if there are multiple vertices with the smallest Y values, selecting a vertex with the smallest X value from the multiple vertices with the smallest Y values ​​as the first second vertex of the region schematic diagram; Obtaining a vertex with the largest X value among the first vertices, and if there are multiple vertices with the largest X values, selecting a vertex with the smallest Y value from the multiple vertices with the largest X values ​​as the second second vertex of the region schematic diagram; Obtaining a vertex with the largest Y value among the first vertices, and if there are multiple vertices with the largest Y values, selecting a vertex with the largest X value from the multiple vertices with the largest Y values ​​as the third second vertex of the region schematic diagram; The vertex with the smallest X value among the first vertices is obtained. If there are multiple vertices with the smallest X values, the vertex with the largest Y value is selected from the multiple vertices with the smallest X values ​​as the fourth second vertex of the region schematic diagram.

8. The method according to claim 2, characterized in that: The step of acquiring first vertex positioning data of a plurality of first vertices of the target area includes: Acquire second vertex positioning data of a plurality of vertices in the target area measured; generating a simulated graph of the target area based on the second vertex positioning data; Performing a rotating caliper algorithm on the simulation graph to obtain a regular graph of the target area; The positioning data of a plurality of vertices of the regular figure are determined as the first vertex positioning data.

9. The method according to claim 8, characterized in that The step of performing a rotating caliper algorithm on the simulation graph to obtain a regular graph of the target area includes: For each edge of the simulation figure, obtain the anti-podal point of the edge, and generate a parallel line that is parallel to the edge and passes through the anti-podal point; constructing a candidate graph between the edge and the parallel line, wherein the other two edges of the candidate graph pass through the remaining vertices of the simulation graph except the vertex on the edge; The areas of the candidate graphics corresponding to each edge of the simulation graphics are calculated and compared, and the candidate graphics with the smallest area are selected as the regular graphics of the target area.

10. The method according to any one of claims 4 to 9, characterized in that: The mapping onto the area schematic diagram corresponding to the target area to obtain the object coordinate data of each first object positioning data on the area schematic diagram includes: Rotate the first object positioning data clockwise around the target vertex according to the tilt angle to obtain rotated second object positioning data; determining the length and width of the target area based on the second vertex coordinate data of the second vertex; The second object positioning data is mapped according to the length and the width to obtain the object coordinate data.

11. The method according to any one of claims 1 to 9, characterized in that The method of displaying the object coordinate data on the region schematic diagram based on the respective sampling moments of the plurality of first object positioning data to generate a motion heat map of the moving object in the target region includes: Determine, based on respective sampling times of the plurality of first object positioning data, a display time of each of the object coordinate data on the area schematic diagram; The object coordinate data is displayed on the area schematic diagram in the order of the display time to generate the motion heat map.

12. The method according to claim 11, characterized in that The step of determining the display time of each of the object coordinate data on the area schematic diagram based on the respective sampling times of the plurality of first object positioning data comprises: Determine a sampling time interval between adjacent first object positioning data based on the respective sampling moments; Based on the sampling time interval, determining a display time interval of the object coordinate data on the area schematic diagram; Determining a display order of the object coordinate data based on the respective sampling moments; Based on the display sequence and the display time interval of each object coordinate data, a display time of each object coordinate data on the area schematic diagram is determined.

13. The method according to claim 12, characterized in that The step of determining, based on the sampling time interval, a display time interval of the object coordinate data on the region schematic diagram includes: Determine a minimum sampling time interval from the obtained sampling time intervals; Determine the object coordinate data corresponding to the minimum sampling time interval, and the display time interval on the area schematic diagram as the unit display time interval; For each object coordinate data, based on the sampling time interval corresponding to the object coordinate data and the minimum sampling time interval, and the unit display time interval, a display time interval of the object coordinate data on the area schematic diagram is determined.

14. The method according to claim 12, characterized in that The determining, based on the display order and the display time interval of each object coordinate data, the display time of each object coordinate data on the area schematic diagram comprises: Based on the display order, determine the first object coordinate data displayed on the area schematic diagram, and determine the display time of the first object coordinate data; Starting from the second object coordinate data, based on the display time of the last displayed object coordinate data and the display time interval of the object coordinate data to be displayed currently, the display time of the object coordinate data to be displayed currently is determined.

15. The method according to claim 12, characterized in that The step of displaying the object coordinate data on the region schematic diagram in the order of the display time to generate the motion heat map includes: Starting from the first object coordinate data, drawing a display area with a color gradient corresponding to the object coordinate data on the area schematic diagram according to the display time, and continuously displaying it on the area schematic diagram; After the display area of ​​the object coordinate data is drawn, Gaussian blur processing is performed to obtain the motion heat map.

16. The method according to claim 15, characterized in that The method further comprises: If the currently drawn display area overlaps with the existing display area, determining a first area where no overlap occurs and a second area where overlap occurs; Determining that pixels within the first area maintain original pixel colors; The pixels in the second area are deepened by overlaying the pixel colors by increasing the transparency of the second area.

17. The method according to claim 13, characterized in that The method further comprises: By adjusting the unit display time interval, the display speed of the motion heat map is adjusted.

18. The method according to claim 17, characterized in that The unit display time interval is negatively correlated with the display speed.

19. A motion heat map generating device, characterized in that: The device comprises: An acquisition module, used for acquiring a plurality of first object positioning data when the moving object moves in the target area; A mapping module, used for mapping each first object positioning data to the area schematic diagram corresponding to the target area, to obtain object coordinate data of each first object positioning data on the area schematic diagram; A generating module is used to display the object coordinate data on the area schematic diagram based on the respective sampling moments of the plurality of first object positioning data, so as to generate a motion heat map of the moving object in the area.

20. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 18.

21. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 18 are implemented.