CN111552750A - Dynamic tracking display method, terminal and storage medium - Google Patents

Dynamic tracking display method, terminal and storage medium Download PDF

Info

Publication number
CN111552750A
CN111552750A CN202010286784.4A CN202010286784A CN111552750A CN 111552750 A CN111552750 A CN 111552750A CN 202010286784 A CN202010286784 A CN 202010286784A CN 111552750 A CN111552750 A CN 111552750A
Authority
CN
China
Prior art keywords
circumscribed rectangle
side length
convex polygon
dynamic tracking
display method
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
CN202010286784.4A
Other languages
Chinese (zh)
Other versions
CN111552750B (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.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew Technologies 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 Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN202010286784.4A priority Critical patent/CN111552750B/en
Publication of CN111552750A publication Critical patent/CN111552750A/en
Application granted granted Critical
Publication of CN111552750B publication Critical patent/CN111552750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/14Receivers specially adapted for specific applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Remote Sensing (AREA)
  • Databases & Information Systems (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Processing Or Creating Images (AREA)
  • Instructional Devices (AREA)

Abstract

The invention discloses a dynamic tracking display method, a terminal and a storage medium, wherein the dynamic tracking display method comprises the following steps: acquiring the geographical position sent by each mobile terminal in real time; screening the obtained geographic positions, and forming convex polygons by the screened geographic positions through a preset algorithm; constructing a circumscribed rectangle according to the convex polygon, and expanding the circumscribed rectangle according to a preset proportion; and embedding the GIS map into the expanded circumscribed rectangle according to the adaptive DPI, and tracking and displaying the geographic position in the expanded circumscribed rectangle in real time. The method comprises the steps of screening according to the longitude and latitude of the geographic position sent by each mobile terminal, and removing the geographic position which does not accord with the longitude and latitude standard; and constructing a convex polygon and a corresponding external rectangle according to a convex hull algorithm, and embedding the GIS map into the expanded external rectangle, so that a plurality of dynamic moving positions are presented at an optimal visual angle, and a dynamic tracking function is realized.

Description

Dynamic tracking display method, terminal and storage medium
Technical Field
The present invention relates to the field of terminal applications, and in particular, to a dynamic tracking display method, a terminal, and a storage medium.
Background
On an emergency dispatching command large screen, positions of a plurality of GPS mobile terminals are often tracked on a GIS map in real time; the traditional tracking display mode is as follows: the map is firstly narrowed to the level that all the GPS mobile terminals can be seen, and then the visible area of the map is adjusted at any time along with the movement of the GPS mobile terminals.
The disadvantages of this tracking display method are: when the position distance of an individual GPS mobile terminal is far, some GPS mobile terminals with closer distances can be overlapped after a map is reduced, and whether all the GPS mobile terminals are positioned on the same screen or not can not be distinguished; when the GPS mobile terminal continuously changes the position, the map view angle needs to be continuously adjusted to ensure that all GPS mobile terminals can be seen.
When the position reported by some GPS mobile terminals is abnormal (invalid longitude and latitude or large offset), the position information cannot be acquired in time.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention aims to solve the technical problem that the invention provides a dynamic tracking display method, a terminal and a storage medium aiming at the defects of the prior art.
The technical scheme adopted by the invention for solving the technical problem is as follows:
in a first aspect, the present invention provides a dynamic tracking display method, wherein the dynamic tracking display method includes the following steps:
acquiring the geographical position sent by each mobile terminal in real time;
screening the obtained geographic positions, and forming convex polygons by the screened geographic positions through a preset algorithm;
constructing a circumscribed rectangle according to the convex polygon, and expanding the circumscribed rectangle according to a preset proportion;
and embedding the GIS map into the expanded circumscribed rectangle according to the adaptive DPI, and tracking and displaying the geographic position in the expanded circumscribed rectangle in real time.
Further, still include:
and sending a request for acquiring the geographic position to each mobile terminal so as to acquire the authority for tracking the geographic position of each mobile terminal.
Further, the screening of the obtained geographic location specifically includes the following steps:
judging whether the longitude and latitude of the acquired geographic position meet the longitude and latitude standard of the designated area;
and when the longitude and latitude of the acquired geographic position meet the longitude and latitude standard of the specified area, selecting the meeting geographic position as an effective geographic position to obtain the screened geographic position.
Further, the step of forming the screened geographical positions into convex polygons by a preset algorithm specifically comprises the following steps:
selecting one of the screened geographical positions as a fixed point;
and constructing a convex polygon containing the screened geographical position through a convex hull algorithm and the fixed point.
Further, constructing a circumscribed rectangle according to the convex polygon, and expanding the circumscribed rectangle according to a preset proportion, specifically comprising the following steps:
removing the side length which does not meet the condition in the convex polygon;
forming a new convex polygon according to the remaining side lengths, and constructing a circumscribed rectangle according to the new convex polygon;
and expanding the circumscribed rectangle according to a preset proportion.
Further, the removing of the side length which does not meet the condition in the convex polygon specifically includes the following steps:
calculating the average side length according to the side length values of the convex polygons, and comparing the average side length with a preset threshold value;
when the average side length is larger than the preset threshold value, selecting the average side length as a comparison length;
and comparing each side length of the convex polygon with the comparison length, and removing the side length which is greater than the comparison length.
Further, the calculating an average side length according to each side length value of the convex polygon and comparing the average side length with a preset threshold value further includes:
and when the preset threshold is larger than the average edge length, selecting the preset threshold as a comparison length.
Further, the GIS map is embedded into the expanded circumscribed rectangle according to the adaptive DPI, and the geographic position in the expanded circumscribed rectangle is tracked and displayed in real time, and the method specifically comprises the following steps:
acquiring an application program interface of the GIS map;
embedding the GIS map into the expanded circumscribed rectangle through the application program interface, and adjusting the GIS map according to adaptive DPI;
and tracking and displaying the geographical position in the enlarged circumscribed rectangle in real time.
In a second aspect, the present invention further provides a terminal, which includes a processor, and a memory connected to the processor, where the memory stores a dynamic tracking display program, and the dynamic tracking display program is used to implement the operation of the dynamic tracking display method according to the first aspect when executed by the processor.
In a third aspect, the present invention further provides a storage medium, wherein the storage medium stores a dynamic tracking display program, and the dynamic tracking display program is used for implementing the operation of the dynamic tracking display method according to the first aspect when executed by a processor.
The invention adopts the technical scheme and has the following effects:
the method comprises the steps of screening according to the longitude and latitude of the geographic position sent by each mobile terminal, and removing the geographic position which does not accord with the longitude and latitude standard; and constructing a convex polygon and a corresponding external rectangle according to a convex hull algorithm, and embedding the GIS map into the expanded external rectangle, so that a plurality of dynamic moving positions are presented at an optimal visual angle, and a dynamic tracking function is realized.
Drawings
FIG. 1 is a flowchart illustrating a dynamic tracking display method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of geographical locations reported by mobile terminals in the embodiment of the present invention.
FIG. 3 is a schematic diagram of a convex polygon formed by a convex hull algorithm according to an embodiment of the present invention.
FIG. 4 is a schematic diagram of a new convex polygon formed in an embodiment of the present invention (after removing non-conforming side lengths).
FIG. 5 is a schematic diagram of a circumscribed rectangle for constructing a new convex polygon in an embodiment of the present invention.
FIG. 6 is a schematic diagram of an enlarged circumscribed rectangle in an embodiment of the present invention.
Fig. 7 is a flowchart of processing actually applied in the embodiment of the present invention.
Fig. 8 is a functional schematic diagram of a terminal in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example one
In a traditional tracking and positioning mode, for positioning of multiple mobile terminals, a map needs to be reduced to a level where all the mobile terminals can be seen, and then a visible area of the map is adjusted; since the map is reduced as much as possible, the location points of the mobile terminals at a short distance are superimposed, the number of the tracked mobile terminals cannot be known exactly, and the exact location of each mobile terminal cannot be known exactly.
In order to present an optimal display view angle of a plurality of tracking point positions and accurately display a plurality of tracking point geographical positions, the present embodiment provides a dynamic tracking display method, which is applied in a terminal, including but not limited to: mobile terminals, tablets, computers and the like.
As shown in fig. 1, in an implementation manner of this embodiment, the dynamic tracking display method includes the following steps:
and step S100, acquiring the geographical position sent by each mobile terminal in real time.
In this embodiment, before obtaining the geographic position sent by each mobile terminal, it is further required to obtain the tracking authority of each mobile terminal, that is, after each mobile terminal grants the terminal tracking authority, the geographic position reported by each mobile terminal can be obtained.
Specifically, when the tracking right of each mobile terminal is acquired, the terminal sends a request for acquiring the geographic position to each mobile terminal, and when each mobile terminal receives the request sent by the terminal, the GPS function is started according to the operation of the corresponding user, and the right of the terminal for tracking the geographic position is granted.
Namely, before the step S100, the method further includes the following steps:
and S001, sending a request for acquiring the geographic position to each mobile terminal so as to acquire the authority for tracking the geographic position of each mobile terminal.
In this embodiment, after the GPS function is turned on, each mobile terminal (the mobile terminal to which the terminal tracking authority has been granted) sends geographic location information to the terminal in real time, so that the terminal can obtain geographic locations sent by the mobile terminals in real time, and therefore, the geographic locations sent by the mobile terminals are screened to obtain effective geographic locations, and the effective geographic locations are tracked.
As shown in fig. 1, in an implementation manner of this embodiment, the dynamic tracking display method further includes the following steps:
and S200, screening the acquired geographic positions, and forming convex polygons by the screened geographic positions through a preset algorithm.
In this embodiment, after the terminal acquires the geographic position sent by each mobile terminal, the acquired geographic position needs to be screened to obtain an effective geographic position; the effective geographic position means that the geographic position uploaded by each mobile terminal meets the longitude and latitude requirement, namely the longitude and latitude uploaded by each mobile terminal is within the longitude and latitude range of the current display map.
Specifically, when the obtained geographic location is screened, it is necessary to determine whether the longitude and latitude of the obtained geographic location meet the longitude and latitude standard of a specified area (i.e., a currently displayed map), for example, determine whether the longitude of the obtained geographic location is within the longitude range of the currently displayed map, and determine whether the latitude of the obtained geographic location is within the latitude range of the currently displayed map.
When the longitude and latitude of the obtained geographic position meets the longitude and latitude standard of the specified area, selecting the meeting geographic position as an effective geographic position to obtain the screened geographic position; and when the longitude and latitude of the acquired geographic position do not accord with the longitude and latitude standard of the appointed area, deleting the non-conforming geographic position, thereby removing the invalid geographic position or the remote geographic position.
That is, in the step S200, the screening of the obtained geographic location specifically includes the following steps:
step S211, judging whether the longitude and latitude of the acquired geographic position meet the longitude and latitude standard of the designated area;
step S212, when the longitude and latitude of the acquired geographic position meets the longitude and latitude standard of the specified area, selecting the meeting geographic position as an effective geographic position to obtain the screened geographic position.
Further, after the obtained geographic positions are screened, the screened geographic positions can be combined into a convex polygon through a preset algorithm, so that further screening is performed according to the convex polygon, and a new convex polygon with a smaller range is obtained.
Specifically, as shown in fig. 2, it is assumed that there are 6 mobile terminals (point A, B, C, D, E, F shown in the figure) reporting the geographic location at the same time, where the geographic location between the mobile terminals A, B, C, D, E is relatively close, and the geographic location of the mobile terminal F is relatively far; it is assumed that the geographic locations of the 6 mobile terminals are valid geographic locations, that is, the longitude and latitude uploaded by the 6 mobile terminals are valid, and there is no need to remove any geographic location.
At this time, one geographical position is selected as a fixed point from the geographical positions of the 6 mobile terminals, and a convex polygon is formed on the basis of the fixed point; when the convex polygon is composed, the geographical location points of the 6 mobile terminals may be composed into the convex polygon through a convex hull algorithm (i.e., the preset algorithm).
The processing process of the convex hull algorithm comprises the following steps: giving N points in a plane, selecting some points as vertexes to form a convex polygon, wherein the formed convex polygon can just surround all the N points; for example, a point at the edge is found first, cosine values of the point and other points are calculated from the point, and the cosine values obtained by calculation are sorted; and then, judging whether the points corresponding to the cosine values are connected in series in a counterclockwise sequence, and connecting the points meeting the conditions to obtain the final convex polygon.
After the convex hull algorithm processing, as shown in fig. 3, the convex polygon shown in the figure is obtained, and it can be seen that the convex polygon shown in the figure contains all the screened geographic locations, that is, the convex polygon shown in the figure contains the mobile terminal A, B, C, D, E, F.
That is, in step S200, the step of forming the screened geographical positions into a convex polygon by using a preset algorithm specifically includes the following steps:
step S221, selecting one geographical position from the screened geographical positions as a fixed point;
step S222, constructing a convex polygon containing the screened geographical position through a convex hull algorithm and the fixed point.
In the embodiment, the obtained geographic positions are screened, and the screened geographic positions form the convex polygon through the convex hull algorithm, so that the terminal can form a new convex polygon according to the convex polygon, and the tracking range is further reduced.
As shown in fig. 1, in an implementation manner of this embodiment, the dynamic tracking display method further includes the following steps:
and S300, constructing a circumscribed rectangle according to the convex polygon, and expanding the circumscribed rectangle according to a preset proportion.
In this embodiment, after the convex polygons are formed, further filtering is performed, that is, new convex polygons are further formed to reduce the tracking range.
Specifically, when a new convex polygon is formed, the side lengths of the original convex polygon (i.e., the convex polygon formed in step 200) that do not meet the conditions may be removed, and then a new convex polygon is formed according to the remaining side lengths; when the side length which does not meet the condition is removed, the average side length of the original convex polygon can be set as a comparison condition, and a preset threshold value can also be set by self and used as the comparison condition.
After comparison, removing the side length exceeding the average side length or a preset threshold value in the original convex polygon; as for the rest side length, a new convex polygon can be formed according to the convex hull algorithm; as shown in FIG. 4, the longer side lengths (i.e., DF and CF) are removed and the remaining side lengths are combined into a new convex polygon.
After the new convex polygon is formed, a circumscribed rectangle is formed according to the new convex polygon, as shown in fig. 5, the new convex polygon includes the remaining mobile terminals A, B, C, D, E, and among the mobile terminals, the mobile terminal A, B, C, D at the edge is selected to form the circumscribed rectangle.
After the circumscribed rectangle is constructed, the circumscribed rectangle may be expanded according to a preset ratio, for example, the circumscribed rectangle may be expanded according to a ratio of 1: 1.2; as shown in fig. 6, the original circumscribed rectangle is expanded according to a certain proportion to avoid that the mobile terminal A, B, C, D at the edge approaches the edge of the visual map; that is, the position point at the edge is moved away from the edge of the display interface as far as possible.
Namely, the step S300 specifically includes the following steps:
step S310, removing the side length which does not meet the condition in the convex polygon;
step S320, forming a new convex polygon according to the remaining side length, and constructing a circumscribed rectangle according to the new convex polygon;
and S330, expanding the circumscribed rectangle according to a preset proportion.
Specifically, when the side length which does not meet the condition in the original convex polygon is removed, the average side length can be calculated according to each side length value of the original convex polygon, and the average side length is compared with a preset threshold value; for example, taking half of the two geographical locations that are farthest away as the preset threshold, the setting of the preset threshold has the following effects: and when the distances of the screened geographic positions are relatively close, the average side length is invalid, and the preset threshold value is used as a judgment condition.
When the average side length is compared with a preset threshold, if the average side length is larger than the preset threshold, selecting the average side length as a comparison length; if the preset threshold is larger than the average side length, selecting the preset threshold as a comparison length; in short, the comparison between the two is taken to be large; after the comparison length is selected, the side lengths of the original convex polygon can be compared with the comparison length, the side lengths larger than the comparison length are removed, so that the side lengths with the lengths smaller than the comparison length can be obtained, and then the side lengths with the lengths smaller than the comparison length are used as the basis to form a new convex polygon.
It should be noted that after removing the side lengths that do not meet the condition in the original convex polygon, if the number of remaining geographic positions is less than half of the original number, that is, the number of geographic positions included in the new convex polygon is less than half of the number of geographic positions included in the original convex polygon, the geographic positions in the original convex polygon are directly selected and displayed.
That is, the step S310 specifically includes the following steps:
step S311, calculating an average side length according to each side length value of the convex polygon, and comparing the average side length with a preset threshold value;
step S312, when the average side length is greater than the preset threshold, selecting the average side length as a comparison length;
step 313, when the preset threshold is greater than the average side length, selecting the preset threshold as a comparison length.
And S314, comparing each side length of the convex polygon with the comparison length, and removing the side length larger than the comparison length.
In this embodiment, by constructing the circumscribed rectangle and expanding the circumscribed rectangle, an optimal tracking viewing angle can be set for the position points included in the new convex polygon, so that the mobile terminals corresponding to the position points are tracked at the optimal viewing angle.
As shown in fig. 1, in an implementation manner of this embodiment, the dynamic tracking display method further includes the following steps:
and S400, embedding the GIS map into the expanded circumscribed rectangle according to the adaptive DPI, and tracking and displaying the geographic position in the expanded circumscribed rectangle in real time.
In this embodiment, after the circumscribed rectangle is expanded, the GIS map is embedded into the expanded circumscribed rectangle according to the adaptive DPI, so as to track and display the geographic position in the expanded circumscribed rectangle in real time.
Specifically, when a GIS map is embedded, an application program interface of the GIS map may be acquired, and then a local map having the same size as the enlarged circumscribed rectangle is captured on the original map, where of course, the local map includes a position point in a new convex polygon, that is, the local map includes the mobile terminal A, B, C, D, E; and finally, embedding the GIS map into the expanded circumscribed rectangle through the application program interface, and adjusting the GIS map according to adaptive DPI (image pixel points per inch) so as to track and display the geographic position in the expanded circumscribed rectangle in real time.
When the geographic position in the enlarged circumscribed rectangle is within the preset geographic position, a corresponding quantity display area can be set on the display interface of the terminal to display the quantity of the tracked mobile terminals in the current visual interface; for example, the corresponding quantity is displayed in the upper left corner or the upper right corner of the current visualization interface.
That is, the step S400 specifically includes the following steps:
step S410, acquiring an application program interface of the GIS map;
step S420, embedding the GIS map into the expanded circumscribed rectangle through the application program interface, and adjusting the GIS map according to adaptive DPI;
and step S430, tracking and displaying the geographical position in the enlarged circumscribed rectangle in real time.
As shown in fig. 7, in practical application, the present embodiment includes the following processing flows:
step S11, inputting the position point reported by the GPS equipment and the set threshold value;
step S12, filtering out points with invalid longitude and latitude;
step S13, judging whether the number of the residual position points is more than or equal to 3; if yes, go to step S14; if not, go to step S19;
step S14, constructing a convex polygon composed of fixed points by using a convex hull algorithm;
step S15, calculating the side length of the convex polygon, calculating the average side length, comparing the average side length with a set threshold value, and defining the larger one as a comparison length L; removing the side larger than L in the convex polygon;
step S16, judging whether the number of the residual position points is more than or equal to 3; if yes, go to step S17; if not, go to step S19;
step S17, re-connecting the remaining points by using a convex hull algorithm to construct a new convex polygon;
step S18, calculating the circumscribed rectangle of the new convex polygon, and jumping to execute step S20;
step S19, constructing a rectangle which can contain all points;
in step S20, the edges of the rectangle are enlarged as appropriate, and the four corner coordinates of the map are fitted to the rectangle by using a map API (application program interface).
It should be noted that, for the above-mentioned practical processing flow, adaptive transformation can be performed, for example:
1. aiming at the increase or decrease of mobile terminal equipment in a visual display interface;
2. in the process of removing the longer side length of the convex polygon, the position number (including vertexes and interior) of the polygon obtained by judgment can be increased, if the position number is less than half of the total position number, the subsequent convex hull algorithm is invalid, and the circumscribed rectangle can be directly displayed;
3. on the visual interface, the number of the mobile terminals which are displayed in a tracking mode can be prompted in the corresponding azimuth angle.
The embodiment screens positions reported by a plurality of GPS mobile terminals in real time to obtain legal longitude and latitude positions, removes edge positions with too far distance through a convex hull algorithm and a set threshold value, calculates external rectangles of residual positions, properly increases the edges of the external rectangles, finally enables four corners of a map to be adapted and enlarged to display the tracking point positions at the best visual angle, avoids displaying invalid tracking point positions, and avoids continuously switching the display visual angle in the tracking display process.
Example two
As shown in fig. 8, the present embodiment provides a terminal, which includes a processor 10, and a memory 20 connected to the processor 10, where the memory 20 stores a dynamic tracking display program, and the dynamic tracking display program is used for implementing the operation of the dynamic tracking display method according to the first embodiment when executed by the processor 10; as described above.
EXAMPLE III
The present embodiment provides a storage medium, wherein the storage medium stores a dynamic tracking display program, and the dynamic tracking display program is used for implementing the operation of the dynamic tracking display method according to the first embodiment when being executed by a processor; as described above.
In conclusion, the invention screens according to the longitude and latitude of the geographic position sent by each mobile terminal, and removes the geographic position which does not accord with the longitude and latitude standard; and constructing a convex polygon and a corresponding external rectangle according to a convex hull algorithm, and embedding the GIS map into the expanded external rectangle, so that a plurality of dynamic moving positions are presented at an optimal visual angle, and a dynamic tracking function is realized.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A dynamic tracking display method is characterized by comprising the following steps:
acquiring the geographical position sent by each mobile terminal in real time;
screening the obtained geographic positions, and forming convex polygons by the screened geographic positions through a preset algorithm;
constructing a circumscribed rectangle according to the convex polygon, and expanding the circumscribed rectangle according to a preset proportion;
and embedding the GIS map into the expanded circumscribed rectangle according to the adaptive DPI, and tracking and displaying the geographic position in the expanded circumscribed rectangle in real time.
2. The dynamic tracking display method according to claim 1, further comprising:
and sending a request for acquiring the geographic position to each mobile terminal so as to acquire the authority for tracking the geographic position of each mobile terminal.
3. The method according to claim 1, wherein the step of filtering the obtained geographic locations comprises the steps of:
judging whether the longitude and latitude of the acquired geographic position meet the longitude and latitude standard of the designated area;
and when the longitude and latitude of the acquired geographic position meet the longitude and latitude standard of the specified area, selecting the meeting geographic position as an effective geographic position to obtain the screened geographic position.
4. The dynamic tracking display method according to claim 3, wherein the step of forming the screened geographical locations into convex polygons by a preset algorithm specifically comprises the steps of:
selecting one of the screened geographical positions as a fixed point;
and constructing a convex polygon containing the screened geographical position through a convex hull algorithm and the fixed point.
5. The dynamic tracking display method according to claim 1, wherein the constructing a circumscribed rectangle according to the convex polygon and expanding the circumscribed rectangle according to a preset ratio includes the following steps:
removing the side length which does not meet the condition in the convex polygon;
forming a new convex polygon according to the remaining side lengths, and constructing a circumscribed rectangle according to the new convex polygon;
and expanding the circumscribed rectangle according to a preset proportion.
6. The dynamic tracking display method according to claim 5, wherein the removing of the unqualified side length in the convex polygon specifically comprises the following steps:
calculating the average side length according to the side length values of the convex polygons, and comparing the average side length with a preset threshold value;
when the average side length is larger than the preset threshold value, selecting the average side length as a comparison length;
and comparing each side length of the convex polygon with the comparison length, and removing the side length which is greater than the comparison length.
7. The dynamic tracking display method according to claim 6, wherein the calculating an average side length according to the side length values of the convex polygon and comparing the average side length with a preset threshold value further comprises:
and when the preset threshold is larger than the average edge length, selecting the preset threshold as a comparison length.
8. The dynamic tracking display method according to claim 1, wherein the step of embedding the GIS map into the enlarged circumscribed rectangle according to the adaptive DPI and tracking and displaying the geographical position in the enlarged circumscribed rectangle in real time includes the following steps:
acquiring an application program interface of the GIS map;
embedding the GIS map into the expanded circumscribed rectangle through the application program interface, and adjusting the GIS map according to adaptive DPI;
and tracking and displaying the geographical position in the enlarged circumscribed rectangle in real time.
9. A terminal comprising a processor, and a memory connected to the processor, the memory storing a dynamic tracking display program, the dynamic tracking display program when executed by the processor being adapted to implement the operations of the dynamic tracking display method according to any one of claims 1 to 8.
10. A storage medium storing a dynamic tracking display program, which when executed by a processor is configured to implement the operation of the dynamic tracking display method according to any one of claims 1 to 8.
CN202010286784.4A 2020-04-13 2020-04-13 Dynamic tracking display method, terminal and storage medium Active CN111552750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010286784.4A CN111552750B (en) 2020-04-13 2020-04-13 Dynamic tracking display method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010286784.4A CN111552750B (en) 2020-04-13 2020-04-13 Dynamic tracking display method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111552750A true CN111552750A (en) 2020-08-18
CN111552750B CN111552750B (en) 2023-05-30

Family

ID=72007437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010286784.4A Active CN111552750B (en) 2020-04-13 2020-04-13 Dynamic tracking display method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111552750B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681996A (en) * 2015-11-05 2017-05-17 腾讯科技(深圳)有限公司 Method and device for determining interest areas and interest points within geographical scope
CN110033652A (en) * 2019-03-11 2019-07-19 中国民航大学 A kind of radar dynamic object scaling method and system based on eye movement tracking

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681996A (en) * 2015-11-05 2017-05-17 腾讯科技(深圳)有限公司 Method and device for determining interest areas and interest points within geographical scope
CN110033652A (en) * 2019-03-11 2019-07-19 中国民航大学 A kind of radar dynamic object scaling method and system based on eye movement tracking

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘凯等: "一种平面点集的高效凸包算法", 《工程科学与技术》 *

Also Published As

Publication number Publication date
CN111552750B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN112348815B (en) Image processing method, image processing apparatus, and non-transitory storage medium
CN110990516B (en) Map data processing method, device and server
CN111757014B (en) Focal length adjusting method, device, equipment and storage medium of network camera
US10733777B2 (en) Annotation generation for an image network
CN109002823B (en) Region-of-interest determining method, device, equipment and readable storage medium
CN110991215B (en) Lane line detection method and device, storage medium and electronic equipment
CN116628123B (en) Dynamic slice generation method and system based on spatial database
CN111340960B (en) Image modeling method and device, storage medium and electronic equipment
CN112053427A (en) Point cloud feature extraction method, device, equipment and readable storage medium
CN111079730A (en) Method for determining area of sample image in interface image and electronic equipment
CN110046623B (en) Image feature point extraction method and camera
CN111898610A (en) Card unfilled corner detection method and device, computer equipment and storage medium
CN113177941A (en) Steel coil edge crack identification method, system, medium and terminal
CN115439615B (en) Distributed integrated management system based on three-dimensional BIM
CN111552750B (en) Dynamic tracking display method, terminal and storage medium
CN116994084A (en) Regional intrusion detection model training method and regional intrusion detection method
CN115514887A (en) Control method and device for video acquisition, computer equipment and storage medium
CN113297344B (en) Three-dimensional remote sensing image-based ground linear matching method and device and ground object target position positioning method
CN113781512A (en) Image boundary identification method, device, equipment, system and storage medium
CN114238528A (en) Map loading method and device, electronic equipment and storage medium
CN113191210A (en) Image processing method, device and equipment
CN115690364A (en) AR model acquisition method, electronic device and readable storage medium
CN116468611B (en) Image stitching method, device, equipment and storage medium
CN112465692A (en) Image processing method, device, equipment and storage medium
CN116152382B (en) Digital representation conversion method and device of structural floor plan and electronic equipment

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