CN111258558A - Coloring processing method and device for motion trail - Google Patents

Coloring processing method and device for motion trail Download PDF

Info

Publication number
CN111258558A
CN111258558A CN202010090533.9A CN202010090533A CN111258558A CN 111258558 A CN111258558 A CN 111258558A CN 202010090533 A CN202010090533 A CN 202010090533A CN 111258558 A CN111258558 A CN 111258558A
Authority
CN
China
Prior art keywords
track
kilometer
speed matching
ith
matching
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.)
Granted
Application number
CN202010090533.9A
Other languages
Chinese (zh)
Other versions
CN111258558B (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.)
Suning Intelligent Terminal Co ltd
Original Assignee
Suning Intelligent Terminal 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 Suning Intelligent Terminal Co ltd filed Critical Suning Intelligent Terminal Co ltd
Priority to CN202010090533.9A priority Critical patent/CN111258558B/en
Publication of CN111258558A publication Critical patent/CN111258558A/en
Application granted granted Critical
Publication of CN111258558B publication Critical patent/CN111258558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Machines For Laying And Maintaining Railways (AREA)

Abstract

The invention discloses a coloring processing method and a coloring processing device for a motion trail, relates to the technical field of data processing, and can introduce gradual change color transition in the motion trail of adjacent stages to present better visual experience for a user. The method comprises the following steps: constructing a speed matching value reference table; correspondingly configuring a plurality of color classes based on the number of the standard matching speed values; matching out the standard speed matching value closest to each speed matching parameter; extracting a motion track in the motion report, and coloring the ith kilometer track by selecting a corresponding color class according to the closest standard speed matching value matched with the ith kilometer track; defining the last track point of the ith kilometer track and a plurality of adjacent track points as a critical point set of the ith kilometer, and performing gradient color processing on the track points in the critical point set by adopting color classes corresponding to the ith kilometer track and the (i + 1) th kilometer track; and returning to the previous step to perform coloring processing on the track point in the ith kilometer track again by changing i to i + 1. The device is applied with the method provided by the scheme.

Description

Coloring processing method and device for motion trail
Technical Field
The invention relates to the technical field of data processing, in particular to a coloring processing method and device for a motion trail.
Background
At present, many motion apps are presented to a user after collecting motion data of the user, a motion report is recorded in the motion report, and in order to enable the user to clearly know the motion speed of the user in each stage in the motion track, a UI designer usually colors the motion track corresponding to each stage, so that different motion speeds correspond to different colors for distinguishing.
The existing coloring scheme for the motion trail has the following defects: if the color difference between two adjacent colors in the motion trail is large, a sharp feeling can be visually caused to the user, and the visual experience of the user is influenced.
Disclosure of Invention
The invention aims to provide a coloring processing method and a coloring processing device for a motion trail, which can introduce gradual color transition in the motion trail of adjacent stages and present better visual experience for a user.
In order to achieve the above object, an aspect of the present invention provides a coloring processing method for a motion trajectory, including:
constructing a speed matching value reference table, wherein the speed matching value reference table comprises a plurality of standard speed matching values;
correspondingly configuring a plurality of color classes based on the number of the standard matching speed values, wherein the standard matching speed values correspond to the color classes one to one;
obtaining a speed matching list of the sport report, respectively comparing a plurality of speed matching parameters in the speed matching list with the standard speed matching values, and matching the standard speed matching value which is closest to each speed matching parameter;
extracting a motion track in the motion report, and coloring track points in the ith kilometer track by selecting corresponding color classes according to the closest standard speed matching value matched with the ith kilometer track;
defining the last track point of the ith kilometer track and a plurality of adjacent track points as a critical point set of the ith kilometer, and performing gradient color processing on the track points in the critical point set by adopting color classes corresponding to the ith kilometer track and the (i + 1) th kilometer track;
and returning to the previous step to perform coloring processing on the track points in the ith kilometer track by re-selecting the color class until all kilometer tracks are processed.
Preferably, the method for constructing the pace value reference table comprises the following steps:
inserting a plurality of intermediate speed matching parameters between the minimum speed matching parameter and the maximum speed matching parameter based on the minimum speed matching parameter and the maximum speed matching parameter in the exercise report to jointly form a plurality of standard speed matching values with uniform gradient;
a reference table of pace values for the exercise report is generated from a plurality of standard pace values.
Preferably, the method for obtaining the pace matching list of the exercise report, comparing a plurality of pace matching parameters in the pace matching list with the standard pace matching values respectively, and matching out the standard pace matching value closest to each pace matching parameter comprises:
the speed matching list comprises a plurality of speed matching parameters used for representing the time used by each kilometer of the track;
sequentially comparing each speed matching parameter with a plurality of standard speed matching values, and matching out the standard speed matching value closest to each speed matching parameter;
and determining the coloring color class corresponding to the kilometer track according to the standard speed matching value closest to each speed matching parameter.
Further, the method for extracting the motion trail in the motion report and selecting the corresponding color class to color the track point in the ith kilometer track according to the closest standard speed matching value matched with the ith kilometer track comprises the following steps:
extracting a track point set of a motion track from a motion report of a user, wherein the track point set comprises a plurality of track point sub-sets, and the track point sub-sets correspond to tracks of each kilometer one by one;
and selecting the corresponding color class to color the track points in the track point subset.
Preferably, the method for defining the last track point of the ith kilometer track and a plurality of adjacent track points as the critical point set of the ith kilometer track, and performing gradient color processing on the track points in the critical point set by using color classes corresponding to the ith kilometer track and the (i + 1) th kilometer track comprises the following steps:
arranging a plurality of track point subsets according to a generation time sequence, and defining the last track point of the ith track point subset as a critical point;
selecting n track points on the left side and the right side of the critical point, and constructing a critical point set of the ith kilometer;
and performing gradient color processing on the track point on the left side in the critical point set by using the color class corresponding to the ith kilometer, and performing gradient color processing on the track point on the right side in the critical point set by using the color class corresponding to the (i + 1) th kilometer, so that the coloring of the track point in the critical point set is uniform and gradually changed from left to right.
Compared with the prior art, the coloring processing method of the motion trail provided by the invention has the following beneficial effects:
the coloring processing method of the movement track provided by the invention is characterized in that a reference table of speed matching values consisting of a plurality of standard speed matching values is pre-constructed, and color classes corresponding to the standard speed matching values one by one are configured, thereby realizing the purpose of distinguishing and representing different standard speed matching values by using colors, after the movement data of a user generates a movement report, the speed matching parameters are obtained, as the speed matching parameters can represent the time spent by each kilometer of the track, the larger the value of the speed matching parameters is, the longer the running time of the user is, namely, the slower the running speed of the user is, the closest standard speed matching value of each speed matching parameter is matched by sequentially comparing each speed matching parameter with the standard speed matching value, then the movement track of the kilometer is colored by using the color class corresponding to the closest standard speed matching value of the speed matching parameter according to the speed matching parameter corresponding to each kilometer of the movement report, because the presented color difference of the adjacent kilometer tracks is large, in order to avoid abrupt vision, the invention also carries out gradual color processing on track points between the adjacent kilometer tracks, so that the color conversion of the adjacent kilometer tracks can be uniformly transited, the finally presented motion track not only can clearly distinguish the speed matching parameters corresponding to each kilometer track, but also can present more gorgeous and softer UI visual effect through the gradual color change design.
Another aspect of the present invention provides a motion trajectory coloring apparatus, to which the motion trajectory coloring method mentioned in the above technical solution is applied, the apparatus including:
the system comprises a construction unit, a speed matching value reference table and a speed matching value processing unit, wherein the speed matching value reference table comprises a plurality of standard speed matching values;
the configuration unit is used for correspondingly configuring a plurality of color classes based on the number of the standard matching speed values, and the standard matching speed values correspond to the color classes one to one;
the matching unit is used for obtaining a pace matching list of the sport report, comparing a plurality of pace matching parameters in the pace matching list with the standard pace matching values respectively, and matching the standard pace matching value closest to each pace matching parameter;
the first processing unit is used for extracting the motion trail in the motion report, and selecting a corresponding color class to color track points in the ith kilometer track according to the closest standard speed matching value matched with the ith kilometer track;
the second processing unit is used for defining the last track point of the ith kilometer track and a plurality of adjacent track points as an ith kilometer critical point set, and performing gradient color processing on the track points in the critical point set by adopting color classes corresponding to the ith kilometer track and the (i + 1) th kilometer track;
and the logic processing unit is used for calling the i +1, calling the first processing unit to reselect the color class to perform coloring processing on the track points in the ith kilometer track until all kilometer tracks are processed.
Preferably, the construction unit comprises:
the speed matching value setting module is used for inserting a plurality of intermediate speed matching parameters between the minimum speed matching parameter and the maximum speed matching parameter based on the minimum speed matching parameter and the maximum speed matching parameter in the exercise report to jointly form a plurality of standard speed matching values with uniform gradient;
and the reference table generating module is used for generating a pace value reference table of the exercise report by a plurality of standard pace values.
Preferably, the matching unit includes:
the parameter comparison module is used for sequentially comparing each speed matching parameter with a plurality of standard speed matching values to match out the standard speed matching value closest to each speed matching parameter, and the speed matching list comprises a plurality of speed matching parameters used for expressing the time of each kilometer of track;
and the color class matching module is used for determining the coloring color class corresponding to the kilometer track according to the standard speed matching value which is closest to each speed matching parameter.
Preferably, the second processing unit includes:
the critical point selection module is used for arranging the plurality of track point subsets according to a generation time sequence and defining the last track point of the ith track point subset as a critical point;
the set selection module is used for selecting n track points on the left side and the right side of the critical point and constructing a critical point set of the ith kilometer;
and the coloring processing module is used for performing gradient color processing on the left track point in the critical point set by using the color class corresponding to the ith kilometer, and performing gradient color processing on the right track point in the critical point set by using the color class corresponding to the (i + 1) th kilometer, so that the coloring of the track point in the critical point set is uniform and gradually changed from left to right.
Compared with the prior art, the beneficial effects of the motion trail coloring processing device provided by the invention are the same as those of the motion trail coloring processing method provided by the technical scheme, and are not repeated herein.
A third aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, executing the steps of the motion trajectory coloring processing method.
Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the invention are the same as those of the motion trail coloring processing method provided by the technical scheme, and are not repeated herein.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart illustrating a processing method for coloring a motion trajectory according to an embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, the present embodiment provides a method for coloring a motion trajectory, including:
constructing a speed matching value reference table, wherein the speed matching value reference table comprises a plurality of standard speed matching values; configuring a plurality of color classes correspondingly based on the number of the standard speed matching values, wherein the standard speed matching values correspond to the color classes one by one; obtaining a speed matching list of the exercise report, respectively comparing a plurality of speed matching parameters in the speed matching list with standard speed matching values, and matching the standard speed matching value which is closest to each speed matching parameter; extracting a motion track in the motion report, and coloring track points in the ith kilometer track by selecting corresponding color classes according to the closest standard speed matching value matched with the ith kilometer track; defining the last track point of the ith kilometer track and a plurality of adjacent track points as a critical point set of the ith kilometer, and performing gradient color processing on the track points in the critical point set by adopting color classes corresponding to the ith kilometer track and the (i + 1) th kilometer track; and returning to the previous step to perform coloring processing on the track points in the ith kilometer track by re-selecting the color class until all kilometer tracks are processed.
In the coloring processing method for a motion trail provided in this embodiment, a reference table of matching speed values is pre-constructed, and color classes corresponding to the standard matching speed values are configured, so as to distinguish and represent different standard matching speed values by using colors, after a motion report is generated from motion data of a user, a matching speed parameter is obtained, since the matching speed parameter can represent time spent in each kilometer of the track, the larger the value of the matching speed parameter is, the longer the running time of the user is, i.e., the slower the running speed of the user is, the closest standard matching speed value of each matching speed parameter is obtained by sequentially comparing each matching speed parameter with the standard matching speed value, and then the kilometer of the motion trail is colored by using the color class corresponding to the closest standard matching speed value of the matching speed parameter according to the matching speed parameter corresponding to each kilometer of the motion report, because the presented color difference of the adjacent kilometer tracks is large, in order to avoid a sharp vision, the embodiment also performs gradient color processing on track points between the adjacent kilometer tracks, so that the color conversion of the adjacent kilometer tracks can be uniformly transited, the finally presented motion track not only can clearly distinguish the speed matching parameters corresponding to each kilometer track, but also can present a more gorgeous and softer UI visual effect through the gradient color design.
In the above embodiment, the method for constructing the pace value reference table includes: inserting a plurality of intermediate speed matching parameters between the minimum speed matching parameter and the maximum speed matching parameter based on the minimum speed matching parameter and the maximum speed matching parameter in the exercise report to jointly form a plurality of standard speed matching values with uniform gradient; a reference table of pace values for the exercise report is generated from a plurality of standard pace values.
In specific implementation, a minimum speed matching parameter and a maximum speed matching parameter in a user motion report are obtained first, where speed matching can be understood as time taken for each kilometer of track formation, and a smaller speed matching parameter indicates a short time taken for each kilometer of track formation, and a larger speed matching parameter indicates a long time taken for each kilometer of track formation, for example, by inserting 3 intermediate speed matching parameters between the minimum speed matching parameter and the maximum speed matching parameter, 5 speed matching parameters are arranged in sequence from small to large to form 5 standard speed matching values with gradients, and in order to ensure the uniformity of the gradients of the 5 standard speed matching values, the intermediate speed matching parameters can be selected by the following strategies:
pace1=fastestPace;
pace2=fastestPace+(slowestPace-fastestpace)/4;
pace3=fastestPace+(slowestPace-fastestpace)*2/4;
pace4=fastestPace+(slowestPace-fastestpace)*3/4;
pace5=slowestPace;
the fastpace represents the minimum matching speed parameter, the slowpace represents the maximum matching speed parameter, the pace1, the pace2, the pace3, the pace4 and the pace5 correspondingly represent 5 standard matching speed values arranged from small to large, correspondingly, the pace1 represents color class 1(color1), the pace2 represents color class 2(color2), the pace3 represents color class 3(color3), the pace4 represents color class 4(color4) and the pace5 represents color class 5(color5), namely, 5 standard matching speed values are in one-to-one matching correspondence with 5 color classes.
Further, the method for obtaining the pace matching list of the exercise report in the above embodiment, respectively comparing a plurality of pace matching parameters in the pace matching list with the standard pace matching values, and matching out the standard pace matching value closest to each pace matching parameter includes:
the speed matching list comprises a plurality of speed matching parameters used for representing the time used by each kilometer of the track; sequentially comparing each speed matching parameter with a plurality of standard speed matching values, and matching out the standard speed matching value closest to each speed matching parameter; and determining the coloring color class corresponding to the kilometer track according to the standard speed matching value closest to each speed matching parameter.
In specific implementation, still continuing with the above example, the speed matching parameters corresponding to each kilometer track are extracted from the speed matching list in the motion report, then each speed matching parameter is sequentially compared with pace1, pace2, pace3, pace4 and pace5, a standard speed matching value closest to each speed matching parameter is matched, and then a color class corresponding to the closest standard speed matching value is selected as the coloring color of the matched kilometer track.
Further, the method for extracting the motion trajectory in the motion report in the above embodiment, and selecting the corresponding color class to perform the coloring processing on the track point in the ith kilometer track according to the closest standard speed matching value matched with the ith kilometer track, includes:
extracting a track point set of a motion track from a motion report of a user, wherein the track point set comprises a plurality of track point sub-sets, and the track point sub-sets correspond to tracks of each kilometer one by one; and selecting the corresponding color class to color the track points in the track point subset.
During specific implementation, a track point set of a motion track is extracted from a motion report of a user, each track point in the set comprises longitude and latitude information, after track point set data is obtained, the SDK-integrated motion APP calls project-to-Screen location (LatLng var1) of an electronic map to correspondingly convert the longitude and latitude track points in the geographic position into coordinate track points which can be displayed on an electronic screen, the motion track of the user is displayed on the electronic screen, meanwhile, the track points corresponding to each kilometer track in the motion track are distinguished and colored by using the matched colors, and the user can clearly see the approximate time of the user on each kilometer track through the colors.
Specifically, in the above embodiment, the last trace point of the ith kilometer track and a plurality of adjacent trace points are defined as an ith kilometer critical point set, and the method for performing gradient color processing on the trace points in the critical point set by using color classes corresponding to the ith kilometer track and the (i + 1) th kilometer track includes:
arranging a plurality of track point subsets according to a generation time sequence, and defining the last track point of the ith track point subset as a critical point; selecting n track points on the left side and the right side of the critical point, and constructing a critical point set of the ith kilometer; and performing gradient color processing on the track point on the left side in the critical point set by using the color class corresponding to the ith kilometer, and performing gradient color processing on the track point on the right side in the critical point set by using the color class corresponding to the (i + 1) th kilometer, so that the coloring of the track point in the critical point set is uniform and gradually changed from left to right.
In the specific implementation, firstly, the position of a critical point of each kilometer track is searched, namely the position of the last track point in each track point subset, then n track points on the left side and the right side of the critical point are selected to construct a critical point set, each critical point set comprises 2n +1 track points, wherein n is more than or equal to 1, i is more than or equal to 2, and n and i are integers, in addition, in order to ensure the appearance of gradient color display on the motion track, the numerical value of n is limited to be far less than the number of track points in the track point subset, then the left track point in the critical point set is subjected to gradient color processing by using the color class corresponding to the ith kilometer, the right track point in the critical point set is subjected to gradient color processing by using the color class corresponding to the ith +1 kilometer, so that the coloring track in the critical point set uniformly changes from left to right, and the coloring track points at the joint position of two adjacent kilometers are subjected to gradient color processing, and returning to the previous step to re-select the corresponding color class to perform gradient color processing on the next adjacent kilometer track connection position until all gradient color processing at the adjacent kilometer track connection position in the motion track is finished. It can be understood that the track point is a coordinate point of the user position uploaded at regular time in the motion process.
For convenience of understanding, it is assumed that the color of the ith kilometer track is color a, the color of the i +1 kilometer track is color b, wherein the color a and the color b respectively belong to any one of color1, color2, color3, color4 and color5, the color a and the color b may be adjacent color types or non-adjacent color types, which is not limited in this embodiment, 2n +1 track points in the critical point set of the ith kilometer need to be averagely divided into a plurality of parts according to the values of the color a and the color b, for example, color a is color1 and color b is color2, in order to allow the color2 and the color3 to participate in the gradual change color processing, at this time, 2n +1 track points need to be averagely divided into 3 parts, the 1 track point is from color1 to color2, the 2 nd track point is from 73725 to 3, and the color gradually change points are finally exhibited from 3 to 3884 color gradually change points.
Example two
The embodiment provides a coloring processing device of a motion trail, comprising:
the speed matching value reference table comprises a plurality of standard speed matching values;
the configuration unit is used for correspondingly configuring a plurality of color classes based on the number of the standard matching speed values, and the standard matching speed values correspond to the color classes one to one;
the matching unit is used for acquiring a pace matching list of the exercise report, comparing a plurality of pace matching parameters in the pace matching list with standard pace matching values respectively, and matching the standard pace matching value closest to each pace matching parameter;
the first processing unit is used for extracting the motion trail in the motion report, and selecting a corresponding color class to color track points in the ith kilometer track according to the closest standard speed matching value matched with the ith kilometer track;
the second processing unit is used for defining the last track point of the ith kilometer track and a plurality of adjacent track points as an ith kilometer critical point set, and performing gradient color processing on the track points in the critical point set by adopting color classes corresponding to the ith kilometer track and the (i + 1) th kilometer track;
and the logic processing unit is used for calling the i +1, calling the first processing unit to reselect the color class to perform coloring processing on the track points in the ith kilometer track until all kilometer tracks are processed.
Preferably, the construction unit comprises:
the speed matching value setting module is used for inserting a plurality of intermediate speed matching parameters between the minimum speed matching parameter and the maximum speed matching parameter based on the minimum speed matching parameter and the maximum speed matching parameter in the exercise report to jointly form a plurality of standard speed matching values with uniform gradient;
and the reference table generating module is used for generating a pace value reference table of the exercise report by a plurality of standard pace values.
Preferably, the matching unit includes:
the parameter comparison module is used for sequentially comparing each speed matching parameter with a plurality of standard speed matching values to obtain a standard speed matching value closest to each speed matching parameter, and the speed matching list comprises a plurality of speed matching parameters used for expressing the time spent on each kilometer of tracks;
and the color class matching module is used for determining the coloring color class corresponding to the kilometer track according to the standard speed matching value which is closest to each speed matching parameter.
Preferably, the second processing unit includes:
the critical point selection module is used for arranging the plurality of track point subsets according to the generation time sequence and defining the last track point of the ith track point subset as a critical point;
the set selection module is used for selecting n track points on the left side and the right side of the critical point and constructing a critical point set of the ith kilometer;
and the coloring processing module is used for performing gradient color processing on the left track point in the critical point set by using the color class corresponding to the ith kilometer, and performing gradient color processing on the right track point in the critical point set by using the color class corresponding to the (i + 1) th kilometer, so that the coloring of the track point in the critical point set is uniform and gradually changed from left to right.
Compared with the prior art, the beneficial effects of the coloring processing device for the motion trail provided by the embodiment are the same as the beneficial effects of the coloring processing method for the motion trail provided by the embodiment, and are not repeated herein.
EXAMPLE III
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for rendering a motion trajectory are performed.
Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by this embodiment are the same as the beneficial effects of the coloring processing method for the motion trail provided by the above technical solution, and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the invention may be implemented by hardware that is instructed to be associated with a program, the program may be stored in a computer-readable storage medium, and when the program is executed, the program includes the steps of the method of the embodiment, and the storage medium may be: ROM/RAM, magnetic disks, optical disks, memory cards, and the like.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A coloring processing method for a motion trail is characterized by comprising the following steps:
constructing a speed matching value reference table, wherein the speed matching value reference table comprises a plurality of standard speed matching values;
correspondingly configuring a plurality of color classes based on the number of the standard matching speed values, wherein the standard matching speed values correspond to the color classes one to one;
obtaining a speed matching list of the sport report, respectively comparing a plurality of speed matching parameters in the speed matching list with the standard speed matching values, and matching the standard speed matching value which is closest to each speed matching parameter;
extracting a motion track in the motion report, and coloring track points in the ith kilometer track by selecting corresponding color classes according to the closest standard speed matching value matched with the ith kilometer track;
defining the last track point of the ith kilometer track and a plurality of adjacent track points as a critical point set of the ith kilometer, and performing gradient color processing on the track points in the critical point set by adopting color classes corresponding to the ith kilometer track and the (i + 1) th kilometer track;
and returning to the previous step to perform coloring processing on the track points in the ith kilometer track by re-selecting the color class until all kilometer tracks are processed.
2. The method of claim 1, wherein the step of constructing the pacing value reference table comprises:
inserting a plurality of intermediate speed matching parameters between the minimum speed matching parameter and the maximum speed matching parameter based on the minimum speed matching parameter and the maximum speed matching parameter in the exercise report to jointly form a plurality of standard speed matching values with uniform gradient;
a reference table of pace values for the exercise report is generated from a plurality of standard pace values.
3. The method of claim 2, wherein obtaining a pace list of the sport report, comparing a plurality of pace parameters in the pace list with the standard pace values, and matching the standard pace value closest to each pace parameter comprises:
the speed matching list comprises a plurality of speed matching parameters used for representing the time used by each kilometer of the track;
sequentially comparing each speed matching parameter with a plurality of standard speed matching values, and matching out the standard speed matching value closest to each speed matching parameter;
and determining the coloring color class corresponding to the kilometer track according to the standard speed matching value closest to each speed matching parameter.
4. The method according to claim 3, wherein the method of extracting the motion trajectory in the motion report, and selecting the corresponding color class to color the track point in the ith kilometer track according to the closest standard speed matching value matched with the ith kilometer track comprises:
extracting a track point set of a motion track from a motion report of a user, wherein the track point set comprises a plurality of track point sub-sets, and the track point sub-sets correspond to tracks of each kilometer one by one;
and selecting the corresponding color class to color the track points in the track point subset.
5. The method according to claim 4, wherein the method for defining the last track point of the ith kilometer track and a plurality of adjacent track points as the critical point set of the ith kilometer, and performing gradient color processing on the track points in the critical point set by using color classes corresponding to the ith kilometer track and the (i + 1) th kilometer track comprises the following steps:
arranging a plurality of track point subsets according to a generation time sequence, and defining the last track point of the ith track point subset as a critical point;
selecting n track points on the left side and the right side of the critical point, and constructing a critical point set of the ith kilometer;
and performing gradient color processing on the track point on the left side in the critical point set by using the color class corresponding to the ith kilometer, and performing gradient color processing on the track point on the right side in the critical point set by using the color class corresponding to the (i + 1) th kilometer, so that the coloring of the track point in the critical point set is uniform and gradually changed from left to right.
6. A coloring processing device for a motion trail is characterized by comprising:
the system comprises a construction unit, a speed matching value reference table and a speed matching value processing unit, wherein the speed matching value reference table comprises a plurality of standard speed matching values;
the configuration unit is used for correspondingly configuring a plurality of color classes based on the number of the standard matching speed values, and the standard matching speed values correspond to the color classes one to one;
the matching unit is used for obtaining a pace matching list of the sport report, comparing a plurality of pace matching parameters in the pace matching list with the standard pace matching values respectively, and matching the standard pace matching value closest to each pace matching parameter;
the first processing unit is used for extracting the motion trail in the motion report, and selecting a corresponding color class to color track points in the ith kilometer track according to the closest standard speed matching value matched with the ith kilometer track;
the second processing unit is used for defining the last track point of the ith kilometer track and a plurality of adjacent track points as an ith kilometer critical point set, and performing gradient color processing on the track points in the critical point set by adopting color classes corresponding to the ith kilometer track and the (i + 1) th kilometer track;
and the logic processing unit is used for calling the i +1, calling the first processing unit to reselect the color class to perform coloring processing on the track points in the ith kilometer track until all kilometer tracks are processed.
7. The apparatus of claim 6, wherein the building unit comprises:
the speed matching value setting module is used for inserting a plurality of intermediate speed matching parameters between the minimum speed matching parameter and the maximum speed matching parameter based on the minimum speed matching parameter and the maximum speed matching parameter in the exercise report to jointly form a plurality of standard speed matching values with uniform gradient;
and the reference table generating module is used for generating a pace value reference table of the exercise report by a plurality of standard pace values.
8. The apparatus of claim 7, wherein the matching unit comprises:
the parameter comparison module is used for sequentially comparing each speed matching parameter with a plurality of standard speed matching values to match out the standard speed matching value closest to each speed matching parameter, and the speed matching list comprises a plurality of speed matching parameters used for expressing the time of each kilometer of track;
and the color class matching module is used for determining the coloring color class corresponding to the kilometer track according to the standard speed matching value which is closest to each speed matching parameter.
9. The apparatus of claim 7, wherein the second processing unit comprises:
the critical point selection module is used for arranging the plurality of track point subsets according to a generation time sequence and defining the last track point of the ith track point subset as a critical point;
the set selection module is used for selecting n track points on the left side and the right side of the critical point and constructing a critical point set of the ith kilometer;
and the coloring processing module is used for performing gradient color processing on the left track point in the critical point set by using the color class corresponding to the ith kilometer, and performing gradient color processing on the right track point in the critical point set by using the color class corresponding to the (i + 1) th kilometer, so that the coloring of the track point in the critical point set is uniform and gradually changed from left to right.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1 to 5.
CN202010090533.9A 2020-02-13 2020-02-13 Coloring processing method and device for motion trail Active CN111258558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010090533.9A CN111258558B (en) 2020-02-13 2020-02-13 Coloring processing method and device for motion trail

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010090533.9A CN111258558B (en) 2020-02-13 2020-02-13 Coloring processing method and device for motion trail

Publications (2)

Publication Number Publication Date
CN111258558A true CN111258558A (en) 2020-06-09
CN111258558B CN111258558B (en) 2023-06-30

Family

ID=70947338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010090533.9A Active CN111258558B (en) 2020-02-13 2020-02-13 Coloring processing method and device for motion trail

Country Status (1)

Country Link
CN (1) CN111258558B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023280169A1 (en) * 2021-07-07 2023-01-12 华为技术有限公司 Movement picture generation method and electronic device
WO2023193338A1 (en) * 2022-04-06 2023-10-12 成都拟合未来科技有限公司 Pacing device and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331700A (en) * 2014-11-28 2015-02-04 吉林大学 Track-energy-diffusion-diagram-based group behavior identification method
CN107791940A (en) * 2017-09-26 2018-03-13 观致汽车有限公司 A kind of backlight regulating system, method and vehicle
WO2018120424A1 (en) * 2016-12-29 2018-07-05 平安科技(深圳)有限公司 Location service-based method, device, equipment for crowd classification, and storage medium
CN108391003A (en) * 2018-02-06 2018-08-10 上海康斐信息技术有限公司 A kind of method and system of movement locus speed color assignment and generation
CN110333716A (en) * 2019-04-30 2019-10-15 深圳市商汤科技有限公司 A kind of motion control method, device and system
CN110427373A (en) * 2019-07-24 2019-11-08 北京航空航天大学 A kind of track data processing method and processing device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331700A (en) * 2014-11-28 2015-02-04 吉林大学 Track-energy-diffusion-diagram-based group behavior identification method
WO2018120424A1 (en) * 2016-12-29 2018-07-05 平安科技(深圳)有限公司 Location service-based method, device, equipment for crowd classification, and storage medium
CN107791940A (en) * 2017-09-26 2018-03-13 观致汽车有限公司 A kind of backlight regulating system, method and vehicle
CN108391003A (en) * 2018-02-06 2018-08-10 上海康斐信息技术有限公司 A kind of method and system of movement locus speed color assignment and generation
CN110333716A (en) * 2019-04-30 2019-10-15 深圳市商汤科技有限公司 A kind of motion control method, device and system
CN110427373A (en) * 2019-07-24 2019-11-08 北京航空航天大学 A kind of track data processing method and processing device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
M KUSE: "Robust camera motion estimation using direct edge alignment and sub-gradient method" *
吴星: "运动轨迹时空模式挖掘与可视化" *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023280169A1 (en) * 2021-07-07 2023-01-12 华为技术有限公司 Movement picture generation method and electronic device
WO2023193338A1 (en) * 2022-04-06 2023-10-12 成都拟合未来科技有限公司 Pacing device and method

Also Published As

Publication number Publication date
CN111258558B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
CN104268006B (en) The back method and device of key mouse script
CN111757175A (en) Video processing method and device
CN111258558A (en) Coloring processing method and device for motion trail
CN110833693B (en) Game running method and device, storage medium and electronic device
CN108376117A (en) The test method and equipment of interaction response
US20190087982A1 (en) Automatic coloring of line drawing
CN105631923A (en) Rendering method and device
CN105617655B (en) Physical effect methods of exhibiting, device and game system
CN107526682A (en) Generation method, device and the equipment of the AI behavior trees of test machine people
US20180126275A1 (en) Runtime animation substitution
CN114007064B (en) Special effect synchronous evaluation method, device, equipment and storage medium
CN106227327A (en) A kind of display converting method, device and terminal unit
CN108921138B (en) Method and apparatus for generating information
CN109040838B (en) Video data processing method and device, video playing method and client
CN111167119B (en) Game development display method, device, equipment and storage medium
CN107808076B (en) Unlocking method of terminal equipment, terminal equipment and storage medium
CN112286422B (en) Information display method and device
CN110310352A (en) A kind of role action edit methods and device calculate equipment and storage medium
CN113209626B (en) Game picture rendering method and device
CN105892663A (en) Information processing method and electronic device
CN113934766B (en) Go fixed-type playing method and device, electronic equipment and storage medium
CN106126314B (en) Expand the analogy method and device of instruction
CN111135580B (en) Game character standby animation generation method and device
CN114663564A (en) Browser WebGL large scene rendering method, device, equipment and medium
CN113986728A (en) Thermodynamic diagram-based minimum set analysis method, system and terminal for integrated test cases

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant