CN111061822A - Track drawing method and device, electronic equipment and storage medium - Google Patents

Track drawing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111061822A
CN111061822A CN201911108620.6A CN201911108620A CN111061822A CN 111061822 A CN111061822 A CN 111061822A CN 201911108620 A CN201911108620 A CN 201911108620A CN 111061822 A CN111061822 A CN 111061822A
Authority
CN
China
Prior art keywords
point
track
marking
current
points
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.)
Pending
Application number
CN201911108620.6A
Other languages
Chinese (zh)
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.)
Beijing Kuangshi Technology Co Ltd
Beijing Megvii Technology Co Ltd
Original Assignee
Beijing Kuangshi 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 Beijing Kuangshi Technology Co Ltd filed Critical Beijing Kuangshi Technology Co Ltd
Priority to CN201911108620.6A priority Critical patent/CN111061822A/en
Publication of CN111061822A publication Critical patent/CN111061822A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/24Querying
    • G06F16/248Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Remote Sensing (AREA)
  • Navigation (AREA)

Abstract

The invention provides a track drawing method, a track drawing device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring historical marking points and marking time corresponding to a person of a track to be drawn; according to the labeling time sequence, sequentially selecting two adjacent historical labeling points from the historical labeling points as current drawing labeling points, and determining a drawing starting point and a drawing ending point; the method comprises the steps of displaying a drawing starting point and a drawing ending point on a map in a distinguishing mode, drawing a current route track on the map according to drawing time, and drawing the current route track after removing the previous route track if the previous route track exists during drawing of the current route track; and circularly executing the operation of selecting the current drawing marking points from the historical marking points and drawing the current route track until the route tracks corresponding to all the historical marking points are drawn. The invention ensures that the track displayed on the map only keeps the track of the currently drawn route, and solves the problem that the tracks are mutually crossed to form a track grid.

Description

Track drawing method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of security and protection, in particular to a track drawing method and device, electronic equipment and a storage medium.
Background
In the security protection field, can take a candid photograph passerby that passes by through the camera, carry out face identification to the picture of taking a candid photograph, confirm including same personnel after a plurality of picture discernments, need look over this personnel's route orbit sometimes, at this moment, can draw this personnel's route orbit on the map.
In the prior art, when a route track of a person is drawn, all marking points of the person are obtained, and all marking points are sequentially connected on a map according to a time sequence. The simple connection can cause the situation of track line intersection and even overlapping, the more the data volume is, the higher the interlacing density of the track lines is, thereby forming a track grid, being incapable of clearly representing the walking route of the currently drawn track on the map, and having poor visual experience.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a trajectory drawing method, apparatus, electronic device and storage medium that overcome or at least partially solve the above problems.
According to a first aspect of the embodiments of the present invention, there is provided an appearance detection method for a camera module, including:
acquiring historical marking points and marking time corresponding to a person of a track to be drawn;
sequentially selecting two adjacent historical marking points from the historical marking points according to a marking time sequence to serve as a current drawing marking point, and determining a drawing starting point and a drawing ending point in the current drawing marking point;
determining the drawing time corresponding to the current drawing marking point;
the drawing starting point and the drawing ending point are displayed on a map in a distinguishing mode, and the current route track of the person is drawn from the drawing starting point to the drawing ending point on the map according to the drawing time, wherein if the previous route track exists during drawing of the current route track, the previous route track is removed, and then the current route track is drawn;
and circularly executing the operation of selecting the current drawing marking points from the historical marking points and drawing the current route track until the route tracks corresponding to all the historical marking points are drawn.
According to a second aspect of the embodiments of the present invention, there is provided an appearance detecting apparatus for a camera module, including:
the marking point acquisition module is used for acquiring historical marking points and marking time corresponding to the personnel of the track to be drawn;
the current marking point selecting module is used for sequentially selecting two adjacent historical marking points from the historical marking points according to the marking time sequence to serve as a current drawing marking point and determine a drawing starting point and a drawing ending point in the current drawing marking point;
the drawing time determining module is used for determining the drawing time corresponding to the current drawing marking point;
a trajectory drawing module, configured to display the drawing start point and the drawing end point on a map, and draw the current route trajectory of the person from the drawing start point to the drawing end point on the map according to the drawing time, where if a previous route trajectory exists during drawing the current route trajectory, the previous route trajectory is removed, and then the current route trajectory is drawn;
and the track drawing control module is used for circularly executing the operation of selecting the current drawing marking point from the historical marking points and drawing the current route track until the route tracks corresponding to all the historical marking points are drawn.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus, including: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the trajectory rendering method as described in the first aspect.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the trajectory rendering method according to the first aspect.
The track drawing method, the device, the electronic equipment and the storage medium provided by the embodiment of the invention are characterized in that history marking points and marking time corresponding to a person to be drawn a track are obtained, two adjacent history marking points are sequentially selected from the history marking points according to the marking time sequence to be used as current drawing marking points, a drawing starting point and a drawing ending point in the current drawing marking points are determined, the drawing time corresponding to the current drawing marking points is determined, the drawing starting point and the drawing ending point are displayed on a map in a distinguishing way, the current route track of the person is drawn from the drawing starting point to the drawing ending point on the map according to the drawing time, and the current route track is drawn after the previous route track is removed if the previous route track exists during the drawing of the current route track, so that the track displayed on the map is ensured to only keep the current drawn route track, the problem that tracks are intersected with one another to form a track grid is solved, the walking route of the currently drawn track on the map is clearly shown, and the visual experience is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention.
FIG. 1 is a flowchart illustrating steps of a trajectory mapping method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an interface display for drawing a current route trajectory in an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of a trajectory mapping method according to an embodiment of the present invention;
fig. 4 is a block diagram of a track-drawing device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to solve the problems in the prior art, the inventor originally thinks that only one route track is displayed, namely all points can be directly plugged into a drawing library, the drawing library draws the route track and captures a track drawing point transformation event to achieve the operation of clearing the previous route track. However, such a solution has two problems: 1. some drawing libraries do not provide point location conversion events, and the previous route track cannot be cleared; 2. when the previous route track is cleared, the current route track is already drawn and is cleared. To solve the problems in the prior art and the problems originally conceived by the inventors, embodiments of the present invention provide the following solutions.
Fig. 1 is a flowchart of steps of a trajectory mapping method provided by an embodiment of the present invention, where the method may be executed by an electronic device such as a computer, as shown in fig. 1, and the method may include:
step 101, obtaining historical marking points and marking time corresponding to a person of a track to be drawn.
The historical marking point is a coordinate point of a camera of the person on the map, and the marking time is the time of the camera capturing the person.
After the pictures are captured by the cameras arranged in the preset area, people in each picture are determined by carrying out face recognition on each picture, and when the same person is included in the pictures, the historical track of the person can be drawn so as to know the historical track of the person. In order to draw the historical track of the personnel, determining a camera and shooting time of the personnel, taking the coordinate point position of the camera on a map as the historical marking point of the personnel, and taking the shooting time of the personnel as the marking time corresponding to the historical marking point.
In an embodiment of the present invention, the obtaining of the historical annotation point and the annotation time corresponding to the person who wants to draw the trajectory includes: acquiring a history snapshot picture and a corresponding camera mark; carrying out face recognition on the historical snap pictures, and determining the historical snap pictures including the personnel as track pictures; determining a camera identification corresponding to the track picture, and determining an initial marking point corresponding to the track picture according to the camera identification; taking the shooting time of the track picture as the marking time corresponding to the initial marking point; if two or more adjacent initial labeling points in the initial labeling points are the same, combining the two or more adjacent initial labeling points to obtain the historical labeling points corresponding to the personnel, and determining the labeling time corresponding to the combined historical labeling points according to the labeling time corresponding to the two or more adjacent initial labeling points.
The history snapshot picture in the appointed time period can be obtained, and the camera identification corresponding to the camera shooting the history snapshot picture is determined to be used as the camera identification corresponding to the history snapshot picture. And carrying out face recognition on the historical snap pictures, determining the historical snap pictures comprising the personnel, and taking the historical snap pictures comprising the personnel as track pictures. The position of each camera on the map is fixed, so that the initial marking point corresponding to the track picture can be determined according to the camera identification, namely, the coordinate point position corresponding to the camera identification for shooting the track picture is used as the initial marking point corresponding to the track picture. The personnel can stop in a certain position, therefore, the camera of same position can be taken a candid photograph many times personnel, in order to avoid appearing in the phenomenon that a mark point pauses when drawing the orbit, can go on the initial mark point to coincide and handle, be about to two or more adjacent initial mark points that are the same merge into a mark point, merge the back to all initial mark points, obtain the historical mark point that personnel correspond. After two or more adjacent initial labeling points are combined into one historical labeling point, the labeling time corresponding to any one of the two or more adjacent initial labeling points can be used as the labeling time corresponding to the historical labeling point.
Through carrying out de-coincidence and processing on the initial labeling points, two adjacent history labeling points in the obtained history labeling points are different, so that the phenomenon that the same history labeling point is stuck cannot occur in the subsequent history track drawing process, and the animation continuity of track drawing is ensured.
And step 102, sequentially selecting two adjacent historical marking points from the historical marking points according to the marking time sequence to serve as a current drawing marking point, and determining a drawing starting point and a drawing ending point in the current drawing marking point.
The history marking points can be arranged according to the sequence of the marking time, so that two adjacent history marking points can be sequentially selected according to the arrangement sequence to serve as a current drawing marking point, a previous history marking point in the two adjacent history marking points serves as a drawing starting point, and a next history marking point in the two adjacent history marking points serves as a drawing ending point.
For example, if the history annotation points arranged according to the annotation time sequence include A, B, C, D, the two adjacent history annotation points selected for the first time are a and B, the two adjacent history annotation points selected for the second time are B and C, and the two adjacent history annotation points selected for the third time are C and D.
And 103, determining the drawing time corresponding to the current drawing annotation point.
And the drawing time is the drawing time required for currently drawing the route track between the labeling points.
The drawing time of the route track corresponding to each two adjacent historical annotation points can be the same or different. For example, the drawing time corresponding to the current drawing annotation point can be determined according to the attention level corresponding to the current drawing annotation point, and the drawing time set by the user can be received in real time as the drawing time corresponding to the current drawing annotation point. The drawing time may be, for example, 3 seconds, 4 seconds, 5 seconds, or the like.
In an embodiment of the present invention, the determining a drawing time corresponding to the current drawing annotation point optionally includes: determining the attention level corresponding to the current drawing marking point; and determining the drawing time corresponding to the current drawing annotation point according to the attention level and a preset corresponding relation between the attention level and the drawing time, wherein in the corresponding relation, the drawing time corresponding to the attention level is from long to short according to the sequence from high to low of the attention level.
The coordinate points where the cameras are located can be classified in advance, that is, corresponding attention levels can be set for the positions of the cameras, for example, three levels of focus attention, general attention and no attention can be set, and other levels can be set according to needs. And the current drawing and labeling point comprises a drawing starting point and a drawing ending point, attention levels of the drawing starting point and the drawing ending point are respectively determined, and an attention level with a higher attention level in the drawing starting point and the drawing ending point is used as an attention level corresponding to the current drawing and labeling point. And storing the corresponding relation between the attention level and the drawing time in advance, inquiring the corresponding relation after determining the attention level corresponding to the current drawing attention, and taking the drawing time corresponding to the determined attention level as the drawing time of the current drawing annotation point. According to the sequence of the attention levels from high to low, the drawing time corresponding to the attention levels is from long to short, and when the historical tracks corresponding to the marking points with higher attention levels are drawn, the drawing time is longer, so that the user can focus on the tracks.
When the attention level corresponding to the historical annotation point is low, the historical annotation point can be deleted, that is, the historical annotation point with low attention level is not embodied. For example, if the attention level of one history annotation point is attention-free, the history annotation point with the attention level of attention-free can be deleted when the history annotation point is determined.
In an embodiment of the present invention, after determining the attention level corresponding to the current drawing annotation point, the method may further include: and acquiring a prompt tone corresponding to the attention level, and playing the prompt tone.
The user can also preset a prompt tone corresponding to the attention level, after the attention level corresponding to the current drawing marking point is determined, the prompt tone corresponding to the attention level is obtained, and the prompt tone is played, so that the user can be reminded to pay attention to the track being drawn.
And 104, displaying the drawing starting point and the drawing ending point on a map respectively, and drawing the current route track of the personnel from the drawing starting point to the drawing ending point on the map according to the drawing time, wherein if the previous route track exists during drawing the current route track, the previous route track is removed, and then the current route track is drawn.
After determining a drawing starting point and a drawing marking point in the current drawing marking point, the drawing starting point and the drawing ending point are displayed differently from the historical marking points which are not drawn, and the drawing starting point and the drawing ending point can also be displayed identically with the historical marking points which are drawn, so that the current drawing marking point and the marked points which are drawn are displayed differently from the historical marking points which are not drawn, and a user can know the marking points which are drawn. For example, the drawn history annotation point and the current drawing annotation point are highlighted.
And determining the current drawing speed according to the drawing time corresponding to the current drawing marking point and the distance between the current drawing marking points, and calling a track processing function to draw the current route track of the person from the drawing starting point to the drawing ending point on the map at the current drawing speed. If the last route track exists during the drawing of the current route track, namely the route track with the drawing starting point in the current drawing marking point as the end point exists, the current route track is drawn after the last route track is cleared, the track displayed on the map is ensured to only keep the currently drawn route track, the problem that track grids are formed by the tracks in a crossed mode is solved, the track processing function corresponding to the last route track is destroyed while the last route track is cleared, and the influence on the drawing of the current route track is avoided. And destroying the track processing function corresponding to the previous route track, namely deleting all instances created by the track processing function when the previous route track is drawn, or setting the instances created by the track processing function when the previous route track is drawn to be null.
In the embodiment of the invention, a track processing function is called once when a route track is drawn, namely, after a current drawn marking point to be drawn is determined, the track processing function is called to draw the track of the current drawn marking point to obtain the current route track, after the current route track is drawn, when the next route track is drawn, the current route track is cleared, the track processing function for drawing the current route track is destroyed, and then the track processing function is called according to two marking points of the next route track to draw the next route track. That is, the annotation points transferred to the trajectory processing function each time are only two annotation points corresponding to the currently drawn route trajectory, not all annotation points, thereby improving the controllability of trajectory drawing.
As shown in fig. 2, the history annotation points include a history annotation point 1, a history annotation point 2 and a history annotation point 3, and when the route tracks from the history annotation point 2 to the history annotation point 3 are drawn, the route tracks from the history annotation point 1 to the history annotation point 2 are removed, so that the currently drawn route track is relatively clear, and the problem of unclear current route track caused by intersection with other route tracks is avoided.
And 105, judging whether the route tracks corresponding to the historical annotation points are drawn completely, if not, circularly executing the steps 102 to 105, and if so, ending.
And judging whether the route tracks corresponding to all the historical marking points are drawn or not, if all the route tracks corresponding to all the historical marking points are drawn, finishing the drawing, and if any route track corresponding to the historical marking points is not drawn, circularly executing the steps 102 to 105 until all the route tracks corresponding to all the historical marking points are drawn.
After the route tracks corresponding to all the history annotation points are completely drawn, a replay button can be displayed, and when the replay button is detected to be operated by the user, and a replay instruction is determined to be received, the drawing process of the tracks is replayed, namely, the steps 102 to 105 are executed again.
The method for drawing a historical track provided by this embodiment includes obtaining historical annotation points and annotation time corresponding to a person to be drawn a track, sequentially selecting two adjacent historical annotation points from the historical annotation points according to an annotation time sequence to serve as a current drawing annotation point, determining a drawing starting point and a drawing ending point in the current drawing annotation point, determining a drawing time corresponding to the current drawing annotation point, displaying the drawing starting point and the drawing ending point on a map in a distinguishing manner, drawing the current route track of the person from the drawing starting point to the drawing ending point according to the drawing time, and drawing the current route track after removing the previous route track if the previous route track exists during drawing the current route track, so that the track displayed on the map only keeps the current drawn route track, and the problem that a track grid is formed by mutual intersection between tracks is solved, the method and the device realize the clear representation of the walking route of the currently drawn track on the map, and improve the visual experience.
On the basis of the above technical solution, the method may further optionally include: and if the drawing time set by the user is received when the current route track of the person is drawn from the drawing starting point to the drawing ending point on the map, taking the received drawing time as the drawing time of the next route track of the current route track.
An interface for setting the drawing time by the user can be arranged on the map, and the drawing time set by the user is received through the interface. When the current route track of the personnel is drawn from the drawing starting point to the drawing ending point on the map, the user can also set the drawing time through the interface, and when the drawing time set by the user is received, the received drawing time is taken as the drawing time of the next route track of the current route track, so that when the next route track is drawn, the drawing time of the next route track is taken as the received drawing time, the drawing time is changed in the drawing process, the drawing speed is changed, and the requirements of different scenes can be met.
On the basis of the above technical solution, the method may further optionally include: and recording the drawing starting point and the drawing ending point when the current route track of the person is drawn from the drawing starting point to the drawing ending point on the map.
When the current route track is drawn on the map, the drawing starting point and the drawing ending point corresponding to the current route track are recorded, and when an abnormal condition occurs, the drawing can be redrawn according to the drawing starting point and the drawing ending point without starting from the first historical marking point, and the drawing can be suspended according to the instruction of a user.
On the basis of the above technical solution, the method may further optionally include: and if an error occurs when the current route track of the person is drawn from the drawing starting point to the drawing ending point on the map, redrawing the current route track from the drawing starting point to the drawing ending point on the map according to the recorded drawing starting point and the recorded drawing ending point.
If an error occurs in the process of drawing the current route track from the drawing starting point to the drawing ending point on the map, such as network disconnection, the error is captured, a corresponding log is recorded, and the current route track is redrawn from the drawing starting point to the drawing ending point after the error is corrected, so that the redrawing from the first historical marking point is not needed when the error is encountered in the track drawing process, the redrawing is started only from the route track when the error is encountered, the track drawing time when the error is encountered is saved, and the effect of reducing the user perception of the abnormality is achieved.
On the basis of the above technical solution, the method may further optionally include: when the current route track of the person is drawn from the drawing starting point to the drawing ending point on the map, if a drawing pause instruction is received, the drawing is paused after the current route track is drawn; and if a drawing starting instruction is received, drawing the next route track from the recorded drawing termination point.
The method comprises the steps that in the process of drawing a current route track from a drawing starting point to a drawing ending point on a map, a user can pause drawing, when an electronic device executing the historical track drawing method receives a drawing pause instruction, the current route track is drawn completely, drawing is paused after the current route track is drawn completely, and the current route track is displayed on the map, so that the user can visually watch the current route track. After the drawing is suspended, the user can restart the drawing, and after the electronic equipment executing the historical track drawing method receives a drawing starting instruction, the electronic equipment starts to draw the next route track from the recorded drawing termination point and clears the current route track. The purpose of pausing and continuing to draw the historical track in the drawing process of the historical track is achieved by drawing the track between the two marked points one by one and recording the current drawing position.
Fig. 3 is a flowchart of steps of a trajectory mapping method provided by an embodiment of the present invention, where the method may be executed by an electronic device such as a computer, as shown in fig. 3, and the method may include:
step 301, obtaining historical marking points and marking time corresponding to the person of the track to be drawn.
Step 302, adding the historical marking points and the marking time into a point position list.
The point location list is used for recording historical marking points and marking time of a person who needs to draw a historical track.
In a real-time monitoring scene, after the historical marking points of the personnel are obtained, the historical marking points can be added into a point location list, when a route track is drawn subsequently, two adjacent historical marking points are sequentially taken from the point location list to draw the track, and the real-time route track of the personnel can be drawn.
Step 303, sequentially selecting two adjacent historical marking points from the point location list according to the marking time sequence, taking the two adjacent historical marking points as a current drawing marking point, and determining a drawing starting point and a drawing ending point in the current drawing marking point.
When the current drawing marking point is determined, two adjacent historical marking points are sequentially selected from the point location list according to the marking time sequence.
For example, A, B, C, D is the history annotation point determined at the beginning, the four history annotation points are added into the point location list according to the annotation time sequence, two adjacent history annotation points selected from the point location list for the first time are A and B, and a route track from A to B is drawn; after the route track from A to B is drawn, two adjacent historical marking points selected from the point location list for the second time are B and C, the route track from B to C is drawn, when the route track from B to C is drawn, a new historical marking point E is obtained, the new historical marking point E is added into the point location list, and after D; after the route track from B to C is drawn, selecting two adjacent historical marking points C and D from the point location list for the third time, and drawing the route track from C to D; and after the route track from the C to the D is drawn, selecting two adjacent historical marking points D and E from the point location list for the fourth time, and drawing the route track from the D to the E.
And step 304, determining the drawing time corresponding to the current drawing annotation point.
And 305, displaying the drawing starting point and the drawing ending point on a map respectively, and drawing the current route track of the person from the drawing starting point to the drawing ending point on the map according to the drawing time, wherein if the previous route track exists during drawing the current route track, the previous route track is removed, and then the current route track is drawn.
Step 306, in the process of drawing the current route track, if new historical marking points and marking time are obtained, adding the new historical marking points and marking time to the point location list.
In the process of drawing the current route track, new historical marking points and marking time can be obtained, the obtained new historical marking points and marking time are added into the point location list, the route track corresponding to the new historical marking points is added on the basis of the original route track, and the dynamic state of personnel can be monitored in real time.
And 307, judging whether the route tracks corresponding to the historical annotation points are drawn completely, if not, circularly executing the step 303 to the step 307, and if so, ending the step.
According to the historical track drawing method provided by the embodiment, the obtained historical annotation point is added into the point location list, and the historical annotation point is taken from the point location list for drawing when the track is drawn, so that in the process of drawing the current route track, if a new historical annotation point is obtained, the new historical annotation point can be added into the point location list, thereby realizing dynamic addition of the historical annotation point and dynamic drawing of the route track, and meeting the requirement of real-time monitoring.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Fig. 4 is a block diagram of a track-drawing device according to an embodiment of the present invention, and as shown in fig. 4, the track-drawing device may include:
a marking point obtaining module 401, configured to obtain a historical marking point and marking time corresponding to a person who wants to draw a track;
a current annotation point selection module 402, configured to sequentially select two adjacent historical annotation points from the historical annotation points according to an annotation time sequence, to serve as a current drawing annotation point, and determine a drawing starting point and a drawing ending point in the current drawing annotation point;
a drawing time determining module 403, configured to determine a drawing time corresponding to the current drawing annotation point;
a trajectory drawing module 404, configured to display the drawing start point and the drawing end point on a map, and draw the current route trajectory of the person from the drawing start point to the drawing end point on the map according to the drawing time, where if a previous route trajectory exists during drawing the current route trajectory, the previous route trajectory is removed, and then the current route trajectory is drawn;
and a track drawing control module 405, configured to circularly execute the above operations of selecting a current drawing marking point from the historical marking points and drawing a current route track until route tracks corresponding to all the historical marking points are drawn.
Optionally, the annotation point obtaining module includes:
the snapshot image acquisition unit is used for acquiring historical snapshot images and corresponding camera identifications;
the track picture determining unit is used for carrying out face recognition on the historical snap pictures and determining the historical snap pictures comprising the personnel as track pictures;
the initial annotation point determining unit is used for determining a camera identification corresponding to the track picture and determining an initial annotation point corresponding to the track picture according to the camera identification;
the marking time determining unit is used for taking the shooting time of the track picture as the marking time corresponding to the initial marking point;
and the merging and de-duplicating unit is used for merging two or more adjacent initial marking points to obtain the historical marking points corresponding to the personnel if the two or more adjacent initial marking points in the initial marking points are the same, and determining the marking time corresponding to the merged historical marking points according to the marking time corresponding to the two or more adjacent initial marking points.
Optionally, the apparatus further comprises:
and the drawing position recording module is used for recording the drawing starting point and the drawing ending point when the current route track of the person is drawn from the drawing starting point to the drawing ending point on a map.
Optionally, the apparatus further comprises:
and the error processing module is used for redrawing the current route track from the drawing starting point to the drawing ending point on the map according to the recorded drawing starting point and drawing ending point if an error occurs when the current route track of the person is drawn from the drawing starting point to the drawing ending point on the map.
Optionally, the apparatus further comprises:
the drawing suspension module is used for suspending drawing after the current route track is drawn when a drawing suspension instruction is received when the current route track of the person is drawn from the drawing starting point to the drawing ending point on a map;
and the drawing starting module is used for drawing the next route track from the recorded drawing ending point if a drawing starting instruction is received.
Optionally, the drawing time determining module includes:
an attention level determining unit, configured to determine an attention level corresponding to the current drawing annotation point;
and the drawing time determining unit is used for determining the drawing time corresponding to the current drawing annotation point according to the attention level and a preset corresponding relation between the attention level and the drawing time, wherein in the corresponding relation, the drawing time corresponding to the attention level is from long to short according to the sequence from high to low of the attention level.
Optionally, the apparatus further comprises:
and the prompt tone playing module is used for acquiring the prompt tone corresponding to the attention grade after the attention grade corresponding to the current drawing marking point is determined, and playing the prompt tone.
Optionally, the apparatus further comprises:
and the drawing time setting module is used for receiving the drawing time set by the user when the current route track of the person is drawn from the drawing starting point to the drawing ending point on the map, and taking the received drawing time as the drawing time of the next route track of the current route track.
Optionally, the apparatus further comprises:
the first annotation point adding module is used for adding the historical annotation points and the annotation time into a point location list;
the second annotation point adding module is used for adding a new historical annotation point and annotation time into the point location list if the new historical annotation point and the new annotation time are obtained in the process of drawing the current route track;
the current annotation point selection module comprises:
and the current marking point selecting unit is used for sequentially selecting two adjacent historical marking points from the point position list according to the marking time sequence to serve as current drawing marking points.
The track drawing device provided by this embodiment obtains, by a annotation point obtaining module, a historical annotation point and an annotation time corresponding to a person who wants to draw a track, a current annotation point selecting module sequentially selects two adjacent historical annotation points from the historical annotation points according to an annotation time sequence as a current drawing annotation point, and determines a drawing start point and a drawing end point in the current drawing annotation point, a drawing time determining module determines a drawing time corresponding to the current drawing annotation point, and a track drawing module displays the drawing start point and the drawing end point on a map, and draws the current route track of the person from the drawing start point to the drawing end point on the map according to the drawing time, and if there is a previous route track when drawing the current route track, the current route track is drawn after the previous route track is removed, thereby ensuring that only the currently drawn route track displayed on the map is kept, the problem that tracks are intersected with one another to form a track grid is solved, the walking route of the currently drawn track on the map is clearly shown, and the visual experience is improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Further, according to an embodiment of the present invention, there is provided an electronic apparatus including: a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the trajectory drawing method of the aforementioned embodiments.
According to an embodiment of the present invention, there is also provided a computer readable storage medium including, but not limited to, a disk memory, a CD-ROM, an optical memory, etc., having stored thereon a computer program which, when executed by a processor, implements the trajectory drawing method of the foregoing embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The track drawing method, the track drawing device, the electronic device and the storage medium provided by the invention are described in detail, specific examples are applied in the description to explain the principle and the implementation of the invention, and the description of the examples is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A trajectory drawing method, comprising:
acquiring historical marking points and marking time corresponding to a person of a track to be drawn;
sequentially selecting two adjacent historical marking points from the historical marking points according to a marking time sequence to serve as a current drawing marking point, and determining a drawing starting point and a drawing ending point in the current drawing marking point;
determining the drawing time corresponding to the current drawing marking point;
the drawing starting point and the drawing ending point are displayed on a map in a distinguishing mode, and the current route track of the person is drawn from the drawing starting point to the drawing ending point on the map according to the drawing time, wherein if the previous route track exists during drawing of the current route track, the previous route track is removed, and then the current route track is drawn;
and circularly executing the operation of selecting the current drawing marking points from the historical marking points and drawing the current route track until the route tracks corresponding to all the historical marking points are drawn.
2. The method of claim 1, wherein the obtaining of the historical annotation point and the annotation time corresponding to the person who wants to draw the trajectory comprises:
acquiring a history snapshot picture and a corresponding camera mark;
carrying out face recognition on the historical snap pictures, and determining the historical snap pictures including the personnel as track pictures;
determining a camera identification corresponding to the track picture, and determining an initial marking point corresponding to the track picture according to the camera identification;
taking the shooting time of the track picture as the marking time corresponding to the initial marking point;
if two or more adjacent initial labeling points in the initial labeling points are the same, combining the two or more adjacent initial labeling points to obtain the historical labeling points corresponding to the personnel, and determining the labeling time corresponding to the combined historical labeling points according to the labeling time corresponding to the two or more adjacent initial labeling points.
3. The method of claim 1, further comprising:
and recording the drawing starting point and the drawing ending point when the current route track of the person is drawn from the drawing starting point to the drawing ending point on the map.
4. The method of claim 3, further comprising:
and if an error occurs when the current route track of the person is drawn from the drawing starting point to the drawing ending point on the map, redrawing the current route track from the drawing starting point to the drawing ending point on the map according to the recorded drawing starting point and the recorded drawing ending point.
5. The method of claim 3, further comprising:
when the current route track of the person is drawn from the drawing starting point to the drawing ending point on the map, if a drawing pause instruction is received, the drawing is paused after the current route track is drawn;
and if a drawing starting instruction is received, drawing the next route track from the recorded drawing termination point.
6. The method according to claim 1, wherein the determining the drawing time corresponding to the current drawing annotation point comprises:
determining the attention level corresponding to the current drawing marking point;
and determining the drawing time corresponding to the current drawing annotation point according to the attention level and a preset corresponding relation between the attention level and the drawing time, wherein in the corresponding relation, the drawing time corresponding to the attention level is from long to short according to the sequence from high to low of the attention level.
7. The method of claim 6, further comprising, after determining the attention level corresponding to the current drawn annotation point:
and acquiring a prompt tone corresponding to the attention level, and playing the prompt tone.
8. The method of claim 1, further comprising:
and if the drawing time set by the user is received when the current route track of the person is drawn from the drawing starting point to the drawing ending point on the map, taking the received drawing time as the drawing time of the next route track of the current route track.
9. The method of claim 1, further comprising:
adding the historical marking points and the marking time into a point location list;
in the process of drawing the current route track, if new historical marking points and marking time are obtained, the new historical marking points and marking time are added into the point location list;
according to the labeling time sequence, two adjacent history labeling points are sequentially selected from the history labeling points to serve as current drawing labeling points, and the method comprises the following steps:
and sequentially selecting two adjacent historical marking points from the point position list according to the marking time sequence to serve as current drawing marking points.
10. A trajectory drawing device, comprising:
the marking point acquisition module is used for acquiring historical marking points and marking time corresponding to the personnel of the track to be drawn;
the current marking point selecting module is used for sequentially selecting two adjacent historical marking points from the historical marking points according to the marking time sequence to serve as a current drawing marking point and determine a drawing starting point and a drawing ending point in the current drawing marking point;
the drawing time determining module is used for determining the drawing time corresponding to the current drawing marking point;
a trajectory drawing module, configured to display the drawing start point and the drawing end point on a map, and draw the current route trajectory of the person from the drawing start point to the drawing end point on the map according to the drawing time, where if a previous route trajectory exists during drawing the current route trajectory, the previous route trajectory is removed, and then the current route trajectory is drawn;
and the track drawing control module is used for circularly executing the operation of selecting the current drawing marking point from the historical marking points and drawing the current route track until the route tracks corresponding to all the historical marking points are drawn.
11. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the trajectory rendering method according to any one of claims 1-9.
12. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the trajectory rendering method according to any one of claims 1-9.
CN201911108620.6A 2019-11-13 2019-11-13 Track drawing method and device, electronic equipment and storage medium Pending CN111061822A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911108620.6A CN111061822A (en) 2019-11-13 2019-11-13 Track drawing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911108620.6A CN111061822A (en) 2019-11-13 2019-11-13 Track drawing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111061822A true CN111061822A (en) 2020-04-24

Family

ID=70297738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911108620.6A Pending CN111061822A (en) 2019-11-13 2019-11-13 Track drawing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111061822A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112749638A (en) * 2020-12-28 2021-05-04 深兰人工智能(深圳)有限公司 Error screening method for visual recognition track and visual recognition method for sales counter

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112749638A (en) * 2020-12-28 2021-05-04 深兰人工智能(深圳)有限公司 Error screening method for visual recognition track and visual recognition method for sales counter

Similar Documents

Publication Publication Date Title
CN106664465B (en) System for creating and reproducing augmented reality content and method using the same
CN104284145B (en) Track servicing unit, tracking accessory system and tracking householder method
EP2860968B1 (en) Information processing device, information processing method, and program
CN105306899B (en) Method and device for processing monitoring video
CN104284147A (en) Tracking assistance device, a tracking assistance system and a tracking assistance method
CN106464773B (en) Augmented reality device and method
EP3249651B1 (en) Generating a summary video sequence from a source video sequence
US20160321833A1 (en) Method and apparatus for generating moving photograph based on moving effect
CN110740290B (en) Monitoring video previewing method and device
CN106375860A (en) Video playing method and device, and terminal and server
CN111263170A (en) Video playing method, device and equipment and readable storage medium
CN105808231B (en) System and method for recording and playing script
CN111061822A (en) Track drawing method and device, electronic equipment and storage medium
JP6834372B2 (en) Information processing equipment, information processing systems, information processing methods and programs
EP4174771A1 (en) Implementation method and apparatus for behavior analysis of moving target, and electronic device
JP6214762B2 (en) Image search system, search screen display method
US8866970B1 (en) Method for real-time processing of a video sequence on mobile terminals
CN113706720A (en) Image display method and device
CN111954022B (en) Video playing method and device, electronic equipment and readable storage medium
CN114339390A (en) Video editing method, device, equipment and storage medium
JP6478643B2 (en) Information processing apparatus, information processing method, and program
JP3907344B2 (en) Movie anchor setting device
JP2016036106A (en) Information processing apparatus, information processing method and program
JP2014204411A (en) Conference recording system, conference recording device, conference recording-reproduction method, and computer program
US9196068B2 (en) Projector system, and method for drawings

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