CN107729373B - Motion trail display method and device - Google Patents

Motion trail display method and device Download PDF

Info

Publication number
CN107729373B
CN107729373B CN201710818361.0A CN201710818361A CN107729373B CN 107729373 B CN107729373 B CN 107729373B CN 201710818361 A CN201710818361 A CN 201710818361A CN 107729373 B CN107729373 B CN 107729373B
Authority
CN
China
Prior art keywords
preset time
time period
displaying
distance
moment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710818361.0A
Other languages
Chinese (zh)
Other versions
CN107729373A (en
Inventor
彭松
秦锋剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Green Bay Network Technology Co., Ltd.
Original Assignee
Green Bay Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Green Bay Network Technology Co ltd filed Critical Green Bay Network Technology Co ltd
Priority to CN201710818361.0A priority Critical patent/CN107729373B/en
Publication of CN107729373A publication Critical patent/CN107729373A/en
Application granted granted Critical
Publication of CN107729373B publication Critical patent/CN107729373B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a motion trail display method and a device, wherein the method comprises the following steps: the method comprises the steps of obtaining a first position of a first object at each moment, obtaining a second position of a second object at each moment, counting the distance between the first position where the first object is located and the second position where the second object is located aiming at each moment in a preset time period, generating a K line graphic representation corresponding to the preset time period according to the distance at each moment in the preset time period, and displaying the K line graphic representation corresponding to the preset time period when displaying the motion track of the first object according to the first position and displaying the motion track of the second object according to the second position. The movement tracks of different objects in time and space are represented by the K-line graph, and the problems that whether the different objects are intersected in time and space or not cannot be clearly displayed when the movement tracks of the different objects are displayed by a two-dimensional plane of a map in the prior art, the method is not intuitive and the efficiency is low are solved.

Description

Motion trail display method and device
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for displaying a motion trail.
Background
When a big data system performs relationship analysis and behavior analysis on people and entities, the motion trajectories of the people and the entities are generally required to be analyzed, and the trajectories are mined in space-time.
In the related art, the trajectories of people and entities are usually marked by using dot-dash lines on a map, and the map is presented as a two-dimensional plane, which cannot express time-related information, so that the trajectories of two people or entities intersect on the map, but in fact, the two people or entities appearing at the same position may be separated in time for a long time, that is, the trajectories of the two people or entities do not have an intersection in space-time. Whether two objects are crossed in space-time or not can not be clearly shown by using a map, namely, the concepts of time and space can not be simultaneously expressed, and meanwhile, the expression is not visual and efficient, and a user can not quickly obtain a conclusion.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the invention provides a motion trail display method to realize the representation of motion trails of different objects in time and space through a K-line graph, and solves the problems that in the prior art, the motion trails of different objects are represented by adopting a two-dimensional plane of a map, information in time and space cannot be simultaneously expressed, whether the different objects are intersected in time and space cannot be clearly displayed, intuition is not realized, and the efficiency is low.
The invention provides a motion trail display device.
The invention provides a computer device.
The invention provides a computer readable storage medium.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a method for displaying a motion trajectory, including:
acquiring a first position of a first object at each moment;
acquiring a second position of a second object at each moment;
counting the distance between a first position where the first object is located and a second position where the second object is located aiming at each moment in a preset time period;
generating a K line graphic corresponding to the preset time period according to the distance of each moment in the preset time period, wherein the K line graphic comprises an entity part, and an upper shadow line and a lower shadow line which are connected with the upper edge and the lower edge of the entity part and extend outwards; the entity part is used for indicating the meeting condition of the first object and the second object in the preset time period;
and displaying a K-line diagram corresponding to the preset time period when displaying the motion trail of the first object according to the first position and displaying the motion trail of the second object according to the second position.
In the movement track display method of this embodiment, a first position of a first object at each time is obtained, a second position of a second object at each time is obtained, for each time within a preset time period, a distance between the first position where the first object is located and the second position where the second object is located is counted, a K-line graphic representation corresponding to the preset time period is generated according to the distance at each time within the preset time period, and the K-line graphic representation corresponding to the preset time period is displayed when the movement track of the first object is displayed according to the first position and the movement track of the second object is displayed according to the second position. The movement tracks of different objects in time and space are represented by the K-line graph, so that the problems that in the prior art, when the movement tracks of different objects are displayed by adopting a two-dimensional plane of a map, information in time and space cannot be simultaneously expressed, whether different objects are intersected in time and space cannot be clearly displayed, the visualization is not realized, and the efficiency is low are solved.
In order to achieve the above object, a second embodiment of the present invention provides a motion trail display device, including:
the acquisition module is used for acquiring a first position of a first object at each moment; acquiring a second position of a second object at each moment;
the counting module is used for counting the distance between a first position where the first object is located and a second position where the second object is located aiming at each moment in a preset time period;
the generating module is used for generating a K line graph corresponding to the preset time period according to the distance of each moment in the preset time period, wherein the K line graph comprises an entity part, and an upper shadow line and a lower shadow line which are connected with the upper edge and the lower edge of the entity part and extend outwards; the entity part is used for indicating the meeting condition of the first object and the second object in the preset time period;
and the display module is used for displaying the K line graphic corresponding to the preset time period when the motion trail of the first object is displayed according to the first position and the motion trail of the second object is displayed according to the second position.
In the movement trace display device according to the embodiment of the present invention, the obtaining module is configured to obtain a first position of the first object at each time and obtain a second position of the second object at each time, the counting module is configured to count, for each time within a preset time period, a distance between the first position where the first object is located and the second position where the second object is located, the generating module is configured to generate a K-line diagram corresponding to the preset time period according to the distance at each time within the preset time period, and the display module is configured to display the K-line diagram corresponding to the preset time period when displaying the movement trace of the first object according to the first position and displaying the movement trace of the second object according to the second position. The movement tracks of different objects in time and space are represented by the K-line graph, so that the problems that in the prior art, the movement tracks of different objects are displayed by adopting a two-dimensional plane of a map, information in time and space cannot be simultaneously expressed, whether different objects are intersected in time and space cannot be clearly displayed, the display is not visual, and the efficiency is low are solved.
To achieve the above object, an embodiment of a third aspect of the present invention provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the motion trajectory display method according to the embodiment of the first aspect.
In order to achieve the above object, a fourth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the motion trajectory display method according to the first aspect.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of a method for displaying a motion trajectory according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a K-line diagram provided in the present embodiment;
fig. 3 is a schematic flow chart of another motion trajectory display method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating K line graphs corresponding to a plurality of preset time periods according to an embodiment of the present invention;
FIG. 5 is a second schematic diagram showing a plurality of preset time periods corresponding to K line diagrams according to an embodiment of the present invention
FIG. 6 is a third schematic diagram illustrating a plurality of preset time periods corresponding to K-line graphs according to an embodiment of the present invention;
FIG. 7 is a fourth schematic diagram illustrating K line graphs corresponding to a plurality of preset time periods according to the embodiment of the present invention;
FIG. 8 is a schematic diagram of a map data and K-line graphical corresponding display provided by an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a motion trail display device according to an embodiment of the present invention; and
fig. 10 is a schematic structural diagram of another motion trail display device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A movement trace display method and apparatus according to an embodiment of the present invention will be described below with reference to the drawings.
Fig. 1 is a schematic flow chart of a motion trajectory display method according to an embodiment of the present invention.
As shown in fig. 1, the method includes:
in step S101, a first position of a first object at each time is acquired.
In this embodiment, two objects are taken as an example to describe the motion track display method.
Specifically, for the objects that need to be subjected to trajectory analysis, for the sake of convenience of distinction, one of the objects is referred to as a first object, and the position of the first object at each time is acquired and referred to as a first position.
Step S102, a second position of the second object at each moment is obtained.
Specifically, another object is referred to as a second object, the first object and the second object are relative concepts, and the position of the second object at each time is acquired and referred to as a second position.
Step S103, counting the distance between the first position of the first object and the second position of the second object at each moment in a preset time period.
Specifically, for a preset time period, the time period includes a plurality of moments, each moment corresponds to a first position where the first object is located and a second position where the second object is located, and the distance between each moment in the preset time period and the first position where the first object is located and the second position where the second object is located is counted.
For example, the preset time period is one day, and table 1 counts the distance between the first object and the second object during a preset time period, i.e. different times of the day, as shown in table 1,
time of day Distance of first object and second object
Time 1 1 m
Time 2 2 m
Time 3 3 m
Time 4 5 m
Time 5 10 m
Time 6 300 m
Time 7 2 kilometers
Time 8 5 kilometers
Time 9 8 kilometer
Time 10 10 kilometers
Time 11 15 kilometers
TABLE 1
And step S104, generating a K line graph corresponding to the preset time interval according to the distance of each moment in the preset time interval.
The K line drawing comprises an entity part, and an upper shadow line and a lower shadow line which are connected with the upper edge and the lower edge of the entity part and extend outwards, specifically, firstly, the maximum value and the minimum value of each distance in a preset time period are counted, and in the distance of each moment, the distance of the front X% and the distance of the rear Y% are sequenced, the upper endpoint of the upper shadow line is determined according to the maximum value, the lower endpoint of the lower shadow line is determined according to the minimum value, the upper edge position of the entity part is determined according to the distance of the front X% and the lower edge position of the entity part is determined according to the distance of the rear Y%. Then, judging whether a distance smaller than a threshold exists in a preset time period, if so, determining that the first object and the second object meet at a moment corresponding to the distance smaller than the threshold, and generating an entity part in a filling state; if not, determining that the first object and the second object do not meet at the moment corresponding to the distance smaller than the threshold distance, and generating a solid part in an unfilled state.
Fig. 2 is a schematic structural diagram of a K-line graph provided in this embodiment, and as shown in fig. 2, the K-line graph includes 2K-line graphs, where an upper end point of an upper hatched line represents a maximum value of a distance between a first object and a second object in a preset time period, and a lower end point of a lower hatched line represents a minimum value of the distance between the first object and the second object in the preset time period. The entity portion is used to indicate an encounter condition of the first object and the second object within a preset time period, and if the first object and the second object encounter within the preset time period, the entity portion is in a filled state, such as the left entity in fig. 2, and if the first object and the second object do not encounter within the preset time period, the entity portion is in an unfilled state, such as the right entity in fig. 2. The upper edge position of the entity part represents the distance of X% in the distance of each moment in a preset time period; the lower edge position of the solid part represents the distance of Y% after sorting in the distances of each moment in the preset time period.
For example, with X% ═ 20% and Y% ═ 20%, according to table 1, the parameters of the K line plot can be determined as: the upper end point of the upper hatching is 15 kilometers, the upper edge position of the solid part is 8 kilometers, the lower edge position of the solid part is 3 meters, and the lower end point of the lower hatching is 1 meter.
And step S105, displaying a K-line diagram corresponding to a preset time period when displaying the motion trail of the first object according to the first position and displaying the motion trail of the second object according to the second position.
Specifically, on a map, a motion trail of a first object and a motion trail of a second object are displayed, and K-line graphs corresponding to a plurality of preset time periods are displayed in a two-dimensional coordinate system below the map, wherein the abscissa of the two-dimensional coordinate system indicates time, and the ordinate of the two-dimensional coordinate system indicates distance.
In the movement track display method of this embodiment, a first position of a first object at each time is obtained, a second position of a second object at each time is obtained, for each time within a preset time period, a distance between the first position where the first object is located and the second position where the second object is located is counted, a K-line graphic representation corresponding to the preset time period is generated according to the distance at each time within the preset time period, and the K-line graphic representation corresponding to the preset time period is displayed when the movement track of the first object is displayed according to the first position and the movement track of the second object is displayed according to the second position. The movement tracks of different objects in time and space are represented by the K-line graph, so that the problems that in the prior art, when the movement tracks of different objects are displayed by adopting a two-dimensional plane of a map, information in time and space cannot be simultaneously expressed, whether different objects are intersected in time and space cannot be clearly displayed, the visualization is not realized, and the efficiency is low are solved.
On the basis of the previous embodiment, the present invention further provides a possible motion trajectory display method, fig. 3 is a schematic flow chart of another motion trajectory display method provided in the embodiment of the present invention, and on the basis of the embodiment corresponding to fig. 1, step S105 may further include the following steps:
step S1051, detecting the dragging operation of the user for the time axis control corresponding to the two-dimensional coordinate system to determine a plurality of preset time periods required to be displayed by the two-dimensional coordinate system.
Fig. 4 is a schematic diagram of displaying K-line graphs corresponding to a plurality of preset time periods, in which a vertical axis is logarithmically scaled to accurately express a distance, in the diagram, 9 preset time periods are mapped on a time axis, and each preset time period is displayed by a corresponding K-line graph, where 2/1 represents 2 months and 1 day, and other dates are the same. And 3 entities with filling states representing that the first object and the second object intersect at the empty orbits in 2 months and 1 day, 2 months and 8 days and 2 months and 9 days respectively.
When displaying the K-line graphs corresponding to the multiple preset time periods in the two-dimensional coordinate system, a user may select a preset time period to be displayed from the multiple preset time periods according to the requirements of an actual application scene, as a possible implementation manner, the preset time period may be implemented by using a time axis control, fig. 5 is a second schematic diagram for displaying the K-line graphs corresponding to the multiple preset time periods provided by the embodiment of the present invention, as shown in fig. 5, a time axis control T1 is set below an original time axis in a biaxial manner, the time axis control T1 includes 2 rollers that can be dragged arbitrarily on the time axis, and the control may be manually dragged by the user to select a region that needs to be displayed in a highlight manner by 2 rollers on the time axis. For example, if the user selects to display the K-line graph corresponding to the preset time from 2 months 4 days to 2 months 8 days, only the K-line graph corresponding to the preset time from 2 months 4 days to 2 months 8 days is displayed in the figure.
In addition, the information of the intersecting of the spatiotemporal trajectories may also be superimposed on the time axis control, fig. 6 is a third schematic diagram showing a plurality of preset time periods corresponding to the K-line diagram provided by the embodiment of the present invention, and as shown in fig. 6, B is the information of the intersecting of the spatiotemporal trajectories attached to the time axis.
As another possible implementation manner, a time setting control T2 may be further provided, the user manually inputs the start time and the end time on the time setting control T2, fig. 7 is a fourth schematic diagram for displaying K line diagrams corresponding to a plurality of preset time periods provided by the embodiment of the present invention, and as shown in fig. 7, the K line diagrams corresponding to the corresponding preset time periods are displayed according to the start time and the end time manually input by the user.
Step S1052, displaying the movement tracks of the first object and the second object on the map, and displaying K-line graphs corresponding to a plurality of preset time periods in a two-dimensional coordinate system below the map.
By displaying the movement tracks of the first object and the second object on the map and displaying the K-line graphs corresponding to a plurality of preset time periods in the two-dimensional coordinate system below the map, the spatial-temporal intersection relationship of the first object and the second object can be clearly known, fig. 8 is a schematic diagram of the map data and the corresponding display of the K-line graphs provided by the embodiment of the present invention, as shown in fig. 8, the data corresponding to the K-line graphs are directly displayed on the map, wherein on the map, the points connected by the dotted lines represent the movement track of the first object, and the points connected by the solid lines represent the movement track of the second object.
Step S1053, a portion corresponding to the meeting time of the first object and the second object is displayed in the motion trajectory of the first object and the motion trajectory of the second object.
As shown in fig. 8, in the K line graph below the map, the K line graph selected by the user is marked with gray, and the portion corresponding to the meeting time of the first object and the second object is displayed on the map according to the intersecting K line graph selected by the user, and as a possible implementation manner, the portion corresponding to the meeting time of the first object and the second object may be highlighted on the map; as another possible implementation manner, a portion corresponding to the meeting time of the first object and the second object may also be displayed on a map in a manner of labeling, as shown in fig. 8, where the portion corresponding to the meeting time of the first object and the second object is displayed in the map, that is, in a manner of labeling the first object and the second object as gray.
According to the requirement of an actual application scene, when the statistics of the space-time trajectories of two specified objects needs to be checked, only the statistical graph corresponding to the K-line graph can be displayed.
In the above embodiment, part of the parameters of the K-line graph, for example, the calculation cycle is one day, the start time of the whole data is selected to be 2 months and 1 day, and the end time is selected to be 2 months and 9 days, but according to the actual application scenario, a person skilled in the art can set the parameters of the K-line graph according to the actual situation, and can set the relevant parameters of the K-line graph in an interface manner or a background configuration file manner, specifically as follows:
1) the calculation period of a single K line, such as year, month, day, week, hour, minute, or a specified time interval.
2) Start time and end time of the whole data.
3) The uppermost and lowermost edges of the K-line scale.
4) And (3) a method for judging the space-time intersection of the two objects, such as a distance threshold value and the time staying within the distance threshold value, or the quantity of the original data.
The embodiment is not limited and is not repeated in detail.
In the movement track display method of this embodiment, a first position of a first object at each time is obtained, a second position of a second object at each time is obtained, for each time within a preset time period, a distance between the first position where the first object is located and the second position where the second object is located is counted, a K-line graphic representation corresponding to the preset time period is generated according to the distance at each time within the preset time period, and the K-line graphic representation corresponding to the preset time period is displayed when the movement track of the first object is displayed according to the first position and the movement track of the second object is displayed according to the second position. The movement tracks of different objects in time and space are represented by the K-line graph, so that the problems that in the prior art, when the movement tracks of different objects are displayed by adopting a two-dimensional plane of a map, information in time and space cannot be simultaneously expressed, whether different objects are intersected in time and space cannot be clearly displayed, the visualization is not realized, and the efficiency is low are solved.
In order to implement the above embodiments, the present invention further provides a motion trajectory display device.
Fig. 9 is a schematic structural diagram of a motion trail display device according to an embodiment of the present invention.
As shown in fig. 9, the apparatus includes: an acquisition module 81, a statistics module 82, a generation module 83, and a display module 84.
The acquiring module 81 is configured to acquire a first position of the first object at each time and acquire a second position of the second object at each time.
The counting module 82 is configured to count, for each time within a preset time period, a distance between a first location where the first object is located and a second location where the second object is located.
The generating module 83 is configured to generate a K-line graph corresponding to the preset time period according to the distance of each time in the preset time period, where the K-line graph includes an entity portion, and an upper hatched line and a lower hatched line that connect upper and lower edges of the entity portion and extend outward, and the entity portion is used to indicate an encounter condition of the first object and the second object in the preset time period.
And the display module 84 is configured to display a K-line diagram corresponding to a preset time period when the motion trajectory of the first object is displayed according to the first position and the motion trajectory of the second object is displayed according to the second position.
It should be noted that the foregoing explanation of the method embodiment is also applicable to the apparatus of this embodiment, and is not repeated herein.
In the movement trace display device according to the embodiment of the present invention, the obtaining module is configured to obtain a first position of the first object at each time and obtain a second position of the second object at each time, the counting module is configured to count, for each time within a preset time period, a distance between the first position where the first object is located and the second position where the second object is located, the generating module is configured to generate a K-line diagram corresponding to the preset time period according to the distance at each time within the preset time period, and the display module is configured to display the K-line diagram corresponding to the preset time period when displaying the movement trace of the first object according to the first position and displaying the movement trace of the second object according to the second position. The movement tracks of different objects in time and space are represented by the K-line graph, so that the problems that in the prior art, the movement tracks of different objects are displayed by adopting a two-dimensional plane of a map, information in time and space cannot be simultaneously expressed, whether different objects are intersected in time and space cannot be clearly displayed, the display is not visual, and the efficiency is low are solved.
Based on the foregoing embodiment, the embodiment of the present invention further provides a possible implementation manner of a motion trajectory display device, fig. 10 is a schematic structural diagram of another motion trajectory display device provided in the embodiment of the present invention, and on the basis of the foregoing embodiment, the generating module 83 further includes: a first statistic unit 831, a first determination unit 832, a second statistic unit 833, a second determination unit 834, and a judgment unit 835.
The first statistical unit 831 is configured to count a maximum value and a minimum value of each distance in a preset time period.
The first determining unit 832 determines an upper end point of the upper hatching according to the maximum value and a lower end point of the lower hatching according to the minimum value.
The second statistical unit 833 performs statistics on the distance of X% before the sorting and the distance of Y% after the sorting in the distance of each time in the preset time period.
The second determining unit 834 determines the position of the upper edge of the solid portion according to the distance of X% before sorting, and determines the position of the lower edge of the solid portion according to the distance of Y% after sorting.
The determining unit 835 determines whether a distance smaller than a threshold exists within a preset time period, and if so, determines that the first object and the second object meet at a time corresponding to the distance smaller than the threshold, and generates an entity part in a filling state; if not, determining that the first object and the second object do not meet in a preset time period, and generating an entity part in an unfilled state.
As a possible implementation manner, the display module 84 may further include: a detection unit 841, a first display unit 842, a second display unit 843, and a display unit 844.
The detecting unit 841 detects a dragging operation of the user with respect to the time axis control corresponding to the two-dimensional coordinate system to determine a plurality of preset time periods required to be displayed by the two-dimensional coordinate system.
The first display unit 842 displays the movement trace of the first object and the movement trace of the second object on the map.
The second display unit 843 displays K-line graphs corresponding to a plurality of preset time periods in a two-dimensional coordinate system below the map, the abscissa of the two-dimensional coordinate system indicating time and the ordinate of the two-dimensional coordinate system indicating distance.
The display unit 844 displays a portion corresponding to a time when the first object and the second object meet, in the movement trajectory of the first object and the movement trajectory of the second object.
It should be noted that the foregoing explanation of the method embodiment is also applicable to the apparatus of this embodiment, and is not repeated herein.
In the movement trace display device according to the embodiment of the present invention, the obtaining module is configured to obtain a first position of the first object at each time and obtain a second position of the second object at each time, the counting module is configured to count, for each time within a preset time period, a distance between the first position where the first object is located and the second position where the second object is located, the generating module is configured to generate a K-line diagram corresponding to the preset time period according to the distance at each time within the preset time period, and the display module is configured to display the K-line diagram corresponding to the preset time period when displaying the movement trace of the first object according to the first position and displaying the movement trace of the second object according to the second position. The movement tracks of different objects in time and space are represented by the K-line graph, so that the problems that in the prior art, the movement tracks of different objects are displayed by adopting a two-dimensional plane of a map, information in time and space cannot be simultaneously expressed, whether different objects are intersected in time and space cannot be clearly displayed, the display is not visual, and the efficiency is low are solved.
In order to implement the foregoing embodiments, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the computer device implements the motion trajectory display method described in the foregoing method embodiments.
In order to implement the foregoing embodiments, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the motion trajectory display method described in the foregoing method embodiments.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A motion trail display method is characterized by comprising the following steps:
acquiring a first position of a first object at each moment;
acquiring a second position of a second object at each moment;
counting the distance between a first position where the first object is located and a second position where the second object is located aiming at each moment in a preset time period;
generating a K line graphic corresponding to the preset time period according to the distance of each moment in the preset time period, wherein the K line graphic comprises an entity part, and an upper shadow line and a lower shadow line which are connected with the upper edge and the lower edge of the entity part and extend outwards; the entity part is used for indicating the meeting condition of the first object and the second object in the preset time period;
and displaying a K-line diagram corresponding to the preset time period when displaying the motion trail of the first object according to the first position and displaying the motion trail of the second object according to the second position.
2. The method for displaying the motion trail according to claim 1, wherein the generating a K-line diagram corresponding to the preset time period according to the distance of each moment in the preset time period comprises:
counting the maximum value and the minimum value of each distance in the preset time period;
determining the upper end point of the upper hatching according to the maximum value;
determining a lower endpoint of the lower hatching according to the minimum value;
judging whether a distance smaller than a threshold value exists in the preset time period or not;
if so, determining that the first object and the second object meet at a moment corresponding to a distance smaller than a threshold value;
generating the solid portion of the fill state.
3. The method for displaying a motion trail according to claim 2, wherein after determining whether there is a distance less than a threshold value within the preset time period, the method further comprises:
if not, determining that the first object and the second object do not meet in the preset time period;
generating the solid portion of unfilled state.
4. The method for displaying a motion trail according to claim 2, wherein the generating a K-line diagram corresponding to the preset time period according to the distance of each moment in the preset time period further comprises:
counting the distances of X% before sequencing and Y% after sequencing in the distances of each moment in the preset time period;
determining the position of the upper edge of the entity part according to the distance of X% before the sorting;
and determining the position of the lower edge of the entity part according to the sorted Y% distance.
5. The method according to any one of claims 1 to 4, wherein displaying the K-line graph corresponding to the preset time period when displaying the motion trajectory of the first object according to the first position and displaying the motion trajectory of the second object according to the second position comprises:
displaying a movement locus of the first object and displaying a movement locus of the second object on a map;
displaying K line graphs corresponding to a plurality of preset time periods in a two-dimensional coordinate system below the map; the abscissa of the two-dimensional coordinate system indicates time, and the ordinate indicates distance.
6. The method according to claim 5, wherein before displaying the K-line representations corresponding to the plurality of preset time periods in the two-dimensional coordinate system under the map, the method further comprises:
and detecting the dragging operation of a user on the time axis control corresponding to the two-dimensional coordinate system so as to determine a plurality of preset time periods required to be displayed by the two-dimensional coordinate system.
7. The method according to claim 5, further comprising, after displaying the movement trace of the first object and the movement trace of the second object on the map,:
and displaying a part corresponding to the meeting time of the first object and the second object in the motion trail of the first object and the motion trail of the second object.
8. A movement trace display device, comprising:
the acquisition module is used for acquiring a first position of a first object at each moment; acquiring a second position of a second object at each moment;
the counting module is used for counting the distance between a first position where the first object is located and a second position where the second object is located aiming at each moment in a preset time period;
the generating module is used for generating a K line graph corresponding to the preset time period according to the distance of each moment in the preset time period, wherein the K line graph comprises an entity part, and an upper shadow line and a lower shadow line which are connected with the upper edge and the lower edge of the entity part and extend outwards; the entity part is used for indicating the meeting condition of the first object and the second object in the preset time period;
and the display module is used for displaying the K line graphic corresponding to the preset time period when the motion trail of the first object is displayed according to the first position and the motion trail of the second object is displayed according to the second position.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a method of displaying a motion trajectory according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a motion trajectory display method according to any one of claims 1 to 7.
CN201710818361.0A 2017-09-12 2017-09-12 Motion trail display method and device Active CN107729373B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710818361.0A CN107729373B (en) 2017-09-12 2017-09-12 Motion trail display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710818361.0A CN107729373B (en) 2017-09-12 2017-09-12 Motion trail display method and device

Publications (2)

Publication Number Publication Date
CN107729373A CN107729373A (en) 2018-02-23
CN107729373B true CN107729373B (en) 2020-07-10

Family

ID=61206073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710818361.0A Active CN107729373B (en) 2017-09-12 2017-09-12 Motion trail display method and device

Country Status (1)

Country Link
CN (1) CN107729373B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052518A (en) * 2017-10-25 2018-05-18 小草数语(北京)科技有限公司 The method for expressing and device of space-time track
CN110990722B (en) * 2019-12-19 2020-11-06 南京柏跃软件有限公司 Fuzzy co-site analysis method and system based on big data mining
CN112181999B (en) * 2020-09-21 2022-01-07 北京京东乾石科技有限公司 Track updating method and device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103366307A (en) * 2012-03-26 2013-10-23 李岩 Method for setting trading terms via figure
CN104601440A (en) * 2014-08-15 2015-05-06 腾讯科技(深圳)有限公司 Trace meeting based user recommendation method, related device and system
WO2014141141A3 (en) * 2013-03-15 2015-05-07 Muchnicki Jerzy Candlestick and bar charts representation for games
CN105302427A (en) * 2014-07-28 2016-02-03 腾讯科技(北京)有限公司 Image display method and apparatus and electronic device
CN105589875A (en) * 2014-10-22 2016-05-18 方正国际软件(北京)有限公司 Multi-trajectory drawing method and device
CN106407660A (en) * 2016-08-31 2017-02-15 焦小兴 Analysis method for human body health data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150348190A1 (en) * 2014-05-30 2015-12-03 E*Trade Financial Corporation Systems and methods for enhanced user interface for placing an order

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103366307A (en) * 2012-03-26 2013-10-23 李岩 Method for setting trading terms via figure
WO2014141141A3 (en) * 2013-03-15 2015-05-07 Muchnicki Jerzy Candlestick and bar charts representation for games
CN105302427A (en) * 2014-07-28 2016-02-03 腾讯科技(北京)有限公司 Image display method and apparatus and electronic device
CN104601440A (en) * 2014-08-15 2015-05-06 腾讯科技(深圳)有限公司 Trace meeting based user recommendation method, related device and system
CN105589875A (en) * 2014-10-22 2016-05-18 方正国际软件(北京)有限公司 Multi-trajectory drawing method and device
CN106407660A (en) * 2016-08-31 2017-02-15 焦小兴 Analysis method for human body health data

Also Published As

Publication number Publication date
CN107729373A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN107729373B (en) Motion trail display method and device
US10180326B2 (en) Staying state analysis device, staying state analysis system and staying state analysis method
US9053565B2 (en) Interactive selection of a region of interest in an image
CN101517526B (en) 3d connected shadow mouse pointer
US20160035115A1 (en) Event chain visualization of performance data
EP2764821B1 (en) Diagnosis aiding apparatus and method to provide diagnosis information and diagnosis system thereof
US20160171341A1 (en) Apparatus and method for detecting object in image, and apparatus and method for computer-aided diagnosis
EP3378041B1 (en) Pet image reconstruction and processing using lesion proxies
US8892343B2 (en) Determining a spatiotemporal impact of a planned event on traffic
CN106233336A (en) PET accidental coincidence correction
CN110533955A (en) A kind of method, terminal device and the computer readable storage medium on determining parking stall
JP6975177B2 (en) Detection of biological objects
CN108647587A (en) Demographic method, device, terminal and storage medium
CN112561859B (en) Monocular vision-based steel belt drilling and anchor net identification method and device for anchoring and protecting
CN108596921A (en) Method, apparatus, equipment and the readable storage medium storing program for executing of salient region of image detection
CN110969623A (en) Lung CT multi-symptom automatic detection method, system, terminal and storage medium
CN108875531A (en) Method for detecting human face, device, system and computer storage medium
CN101248459A (en) A method of generating a 2D image of a 3D object
CN112766113A (en) Intersection detection method, device, equipment and storage medium
JP6359655B2 (en) Image processing apparatus, image processing method, and image processing system
CN103472979B (en) Visualization method and system for data display based on scatter diagram
CN109086696A (en) A kind of anomaly detection method, device, electronic equipment and storage medium
CN115908715A (en) Loading method and device of building information model, equipment and storage medium
CN110268441A (en) The method for obtaining the 3D model data of multiple components of object
CN1942898A (en) Method and imaging diagnostic apparatus for finding a stenosis

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190903

Address after: 100192 Dongsheng Science Park, Zhongguancun, 66 Xixiaokou Road, Haidian District, Beijing

Applicant after: Green Bay Network Technology Co., Ltd.

Address before: 100089 Beijing Haidian District Xixiaokou Road 66 Zhongguancun Dongsheng Science Park B-6 Building B 5 floors

Applicant before: Grass count language (Beijing) Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant