A method and device for automatically generating waist-shaped assembly area symbols
Through the clustering and convex hull generation algorithm of the spatiotemporal trajectory data set, additional vertices are calculated and Catmull-Rom splines are used to solve the problems of weak symbol morphology control and low accuracy in the traditional dynamic symbol generation algorithm, achieving a more efficient and Accurate waisted staging area symbol generation.
Patent Information
- Application Number
- CN202111463976.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-02
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-02
AI Technical Summary
The traditional dynamic symbol generation algorithm is based on traditional plotting curves combined with manually input control point design, resulting in weak symbol shape control, complex operations and low accuracy.
By obtaining the spatio-temporal trajectory data set, constructing an equal time interval segmentation model, performing spatio-temporal trajectory clustering, generating convex hull control polygons, calculating additional vertices based on interior angle types, and using Catmull-Rom splines to generate waist-shaped assembly area symbols.
It improves the accuracy and calculation efficiency of dynamic symbol generation, simplifies the operation process, and enhances the control ability of symbol forms.
Smart Images

Figure CN114155315B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, computer equipment and storage medium for automatically generating waist-shaped assembly area symbols. Background Art
[0002] Dynamic symbols are an organic combination of map symbols and computer animation technology. On the one hand, dynamic symbols are first of all a kind of map symbols. Each frame of the animation shows the meaning that the map symbols should have. On the other hand, as a kind of computer animation, dynamic symbols have dual functions. The current time and the status of spatial data can be judged through the current animation frame. It also implies the entire time span of spatial data changes, so that users can operate on symbols, such as moving certain key frames, or adding key frames at a certain point in time.
[0003] However, the traditional dynamic symbol generation algorithm is designed based on the traditional plotting curve combined with manually input control points. Since the control points of the traditional plotting curve have weak control over the symbol shape, its plotting shape often requires multiple editings to achieve the expected effect, with low accuracy and complex operation. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for automatically generating waist-shaped assembly area symbols that can improve the accuracy of dynamic symbol generation in response to the above technical problems.
[0005] A method for automatically generating waist-shaped assembly area symbols, the method comprising:
[0006] Obtain a spatiotemporal trajectory dataset, and use the spatiotemporal trajectory dataset to construct an equal time interval segmentation model;
[0007] The spatiotemporal trajectories are clustered according to the equal time interval segmentation model to obtain trajectory cluster features; the trajectory cluster features include representative trajectory set, cluster correlation matrix and window cluster trajectory point set;
[0008] The convex hull of the window cluster trajectory point set is generated according to the Quickhull algorithm, and the convex hull is extended to obtain a control polygon; the control polygon contains six vertices;
[0009] Determine the longest side of the control polygon, and obtain the interior angle between the two sides according to the endpoints of the longest side of the control polygon and the adjacent sides of the longest side;
[0010] Determine the internal angle. If the internal angle is an obtuse angle, extend the length of the adjacent side of the longest side toward the end point to obtain the seventh vertex.
[0011] If the internal angle is an acute angle, solve the angle bisector of the acute angle, and determine the eighth and ninth vertices based on the angle bisector and the vertices of the acute angle; store the seventh to ninth vertices into the control polygon vertex set;
[0012] The control polygon vertex set is connected according to the plotting curve generation algorithm to obtain the waist-shaped assembly area symbol.
[0013] In one embodiment, constructing an equal time interval segmentation model using a spatiotemporal trajectory dataset includes: starting from a first point or a certain point in the spatiotemporal trajectory dataset, segmenting the trajectory using time intervals of equal intervals to construct an equal time interval segmentation model.
[0014] In one of the embodiments, a convex hull of a window cluster trajectory point set is generated according to a Quickhull algorithm, and the convex hull is extended to obtain a control polygon, including: generating a convex hull of a window cluster trajectory point set according to a Quickhull algorithm, and constructing a control polygon based on the length of the longest side of the convex hull and its vertices and adjacent sides; wherein the control polygon has at least one reflex angle.
[0015] In one embodiment, if the internal angle is an obtuse angle, the length of the adjacent side of the longest side is extended toward the end point to obtain the seventh vertex, including: extending the line from the sixth vertex to the first vertex to the seventh vertex, wherein the length of the line between the first vertex and the seventh vertex and the length of the longest side satisfy the following formula: a = l / k, where l a Represents the length of the line connecting the first vertex and the seventh vertex, k is the scale parameter, k>1.
[0016] In one embodiment, determining the eighth vertex and the ninth vertex according to the angle bisector and the vertex of the acute angle includes: determining the eighth vertex and the ninth vertex on the normal line of the angle bisector through the vertex of the acute angle, wherein the length of the line connecting the eighth vertex and the ninth vertex and the length of the longest side satisfy the following formula: b =2l / k, where l b Indicates the length of the line connecting the eighth and ninth vertices.
[0017] In one embodiment, all vertices in the vertex set of the control polygon are the first to ninth vertices and the midpoint of the longest side.
[0018] In one of the embodiments, the control polygon vertex set is connected according to the plotting curve generation algorithm to obtain a waist-shaped assembly area symbol, including: connecting all points of the control polygon point set in sequence with a centripetal parameterized Catmull-Rom spline curve in a clockwise or counterclockwise order to generate a waist-shaped assembly area symbol.
[0019] A device for automatically generating waist-shaped assembly area symbols, the device comprising:
[0020] A segmentation model building module is used to obtain a spatiotemporal trajectory dataset and build an equal time interval segmentation model using the spatiotemporal trajectory dataset;
[0021] The spatiotemporal trajectory clustering module is used to cluster spatiotemporal trajectories according to the equal time interval segmentation model to obtain trajectory cluster features; the trajectory cluster features include representative trajectory set, cluster correlation matrix and window cluster trajectory point set;
[0022] A control polygon generation module is used to generate the convex hull of the window cluster trajectory point set according to the Quickhull algorithm, and extend the convex hull to obtain a control polygon; the control polygon contains six vertices;
[0023] An inner angle determination module is used to determine the longest side of the control polygon, and obtain the inner angle between the two sides according to the endpoints of the longest side of the control polygon and the adjacent sides of the longest side;
[0024] The vertex calculation module is used to judge the internal angle. If the internal angle is an obtuse angle, the length of the adjacent side of the longest side is extended toward the end point to obtain the seventh vertex; if the internal angle is an acute angle, the angle bisector of the acute angle is solved, and the eighth vertex and the ninth vertex are determined according to the angle bisector and the vertex of the acute angle; the seventh to ninth vertices are stored in the control polygon vertex set;
[0025] The waist-shaped assembly area symbol generation module is used to connect the control polygon vertex set according to the plotting curve generation algorithm to obtain the waist-shaped assembly area symbol.
[0026] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0027] Obtain a spatiotemporal trajectory dataset, and use the spatiotemporal trajectory dataset to construct an equal time interval segmentation model;
[0028] The spatiotemporal trajectories are clustered according to the equal time interval segmentation model to obtain trajectory cluster features; the trajectory cluster features include representative trajectory set, cluster correlation matrix and window cluster trajectory point set;
[0029] The convex hull of the window cluster trajectory point set is generated according to the Quickhull algorithm, and the convex hull is extended to obtain a control polygon; the control polygon contains six vertices;
[0030] Determine the longest side of the control polygon, and obtain the interior angle between the two sides according to the endpoints of the longest side of the control polygon and the adjacent sides of the longest side;
[0031] Determine the internal angle. If the internal angle is an obtuse angle, extend the length of the adjacent side of the longest side toward the end point to obtain the seventh vertex.
[0032] If the internal angle is an acute angle, solve the angle bisector of the acute angle, and determine the eighth and ninth vertices based on the angle bisector and the vertices of the acute angle; store the seventh to ninth vertices into the control polygon vertex set;
[0033] The control polygon vertex set is connected according to the plotting curve generation algorithm to obtain the waist-shaped assembly area symbol.
[0034] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0035] Obtain a spatiotemporal trajectory dataset, and use the spatiotemporal trajectory dataset to construct an equal time interval segmentation model;
[0036] The spatiotemporal trajectories are clustered according to the equal time interval segmentation model to obtain trajectory cluster features; the trajectory cluster features include representative trajectory set, cluster correlation matrix and window cluster trajectory point set;
[0037] The convex hull of the window cluster trajectory point set is generated according to the Quickhull algorithm, and the convex hull is extended to obtain a control polygon; the control polygon contains six vertices;
[0038] Determine the longest side of the control polygon, and obtain the interior angle between the two sides according to the endpoints of the longest side of the control polygon and the adjacent sides of the longest side;
[0039] Determine the internal angle. If the internal angle is an obtuse angle, extend the length of the adjacent side of the longest side toward the end point to obtain the seventh vertex.
[0040] If the internal angle is an acute angle, solve the angle bisector of the acute angle, and determine the eighth and ninth vertices based on the angle bisector and the vertices of the acute angle; store the seventh to ninth vertices into the control polygon vertex set;
[0041] The control polygon vertex set is connected according to the plotting curve generation algorithm to obtain the waist-shaped assembly area symbol.
[0042] The above-mentioned method, device, computer equipment and storage medium for automatically generating waist-shaped assembly area symbols, the present application establishes an equal time interval segmentation model to perform spatiotemporal trajectory clustering, extracts trajectory cluster features from the generated trajectory clusters, and uses a convex hull generation algorithm based on Quickhull to generate the control polygon of the symbol for the distribution of window cluster trajectory points in the trajectory cluster features. It has high computational efficiency and accuracy for randomly distributed and dense window cluster trajectory point sets, generates multiple control vertices according to the control polygon design, generates control polygons with reflex angles from the control polygon vertices, and then uses a plotting curve generation algorithm based on centripetal parameterized Catmull-Rom splines to connect the control polygon vertex set, thereby realizing the automatic generation of waist-shaped assembly area symbols, and can improve the accuracy of waist-shaped assembly area symbol generation in dynamic symbols. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of a flow chart of a method for automatically generating waist-shaped assembly area symbols in one embodiment;
[0044] Figure 2 A schematic diagram of automatic generation of waist-shaped assembly area symbols in one embodiment;
[0045] Figure 3 It is a structural block diagram of a waist-shaped assembly area symbol automatic generation device in one embodiment;
[0046] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0048] In one embodiment, Figure 1 As shown, a method for automatically generating waist-shaped assembly area symbols is provided, comprising the following steps:
[0049] Step 102: Obtain a spatiotemporal trajectory dataset, and use the spatiotemporal trajectory dataset to construct an equal time interval segmentation model.
[0050] In order to fully explore the distribution of situation information in space and time and its correlation, the trajectory is divided into segments of different granularities according to data conditions and application requirements when clustering trajectory data, which is called the spatiotemporal segmentation model. Using trajectory segments as units to describe the spatiotemporal local morphology and local semantic attributes of the trajectory can, to a certain extent, take into account the discreteness and continuity of the trajectory and better reflect the regional situation information. The equal time interval segmentation model refers to segmenting the trajectory at equal intervals starting from the first point or a certain point in the spatiotemporal trajectory dataset.
[0051] Step 104 , clustering the spatiotemporal trajectories according to the equal time interval segmentation model to obtain trajectory cluster features; the trajectory cluster features include a representative trajectory set, a cluster association matrix, and a window cluster trajectory point set.
[0052] After the equal time interval segmentation model is established, it is necessary to explore the cluster association degree between adjacent time windows and use the equal time interval segmentation model to cluster spatiotemporal trajectories. The spatiotemporal trajectory clustering based on the equal time interval segmentation model can discover richer situation information. The clustering result outputs trajectory cluster features including representative trajectory set, cluster association matrix and window cluster trajectory point set. The window cluster trajectory point set provides the original data set for the generation of dynamic symbols. Dynamic symbols include arbitrary type assembly area symbols and area symbols with specific shapes, such as waist-shaped assembly area symbols.
[0053] Step 106, generating the convex hull of the window cluster trajectory point set according to the Quickhull algorithm, extending the convex hull to obtain a control polygon; the control polygon includes six vertices.
[0054] It is difficult to directly generate control polygon vertices with controllable number of reflex angles based on the clustering results of trajectory data and the distribution of cluster trajectory points. In order to make the generated waist-shaped cluster area symbol accurately cover the distribution range of trajectory points and minimize the area, this application generates the convex hull of the trajectory point set based on the Quickhull algorithm, and constructs a control polygon with at least one reflex angle based on the length of the longest side of the convex hull and its vertices and adjacent sides. The convex hull is an important tool for object shape description and feature extraction, and is also an important geometric structure. It is widely used in geographic information systems, computer graphics, pattern recognition and other fields.
[0055] Step 108, determining the longest side of the control polygon, and obtaining the inner angle between the two sides according to the endpoints of the longest side of the control polygon and the adjacent sides of the longest side.
[0056] For the window cluster trajectory point set P, Figure 2 As shown, according to the Quickhull algorithm, the convex hull p1p2p3p4p5p6 of the window cluster trajectory point set is generated, where p1p2 is the longest side of the convex hull, p1p6 and p2p3 are the adjacent sides of the longest side, and p mLet p1p2 be the midpoint of the longest side and let the length of p1p2 be l.
[0057] Step 110, judge the internal angle. If the internal angle is an obtuse angle, extend the length of the adjacent side of the longest side toward the endpoint to obtain the seventh vertex; if the internal angle is an acute angle, solve the angle bisector of the acute angle, and determine the eighth vertex and the ninth vertex based on the angle bisector and the vertex of the acute angle; store the seventh to ninth vertices in the control polygon vertex set.
[0058] When the internal angle between the endpoint of the longest side of the convex hull and its adjacent side is an obtuse angle, such as Figure 2 As shown, ∠p6p1p2 is an obtuse angle, extending p6p1 to p 11 Make p1p 11 The length l a = l / k, where k is the scale parameter, k>1, and the seventh vertex p is obtained 11 .
[0059] When the internal angle between the endpoint of the longest side of the convex hull and its adjacent side is an acute angle, such as Figure 2 As shown, ∠p3p2p1 is an acute angle. To avoid area expansion and ensure that the endpoint p2 is included in the symbol range, first find the angle bisector L of ∠p3p2p1, and find p on the normal of L through point p2. 21 and p 22 , so that p 21 p 22 The length l b =2l / k, and we get the eighth vertex p 21 and the ninth vertex p 22 .
[0060] Step 112, connecting the control polygon vertex set according to the plotting curve generation algorithm to obtain a waist-shaped gathering area symbol.
[0061] The above-mentioned method for automatically generating waist-shaped assembly area symbols, this application establishes an equal time interval segmentation model to perform spatiotemporal trajectory clustering, extracts trajectory cluster features from the generated trajectory clusters, and uses a convex hull generation algorithm based on Quickhull to generate the control polygon of the symbol for the distribution of window cluster trajectory points in the trajectory cluster features. It has high computational efficiency and accuracy for randomly distributed and dense window cluster trajectory point sets, generates multiple control vertices according to the control polygon design, generates control polygons with reflex angles from the control polygon vertices, and then uses a plotting curve generation algorithm based on centripetal parameterized Catmull-Rom splines to connect the control polygon vertex set, thereby realizing the automatic generation of waist-shaped assembly area symbols and improving the accuracy of waist-shaped assembly area symbol generation in dynamic symbols.
[0062] In one embodiment, constructing an equal time interval segmentation model using a spatiotemporal trajectory dataset includes: starting from a first point or a certain point in the spatiotemporal trajectory dataset, segmenting the trajectory using time intervals of equal intervals to construct an equal time interval segmentation model.
[0063] In one of the embodiments, a convex hull of a window cluster trajectory point set is generated according to a Quickhull algorithm, and the convex hull is extended to obtain a control polygon, including: generating a convex hull of a window cluster trajectory point set according to a Quickhull algorithm, and constructing a control polygon based on the length of the longest side of the convex hull and its vertices and adjacent sides; wherein the control polygon has at least one reflex angle.
[0064] The key to generating waist-shaped assembly area symbols lies in the vertex calculation of the control polygon. The control polygons of closed curve surface symbols with shape requirements have specific characteristics. Since the centripetal parameterized Catmull-Rom spline curve has the property of passing through control points, its control polygon only needs one reflex angle.
[0065] In one embodiment, if the internal angle is an obtuse angle, the length of the adjacent side of the longest side is extended toward the end point to obtain the seventh vertex, including: extending the line from the sixth vertex to the first vertex to the seventh vertex, wherein the length of the line between the first vertex and the seventh vertex and the length of the longest side satisfy the following formula: a = l / k, where l a Represents the length of the line connecting the first vertex and the seventh vertex, k is the scale parameter, k>1.
[0066] In one embodiment, determining the eighth vertex and the ninth vertex according to the angle bisector and the vertex of the acute angle includes: determining the eighth vertex and the ninth vertex on the normal line of the angle bisector through the vertex of the acute angle, wherein the length of the line connecting the eighth vertex and the ninth vertex and the length of the longest side satisfy the following formula: b =2l / k, where l b Indicates the length of the line connecting the eighth and ninth vertices.
[0067] In one embodiment, all vertices in the vertex set of the control polygon are the first to ninth vertices and the midpoint of the longest side.
[0068] In one of the embodiments, the control polygon vertex set is connected according to the plotting curve generation algorithm to obtain a waist-shaped assembly area symbol, including: connecting all points of the control polygon point set in sequence with a centripetal parameterized Catmull-Rom spline curve in a clockwise or counterclockwise order to generate a waist-shaped assembly area symbol.
[0069] like Figure 2As shown, the control polygon vertices p are connected in a clockwise (or counterclockwise) order with a centripetal parameterized Catmull-Rom spline curve. m 、p 21 、p 22 , p3, p4, p5, p6, p1, p 11 and p m , generating a waist-shaped assembly area symbol.
[0070] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0071] In one embodiment, Figure 3 As shown, a waist-shaped gathering area symbol automatic generation device is provided, comprising: a segment model construction module 302, a spatiotemporal trajectory clustering module 304, a control polygon generation module 306, an inner angle determination module 308, a vertex calculation module 310 and a waist-shaped gathering area symbol generation module 312, wherein:
[0072] A segmentation model building module 302 is used to obtain a spatiotemporal trajectory data set and build an equal time interval segmentation model using the spatiotemporal trajectory data set;
[0073] The spatiotemporal trajectory clustering module 304 is used to cluster the spatiotemporal trajectories according to the equal time interval segmentation model to obtain trajectory cluster features; the trajectory cluster features include a representative trajectory set, a cluster correlation matrix and a window cluster trajectory point set;
[0074] A control polygon generation module 306 is used to generate a convex hull of the window cluster trajectory point set according to the Quickhull algorithm, and extend the convex hull to obtain a control polygon; the control polygon includes six vertices;
[0075] The internal angle determination module 308 is used to determine the longest side of the control polygon, and obtain the internal angle between the two sides according to the endpoints of the longest side of the control polygon and the adjacent sides of the longest side;
[0076] The vertex calculation module 310 is used to judge the internal angle. If the internal angle is an obtuse angle, the length of the adjacent side of the longest side is extended toward the end point to obtain the seventh vertex; if the internal angle is an acute angle, the angle bisector of the acute angle is solved, and the eighth vertex and the ninth vertex are determined according to the angle bisector and the vertex of the acute angle; the seventh to ninth vertices are stored in the control polygon vertex set;
[0077] The waist-shaped gathering area symbol generation module 312 is used to connect the control polygon vertex set according to the plotting curve generation algorithm to obtain the waist-shaped gathering area symbol.
[0078] In one embodiment, the segmentation model building module 302 is further used to build an equal time interval segmentation model using the spatiotemporal trajectory dataset, including: starting from the first point or a certain point in the spatiotemporal trajectory dataset, segmenting the trajectory using equal time intervals to build an equal time interval segmentation model.
[0079] In one embodiment, the control polygon generation module 306 is also used to generate the convex hull of the window cluster trajectory point set according to the Quickhull algorithm, and extend the convex hull to obtain the control polygon, including: generating the convex hull of the window cluster trajectory point set according to the Quickhull algorithm, and constructing the control polygon based on the length of the longest side of the convex hull and its vertices and adjacent sides; wherein the control polygon has at least one reflex angle.
[0080] In one embodiment, the vertex calculation module 310 is further configured to, if the internal angle is an obtuse angle, extend the length of the adjacent side of the longest side toward the end point to obtain the seventh vertex, including: extending the line from the sixth vertex to the first vertex to the seventh vertex, wherein the length of the line between the first vertex and the seventh vertex and the length of the longest side satisfy the following formula: a = l / k, where l a Represents the length of the line connecting the first vertex and the seventh vertex, k is the scale parameter, k>1.
[0081] In one embodiment, the vertex calculation module 310 is further used to determine the eighth vertex and the ninth vertex according to the angle bisector and the vertex of the acute angle, including: determining the eighth vertex and the ninth vertex on the normal line of the angle bisector through the vertex of the acute angle, wherein the length of the line connecting the eighth vertex and the ninth vertex and the length of the longest side satisfy the following formula: b =2l / k, where l b Indicates the length of the line connecting the eighth and ninth vertices.
[0082] In one embodiment, all vertices in the vertex set of the control polygon are the first to ninth vertices and the midpoint of the longest side.
[0083] In one of the embodiments, the waist-shaped assembly area symbol generation module 312 is also used to connect the control polygon vertex set according to the plotting curve generation algorithm to obtain the waist-shaped assembly area symbol, including: connecting all points of the control polygon point set in sequence with a centripetal parameterized Catmull-Rom spline curve in a clockwise or counterclockwise order to generate a waist-shaped assembly area symbol.
[0084] The specific definition of a waist-shaped assembly area symbol automatic generation device can refer to the definition of a waist-shaped assembly area symbol automatic generation method mentioned above, which will not be repeated here. Each module in the above-mentioned waist-shaped assembly area symbol automatic generation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0085] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for automatically generating a waist-shaped assembly area symbol is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0086] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0087] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in the above embodiment when executing the computer program.
[0088] In one embodiment, a computer storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method in the above embodiment are implemented.
[0089] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0090] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
Claims
1. A method for automatically generating waist-shaped assembly area symbols, characterized in that: The method comprises: Acquire a spatiotemporal trajectory data set, and construct an equal time interval segmentation model using the spatiotemporal trajectory data set; Performing spatiotemporal trajectory clustering according to the equal time interval segmentation model to obtain trajectory cluster features; the trajectory cluster features include a representative trajectory set, a cluster association matrix, and a window cluster trajectory point set; Generate the convex hull of the window cluster trajectory point set according to the Quickhull algorithm, extend the convex hull to obtain a control polygon; the control polygon includes six vertices; Determine the longest side of the control polygon, and obtain the interior angle between two sides according to the endpoints of the longest side of the control polygon and the adjacent sides of the longest side; Determine the inner angle, if the inner angle is an obtuse angle, extend the length of the adjacent side of the longest side toward the end point to obtain the seventh vertex; If the interior angle is an acute angle, solve the angle bisector of the acute angle, and determine the eighth vertex and the ninth vertex according to the angle bisector and the vertices of the acute angle; store the seventh to ninth vertices into the control polygon vertex set; The control polygon vertex set is connected according to a plotting curve generation algorithm to obtain a waist-shaped assembly area symbol.
2. The method according to claim 1, characterized in that: Using the spatiotemporal trajectory dataset, constructing an equal time interval segmentation model, including: Starting from the first point or a certain point in the spatiotemporal trajectory data set, the trajectory is segmented using time intervals of equal intervals to construct an equal time interval segmentation model.
3. The method according to claim 1, characterized in that The convex hull of the window cluster trajectory point set is generated according to the Quickhull algorithm, and the convex hull is extended to obtain a control polygon, including: The convex hull of the window cluster trajectory point set is generated according to the Quickhull algorithm, and a control polygon is constructed based on the length of the longest side of the convex hull and its vertices and adjacent sides; wherein the control polygon has at least one reflex angle.
4. The method according to claim 1, characterized in that: If the interior angle is an obtuse angle, the length of the adjacent side of the longest side is extended toward the end point to obtain the seventh vertex, including: Extend the line from the sixth vertex to the first vertex to the seventh vertex, where the length of the line between the first vertex and the seventh vertex and the length of the longest side satisfy the following formula: a = l / k, where l a Represents the length of the line connecting the first vertex and the seventh vertex, k is the scale parameter, k>1.
5. The method according to claim 4, characterized in that Determining the eighth vertex and the ninth vertex according to the angle bisector and the vertices of the acute angle includes: The eighth and ninth vertices are determined on the normal line of the angle bisector through the vertex of the acute angle, wherein the length of the line connecting the eighth and ninth vertices and the length of the longest side satisfy the following formula: b =2l / k, where l b Indicates the length of the line connecting the eighth and ninth vertices.
6. The method according to claim 5, characterized in that All vertices in the vertex set of the control polygon are the first to ninth vertices and the midpoint of the longest side.
7. The method according to claim 1, characterized in that The control polygon vertex set is connected according to the plotting curve generation algorithm to obtain a waist-shaped assembly area symbol, including: All points of the control polygon point set are sequentially connected with a centripetal parameterized Catmull-Rom spline curve in a clockwise or counterclockwise order to generate a waist-shaped assembly area symbol.
8. A device for automatically generating waist-shaped assembly area symbols, characterized in that: The device comprises: A segmentation model building module is used to obtain a spatiotemporal trajectory data set and build an equal time interval segmentation model using the spatiotemporal trajectory data set; A spatiotemporal trajectory clustering module, used to cluster spatiotemporal trajectories according to the equal time interval segmentation model to obtain trajectory cluster features; the trajectory cluster features include a representative trajectory set, a cluster association matrix and a window cluster trajectory point set; A control polygon generation module is used to generate a convex hull of the window cluster trajectory point set according to the Quickhull algorithm, and extend the convex hull to obtain a control polygon; the control polygon includes six vertices; An inner angle determination module is used to determine the longest side of the control polygon, and obtain the inner angle between two sides according to the endpoints of the longest side of the control polygon and the adjacent sides of the longest side; A vertex calculation module is used to judge the inner angle. If the inner angle is an obtuse angle, the length of the adjacent side of the longest side is extended toward the end point to obtain the seventh vertex; if the inner angle is an acute angle, the angle bisector of the acute angle is solved, and the eighth vertex and the ninth vertex are determined according to the angle bisector and the vertex of the acute angle; the seventh to ninth vertices are stored in the control polygon vertex set; The waist-shaped assembly area symbol generation module is used to connect the control polygon vertex set according to the plotting curve generation algorithm to obtain the waist-shaped assembly area symbol.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
