CN113781603B - Track point generating method, device, computer equipment and computer storage medium - Google Patents
Track point generating method, device, computer equipment and computer storage medium Download PDFInfo
- Publication number
- CN113781603B CN113781603B CN202111081517.4A CN202111081517A CN113781603B CN 113781603 B CN113781603 B CN 113781603B CN 202111081517 A CN202111081517 A CN 202111081517A CN 113781603 B CN113781603 B CN 113781603B
- Authority
- CN
- China
- Prior art keywords
- curve
- interception
- point
- azimuth angle
- intercepted
- 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.)
- Active
Links
Classifications
-
- G06T11/23—
Landscapes
- Image Analysis (AREA)
- Image Generation (AREA)
Abstract
本公开提供了一种轨迹点生成方法、装置计算机设备以及计算机存储介质,其中,该方法包括:获取待绘制的曲线;按照预设的像素点截取范围,分别截取各段截取曲线;通过比较不同段截取曲线对应的方位角差值的变化,确定曲线对应的各个拐点;根据确定的各个拐点,生成并展示曲线对应的轨迹点。本公开实施例通过优先确定曲线中的拐点,避免了按照预设采样间隔对曲线进行采样的过程中,由于采样间隔设置不当,造成遗漏掉拐点,导致无法通过轨迹点表征准确的曲线的问题,从而提高了轨迹点表征曲线的准确度;此外,还提高了拐点识别的准确度。
The present disclosure provides a trajectory point generation method, device computer equipment, and computer storage medium, wherein the method includes: acquiring a curve to be drawn; intercepting each segment of the intercepted curve according to a preset pixel point intercepting range; comparing different Intercept the change of the azimuth angle difference corresponding to the curve to determine each inflection point corresponding to the curve; generate and display the trajectory point corresponding to the curve according to each determined inflection point. In this disclosed embodiment, by prioritizing the inflection points in the curve, it avoids the problem that in the process of sampling the curve according to the preset sampling interval, the inflection point is missed due to improper setting of the sampling interval, resulting in the inability to represent an accurate curve through the trajectory points. Therefore, the accuracy of the trajectory point characterization curve is improved; in addition, the accuracy of inflection point recognition is also improved.
Description
技术领域technical field
本公开涉及计算机技术领域,具体而言,涉及一种轨迹点生成方法、装置、计算机设备以及计算机存储介质。The present disclosure relates to the field of computer technology, and in particular, to a track point generation method, device, computer equipment, and computer storage medium.
背景技术Background technique
随着教育制度的改革与发展,培养学生德智体美劳全面发展已成为当前教育的主要任务;在培养学生美术能力时,对于一些没有美术基础的学生,可以通过临摹的方式进行美术学习。供学生临摹使用的临摹图画中的每条线段中的临摹点一般是图画制作人员手动绘制出来的,这样,可能存在当临摹图画较为复杂时,需要耗费大量的时间成本才能完成临摹点的绘制,效率较低。With the reform and development of the education system, it has become the main task of current education to cultivate students' all-round development of morality, intelligence, physique, art and labor; when cultivating students' art ability, for some students who have no art foundation, they can learn art through copying. The copying points in each line segment in the copying pictures for students to copy are generally drawn manually by the picture creators. In this way, when the copying pictures are more complicated, it may take a lot of time to complete the drawing of the copying points. less efficient.
为了提高临摹图画中的临摹点绘制的效率,可以使用自动采样的方式确定临摹图画中的临摹点,但是通过自动采样的方式确定临摹点时,可能存在由于采样区间选取不当,导致临摹图画中的一些比较重要的点(比如,临摹图画中曲线的拐点)未被采样,从而导致通过临摹点表征的临摹图画不准确的问题。In order to improve the drawing efficiency of the imitation points in the imitation pictures, automatic sampling can be used to determine the imitation points in the imitation pictures. Some more important points (for example, the inflection point of the curve in the copied picture) are not sampled, which leads to the inaccurate problem of the copied picture represented by the copied point.
发明内容Contents of the invention
本公开实施例至少提供一种轨迹点生成方法、装置、计算机设备以及计算机存储介质。Embodiments of the present disclosure at least provide a method and device for generating track points, a computer device, and a computer storage medium.
第一方面,本公开实施例提供了一种轨迹点生成方法,包括:In a first aspect, an embodiment of the present disclosure provides a method for generating track points, including:
获取待绘制的曲线;Get the curve to be drawn;
按照预设的像素点截取范围,分别截取各段截取曲线;其中,截取的相邻段截取曲线之间的像素点存在重合;According to the preset pixel point interception range, intercept each section of the interception curve respectively; wherein, the pixel points between the interception curves of the adjacent sections of the interception overlap;
通过比较不同段截取曲线对应的方位角差值的变化,确定所述曲线对应的各个拐点;所述方位角差值为所述截取曲线中的不同线段的方位角之差;By comparing the changes of the azimuth difference values corresponding to the intercepted curves of different segments, each inflection point corresponding to the curve is determined; the azimuth difference value is the difference between the azimuth angles of different line segments in the intercepted curve;
根据确定的各个拐点,生成并展示所述曲线对应的轨迹点;所述轨迹点用于指示用户进行曲线绘制。According to each determined inflection point, generate and display the track point corresponding to the curve; the track point is used to instruct the user to draw the curve.
在一种可能的实施方式中,按照预设的像素点截取范围,分别截取各段截取曲线,包括:In a possible implementation manner, each segment of the interception curve is intercepted according to the preset pixel point interception range, including:
按照预设的像素点截取范围,依次将所述曲线上的每个像素点作为截取起点,分别截取各段截取曲线。According to the preset pixel point clipping range, each pixel point on the curve is used as the clipping starting point in turn, and each clipping curve is clipped respectively.
在一种可能的实施方式中,所述通过比较不同段截取曲线对应的方位角差值的变化,确定所述曲线对应的各个拐点,包括:In a possible implementation manner, the determination of each inflection point corresponding to the curve by comparing the change of the azimuth angle difference corresponding to different segments of the intercept curve includes:
通过比较不同段截取曲线对应的方位角差值,确定对应的方位角差值从小于设定阈值增大到大于或等于设定阈值时的第一截取曲线,以及在截取所述第一截取曲线之后截取的、对应的方位角差值从大于设定阈值减小到小于或等于设定阈值时的第二截取曲线;By comparing the azimuth angle difference values corresponding to the interception curves of different segments, determine the first interception curve when the corresponding azimuth angle difference value increases from less than the set threshold value to greater than or equal to the set threshold value, and intercept the first interception curve A second interception curve intercepted later when the corresponding azimuth angle difference decreases from greater than the set threshold to less than or equal to the set threshold;
基于所述第一截取曲线和所述第二截取曲线,确定所述曲线对应的拐点。An inflection point corresponding to the curve is determined based on the first intercept curve and the second intercept curve.
在一种可能的实施方式中,根据以下步骤确定所述方位角差值:In a possible implementation manner, the azimuth angle difference is determined according to the following steps:
针对每段截取曲线,基于该段截取曲线对应的前后两半线段分别对应的方位角,确定该段截取曲线对应的方位角差值。For each segment of the interception curve, based on the azimuth angles corresponding to the front and rear half line segments corresponding to the segment of the interception curve, the azimuth angle difference corresponding to the segment of the interception curve is determined.
在一种可能的实施方式中,确定所述第一截取曲线和第二截取曲线,包括:In a possible implementation manner, determining the first interception curve and the second interception curve includes:
若当前段截取曲线对应的方位角差值大于或等于设定阈值、且该当前段截取曲线的上一段截取曲线对应的方位角差值小于设定阈值,则将当前段截取曲线作为所述第一截取曲线;If the azimuth angle difference corresponding to the current segment intercept curve is greater than or equal to the set threshold, and the azimuth angle difference corresponding to the previous segment intercept curve of the current segment intercept curve is less than the set threshold, then the current segment intercept curve is used as the first segment an intercepted curve;
若当前段截取曲线对应的方位角差值小于或等于设定阈值、且该当前段截取曲线的上一段截取曲线对应的方位角差值大于设定阈值,则将当前段截取曲线作为所述第二截取曲线。If the azimuth angle difference corresponding to the current segment intercept curve is less than or equal to the set threshold, and the azimuth angle difference corresponding to the previous segment intercept curve of the current segment intercept curve is greater than the set threshold, then the current segment intercept curve is used as the first segment Two intercept curves.
在一种可能的实施方式中,所述基于所述第一截取曲线和所述第二截取曲线,确定所述曲线对应的拐点,包括:In a possible implementation manner, the determining the inflection point corresponding to the curve based on the first interception curve and the second interception curve includes:
获取所述第一截取曲线的第一中点和所述第二截取曲线的第二中点;obtaining a first midpoint of the first intercept curve and a second midpoint of the second intercept curve;
计算所述第一中点和第二中点之间的中点,将该中点作为一个所述拐点。Calculate a midpoint between the first midpoint and the second midpoint, and use the midpoint as one of the inflection points.
在一种可能的实施方式中,所述根据确定的各个拐点,生成并展示所述曲线对应的轨迹点,包括:In a possible implementation manner, the generating and displaying the trajectory points corresponding to the curve according to each determined inflection point includes:
基于确定的各个拐点,将所述曲线划分为多个采样线段;所述拐点为采样线段的端点;Based on each determined inflection point, the curve is divided into a plurality of sampling line segments; the inflection point is an endpoint of the sampling line segment;
基于预设采样间隔,从每个所述采样线段中采样得到多个轨迹点;所述多个轨迹点中包括曲线中的拐点;Based on a preset sampling interval, a plurality of trajectory points are obtained by sampling from each of the sampling line segments; the plurality of trajectory points include inflection points in the curve;
将多个采样线段中分别采样的多个轨迹点,作为所述曲线对应的轨迹点。A plurality of trajectory points respectively sampled in the plurality of sampling line segments are used as trajectory points corresponding to the curve.
第二方面,本公开实施例还提供了一种轨迹点生成装置,包括:In the second aspect, the embodiment of the present disclosure also provides a track point generation device, including:
获取模块,用于获取待绘制的曲线;Obtaining module, used to obtain the curve to be drawn;
第一处理模块,用于按照预设的像素点截取范围,分别截取各段截取曲线;其中,截取的相邻段截取曲线之间的像素点存在重合;The first processing module is used to intercept each segment of the interception curve according to the preset pixel point interception range; wherein, the pixel points between the intercepted adjacent segment interception curves overlap;
确定模块,用于通过比较不同段截取曲线对应的方位角差值的变化,确定所述曲线对应的各个拐点;所述方位角差值为所述截取曲线中的不同线段的方位角之差;A determining module, configured to determine each inflection point corresponding to the curve by comparing the changes in the azimuth angle difference values corresponding to different segments of the intercepted curve; the azimuth angle difference value is the difference between the azimuth angles of different line segments in the intercepted curve;
第二处理模块,用于根据确定的各个拐点,生成并展示所述曲线对应的轨迹点;所述轨迹点用于指示用户进行曲线绘制。The second processing module is configured to generate and display track points corresponding to the curve according to each determined inflection point; the track points are used to instruct the user to draw the curve.
在一种可能的实施方式中,所述第一处理模块在执行按照预设的像素点截取范围,分别截取各段截取曲线时,具体用于:In a possible implementation manner, the first processing module is specifically used to:
按照预设的像素点截取范围,依次将所述曲线上的每个像素点作为截取起点,分别截取各段截取曲线。According to the preset pixel point clipping range, each pixel point on the curve is used as the clipping starting point in turn, and each clipping curve is clipped respectively.
在一种可能的实施方式中,所述确定模块在执行所述通过比较不同段截取曲线对应的方位角差值的变化,确定所述曲线对应的各个拐点时,具体用于:In a possible implementation manner, when the determination module executes the determination of each inflection point corresponding to the curve by comparing the change of the azimuth angle difference corresponding to different interception curves, it is specifically used to:
通过比较不同段截取曲线对应的方位角差值,确定对应的方位角差值从小于设定阈值增大到大于或等于设定阈值时的第一截取曲线,以及在截取所述第一截取曲线之后截取的、对应的方位角差值从大于设定阈值减小到小于或等于设定阈值时的第二截取曲线;By comparing the azimuth angle difference values corresponding to the interception curves of different segments, determine the first interception curve when the corresponding azimuth angle difference value increases from less than the set threshold value to greater than or equal to the set threshold value, and intercept the first interception curve A second interception curve intercepted later when the corresponding azimuth angle difference decreases from greater than the set threshold to less than or equal to the set threshold;
基于所述第一截取曲线和所述第二截取曲线,确定所述曲线对应的拐点。An inflection point corresponding to the curve is determined based on the first intercept curve and the second intercept curve.
在一种可能的实施方式中,所述确定模块根据以下步骤确定所述方位角差值:In a possible implementation manner, the determination module determines the azimuth difference according to the following steps:
针对每段截取曲线,基于该段截取曲线对应的前后两半线段分别对应的方位角,确定该段截取曲线对应的方位角差值。For each segment of the interception curve, based on the azimuth angles corresponding to the front and rear half line segments corresponding to the segment of the interception curve, the azimuth angle difference corresponding to the segment of the interception curve is determined.
在一种可能的实施方式中,所述确定模块确定所述第一截取曲线和第二截取曲线时,具体用于:In a possible implementation manner, when the determination module determines the first interception curve and the second interception curve, it is specifically used for:
若当前段截取曲线对应的方位角差值大于或等于设定阈值、且该当前段截取曲线的上一段截取曲线对应的方位角差值小于设定阈值,则将当前段截取曲线作为所述第一截取曲线;If the azimuth angle difference corresponding to the current segment intercept curve is greater than or equal to the set threshold, and the azimuth angle difference corresponding to the previous segment intercept curve of the current segment intercept curve is less than the set threshold, then the current segment intercept curve is used as the first segment an intercepted curve;
若当前段截取曲线对应的方位角差值小于或等于设定阈值、且该当前段截取曲线的上一段截取曲线对应的方位角差值大于设定阈值,则将当前段截取曲线作为所述第二截取曲线。If the azimuth angle difference corresponding to the current segment intercept curve is less than or equal to the set threshold, and the azimuth angle difference corresponding to the previous segment intercept curve of the current segment intercept curve is greater than the set threshold, then the current segment intercept curve is used as the first segment Two intercept curves.
在一种可能的实施方式中,所述确定模块在执行所述基于所述第一截取曲线和所述第二截取曲线,确定所述曲线对应的拐点时,具体用于:In a possible implementation manner, when the determination module executes the determining the inflection point corresponding to the curve based on the first interception curve and the second interception curve, it is specifically configured to:
获取所述第一截取曲线的第一中点和所述第二截取曲线的第二中点;obtaining a first midpoint of the first intercept curve and a second midpoint of the second intercept curve;
计算所述第一中点和第二中点之间的中点,将该中点作为一个所述拐点。Calculate a midpoint between the first midpoint and the second midpoint, and use the midpoint as one of the inflection points.
在一种可能的实施方式中,所述第二处理模块在执行所述根据确定的各个拐点,生成并展示所述曲线对应的轨迹点时,具体用于:In a possible implementation manner, the second processing module is specifically configured to:
基于确定的各个拐点,将所述曲线划分为多个采样线段;所述拐点为采样线段的端点;Based on each determined inflection point, the curve is divided into a plurality of sampling line segments; the inflection point is an endpoint of the sampling line segment;
基于预设采样间隔,从每个所述采样线段中采样得到多个轨迹点;所述多个轨迹点中包括曲线中的拐点;Based on a preset sampling interval, a plurality of trajectory points are obtained by sampling from each of the sampling line segments; the plurality of trajectory points include inflection points in the curve;
将多个采样线段中分别采样的多个轨迹点,作为所述曲线对应的轨迹点。A plurality of trajectory points respectively sampled in the plurality of sampling line segments are used as trajectory points corresponding to the curve.
第三方面,本公开可选实现方式还提供一种计算机设备,包括:处理器、存储器,所述存储器存储有所述处理器可执行的机器可读指令,所述处理器用于执行所述存储器中存储的机器可读指令,所述机器可读指令被所述处理器执行时执行如上述第一方面,或第一方面中任一种可能的实施方式所述的轨迹点生成方法的步骤。In a third aspect, an optional implementation manner of the present disclosure further provides a computer device, including: a processor and a memory, the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the memory The machine-readable instructions stored in the computer, when the machine-readable instructions are executed by the processor, execute the steps of the method for generating track points as described in the above first aspect, or any possible implementation manner of the first aspect.
第四方面,本公开可选的实现方式还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如上述第一方面,或第一方面中任一种可能的实施方式所述的轨迹点生成方法的步骤。In the fourth aspect, an optional implementation manner of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the above-mentioned first aspect or the first aspect is executed. Steps in the method for generating trajectory points described in any possible implementation manner in one aspect.
本公开实施例提供的轨迹点生成方法中,按照预设的像素点截取范围,分别截取各段截取曲线,并通过比较不同段截取曲线对应的方位角差值的变化,确定曲线对应的各个拐点;在确定曲线对应的各个拐点之后,可以根据确定的各个拐点,生成并展示曲线对应的轨迹点,以使通过轨迹点指示用户对曲线进行绘制;这里,通过预先确定曲线中的拐点,避免了按照预设采样间隔对曲线进行采样的过程中,由于采样间隔设置不当,造成遗漏掉拐点,导致无法通过轨迹点表征准确的曲线的问题,从而提高了轨迹点表征曲线的准确度。In the trajectory point generation method provided by the embodiments of the present disclosure, each interception curve is intercepted according to the preset pixel point interception range, and each inflection point corresponding to the curve is determined by comparing the change of azimuth angle difference corresponding to different interception curves ; After each inflection point corresponding to the curve is determined, the trajectory point corresponding to the curve can be generated and displayed according to each determined inflection point, so that the user can be instructed to draw the curve through the trajectory point; here, by pre-determining the inflection point in the curve, avoiding In the process of sampling the curve according to the preset sampling interval, due to the improper setting of the sampling interval, the inflection point is missed, resulting in the problem that the accurate curve cannot be represented by the trajectory point, thereby improving the accuracy of the curve represented by the trajectory point.
另外,本公开实施例中,可以依次将曲线上的每个像素点作为截取起点,得到待绘制的曲线对应的若干段截取曲线(截取曲线之间的像素点是存在重合的),并通过比较各截取曲线对应的方位角差值的变化,确定各截取曲线之间的转折变化,从而确定曲线对应的各个拐点,这样提高了拐点识别的准确度。In addition, in the embodiment of the present disclosure, each pixel point on the curve can be used as the interception starting point in turn to obtain several interception curves corresponding to the curve to be drawn (the pixel points between the interception curves overlap), and by comparing Changes in azimuth angle differences corresponding to the intercepted curves determine the turning changes between the intercepted curves, thereby determining each inflection point corresponding to the curve, which improves the accuracy of inflection point identification.
关于上述轨迹点生成装置、计算机设备、及计算机可读存储介质的效果描述参见上述轨迹点生成方法的说明,这里不再赘述。For the effect description of the above-mentioned track point generation device, computer equipment, and computer-readable storage medium, please refer to the description of the above-mentioned track point generation method, which will not be repeated here.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present disclosure more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. The accompanying drawings here are incorporated into the specification and constitute a part of the specification. The drawings show the embodiments consistent with the present disclosure, and are used together with the description to explain the technical solution of the present disclosure. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. For those skilled in the art, they can also make From these figures are obtained other related figures.
图1示出了本公开实施例所提供的一种轨迹点生成方法的流程图;FIG. 1 shows a flowchart of a method for generating track points provided by an embodiment of the present disclosure;
图2示出了本公开实施例所提供的轨迹点生成方法中,一种包含多段截取曲线的待绘制的曲线的示意图;FIG. 2 shows a schematic diagram of a curve to be drawn including multiple intercepted curves in the trajectory point generation method provided by an embodiment of the present disclosure;
图3示出了本公开实施例所提供的轨迹点生成方法中,一种指示有方位角差值的截取曲线的示意图;FIG. 3 shows a schematic diagram of an interception curve indicating an azimuth angle difference in the trajectory point generation method provided by an embodiment of the present disclosure;
图4示出了本公开实施例所提供的轨迹点生成方法中,一种指示有第一截取曲线和第二截取曲线的待绘制的曲线的示意图;FIG. 4 shows a schematic diagram of a curve to be drawn indicating a first intercepted curve and a second intercepted curve in the track point generation method provided by an embodiment of the present disclosure;
图5示出了本公开实施例所提供的轨迹点生成方法中,一种指示出拐点的待绘制的曲线的示意图;FIG. 5 shows a schematic diagram of a curve to be drawn indicating an inflection point in the trajectory point generation method provided by an embodiment of the present disclosure;
图6示出了本公开实施例所提供的轨迹点生成方法中,另一种指示出拐点的待绘制的曲线的示意图;FIG. 6 shows a schematic diagram of another curve to be drawn indicating an inflection point in the trajectory point generation method provided by an embodiment of the present disclosure;
图7示出了本公开实施例所提供的轨迹点生成方法中,一种用多个轨迹点表征待绘制的曲线的示意图;FIG. 7 shows a schematic diagram of using multiple trajectory points to represent a curve to be drawn in the method for generating trajectory points provided by an embodiment of the present disclosure;
图8示出了本公开实施例所提供的一种轨迹点生成装置的示意图;Fig. 8 shows a schematic diagram of a track point generation device provided by an embodiment of the present disclosure;
图9示出了本公开实施例所提供的一种计算机设备的示意图。Fig. 9 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only It is a part of the embodiments of the present disclosure, but not all of them. The components of the disclosed embodiments generally described and illustrated herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative effort shall fall within the protection scope of the present disclosure.
针对以上方案所存在的缺陷,均是发明人在经过实践并仔细研究后得出的结果,因此,上述问题的发现过程以及下文中本公开针对上述问题所提出的解决方案,都应该是发明人在本公开过程中对本公开做出的贡献。The defects in the above solutions are all the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above problems and the solutions proposed by the present disclosure below for the above problems should be the result of the inventor Contributions made to this disclosure during the course of this disclosure.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
为便于对本实施例进行理解,首先对本公开实施例所公开的一种轨迹点生成方法进行详细介绍,本公开实施例所提供的轨迹点生成方法的执行主体一般为具有一定计算能力的计算机设备,该计算机设备例如包括:终端设备或服务器或其它处理设备,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字处理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等。在一些可能的实现方式中,该轨迹点生成方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In order to facilitate the understanding of this embodiment, a method for generating track points disclosed in the embodiments of the present disclosure is firstly introduced in detail. The execution subject of the method for generating track points provided by the embodiments of the present disclosure is generally a computer device with certain computing capabilities. The computer equipment includes, for example: a terminal device or a server or other processing equipment, and the terminal device may be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), handheld devices, computing devices, vehicle-mounted devices, wearable devices, etc. In some possible implementation manners, the method for generating track points may be implemented in a manner in which a processor invokes computer-readable instructions stored in a memory.
参见图1所示,为本公开实施例提供的轨迹点生成方法的流程图,该轨迹点生成方法包括S101~S104,其中:Referring to FIG. 1 , it is a flowchart of a track point generation method provided by an embodiment of the present disclosure. The track point generation method includes S101-S104, wherein:
S101、获取待绘制的曲线。S101. Obtain a curve to be drawn.
需要说明的是,本公开实施例提供的轨迹点生成方法可以应用在任何需要对轨迹线进行处理,生成用于指示该轨迹线的轨迹点的场景;例如,可以应用在临摹场景中,对需要进行临摹的临摹画面中任一曲线进行处理,生成用于指示该曲线的轨迹点,通过展示这些轨迹点,来用于学生进行临摹,也即曲线绘制;还可以应用在城市建设场景中,对待规划路线进行处理,生成用于指示该规划路线的轨迹点,以便于基于指示该待规划路线的轨迹点,对车辆的速度、加速度等信息进行规划;还可以应用在对车辆或机器人等行驶轨迹进行研究的场景,该场景中可以对车辆或机器人的行驶轨迹进行处理,生成用于指示该行驶轨迹的轨迹点,以基于各轨迹点对应的速度信息、加速度信息、位姿信息等,对车辆或机器人的性能等进行进一步研究改进。It should be noted that the track point generation method provided by the embodiments of the present disclosure can be applied to any scene where track lines need to be processed to generate track points used to indicate the track lines; Process any curve in the copying screen to generate track points for indicating the curve, and display these track points for students to copy, that is, curve drawing; it can also be applied in urban construction scenes, treat The planned route is processed, and the trajectory point used to indicate the planned route is generated, so as to plan the speed, acceleration and other information of the vehicle based on the trajectory point indicating the route to be planned; it can also be applied to the driving trajectory of vehicles or robots The scene of the research, in which the driving trajectory of the vehicle or robot can be processed, and the trajectory points used to indicate the driving trajectory can be generated, so as to control the vehicle based on the speed information, acceleration information, pose information, etc. corresponding to each trajectory point. Or the performance of the robot for further research and improvement.
基于此,待绘制的曲线例如可以包括但不限于:临摹场景中临摹画面包含的任一曲线、城市规划场景中待规划的路线、以及车辆或机器人等的行驶路线中的至少一种;本公开实施例中以将轨迹点生成方法应用在临摹场景、待绘制的曲线包括临摹场景中临摹画面包含的任一曲线为例进行详细说明。Based on this, the curve to be drawn may include, but not limited to: any curve included in the copying scene, the route to be planned in the urban planning scene, and at least one of the driving route of the vehicle or robot; the present disclosure In the embodiment, the method for generating track points is applied to a copying scene, and the curve to be drawn includes any curve included in the copying screen in the copying scene as an example to describe in detail.
承接上述S101,本公开实施例提供的轨迹点生成方法还包括:Subsequent to the above S101, the trajectory point generation method provided by the embodiment of the present disclosure further includes:
S102、按照预设的像素点截取范围,分别截取各段截取曲线;其中,截取的相邻段曲线之间的像素点存在重合。S102. According to the preset pixel point clipping range, clip each segment of the clipped curve respectively; wherein, the pixel points between the clipped curves of adjacent segments overlap.
在本公开实施例中,为了解决现有技术中由于常规识别拐点的方法中:将曲线中相邻两折线的方位角差值与预设的角度限定值相比较的方法,确定的曲线中的拐点不准确的问题,可以将待绘制的曲线截取为若干段截取曲线(各截取曲线之间的像素点是存在重合的),然后基于下述S103通过比较各截取曲线对应的方位角差值的变化,确定曲线对应的各个拐点。In the embodiment of the present disclosure, in order to solve the conventional method of identifying inflection points in the prior art: the method of comparing the azimuth angle difference between two adjacent broken lines in the curve with the preset angle limit value, the determined inflection point in the curve For the problem of inaccurate inflection points, the curve to be drawn can be intercepted into several intercepted curves (the pixel points between the intercepted curves overlap), and then based on the following S103 by comparing the azimuth angle difference corresponding to each intercepted curve Change to determine each inflection point corresponding to the curve.
这里,预设的像素点截取范围例如可以包括2m+1,一般为了提高拐点识别的准确度,设置m为1~10之间的正整数;一般m越小,拐点识别的准确度越高;具体的预设的像素点截取范围可以根据实际需要设定,此处不做具体限制。Here, the preset pixel point interception range may include, for example, 2m+1. Generally, in order to improve the accuracy of inflection point recognition, m is set to be a positive integer between 1 and 10; generally, the smaller m is, the higher the accuracy of inflection point recognition is; The specific preset pixel point interception range can be set according to actual needs, and no specific limitation is set here.
另外,拐点识别的准确度还与截取的相邻段曲线之间的像素点重合度相关,一般截取的相邻段曲线之间的像素点重合度越高,拐点识别的精确度越高。比如,将每个像素点分别作为截取起点来进行曲线截取,此时相邻段曲线之间的只有一个像素点是不同的。In addition, the accuracy of inflection point recognition is also related to the coincidence degree of pixels between the intercepted adjacent curves. Generally, the higher the pixel coincidence degree between the intercepted adjacent curves, the higher the accuracy of inflection point recognition. For example, each pixel is used as the starting point of interception to perform curve interception. At this time, only one pixel point between adjacent curves is different.
在具体实施中,可以按照预设的像素点截取范围,依次将曲线上每个像素点作为截取起点,分别截取各段截取曲线;这里,截取的各段截取曲线中相邻段的截取曲线之间仅存在一个不同的像素点,此时的拐点识别的精确度最高。In specific implementation, each pixel point on the curve can be used as the starting point of interception according to the preset pixel point interception range, and each segment of the interception curve can be intercepted respectively; There is only one different pixel point between them, and the accuracy of inflection point recognition at this time is the highest.
示例性的,若m=3,则预设的像素点截取范围包括7个像素点;首先将待绘制的曲线的起始像素点a作为截取起点,以7个像素点为截取长度,确定该待绘制的曲线对应的截取曲线a;然后将待绘制的曲线中与待绘制的曲线的起始像素点a相邻的下一个像素点b作为截取起点,以7个像素点为截取长度,确定该待绘制的曲线对应的截取曲线b;然后再将待绘制的曲线中与像素点b相邻的下一个像素点c作为截取起点,以7个像素点为截取长度,确定该待绘制的曲线对应的截取曲线c;基于上述方式,依次在待绘制的曲线上移动一个像素点,并以7个像素点为截取长度,对曲线进行截取,直到截取到待绘制的曲线的终点像素点为止,从而得到该待绘制的曲线对应的各段截取曲线;示例性的,若待绘制的曲线包括21个像素点时,则具体的以7个像素点为截取长度,对该待绘制的曲线进行截取的示意图可以如图2所示,该示意图中示出待绘制的曲线中包含的21个像素点(即起始像素点a、与起始像素点a相邻的下一个像素点b、与像素点b相邻的下一个像素点c、....、与像素点s相邻的下一个像素点t、与像素点t相邻的下一个像素点u)、以及待绘制的曲线对应的15段截取曲线(即截取曲线a、截取曲线b、....、截取曲线o),图2中仅示出了15段截取曲线中的三段截取曲线(即截取曲线a、截取曲线b、截取曲线o);其中,截取曲线a由像素点a、像素点b、像素点c、像素点d、像素点e、像素点f、像素点g构成;截取曲线b由像素点b、像素点c、像素点d、像素点e、像素点f、像素点g、像素点h构成;截取曲线o由像素点o、像素点p、像素点q、像素点r、像素点s、像素点t、像素点u构成。Exemplarily, if m=3, the preset pixel point clipping range includes 7 pixel points; first, the starting pixel point a of the curve to be drawn is used as the clipping starting point, and 7 pixel points are used as the clipping length to determine the The interception curve a corresponding to the curve to be drawn; then the next pixel point b adjacent to the starting pixel point a of the curve to be drawn in the curve to be drawn is used as the interception starting point, and 7 pixels are taken as the interception length to determine The interception curve b corresponding to the curve to be drawn; then, the next pixel point c adjacent to the pixel point b in the curve to be drawn is used as the interception starting point, and the interception length is 7 pixels to determine the curve to be drawn The corresponding interception curve c; based on the above method, move one pixel point on the curve to be drawn in turn, and use 7 pixels as the interception length to intercept the curve until the end pixel point of the curve to be drawn is intercepted, In this way, the intercepted curves corresponding to the curve to be drawn are obtained; for example, if the curve to be drawn includes 21 pixels, then specifically, 7 pixels are used as the interception length to intercept the curve to be drawn The schematic diagram of can be shown in Figure 2, which shows the 21 pixel points contained in the curve to be drawn (that is, the starting pixel point a, the next pixel point b adjacent to the starting pixel point a, and the pixel point b adjacent to the pixel point The next pixel point c adjacent to point b, ..., the next pixel point t adjacent to pixel point s, the next pixel point u) adjacent to pixel point t, and the corresponding curve to be drawn 15 sections of interception curves (i.e. interception curve a, interception curve b, ..., interception curve o), only three sections of interception curves (i.e. interception curve a, interception curve b) in the 15 sections of interception curves are shown in Fig. 2 , interception curve o); wherein, interception curve a is composed of pixel point a, pixel point b, pixel point c, pixel point d, pixel point e, pixel point f, pixel point g; interception curve b is composed of pixel point b, pixel point Point c, pixel point d, pixel point e, pixel point f, pixel point g, pixel point h; interception curve o is composed of pixel point o, pixel point p, pixel point q, pixel point r, pixel point s, pixel point t, pixel point u.
承接上述S102,本公开实施例提供的轨迹点生成方法还包括:Subsequent to the above S102, the track point generation method provided by the embodiment of the present disclosure further includes:
S103、通过比较不同段截取曲线对应的方位角差值的变化,确定所述曲线对应的各个拐点;所述方位角差值包括截取曲线中的不同线段的方位角之差。S103. Determine each inflection point corresponding to the curve by comparing changes in azimuth angle differences corresponding to different segments of the intercepted curve; the azimuth angle difference includes an azimuth difference between different line segments in the intercepted curve.
其中,拐点例如可以包括但不限于连接曲线中两段弯曲方向不同的线段的点、和连接曲线中两段具有转折关系的线段的转折点;方位角包括:从某点的指北方向线起,依顺时针方向到目标方向之间的水平夹角;这里,方位角差值包括截取曲线中的前后两段不同线段的方位角之差,例如可以包括但不限于:截取曲线中的前后两半段(即以截取曲线的中点为界,构成的前后两半段)的方位角之差、截取曲线中的前后两段不同线段(这里,截取曲线中的前后两段不同线段可以是以截取曲线中的非中点为界,构成的前后两半段)的方位角之差。比如,在截取曲线中选择一目标点(可以为中点),计算从截取起点指向该目标点的方向,与从该目标点指向截取终点的方向之间的夹角,作为方位角。Wherein, the inflection point may include, but not limited to, the point connecting two segments with different bending directions in the curve, and the inflection point connecting two segments with a turning relationship in the curve; the azimuth includes: from the north direction line of a certain point, The horizontal angle between the clockwise direction and the target direction; here, the azimuth difference includes the azimuth difference between the two different line segments before and after the intercepted curve, for example, it may include but not limited to: intercept the two halves of the curve before and after (that is, with the midpoint of the interception curve as the boundary, the difference between the azimuth angles of the front and rear halves), the two different line segments before and after the interception curve (here, the two different line segments before and after the interception curve can be based on the interception curve The difference between the azimuth angles of the front and rear halves) is the non-midpoint in the boundary. For example, select a target point (may be a midpoint) in the interception curve, and calculate the included angle between the direction from the interception start point to the target point and the direction from the target point to the interception end point, as the azimuth.
示例性的,可以通过下述方法确定每段截取曲线对应的方位角差值:针对每段截取曲线,基于该段截取曲线对应的前后两半线段分别对应的方位角,确定该段截取曲线对应的方位角差值。Exemplarily, the azimuth angle difference corresponding to each segment of the interception curve can be determined by the following method: For each segment of the interception curve, based on the azimuths corresponding to the front and rear half line segments corresponding to the segment of the interception curve, determine the corresponding The azimuth difference of .
具体的,针对每段截取曲线,以该段截取曲线的中点为界,将该段截取曲线分为前后两半段,并以截取曲线中的截取起点为起点,计算从截取起点到截取曲线中的中点之间的线段(即前半段线段)的方位角α;同时以截取曲线中的中点为起点,计算从截取曲线中的中点到截取曲线中的截取终点之间的线段(即后半段线段)的方位角β;将方位角β减去方位角α之间的差值的绝对值,作为该段截取曲线对应的方位角差值。Specifically, for each interception curve, the midpoint of the interception curve is used as the boundary, the interception curve is divided into two halves, and the interception starting point in the interception curve is used as the starting point to calculate the value from the interception starting point to the interception curve The azimuth α of the line segment (i.e., the first half line segment) between the midpoints in the interception curve; at the same time, the midpoint in the interception curve is used as the starting point to calculate the line segment from the midpoint in the interception curve to the interception end point in the interception curve ( That is, the azimuth angle β of the second half of the line segment); the absolute value of the difference between the azimuth angle β minus the azimuth angle α is used as the azimuth angle difference corresponding to the intercept curve of this segment.
示例性的,若截取曲线为图2中的截取曲线a,截取曲线a的截取起点为像素点a、截取曲线a的中点为像素点d、截取曲线a的截取终点为像素点g,则该截取曲线a对应的前半段线段为从像素点a到像素点d之间的线段1,该截取曲线a对应的后半段线段为从像素点d到像素点g之间的线段2;这样,方位角α为从像素点a的指北方向线起,依顺时针方向到线段1之间的水平夹角;方位角β为从像素点d的指北方向线起,以顺时针方向到线段2之间的水平夹角;具体的包含方位角α、以及方位角β的示意图可以如图3所示,图3中示出截取曲线a、线段1、线段2、以及方位角α、以及方位角β;将图3中的方位角β减去方位角α之间的差值的绝对值,作为该段截取曲线对应的方位角差值γ,即γ=|β-α|。Exemplarily, if the interception curve is the interception curve a in FIG. 2 , the interception starting point of the interception curve a is the pixel point a, the midpoint of the interception curve a is the pixel point d, and the interception end point of the interception curve a is the pixel point g, then The first half line segment corresponding to the interception curve a is a line segment 1 between the pixel point a and the pixel point d, and the second half line segment corresponding to the interception curve a is a line segment 2 between the pixel point d and the pixel point g; , the azimuth α is the horizontal angle from the north direction line of the pixel point a to the line segment 1 in the clockwise direction; the azimuth β is the horizontal angle from the north direction line of the pixel point d to the line segment in the clockwise direction The horizontal angle between 2; the specific schematic diagram including the azimuth α and the azimuth β can be shown in Figure 3, which shows the interception curve a, line segment 1, line segment 2, and azimuth α, and the azimuth Angle β: the absolute value of the difference between the azimuth angle β minus the azimuth angle α in Fig. 3 is used as the azimuth angle difference γ corresponding to the segment interception curve, that is, γ=|β-α|.
在具体实施中,在确定每段截取曲线对应的方位角差值之后,可以通过各段截取曲线对应的方位角差值对应的变化规律(即当截取曲线逐渐靠近曲线中的拐点时,则截取曲线对应的方位角差值逐渐增大;当截取曲线逐渐远离曲线中的拐点时,则截取曲线对应的方位角差值逐渐减小),确定待绘制的曲线中的拐点,具体描述如下:通过比较不同段截取曲线对应的方位角差值,确定对应的方位角差值从小于设定阈值增大到大于或等于设定阈值时的第一截取曲线,以及在截取第一截取曲线之后截取的、对应的方位角差值从大于设定阈值减小到小于或等于设定阈值时的第二截取曲线;基于第一截取曲线和第二截取曲线,确定曲线对应的拐点。In the specific implementation, after determining the azimuth angle difference corresponding to each segment of the interception curve, the change law corresponding to the azimuth angle difference corresponding to each segment of the interception curve (that is, when the interception curve gradually approaches the inflection point in the curve, the interception The azimuth angle difference corresponding to the curve increases gradually; when the intercepted curve gradually moves away from the inflection point in the curve, the azimuth angle difference corresponding to the intercepted curve gradually decreases), and the inflection point in the curve to be drawn is determined, and the specific description is as follows: by Comparing the azimuth difference values corresponding to the interception curves of different segments, determining the first interception curve when the corresponding azimuth difference value increases from less than the set threshold value to greater than or equal to the set threshold value, and the first interception curve intercepted after intercepting the first interception curve , the second interception curve when the corresponding azimuth angle difference decreases from greater than the set threshold to less than or equal to the set threshold; based on the first interception curve and the second interception curve, determine the corresponding inflection point of the curve.
其中,设定阈值可以是根据实际需要设定的方位角差值的临界角度值,此处不做具体限制;在实施中,可以通过调整该设定阈值的取值的大小,提高拐点识别的精度;一般设定阈值的取值较小时,拐点识别的精度较低;设定阈值的取值相对较大时,拐点识别的精度相对较高;比如,当设定阈值为5度,则会将全部的方位角度差值从小于5度增大到大于或等于5度时的截取曲线作为第一截取曲线,此时第一截取曲线中包括弯曲程度增加了大于或等于5度但不包含拐点的曲线;并会将全部的方位角度差值从大于5度减小到小于或等于5度时的截取曲线作为第二截取曲线,此时第二截取曲线中包括弯曲程度减少了大于或等于5度但不包含拐点的曲线;这样基于第一截取曲线、以及第二截取曲线,进行拐点识别时,会将不是拐点的点也识别出来,从而造成拐点识别的精度较低;因此,需要根据实际需要、以及曲线的弯曲程度中的至少一种,设定比较合适的设定阈值,以更加准确的识别出曲线中的拐点,提高拐点识别的精度。Wherein, the set threshold can be the critical angle value of the azimuth angle difference set according to actual needs, and no specific limitation is made here; in implementation, the value of the set threshold can be adjusted to improve the inflection point identification. Accuracy; Generally, when the value of the set threshold is small, the accuracy of inflection point recognition is low; when the value of the set threshold is relatively large, the accuracy of inflection point recognition is relatively high; for example, when the set threshold is 5 degrees, the Take the interception curve when all the azimuth angle differences increase from less than 5 degrees to greater than or equal to 5 degrees as the first interception curve. At this time, the first interception curve includes the degree of curvature increased by greater than or equal to 5 degrees but does not include the inflection point and the interception curve when all the azimuth angle differences are reduced from greater than 5 degrees to less than or equal to 5 degrees will be used as the second interception curve. At this time, the degree of curvature in the second interception curve is reduced by greater than or equal to 5 In this way, based on the first interception curve and the second interception curve, when performing inflection point identification, points that are not inflection points will also be identified, resulting in low accuracy of inflection point identification; therefore, it needs to be based on the actual It is necessary to set at least one of the bending degree of the curve and a more appropriate setting threshold to more accurately identify the inflection point in the curve and improve the accuracy of inflection point identification.
在具体实施中,在确定各段截取曲线对应的方位角差值后,可以根据各段截取曲线对应的方位角差值、以及设定阈值,确定第一截取曲线和第二截取曲线,具体描述如下:若当前段截取曲线对应的方位角差值大于或等于设定阈值、且该当前段截取曲线的上一段截取曲线对应的方位角差值小于设定阈值,则将当前段截取曲线作为第一截取曲线;若当前段截取曲线对应的方位角差值小于或等于设定阈值、且该当前段截取曲线的上一段截取曲线对应的方位角差值大于设定阈值,则将当前段截取曲线作为第二截取曲线。In a specific implementation, after determining the azimuth angle difference corresponding to each section of the interception curve, the first interception curve and the second interception curve can be determined according to the azimuth angle difference corresponding to each section of the interception curve and the threshold value, specifically described As follows: if the azimuth angle difference corresponding to the intercept curve of the current segment is greater than or equal to the set threshold, and the azimuth angle difference corresponding to the previous intercept curve of the current segment intercept curve is less than the set threshold, then the intercept curve of the current segment is used as the first threshold. An interception curve; if the azimuth angle difference corresponding to the current segment interception curve is less than or equal to the set threshold, and the azimuth angle difference corresponding to the previous segment interception curve of the current segment interception curve is greater than the set threshold, then the current segment interception curve as the second intercept curve.
示例性的,将每段截取曲线作为当前段截取曲线,将当前段截取曲线对应的方位角差值与设定阈值进行比较,在确定当前段截取曲线对应的方位角差值大于或等于设定阈值、且当前段截取曲线的上一段截取曲线对应的方位角差值小于设定阈值的情况下,将当前段截取曲线作为第一截取曲线;在确定当前段截取曲线对应的方位角差值小于或等于设定阈值、且当前段截取曲线的上一段截取曲线对应的方位角差值大于设定阈值的情况下,则将当前段截取曲线作为第二截取曲线;若每段截取曲线的展示界面如图2所示,则具体的第一截取曲线为截取曲线d(即由像素点d、像素点e、像素点f、像素点g、像素点h、像素点i、像素点j构成的截取曲线),第二截取曲线为截取曲线h(由像素点h、像素点i、像素点j、像素点k、像素点l、像素点m、像素点n构成的截取曲线),具体的指示出第一截取曲线和第二截取曲线的示意图如图4所示。Exemplarily, each section of the interception curve is used as the current section of the interception curve, and the azimuth angle difference corresponding to the current section of the interception curve is compared with the set threshold, and when it is determined that the azimuth angle difference corresponding to the current section of the interception curve is greater than or equal to the set threshold threshold, and the azimuth angle difference corresponding to the previous section of the interception curve of the current section is less than the set threshold, the current section interception curve is used as the first interception curve; or equal to the set threshold, and the azimuth angle difference corresponding to the previous intercept curve of the current segment intercept curve is greater than the set threshold value, the current segment intercept curve is used as the second intercept curve; if the display interface of each segment intercept curve As shown in Figure 2, the specific first interception curve is the interception curve d (that is, the interception curve composed of pixel point d, pixel point e, pixel point f, pixel point g, pixel point h, pixel point i, pixel point j) curve), the second interception curve is interception curve h (an interception curve composed of pixel point h, pixel point i, pixel point j, pixel point k, pixel point l, pixel point m, and pixel point n), specifically indicating The schematic diagrams of the first interception curve and the second interception curve are shown in FIG. 4 .
在确定第一截取曲线和第二截取曲线之后,可以基于确定的第一截取曲线和第二截取曲线,确定曲线对应的拐点,具体描述如下:获取第一截取曲线的第一中点和第二截取曲线的第二中点;计算第一中点和第二中点之间的中点,将该中点作为一个拐点。After determining the first interception curve and the second interception curve, the inflection point corresponding to the curve can be determined based on the determined first interception curve and the second interception curve. The specific description is as follows: the first midpoint and the second Intercepts the second midpoint of the curve; calculates the midpoint between the first midpoint and the second midpoint as an inflection point.
示例性的,若确定的第一截取曲线和第二截取曲线如图4所示,则确定第一截取曲线的第一中点(即截取曲线d的中点):曲线的像素点g;确定第二截取曲线的第二中点(即截取曲线h的中点):曲线的像素点k;将第一中点(即曲线的像素点g)和第二中点(曲线的像素点k)构成的线段中的中点:曲线的像素点i,作为曲线的拐点,具体的指示出曲线拐点的示意图如图5所示。Exemplarily, if the determined first interception curve and the second interception curve are as shown in Figure 4, then determine the first midpoint of the first interception curve (i.e. the midpoint of the interception curve d): the pixel point g of the curve; determine The second midpoint of the second intercepted curve (i.e. the midpoint of the intercepted curve h): the pixel point k of the curve; the first midpoint (i.e. the pixel point g of the curve) and the second midpoint (the pixel point k of the curve) The midpoint of the formed line segment: the pixel point i of the curve, which is used as the inflection point of the curve, and a schematic diagram specifically indicating the inflection point of the curve is shown in FIG. 5 .
承接上述S103,本公开实施例提供的轨迹点生成方法还包括:Subsequent to the above S103, the trajectory point generation method provided by the embodiment of the present disclosure further includes:
S104、根据确定的各个拐点,生成并展示所述曲线对应的轨迹点;所述轨迹点用于指示用户进行曲线绘制。S104. Generate and display track points corresponding to the curve according to each determined inflection point; the track points are used to instruct the user to draw the curve.
在具体实施中,为了避免在临摹场景中,在对曲线进行采样时,由于选取的采样间隔不当,造成的无法将曲线中的拐点识别出来,导致无法通过采样点准确表征待临摹画面的问题,则可以先基于本公开实施例S101~S103所示的具体实施方式,将曲线对应的拐点先确定出来,然后在根据确定的各个拐点,生成曲线对应的轨迹点,具体描述如下:基于确定的各个拐点,将曲线划分为多个采样线段;基于预设采样间隔,从每个采样线段中采样得到多个轨迹点;将多个采样线段中分别采样的多个轨迹点,作为曲线对应的轨迹点。In the specific implementation, in order to avoid the inflection point in the curve that cannot be identified due to improper sampling interval when sampling the curve in the copying scene, resulting in the inability to accurately represent the image to be copied through the sampling points, Then, based on the specific implementation methods shown in the embodiments S101-S103 of the present disclosure, the inflection points corresponding to the curve can be firstly determined, and then the trajectory points corresponding to the curve can be generated according to the determined inflection points. The specific description is as follows: Based on the determined inflection points The inflection point divides the curve into multiple sampling line segments; based on the preset sampling interval, multiple trajectory points are sampled from each sampling line segment; the multiple trajectory points sampled in multiple sampling line segments are used as the corresponding trajectory points of the curve .
其中,多个采样线段中的各采样线段均以拐点作为端点;采样得到的多个轨迹点中包括曲线中的拐点。Wherein, each of the plurality of sampling line segments has an inflection point as an end point; the plurality of trajectory points obtained by sampling include an inflection point in the curve.
示例性的,若待绘制的曲线如图6所示,若预设的像素点截取范围包括:7个像素点,设定阈值为30度,则基于本公开实施例S101~S103所示的具体实施方式,确定出的拐点如图6所示,图6中示出11个拐点,在确定图6中的待绘制的曲线对应的拐点之后,可以以拐点、以及该待绘制的曲线的起始点和终止点,分别作为采样线段的端点,将该待绘制的曲线划分为12个采样线段;然后基于预设的采样间隔:10个像素点,对该待绘制的曲线进行采样,确定各采样线段中的多个轨迹点(其中,该轨迹点中包括拐点),并展示多个轨迹点,具体的展示界面可以如图7所示。Exemplarily, if the curve to be drawn is as shown in Figure 6, if the preset pixel point interception range includes: 7 pixel points, and the threshold is set to 30 degrees, then based on the specific details shown in S101-S103 in the embodiments of the present disclosure, Embodiment, the determined inflection point is shown in Figure 6, and 11 inflection points are shown in Figure 6. After determining the inflection point corresponding to the curve to be drawn in Figure 6, the inflection point and the starting point of the curve to be drawn can be and the end point, respectively as the endpoints of the sampling line segment, divide the curve to be drawn into 12 sampling line segments; then based on the preset sampling interval: 10 pixels, sample the curve to be drawn to determine each sampling line segment multiple track points (wherein the track point includes an inflection point), and display multiple track points, the specific display interface may be as shown in FIG. 7 .
本公开实施例中,按照预设的像素点截取范围,分别截取各段截取曲线,并通过比较不同段截取曲线对应的方位角差值的变化,确定曲线对应的各个拐点;在确定曲线对应的各个拐点之后,可以根据确定的各个拐点,生成并展示曲线对应的轨迹点,以使通过轨迹点指示用户对曲线进行绘制;这里,通过预先确定曲线中的拐点,避免了按照预设采样间隔对曲线进行采样的过程中,由于采样间隔设置不当,造成遗漏掉拐点,导致无法通过轨迹点表征准确的曲线的问题,从而提高了轨迹点表征曲线的准确度。In the embodiment of the present disclosure, each section of the interception curve is intercepted respectively according to the preset pixel point interception range, and by comparing the change of the azimuth angle difference corresponding to the different sections of the interception curve, each inflection point corresponding to the curve is determined; After each inflection point, the trajectory points corresponding to the curve can be generated and displayed according to each determined inflection point, so that the user can be instructed to draw the curve through the trajectory points; In the process of sampling the curve, due to the improper setting of the sampling interval, the inflection point is missed, resulting in the problem that the accurate curve cannot be represented by the trajectory point, thereby improving the accuracy of the curve represented by the trajectory point.
另外,本公开实施例中,可以依次将曲线上的每个像素点作为截取起点,得到待绘制的曲线对应的若干段截取曲线(截取曲线之间的像素点是存在重合的),并通过比较各截取曲线对应的方位角差值的变化,确定各截取曲线之间的转折变化,从而确定曲线对应的各个拐点,这样提高了拐点识别的准确度。In addition, in the embodiment of the present disclosure, each pixel point on the curve can be used as the interception starting point in turn to obtain several interception curves corresponding to the curve to be drawn (the pixel points between the interception curves overlap), and by comparing Changes in azimuth angle differences corresponding to the intercepted curves determine the turning changes between the intercepted curves, thereby determining each inflection point corresponding to the curve, which improves the accuracy of inflection point identification.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of specific implementation, the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possible The inner logic is OK.
基于同一发明构思,本公开实施例中还提供了与轨迹点生成方法对应的轨迹点生成装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述轨迹点生成方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present disclosure also provides a track point generation device corresponding to the track point generation method. Since the problem-solving principle of the device in the embodiment of the present disclosure is similar to the above-mentioned track point generation method of the embodiment of the present disclosure, therefore For the implementation of the device, reference may be made to the implementation of the method, and repeated descriptions will not be repeated.
参照图8所示,为本公开实施例提供的一种轨迹点生成装置800的示意图,所述轨迹点生成装置包括:获取模块801、第一处理模块802、确定模块803和第二处理模块804;其中:Referring to FIG. 8 , it is a schematic diagram of a track point generation device 800 provided by an embodiment of the present disclosure, and the track point generation device includes: an acquisition module 801 , a first processing module 802 , a determination module 803 and a second processing module 804 ;in:
获取模块801,用于获取待绘制的曲线。Obtaining module 801, configured to obtain the curve to be drawn.
第一处理模块802,用于按照预设的像素点截取范围,分别截取各段截取曲线;其中,截取的相邻段截取曲线之间的像素点存在重合。The first processing module 802 is configured to respectively intercept each section of the interception curve according to the preset pixel point interception range; wherein, the pixel points between the intercepted adjacent sections of the interception curves overlap.
确定模块803,用于通过比较不同段截取曲线对应的方位角差值的变化,确定所述曲线对应的各个拐点;所述方位角差值为所述截取曲线中的不同线段的方位角之差。The determining module 803 is configured to determine each inflection point corresponding to the curve by comparing the change of the azimuth angle difference corresponding to different segments of the intercepted curve; the azimuth angle difference value is the difference between the azimuth angles of different line segments in the intercepted curve .
第二处理模块804,用于根据确定的各个拐点,生成并展示所述曲线对应的轨迹点;所述轨迹点用于指示用户进行曲线绘制。The second processing module 804 is configured to generate and display track points corresponding to the curve according to each determined inflection point; the track points are used to instruct the user to draw the curve.
在一种可能的实施方式中,第一处理模块802在执行按照预设的像素点截取范围,分别截取各段截取曲线时,具体用于:按照预设的像素点截取范围,依次将所述曲线上的每个像素点作为截取起点,分别截取各段截取曲线。In a possible implementation manner, the first processing module 802 is specifically configured to: according to the preset pixel point clipping range, sequence the Each pixel point on the curve is used as the starting point of interception, and each segment of the interception curve is intercepted respectively.
在一种可能的实施方式中,确定模块803在执行所述通过比较不同段截取曲线对应的方位角差值的变化,确定所述曲线对应的各个拐点时,具体用于:通过比较不同段截取曲线对应的方位角差值,确定对应的方位角差值从小于设定阈值增大到大于或等于设定阈值时的第一截取曲线,以及在截取所述第一截取曲线之后截取的、对应的方位角差值从大于设定阈值减小到小于或等于设定阈值时的第二截取曲线;基于所述第一截取曲线和所述第二截取曲线,确定所述曲线对应的拐点。In a possible implementation manner, when the determination module 803 executes the step of determining each inflection point corresponding to the curve by comparing the change of the azimuth angle difference corresponding to the intercepted curves of different segments, it is specifically used to: compare the intercepted curves of different segments The azimuth angle difference value corresponding to the curve, determine the first interception curve when the corresponding azimuth angle difference value increases from less than the set threshold value to greater than or equal to the set threshold value, and the intercepted, corresponding The second interception curve when the azimuth angle difference decreases from greater than the set threshold to less than or equal to the set threshold; based on the first interception curve and the second interception curve, determine the corresponding inflection point of the curve.
在一种可能的实施方式中,确定模块803根据以下步骤确定所述方位角差值:针对每段截取曲线,基于该段截取曲线对应的前后两半线段分别对应的方位角,确定该段截取曲线对应的方位角差值。In a possible implementation manner, the determination module 803 determines the azimuth angle difference according to the following steps: for each section of the interception curve, based on the azimuths corresponding to the front and rear half line segments corresponding to the section of the interception curve, determine the section of the interception curve The azimuth angle difference corresponding to the curve.
在一种可能的实施方式中,确定模块803确定所述第一截取曲线和第二截取曲线时,具体用于:若当前段截取曲线对应的方位角差值大于或等于设定阈值、且该当前段截取曲线的上一段截取曲线对应的方位角差值小于设定阈值,则将当前段截取曲线作为所述第一截取曲线;若当前段截取曲线对应的方位角差值小于或等于设定阈值、且该当前段截取曲线的上一段截取曲线对应的方位角差值大于设定阈值,则将当前段截取曲线作为所述第二截取曲线。In a possible implementation manner, when the determining module 803 determines the first interception curve and the second interception curve, it is specifically used for: if the azimuth angle difference corresponding to the current segment interception curve is greater than or equal to the set threshold, and the The azimuth angle difference corresponding to the last section interception curve of the current section interception curve is less than the set threshold, then the current section interception curve is used as the first interception curve; if the azimuth angle difference corresponding to the current section interception curve is less than or equal to the setting threshold, and the azimuth angle difference corresponding to the previous segment of the intercepted curve of the current segment is greater than the set threshold, then the intercepted curve of the current segment is used as the second intercepted curve.
在一种可能的实施方式中,确定模块803在执行所述基于所述第一截取曲线和所述第二截取曲线,确定所述曲线对应的拐点时,具体用于:获取所述第一截取曲线的第一中点和所述第二截取曲线的第二中点;计算所述第一中点和第二中点之间的中点,将该中点作为一个所述拐点。In a possible implementation manner, the determining module 803 is specifically configured to: obtain the first interception curve when performing the determination of the inflection point corresponding to the curve based on the first interception curve and the second interception curve The first midpoint of the curve and the second midpoint of the second intercepted curve; calculating the midpoint between the first midpoint and the second midpoint, and using the midpoint as one of the inflection points.
在一种可能的实施方式中,第二处理模块804在执行所述根据确定的各个拐点,生成并展示所述曲线对应的轨迹点时,具体用于:基于确定的各个拐点,将所述曲线划分为多个采样线段;所述拐点为采样线段的端点;基于预设采样间隔,从每个所述采样线段中采样得到多个轨迹点;所述多个轨迹点中包括曲线中的拐点;将多个采样线段中分别采样的多个轨迹点,作为所述曲线对应的轨迹点。In a possible implementation manner, when the second processing module 804 executes the generating and displaying the trajectory points corresponding to the curve according to the determined inflection points, it is specifically configured to: based on the determined inflection points, convert the curve to Divided into a plurality of sampling line segments; the inflection point is an endpoint of the sampling line segment; based on a preset sampling interval, a plurality of trajectory points are sampled from each of the sampling line segments; the plurality of trajectory points include an inflection point in the curve; A plurality of trajectory points respectively sampled in the plurality of sampling line segments are used as trajectory points corresponding to the curve.
本公开实施例中,按照预设的像素点截取范围,分别截取各段截取曲线,并通过比较不同段截取曲线对应的方位角差值的变化,确定曲线对应的各个拐点;在确定曲线对应的各个拐点之后,可以根据确定的各个拐点,生成并展示曲线对应的轨迹点,以使通过轨迹点指示用户对曲线进行绘制;这里,通过预先确定曲线中的拐点,避免了按照预设采样间隔对曲线进行采样的过程中,由于采样间隔设置不当,造成遗漏掉拐点,导致无法通过轨迹点表征准确的曲线的问题,从而提高了轨迹点表征曲线的准确度。In the embodiment of the present disclosure, each section of the interception curve is intercepted respectively according to the preset pixel point interception range, and by comparing the change of the azimuth angle difference corresponding to the different sections of the interception curve, each inflection point corresponding to the curve is determined; After each inflection point, the trajectory points corresponding to the curve can be generated and displayed according to each determined inflection point, so that the user can be instructed to draw the curve through the trajectory points; In the process of sampling the curve, due to the improper setting of the sampling interval, the inflection point is missed, resulting in the problem that the accurate curve cannot be represented by the trajectory point, thereby improving the accuracy of the curve represented by the trajectory point.
另外,本公开实施例中,可以依次将曲线上的每个像素点作为截取起点,得到待绘制的曲线对应的若干段截取曲线(截取曲线之间的像素点是存在重合的),并通过比较各截取曲线对应的方位角差值的变化,确定各截取曲线之间的转折变化,从而确定曲线对应的各个拐点,这样提高了拐点识别的准确度。In addition, in the embodiment of the present disclosure, each pixel point on the curve can be used as the interception starting point in turn to obtain several interception curves corresponding to the curve to be drawn (the pixel points between the interception curves overlap), and by comparing Changes in azimuth angle differences corresponding to the intercepted curves determine the turning changes between the intercepted curves, thereby determining each inflection point corresponding to the curve, which improves the accuracy of inflection point recognition.
关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。For the description of the processing flow of each module in the device and the interaction flow between the modules, reference may be made to the relevant description in the above method embodiment, and details will not be described here.
基于同一技术构思,本申请实施例还提供了一种计算机设备。参照图9所示,为本申请实施例提供的计算机设备900的结构示意图,包括处理器901、存储器902、和总线903。其中,存储器902用于存储执行指令,包括内存9021和外部存储器9022;这里的内存9021也称内存储器,用于暂时存放处理器901中的运算数据,以及与硬盘等外部存储器9022交换的数据,处理器901通过内存9021与外部存储器9022进行数据交换,当计算机设备900运行时,处理器901与存储器902之间通过总线903通信,使得处理器901执行以下指令:Based on the same technical idea, the embodiment of the present application also provides a computer device. Referring to FIG. 9 , it is a schematic structural diagram of a computer device 900 provided by an embodiment of the present application, including a processor 901 , a memory 902 , and a bus 903 . Among them, the memory 902 is used to store execution instructions, including a memory 9021 and an external memory 9022; the memory 9021 here is also called an internal memory, and is used to temporarily store calculation data in the processor 901 and exchange data with an external memory 9022 such as a hard disk. The processor 901 exchanges data with the external memory 9022 through the memory 9021. When the computer device 900 is running, the processor 901 communicates with the memory 902 through the bus 903, so that the processor 901 executes the following instructions:
获取待绘制的曲线;按照预设的像素点截取范围,分别截取各段截取曲线;其中,截取的相邻段截取曲线之间的像素点存在重合;通过比较不同段截取曲线对应的方位角差值的变化,确定所述曲线对应的各个拐点;所述方位角差值为所述截取曲线中的不同线段的方位角之差;根据确定的各个拐点,生成并展示所述曲线对应的轨迹点;所述轨迹点用于指示用户进行曲线绘制。Obtain the curve to be drawn; intercept each segment of the interception curve according to the preset pixel point interception range; wherein, the pixel points between the intercepted adjacent segments of the intercepted curves overlap; by comparing the azimuth angle difference corresponding to the intercepted curves of different segments value change, determine each inflection point corresponding to the curve; the azimuth angle difference is the difference between the azimuth angles of different line segments in the intercepted curve; generate and display the trajectory point corresponding to the curve according to each determined inflection point ; The track point is used to instruct the user to draw a curve.
其中,处理器901的具体处理流程可以参照上述方法实施例的记载,这里不再赘述。Wherein, for the specific processing flow of the processor 901, reference may be made to the descriptions in the foregoing method embodiments, and details are not repeated here.
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的轨迹点生成方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。Embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, the steps of the method for generating track points described in the foregoing method embodiments are executed. Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.
本公开实施例还提供一种计算机程序产品,该计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行上述方法实施例中所述的轨迹点生成方法的步骤,具体可参见上述方法实施例,在此不再赘述。The embodiment of the present disclosure also provides a computer program product, the computer program product carries a program code, and the instructions included in the program code can be used to execute the steps of the track point generation method described in the above method embodiment, for details, please refer to the above The method embodiment will not be repeated here.
其中,上述计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。Wherein, the above-mentioned computer program product may be specifically implemented by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium. In another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. wait.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system and device can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, and various media capable of storing program codes.
最后应说明的是:以上所述实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that: the above-mentioned embodiments are only specific implementations of the present disclosure, and are used to illustrate the technical solutions of the present disclosure, rather than limit them, and the protection scope of the present disclosure is not limited thereto, although referring to the aforementioned The embodiments have described the present disclosure in detail, and those skilled in the art should understand that any person familiar with the technical field can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present disclosure Changes can be easily imagined, or equivalent replacements can be made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in this disclosure. within the scope of protection. Therefore, the protection scope of the present disclosure should be defined by the protection scope of the claims.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111081517.4A CN113781603B (en) | 2021-09-15 | 2021-09-15 | Track point generating method, device, computer equipment and computer storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111081517.4A CN113781603B (en) | 2021-09-15 | 2021-09-15 | Track point generating method, device, computer equipment and computer storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113781603A CN113781603A (en) | 2021-12-10 |
| CN113781603B true CN113781603B (en) | 2023-08-22 |
Family
ID=78844064
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111081517.4A Active CN113781603B (en) | 2021-09-15 | 2021-09-15 | Track point generating method, device, computer equipment and computer storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113781603B (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5148494A (en) * | 1989-04-28 | 1992-09-15 | Societe Nationale Elf Aquitaine | Process for automatic plotting and assistance interpretation of seismic cross-sections in particular using image analysis techniques |
| TW200723113A (en) * | 2005-12-01 | 2007-06-16 | Ind Tech Res Inst | Trajectory recognition method |
| CN105910639A (en) * | 2016-04-01 | 2016-08-31 | 南京泰司空间信息科技有限公司 | Route segmentation method based on turning points and system |
| CN110069585A (en) * | 2017-12-05 | 2019-07-30 | 腾讯科技(深圳)有限公司 | Treating method and apparatus, storage medium and the electronic device of track point data |
| CN112528807A (en) * | 2020-12-04 | 2021-03-19 | 深圳市优必选科技股份有限公司 | Method and device for predicting driving track, electronic equipment and storage medium |
| CN113108806A (en) * | 2021-05-13 | 2021-07-13 | 重庆紫光华山智安科技有限公司 | Path planning method, device, equipment and medium |
| CN113341962A (en) * | 2021-05-28 | 2021-09-03 | 广州科语机器人有限公司 | Dynamic window tracking optimization method, device, terminal and storage medium |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8810641B2 (en) * | 2011-06-15 | 2014-08-19 | Hisense Hiview Tech Co., Ltd. | Television, control method and control device for the television |
-
2021
- 2021-09-15 CN CN202111081517.4A patent/CN113781603B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5148494A (en) * | 1989-04-28 | 1992-09-15 | Societe Nationale Elf Aquitaine | Process for automatic plotting and assistance interpretation of seismic cross-sections in particular using image analysis techniques |
| TW200723113A (en) * | 2005-12-01 | 2007-06-16 | Ind Tech Res Inst | Trajectory recognition method |
| CN105910639A (en) * | 2016-04-01 | 2016-08-31 | 南京泰司空间信息科技有限公司 | Route segmentation method based on turning points and system |
| CN110069585A (en) * | 2017-12-05 | 2019-07-30 | 腾讯科技(深圳)有限公司 | Treating method and apparatus, storage medium and the electronic device of track point data |
| CN112528807A (en) * | 2020-12-04 | 2021-03-19 | 深圳市优必选科技股份有限公司 | Method and device for predicting driving track, electronic equipment and storage medium |
| CN113108806A (en) * | 2021-05-13 | 2021-07-13 | 重庆紫光华山智安科技有限公司 | Path planning method, device, equipment and medium |
| CN113341962A (en) * | 2021-05-28 | 2021-09-03 | 广州科语机器人有限公司 | Dynamic window tracking optimization method, device, terminal and storage medium |
Non-Patent Citations (1)
| Title |
|---|
| 三维人体动画单目视频运动轨迹准确跟踪方法研究;陆玉立;《长春大学学报》;第29卷(第8期);全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113781603A (en) | 2021-12-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109753971B (en) | Correction method and device for distorted text lines, character recognition method and device | |
| CN112634343B (en) | Training method of image depth estimation model and processing method of image depth information | |
| CN111950555B (en) | Text recognition method and device, readable medium and electronic equipment | |
| JP2022541977A (en) | Image labeling method, device, electronic device and storage medium | |
| WO2023035531A1 (en) | Super-resolution reconstruction method for text image and related device thereof | |
| US11494961B2 (en) | Sticker generating method and apparatus, and medium and electronic device | |
| CN110782390B (en) | Image correction processing method and device, and electronic equipment | |
| CN111967515A (en) | Image information extraction method, training method and device, medium and electronic equipment | |
| CN115205807A (en) | Lane line fusion method and device, automobile, electronic equipment and computer-readable storage medium | |
| WO2021218706A1 (en) | Text identification method and apparatus, device, and storage medium | |
| WO2024169397A1 (en) | Seal recognition method and apparatus, electronic device, and storage medium | |
| CN114596383A (en) | Line special effect processing method, device, electronic device, storage medium and product | |
| CN113516697B (en) | Image registration method, device, electronic equipment and computer readable storage medium | |
| CN108921792B (en) | Method and device for processing pictures | |
| WO2020034981A1 (en) | Method for generating encoded information and method for recognizing encoded information | |
| CN113781603B (en) | Track point generating method, device, computer equipment and computer storage medium | |
| CN110852996A (en) | Single molecule positioning method | |
| CN111814811A (en) | Image information extraction method, training method and device, medium and electronic device | |
| CN113538537B (en) | Image registration and model training method, device, equipment, server and medium | |
| CN113096170B (en) | Text image registration method, device, device, storage medium | |
| CN109816709B (en) | Monocular camera-based depth estimation method, device and equipment | |
| CN112258556B (en) | Method, device, readable medium and electronic device for tracking designated area in video | |
| CN115063490A (en) | Vehicle camera external parameter calibration method and device, electronic equipment and storage medium | |
| CN117542006A (en) | Depth recognition model training method, image depth recognition method and related equipment | |
| CN116188583B (en) | Method, device, device, and computer-readable medium for generating camera pose information |
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 |