Disclosure of Invention
To solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for verifying a generated virtual routing identifier.
The embodiment of the invention provides a method for verifying a generated virtual road directing identifier, which comprises the following steps:
connecting every two adjacent virtual road indicating marks to determine a first connecting track; the virtual guide mark is in a virtual activity scene and is used for simulating the design parameters of the entity guide mark; the virtual activity scene is a virtual model established according to preset activity scene data;
comparing the first connecting track with the second connecting track, and verifying the position of the virtual guide path identifier according to a comparison result; and the second connecting line track is a streamline track in the virtual activity scene.
Wherein the comparing the first connection track with the second connection track and verifying the position of the virtual guide path identifier according to the comparison result comprises:
determining a comparison reference position of the first connecting line track and the second connecting line track;
respectively determining sampling points to be compared on the first connecting line track and the second connecting line track according to a preset distance;
calculating position deviation values between corresponding sampling points on the first connecting line track and the second connecting line track in sequence from the comparison reference position in pairs;
and verifying the position of the virtual index mark according to the comparison result of the position deviation value and a preset deviation threshold value.
Verifying the position of the virtual guide way identifier according to the comparison result of the position deviation value and a preset deviation threshold value, wherein the verifying the position of the virtual guide way identifier comprises the following steps:
if all the position deviation values are smaller than the preset deviation threshold value, the position verification of all the virtual road indicating identifications is passed;
and if at least one position deviation value is larger than or equal to the preset deviation threshold value, the position verification of the virtual guide way identifier is not passed.
Wherein the method further comprises:
determining the first position deviation value which is greater than or equal to the preset deviation threshold value and corresponds to the first position on the first connecting line track as a target position;
and generating a prompt message for correcting the virtual road directing identifier at the target position.
Wherein the determining a comparative reference position of the first connecting line track and the second connecting line track comprises:
and taking the first virtual road indicating mark in the first connecting track and the first streamline inflection point in the second connecting track as comparison reference positions.
Generating the position and indication information of the virtual road directing identifier; correspondingly, the generating the position and the indication information of the virtual road guiding identifier includes:
tracking a camera shooting position in the process of navigating the virtual moving scene according to a streamline at a first person visual angle;
taking the camera shooting position as a viewpoint position, and if a streamline inflection point falls into the visual field range of the first-person visual angle, determining the position of a virtual road directing mark according to the camera shooting position, the streamline inflection point and the first-person visual angle;
and generating the indication information of the virtual road directing identification at the position according to the attribute information of the streamline.
Wherein, according to the camera shooting position, the streamline inflection point and the first-person visual angle, determining the position of the virtual road indication mark comprises:
determining the position at the streamline inflection point and corresponding to the visual angle height of the first person visual angle as the initial position of the virtual road indicating mark;
responding to the action of adjusting the initial position, and simulating and transferring to a viewing angle of a browse adjusting position at the camera shooting position;
in response to determining the act of adjusting the location, determining a location of the virtual way heading.
The embodiment of the invention provides a device for verifying a generated virtual road directing identifier, which comprises the following steps:
the determining unit is used for connecting every two adjacent virtual road indicating marks to determine a first connecting line track; the virtual road directing identifier is in a virtual activity scene and is used for simulating design parameters of the entity road directing identifier; the virtual activity scene is a virtual model established according to preset activity scene data;
the verification unit is used for comparing the first connecting track with the second connecting track and verifying the position of the virtual guide path identifier according to a comparison result; and the second connecting line track is a streamline track in the virtual activity scene.
An embodiment of the present invention provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein,
the processor, when executing the computer program, implements the method steps of:
connecting every two adjacent virtual road indicating marks to determine a first connecting track; the virtual guide mark is in a virtual activity scene and is used for simulating the design parameters of the entity guide mark; the virtual activity scene is a virtual model established according to preset activity scene data;
comparing the first connecting track with the second connecting track, and verifying the position of the virtual guide path identifier according to a comparison result; and the second connecting line track is a streamline track in the virtual activity scene.
An embodiment of the invention provides a non-transitory computer readable storage medium having a computer program stored thereon, which when executed by a processor implements the following method steps:
connecting every two adjacent virtual road indicating marks to determine a first connecting track; the virtual guide mark is in a virtual activity scene and is used for simulating the design parameters of the entity guide mark; the virtual activity scene is a virtual model established according to preset activity scene data;
comparing the first connecting track with the second connecting track, and verifying the position of the virtual guide path identifier according to a comparison result; and the second connecting line track is a streamline track in the virtual activity scene.
According to the method and the device for verifying the generated virtual road guiding identifier, provided by the embodiment of the invention, the first connecting line track is compared with the second connecting line track, and the position of the virtual road guiding identifier is verified according to the comparison result, so that whether the position of the virtual road guiding identifier is reasonable or not can be verified, and omission in the design process is avoided.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Fig. 1 is a flowchart of an embodiment of a method for verifying a generated virtual road guiding identifier according to the present invention, and as shown in fig. 1, the method for verifying a generated virtual road guiding identifier according to the embodiment of the present invention includes the following steps:
s101: connecting every two adjacent virtual road indicating marks to determine a first connecting track; the virtual road directing identifier is in a virtual activity scene and is used for simulating design parameters of the entity road directing identifier; the virtual activity scene is a virtual model established according to preset activity scene data.
Specifically, the device connects every two adjacent virtual road indication marks to determine a first connecting line track; the virtual road directing identifier is in a virtual activity scene and is used for simulating design parameters of the entity road directing identifier; the virtual activity scene is a virtual model established according to preset activity scene data. The apparatus may be a computer device, e.g. a server, performing the above method. The method may run in a Unity environment.
The server can operate the simulation system to further acquire the virtual activity scene, and can also acquire the virtual activity scene from the simulation system operated in other equipment by establishing a connection relationship with other equipment.
The virtual model is a visual model simulating a real activity scene.
Fig. 2 is a screenshot of a virtual activity scene according to an embodiment of the present invention.
The virtual activity scenario may be developed by Unity. The virtual object models in the virtual activity scene all have three-dimensional geographic position coordinates; the preset activity scene data comprises geographic environment data and planning and designing data. Geographic environment data can be acquired by aerial photography of an unmanned aerial vehicle or photographing of a handheld camera, and planning design data can be acquired from an OB (Overlay Book) picture which is a special electronic drawing for active operation design.
Referring to fig. 2, the virtual guidepost identifies a guideboard labeled "evacuation lane" as in fig. 2. The virtual routing identifier includes location and indicating information that can be displayed in fig. 2 so that design parameters of the physical routing identifier can be modeled.
As shown in fig. 2, the position is a three-dimensional geographic position coordinate of the guidepost, and the indication information includes identification indication direction information of the guidepost.
Fig. 3 is a schematic diagram illustrating a first connection track according to an embodiment of the present invention, and as shown in fig. 3, a 1-d 1 respectively represent virtual road indicators, and a connection connecting a 1-d 1 is the first connection track.
S102: comparing the first connecting track with the second connecting track, and verifying the position of the virtual road indicating mark according to the comparison result; wherein the second connecting line track is a streamline track in the virtual live view.
Specifically, the device compares the first connecting track with the second connecting track, and verifies the position of the virtual guide path identifier according to the comparison result; and the second connecting line track is a streamline track in the virtual activity scene. Fig. 4 is a schematic diagram illustrating a second connection trace according to the embodiment of the present invention, where as shown in fig. 4, a 2-d 2 respectively represent inflection points of a streamline, and a connection line connecting a 2-d 2 is the second connection trace.
It should be noted that the second connecting trajectory, that is, the streamline trajectory, is created in the virtual activity scene in advance, and then the streamline inflection point is determined according to the streamline trajectory.
The first connecting track, namely the virtual road indicating identification track, is firstly generated, and then the first connecting track is determined according to the virtual road indicating identification.
It can be understood that the virtual finger path identifier is mainly generated according to the streamline trajectory, and is adjusted based on the visual effect of the virtual finger path identifier.
Thus, the first wire trace should be substantially the same as the second wire trace, with the difference that: the second connecting track is a streamline planning track of the simulated walking line from the design angle of a movable operation design party; the first connecting line track is a walking line track simulated under the guidance of the virtual road guiding mark from the participation angle of the activity running participant.
Referring to fig. 3 and 4, a 1-d 1 and a 2-d 2 each have corresponding three-dimensional geographic location coordinates; if the streamlines are not required to be determined again, the three-dimensional geographic position coordinates of a 2-d 2 do not change, and the three-dimensional geographic position coordinates of a 2-d 2 in the embodiment of the invention do not change.
a 1-d 1 are changed according to the position adjustment of the virtual road guiding sign, and the following is exemplified with reference to fig. 3 and 4:
the position of the generated virtual road sign a1 is the same as the position of a2, the position of c1 is the same as the position of c2, and the position of d1 is the same as the position of d 2.
Only the position of the virtual road sign b1 is slightly different from the position of b 2. The distance between the position of b1 and the position of b2 can be calculated, and the distance value is smaller than a preset distance threshold value, the position verification of the virtual road indicator b1 is passed.
Fig. 5 is a schematic diagram illustrating a first connecting line track with missing virtual road sign according to an embodiment of the present invention, and as shown in fig. 5, the virtual road sign b1 is omitted in design, so that the first connecting line track is a connecting line connecting a1, c1 and d1, compared with the second connecting line track, the error value is larger, and a position with a larger error value appears between a1 and c1, so that the verification between the positions of a1 and c1 does not pass.
Fig. 6 is a schematic diagram illustrating a first connection track with a wrong position of the virtual road indicator according to the embodiment of the present invention, as shown in fig. 6, because the position of the virtual road indicator b1 is wrong, the first connection track is a connection line connecting a 1-d 1, and compared with the second connection track, the error value is larger, and the position with the larger error value appears at b1, so the position verification of b1 does not pass.
According to the method for verifying the generated virtual road indicating identifier, the first connecting track is compared with the second connecting track, the position of the virtual road indicating identifier is verified according to the comparison result, whether the position of the virtual road indicating identifier is reasonable or not can be verified, and omission in the design process is avoided.
On the basis of the above embodiment, comparing the first connection trajectory with the second connection trajectory, and verifying the position of the virtual guide identifier according to the comparison result includes:
specifically, the device determines a comparison reference position of the first connecting line track and the second connecting line track; further, a first virtual finger path identifier in the first connecting line trajectory and a first streamline inflection point in the second connecting line trajectory may be used as comparison reference positions, referring to fig. 3, the first virtual finger path identifier is a 1; referring to fig. 4, the first streamline inflection point is a 2. a1 and a2 serve as comparison reference positions for comparing the first linking trajectory and the second linking trajectory.
Specifically, the device determines sampling points to be compared respectively on the first connecting line track and the second connecting line track according to a preset distance; the preset distance can be set independently according to actual conditions, and if the scale corresponding to the first connecting line track and the second connecting line track is large, such as an outdoor activity scene, the preset distance can be selected to be a large value; if the scale corresponding to the first connecting line track and the second connecting line track is small, such as an indoor activity scene, the preset distance can be selected to be a small value.
Taking the example of selecting 10 meters at the preset interval, starting from the first virtual road sign of the first connecting line track, determining a sampling point at an interval of 10 meters, and sequentially recording as n1, n 2-nx.
From the first streamline inflection point of the second connecting track, a sampling point is determined at an interval of 10 meters, and the sampling points can be sequentially recorded as m1 and m 2-mx according to the lighting sequence.
The sample points to be compared are n1 and m1, n2 and m2, and so on, up to nx and mx.
Specifically, the device calculates the position deviation value between corresponding sampling points on the first connecting line track and the second connecting line track in sequence from the comparison reference position in pairs; referring to the above example, the position deviation value between n1 and m1, i.e., the distance L11 between the three-dimensional geographic position coordinate corresponding to n1 and the three-dimensional geographic position coordinate corresponding to m1, is calculated.
Specifically, the device verifies the position of the virtual road indication mark according to the comparison result of the position deviation value and a preset deviation threshold value. If L11 is less than the preset deviation threshold, the verification of the position of n1 is passed. And continuously calculating the position deviation value between n2 and m2, namely the distance L22 between the three-dimensional geographic position coordinate corresponding to n2 and the three-dimensional geographic position coordinate corresponding to m 2.
By analogy, when ni is calculated (for example, close to b1), as shown in fig. 3, Lii is smaller than the preset deviation threshold, the location verification of ni passes, and the location deviation value between ni +1 and mi +1 is continuously calculated, which is not described again.
When ni is calculated (e.g., close to b1), Lii is equal to or greater than the preset deviation threshold as shown in fig. 5 or 6, the location verification of ni fails, and the location deviation value between ni +1 and mi +1 is not calculated.
Further, the virtual route guidance mark may be corrected at ni, the position of the corrected virtual route guidance mark and the mi position are determined as comparison reference positions, and the step of determining sampling points to be compared in the first connecting line track and the second connecting line track respectively according to a preset distance is continuously performed.
The method for verifying the generated virtual road guiding identification provided by the embodiment of the invention can further accurately verify whether the position of the virtual road guiding identification is reasonable or not, and avoids omission in the design process.
On the basis of the foregoing embodiment, verifying the location of the virtual road sign according to the comparison result between the location deviation value and a preset deviation threshold includes:
specifically, if the device determines that all the position deviation values are smaller than the preset deviation threshold value, the position verification of all the virtual road indicating identifications is passed; reference may be made to the description of the above embodiments, which are not repeated.
Specifically, if the device determines that at least one position deviation value is greater than or equal to the preset deviation threshold, the position verification of the virtual road indicator does not pass. Reference may be made to the description of the above embodiments, which are not repeated.
The method for verifying the generated virtual road guiding identification provided by the embodiment of the invention can further accurately verify whether the position of the virtual road guiding identification is reasonable or not, and avoids omission in the design process.
On the basis of the above embodiment, the method further includes:
specifically, the device determines the first position deviation value greater than or equal to the preset deviation threshold value and the corresponding position on the first connecting line track as the target position; as shown in fig. 5 or fig. 6, the position of ni is the target position.
Specifically, the device generates a prompt message for correcting the virtual road directing identifier at the target position. The correction reason may include a missing virtual road indication at the target position, or a position error of the virtual road indication, and the embodiment of the present invention does not distinguish between the two.
After the generation of the prompting message, the method steps of the generated virtual road guiding identification can be executed continuously at the target position.
The method for verifying the generated virtual road directing identification provided by the embodiment of the invention can quickly determine the correction position of the virtual road directing identification, thereby improving the design efficiency of the road directing identification.
On the basis of the above embodiment, the determining a comparative reference position of the first connecting track and the second connecting track includes:
specifically, the device takes a first virtual road indicator in the first connecting line track and a first streamline inflection point in the second connecting line track as comparison reference positions. Reference is made to the above description and no further exclusions are made.
The method for verifying the generated virtual road guiding identification provided by the embodiment of the invention can further accurately verify whether the position of the virtual road guiding identification is reasonable or not, and avoids omission in the design process.
On the basis of the above embodiment, generating the position and the indication information of the virtual road guiding identifier; correspondingly, the generating the position and the indication information of the virtual road guiding identifier includes:
specifically, the device tracks the shooting position of a camera in the process of navigating the virtual moving scene according to the streamline at a first person visual angle; as shown in fig. 2, the first-person perspective simulates the height of the user's own perspective, and the preset traveling speed travels along at least a part of the path in the streamline to truly simulate browsing the virtual activity scene in person. The lines on the ground in fig. 2 represent streamlines, and the arrow direction of the lines represents the streamline method.
The visual angle height can be set independently according to actual conditions, and can be selected to be 1.7m, and the preset traveling speed can be set independently according to actual conditions, and can be selected to be 2 m/s.
The streamline can be understood as a pre-designed streamline planning design route, and the streamline is a streamline planning design route which is expressed visually in a virtual activity scene.
A camera may be understood as a camera that shoots a virtual live scene, which may be built into Unity, which records the camera shooting location in real time. And in the process of navigating the virtual movable scene according to the streamline at the first person visual angle, the shooting position of the camera is the same as the visual angle position of the person corresponding to the first person visual angle.
The camera shooting position may be represented by three-dimensional geographic coordinates. That is, as the view angle position of the person moves, the camera shooting position follows the movement.
Specifically, the device takes the camera shooting position as a viewpoint position, and determines the position of the virtual road indication mark according to the camera shooting position, the streamline inflection point and the first person view angle if the streamline inflection point falls into the view range of the first person view angle. The viewpoint position may be understood as the above-described view angle position of the person corresponding to the first-person view angle.
The visual field range can be understood as the range of the fan-shaped area which can be touched by the sight of a person.
Fig. 7 is a schematic diagram of a streamline creation according to an embodiment of the present invention, and as shown in fig. 7, a streamline is created in advance according to three-dimensional position coordinate points, and specifically includes a directional path of the streamline created by sequentially connecting the three-dimensional position coordinate points.
The streamline inflection point may include a first type streamline inflection point, which is a three-dimensional position coordinate point where an angle deviation value is greater than a preset angle threshold. FIG. 8 is a schematic view illustrating inflection points of a first type of streamline according to an embodiment of the present invention; as shown in fig. 8, the three-dimensional position coordinate point C is a first-type streamline inflection point.
The streamline inflection points may include a second type streamline inflection point, which is a first coincident three-dimensional position coordinate point corresponding to the activity participation identities, respectively. FIG. 9 is a diagram illustrating a second type of streamline inflection point according to an embodiment of the present invention; as shown in fig. 9, the three-dimensional position coordinate points B1 and B2 are second-type streamline inflection points (these two three-dimensional position coordinate points coincide). The activity participation status may include spectators, media, and athletes, etc. where the streamlines corresponding to the media and the athletes, respectively, may partially overlap in a particular area, such as an event activity mixing area.
Referring to fig. 9, for example, the media corresponding streamlines are in directions a1 to B1 to C1; the player corresponds to a streamline direction from a2 to B2 to C2 with B1 and B2 being the first coincident three-dimensional position coordinate points.
The streamline inflection point may include a third type streamline inflection point, which is a three-dimensional position coordinate point at the divergent path. FIG. 10 is a schematic diagram illustrating a third type of inflection point of a streamline in accordance with an embodiment of the present invention; as shown in fig. 10, three-dimensional position coordinate points C to D constitute one path, and three-dimensional position coordinate points C to E constitute another path, the three-dimensional position coordinate point C being a three-dimensional position coordinate point at a branch path.
According to the camera shooting position, the streamline inflection point and the first person visual angle, the position of the virtual road indication mark is determined, and the method specifically comprises the following steps:
determining the position at the streamline inflection point and corresponding to the visual angle height of the first person visual angle as the initial position of the virtual road indicating mark; namely, the plane position coordinate of the initial position can be determined through the three-dimensional position coordinate point of the streamline inflection point, and the height position coordinate of the initial position can be determined through the visual angle height.
Responding to the action of adjusting the initial position, and simulating and transferring to a viewing angle of a browse adjusting position at the camera shooting position; the user can adjust the position of the guidepost marked with the evacuation channel through the mouse.
The simulation is transferred to the viewing angle of the browsing adjustment position, which can be understood as that the viewing angle is transferred to the direction of the guidepost marked with the 'evacuation channel' so that the sight line is perpendicular to the plane of the virtual guidepost mark, and the viewing angle is kept at the original place of the camera shooting position. The user can easily determine whether the adjustment position is reasonable, such as whether the writing on the fingerboard marked with the "evacuation lane" can be seen clearly, whether the position of the fingerboard is easy to see, and the like.
In response to determining the act of adjusting the location, determining a location of the virtual way heading. The adjustment position can be continuously adjusted according to the viewing angle of the browsing adjustment position, when the adjustment position is determined to reach the expected target, the user executes the action of determining the adjustment position, and the adjustment position at the moment is used as the position of the virtual road guide identification. The expected target can be set autonomously according to the actual objective condition, and referring to the above example, for example, the vertical distance from the virtual fingerpost to the streamline can be calculated, the vertical distance should be smaller than the preset vertical distance threshold, and/or the text content on the virtual fingerpost identifier is identified by using the preset model simulating human eyes, and the accuracy reaches the preset threshold.
The vertical distance can be understood as the vertical distance between the point of the virtual fingering mark perpendicular to the ground and the streamline.
The intended target may also be determined autonomously by the user, as explained with reference to the above embodiments.
The desired objective may also be determined in a manner that combines the actual objective situation described above with the user's autonomic determination.
Specifically, the device generates the indication information of the virtual index mark at the position according to the attribute information of the streamline. The attribute information of the streamline can comprise a streamline number, a streamline name, an attribute of the streamline, a streamline type, streamline direction information, a streamline inflection point and the like.
The streamline belongs to the activity participation identity of the activity participation party to which the streamline belongs, and the type of the streamline comprises at least one of a pedestrian streamline, a vehicle streamline and a logistics distribution streamline.
The indicating information may include identifying indicating direction information, such as the direction the signpost is pointing in as shown in fig. 2.
The indication information may include an identification indication distance. The indication distance is used to indicate the path distance of the flow from the current index mark to the next index mark.
Generating the indication information of the virtual road directing identifier according to the attribute information of the streamline, wherein the indication information comprises the following steps:
and generating the identification indication direction information according to the streamline direction information. Referring to fig. 2, the indication direction information is aligned with the streamline direction at the corner.
Generating the indication information of the virtual road directing identifier according to the attribute information of the streamline, and further comprising:
and determining the flow line path distance between the next streamline inflection point and the current streamline inflection point, and taking the flow line path distance as the identification indication distance. FIG. 11 is an illustrative representation of the path distance of a flow path in accordance with an embodiment of the present invention; as shown in fig. 11, the current streamline inflection point is a three-dimensional position coordinate point C, the next streamline inflection point is a three-dimensional position coordinate point F, and the streamline path distance is the streamline path distance between the three-dimensional position coordinate point C and the three-dimensional position coordinate point F.
It should be noted that the flow path may not be a straight path, and accordingly, the flow path distance is a non-straight path representing a real flow path.
The position and the indication information can be directly given to the entity directing mark and used as the design parameter of the entity directing mark.
According to the method for verifying the generated virtual road indication, the position of the virtual road indication is determined according to the shooting position of the camera, the inflection point of the streamline and the first-person visual angle, the indication information of the virtual road indication is generated at the position according to the attribute information of the streamline, the design parameters of the entity road indication can be determined according to the position and the indication information, the running design scheme of the road indication can be determined without multiple adjustments in an activity field, and the working efficiency of the design of the running design scheme of the road indication is improved.
On the basis of the above embodiment, the determining the position of the virtual road indicator according to the camera shooting position, the streamline inflection point and the first-person view angle includes:
specifically, the device determines a position at the streamline inflection point and corresponding to the viewing angle height of the first person viewing angle as an initial position of the virtual road guiding mark; reference is made to the above description and no further description is made.
Specifically, the device responds to the action of adjusting the initial position, and simulates and transfers to a viewing angle of a browsing adjusting position at the camera shooting position; reference is made to the above description and no further description is made.
Specifically, the device determines the location of the virtual routing identifier in response to determining the action to adjust the location. Reference is made to the above description and no further description is made.
The method for verifying the generated virtual guide mark provided by the embodiment of the invention takes the initial position of the virtual guide mark as a starting point, and continuously adjusts the position of the virtual guide mark according to the view angle of the simulation transfer to the browsing adjustment position, thereby improving the working efficiency of the position design of the virtual guide mark.
The streamline inflection point comprises a first type streamline inflection point; accordingly, the determination of the first type of streamline inflection point comprises:
specifically, the device compares adjacent line segments, and if the angle deviation value of the adjacent line segments is greater than a preset angle threshold, the device determines the rear endpoint of the previous line segment along the streamline direction as the streamline inflection point; each line segment is formed by connecting three-dimensional position coordinate points pairwise in sequence; the streamline is created in advance according to the three-dimensional position coordinate points; the first type streamline inflection point is a three-dimensional position coordinate point with an angle deviation value larger than a preset angle threshold value. Referring to fig. 8, three-dimensional position coordinate points a to D are connected in pairs in sequence to form line segments AB, BC, and CD.
And comparing the adjacent line segments AB and BC according to the streamline direction, keeping the angle deviation value between the AB and BC to be zero and smaller than a preset angle threshold, and continuously traversing the adjacent line segments.
And comparing adjacent line segments BC and CD, wherein the angle deviation value between BC and CD is greater than a preset angle threshold value, the previous line segment along the flow line direction is CD, the latter endpoint of CD is a three-dimensional position coordinate point C, namely the three-dimensional position coordinate point C is a first type flow line inflection point.
According to the method for verifying the generated virtual road directing identifier, the position of the virtual road directing identifier can be further reasonably determined by reasonably determining the first type streamline inflection point, and the working efficiency of design of a road directing identifier operation design scheme is further improved.
The streamline inflection points comprise second type streamline inflection points; accordingly, the determination of the second type of streamline inflection point comprises:
specifically, the device determines attribute information of a streamline where a three-dimensional position coordinate point is located; the attribute information includes the streamline.
Specifically, if the device determines that at least two different streamline belong to the same, the device determines that the three-dimensional position coordinate point is the second type streamline inflection point; the streamline is created in advance according to the three-dimensional position coordinate point; and the second type streamline inflection point is a first coincident three-dimensional position coordinate point respectively corresponding to the activity participation identities. Referring to fig. 9, a three-dimensional position coordinate point a1 corresponding to the media user belongs to a media stream line. A1 only belongs to the media stream line, and the stream line belongs to the only one, so that at least two different stream lines do not belong to the stream line, and the traversal of the adjacent three-dimensional position coordinate point B1 is continued.
B1 belongs to a media streamline and also to an athlete streamline, so that there are at least two different streamlines to which it belongs, and therefore, the three-dimensional position coordinate point B1 is determined to be a second type streamline inflection point.
Similarly, for the athlete user, a2 is not a second type streamline inflection point, and B2 is a second type streamline inflection point.
According to the method for verifying the generated virtual road directing identifier, the position of the virtual road directing identifier can be further reasonably determined by reasonably determining the second type streamline inflection point, and the working efficiency of design of a road directing identifier operation design scheme is further improved.
The streamline inflection points comprise third-type streamline inflection points; accordingly, the determination of the third type of streamline inflection point comprises:
specifically, the device determines whether the three-dimensional position coordinate point is located on at least two different flow line paths; referring to fig. 10, the three-dimensional position coordinate point a is located on only one flow path, and the three-dimensional position coordinate point B is continuously traversed and also located on only one flow path.
And continuously traversing the three-dimensional position coordinate points C, wherein the points C are respectively positioned on the flow line path CD and the flow line path CE.
Specifically, if the device determines that the three-dimensional position coordinate point is the third type streamline inflection point, determining that the three-dimensional position coordinate point is the third type streamline inflection point; the streamline is created in advance according to the three-dimensional position coordinate point; and the inflection point of the third type streamline is a three-dimensional position coordinate point at the branching path. And determining the three-dimensional position coordinate point C as a third type streamline inflection point by referring to the three-dimensional position coordinate point C.
According to the method for verifying the generated virtual road directing identifier, the position of the virtual road directing identifier can be further reasonably determined by reasonably determining the inflection point of the streamline of the third type, and the working efficiency of design of a road directing identifier operation design scheme is further improved.
Fig. 12 is a schematic structural diagram of an embodiment of an apparatus for verifying a generated virtual way identifier according to the present invention, and as shown in fig. 12, an embodiment of the present invention provides an apparatus for verifying a generated virtual way identifier, which includes a determining unit 1201 and a verifying unit 1202, where:
the determining unit 1201 is configured to connect every two adjacent virtual route identifiers, and determine a first connecting track; the virtual road directing identifier is in a virtual activity scene and is used for simulating design parameters of the entity road directing identifier; the virtual activity scene is a virtual model established according to preset activity scene data; the verification unit 1202 is configured to compare the first connection trajectory with the second connection trajectory, and verify the position of the virtual road indicator according to a comparison result; and the second connecting line track is a streamline track in the virtual activity scene.
Specifically, the determining unit 1201 is configured to connect every two adjacent virtual route identifiers to determine a first connecting track; the virtual guide mark is in a virtual activity scene and is used for simulating design parameters of an entity guide mark; the virtual activity scene is a virtual model established according to preset activity scene data; the verification unit 1202 is configured to compare the first connection trajectory with the second connection trajectory, and verify the position of the virtual road indicator according to a comparison result; and the second connecting line track is a streamline track in the virtual activity scene.
The device for verifying the generated virtual road indication mark provided by the embodiment of the invention compares the first connecting track with the second connecting track, verifies the position of the virtual road indication mark according to the comparison result, can verify whether the position of the virtual road indication mark is reasonable, and avoids omission in the design process.
The device for verifying the generated virtual way identifier provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the device are not described herein again, and refer to the detailed description of the above method embodiments.
Fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 13, the electronic device includes: a processor (processor)1301, a memory (memory)1302, and a bus 1303;
the processor 1301 and the memory 1302 complete communication with each other through a bus 1303;
the processor 1301 is configured to call the program instructions in the memory 1302 to perform the methods provided by the method embodiments, for example, including: connecting every two adjacent virtual road indicating marks to determine a first connecting track; the virtual guide mark is in a virtual activity scene and is used for simulating the design parameters of the entity guide mark; the virtual activity scene is a virtual model established according to preset activity scene data; comparing the first connecting track with the second connecting track, and verifying the position of the virtual guide path identifier according to the comparison result; and the second connecting line track is a streamline track in the virtual activity scene.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, which when executed by a computer, the computer is capable of performing the method provided by the above method embodiments, for example, comprising: connecting every two adjacent virtual road indicating marks to determine a first connecting track; the virtual road directing identifier is in a virtual activity scene and is used for simulating design parameters of the entity road directing identifier; the virtual activity scene is a virtual model established according to preset activity scene data; comparing the first connecting track with the second connecting track, and verifying the position of the virtual guide path identifier according to the comparison result; and the second connecting line track is a streamline track in the virtual activity scene.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: connecting every two adjacent virtual road directing marks to determine a first connecting track; the virtual guide mark is in a virtual activity scene and is used for simulating design parameters of an entity guide mark; the virtual activity scene is a virtual model established according to preset activity scene data; comparing the first connecting track with the second connecting track, and verifying the position of the virtual road guiding mark according to the comparison result; and the second connecting line track is a streamline track in the virtual activity scene.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the program may be stored in a computer readable storage medium, and when executed, performs the steps including the above method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and of course, can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.