[go: up one dir, main page]

CN111784224B - Object tracking method and device, control platform and storage medium - Google Patents

Object tracking method and device, control platform and storage medium Download PDF

Info

Publication number
CN111784224B
CN111784224B CN202010223928.1A CN202010223928A CN111784224B CN 111784224 B CN111784224 B CN 111784224B CN 202010223928 A CN202010223928 A CN 202010223928A CN 111784224 B CN111784224 B CN 111784224B
Authority
CN
China
Prior art keywords
tracked
positioning information
current positioning
objects
path
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
Application number
CN202010223928.1A
Other languages
Chinese (zh)
Other versions
CN111784224A (en
Inventor
吴迪
万保成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Qianshi Technology Co Ltd
Original Assignee
Beijing Jingdong Qianshi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Qianshi Technology Co Ltd filed Critical Beijing Jingdong Qianshi Technology Co Ltd
Priority to CN202010223928.1A priority Critical patent/CN111784224B/en
Publication of CN111784224A publication Critical patent/CN111784224A/en
Application granted granted Critical
Publication of CN111784224B publication Critical patent/CN111784224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0833Tracking

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Quality & Reliability (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

The present disclosure relates to an object tracking method and apparatus, a control platform, and a storage medium. The object tracking method comprises the following steps: acquiring current positioning information of all table-board objects on a control platform; the current positioning information of all table-board objects on the control platform is respectively matched with the pre-stored historical motion trail of each object to be tracked; and taking the current positioning information of the successfully matched table-board object as the current positioning information of the corresponding object to be tracked. The present disclosure may enable tracking of object motion without prediction.

Description

物体跟踪方法和装置、控制平台和存储介质Object tracking method and device, control platform and storage medium

技术领域Technical Field

本公开涉及物流领域,特别涉及一种物体跟踪方法和装置、控制平台和存储介质。The present disclosure relates to the field of logistics, and in particular to an object tracking method and device, a control platform and a storage medium.

背景技术Background Art

在目前物流运输、仓储自动化的快速发展环境下,无人仓的一些场景需要对方形箱体等物体进行低速运动控制(低速定义为2m/s以下)。例如图智能传送带以及其他类似的平台型的控制装置。由此就需要首先对方形箱体进行精确的定位和跟踪,将获取到的箱体信息(比如几何尺寸、位置、姿态、箱体编号、历史运动路径)提供给控制装置,从而共同完成实时的闭环控制。In the current environment of rapid development of logistics, transportation and warehouse automation, some scenes in unmanned warehouses require low-speed motion control of objects such as square boxes (low speed is defined as less than 2m/s). For example, intelligent conveyor belts and other similar platform-type control devices. Therefore, it is necessary to first accurately locate and track the square box, and provide the acquired box information (such as geometric dimensions, position, posture, box number, historical motion path) to the control device, so as to jointly complete real-time closed-loop control.

发明内容Summary of the invention

发明人通过研究发现:相关技术由于控制部分有每一个箱体的预期控制路径,因此可基于上一帧(或此前更多帧)的定位结果、上一帧(或此前更多帧)到当前帧的时间间隔t和预期路径,首先进行预测,估计得到当前帧下预测的定位信息;然后将当前帧下真正得到的定位结果与之进行匹配。基于匹配结果完成逻辑设计,从而进一步完成跟踪。The inventors found through research that: since the control part of the related technology has the expected control path for each box, it can first make a prediction based on the positioning result of the previous frame (or more previous frames), the time interval t from the previous frame (or more previous frames) to the current frame, and the expected path, and estimate the positioning information predicted in the current frame; then match the actual positioning result in the current frame with it. The logic design is completed based on the matching result, thereby further completing the tracking.

但是,相关技术的预测需要上一帧(或此前更多帧)的定位结果,上一帧(或此前更多帧)到当前帧的时间间隔t以及预期路径,则自然需要相应的时间资源和空间资源(比如计算资源)。相关技术如果要利用此前更多帧的结果进行更准确的预测,则需要的资源更多。However, the prediction of related technologies requires the positioning results of the previous frame (or more previous frames), the time interval t from the previous frame (or more previous frames) to the current frame, and the expected path, which naturally requires corresponding time resources and space resources (such as computing resources). If related technologies want to use the results of more previous frames for more accurate predictions, they will require more resources.

鉴于以上技术问题中的至少一项,本公开提供了一种物体跟踪方法和装置、控制平台和存储介质,可以在无需预测的情况下,实现对物体运动的跟踪。In view of at least one of the above technical problems, the present disclosure provides an object tracking method and device, a control platform and a storage medium, which can track the movement of an object without prediction.

根据本公开的一个方面,提供一种物体跟踪方法,包括:According to one aspect of the present disclosure, there is provided an object tracking method, comprising:

预先存储每个待跟踪物体的历史运动轨迹;Pre-store the historical motion trajectory of each object to be tracked;

获取控制平台上所有台面物体的当前定位信息;Get the current positioning information of all objects on the control platform;

针对每个待跟踪物体,从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹相匹配的当前定位信息;For each object to be tracked, searching for current positioning information that matches the historical motion trajectory of the object to be tracked from the current positioning information of all objects on the table;

将匹配成功的台面物体的当前定位信息,作为对应待跟踪物体的当前定位信息。The current positioning information of the successfully matched table object is used as the current positioning information of the corresponding object to be tracked.

在本公开的一些实施例中,匹配成功的台面物体和待跟踪物体为同一物体。In some embodiments of the present disclosure, the successfully matched table object and the object to be tracked are the same object.

在本公开的一些实施例中,所述物体跟踪方法还包括:In some embodiments of the present disclosure, the object tracking method further includes:

输出待跟踪物体的当前运动轨迹,其中,所述当前运动轨迹包括历史运动轨迹和当前定位信息。Output the current motion trajectory of the object to be tracked, wherein the current motion trajectory includes the historical motion trajectory and the current positioning information.

在本公开的一些实施例中,所述针对每个待跟踪物体,从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹相匹配的当前定位信息包括:In some embodiments of the present disclosure, for each object to be tracked, searching for current positioning information that matches the historical motion trajectory of the object to be tracked from the current positioning information of all table objects includes:

针对每个待跟踪物体,从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹中最新定位信息相匹配的当前定位信息。For each object to be tracked, current positioning information matching the latest positioning information in the historical motion trajectory of the object to be tracked is searched from the current positioning information of all the objects on the table.

在本公开的一些实施例中,针对每个待跟踪物体,所述从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹中最新定位信息相匹配的当前定位信息包括:In some embodiments of the present disclosure, for each object to be tracked, searching the current positioning information of all table objects for the current positioning information that matches the latest positioning information in the historical motion trajectory of the object to be tracked includes:

计算每个台面物体的当前定位信息与所述待跟踪物体的最新定位信息之间的距离;Calculating the distance between the current positioning information of each table object and the latest positioning information of the object to be tracked;

判断所述距离是否小于预定阈值;Determining whether the distance is less than a predetermined threshold;

在所述距离小于预定阈值的情况下,判定所述距离小于预定阈值的台面物体与所述待跟踪物体匹配成功。When the distance is less than a predetermined threshold, it is determined that the table object whose distance is less than the predetermined threshold is successfully matched with the object to be tracked.

在本公开的一些实施例中,所述获取控制平台上所有台面物体的当前定位信息包括:以预定定位时间间隔获取控制平台上所有台面物体的当前定位信息。In some embodiments of the present disclosure, the acquiring of current positioning information of all table objects on the control platform includes: acquiring current positioning information of all table objects on the control platform at predetermined positioning time intervals.

在本公开的一些实施例中,所述预定阈值小于一个预定定位时间间隔内物体的运动距离、且所述预定阈值小于物体中心至物体边缘的最小距离。In some embodiments of the present disclosure, the predetermined threshold is smaller than the movement distance of the object within a predetermined positioning time interval, and the predetermined threshold is smaller than the minimum distance from the center of the object to the edge of the object.

在本公开的一些实施例中,所述物体跟踪方法还包括:In some embodiments of the present disclosure, the object tracking method further includes:

判断是否存在与所有待跟踪物体的历史运动轨迹均匹配不成功的台面物体的当前定位信息;Determine whether there is current positioning information of a table object that fails to match the historical motion trajectories of all objects to be tracked;

在存在与所有待跟踪物体的历史运动轨迹均匹配不成功的台面物体的当前定位信息的情况下,将所述台面物体作为新的待跟踪物体,将所述台面物体的当前定位信息作为待跟踪物体的当前定位信息。When there is current positioning information of a tabletop object that fails to match the historical motion trajectories of all objects to be tracked, the tabletop object is used as a new object to be tracked, and the current positioning information of the tabletop object is used as the current positioning information of the object to be tracked.

在本公开的一些实施例中,所述物体跟踪方法还包括:In some embodiments of the present disclosure, the object tracking method further includes:

判断是否存在与所有台面物体的当前定位信息均匹配不成功的待跟踪物体的历史运动轨迹;Determine whether there is a historical motion trajectory of the object to be tracked that fails to match the current positioning information of all the objects on the table;

在存在与所有台面物体的当前定位信息均匹配不成功的待跟踪物体的历史运动轨迹的情况下,将所述待跟踪物体的历史运动轨迹从待跟踪物体集合中删除。In the case that there is a historical motion trajectory of the object to be tracked that fails to match the current positioning information of all the table objects, the historical motion trajectory of the object to be tracked is deleted from the set of objects to be tracked.

在本公开的一些实施例中,所述将所述待跟踪物体的历史运动轨迹从待跟踪物体集合中删除包括:In some embodiments of the present disclosure, deleting the historical motion trajectory of the object to be tracked from the set of objects to be tracked includes:

将所述待跟踪物体的跟踪异常次数加1;Add 1 to the number of tracking anomalies of the object to be tracked;

判断所述待跟踪物体的跟踪异常次数是否大于等于预定次数;Determining whether the number of tracking anomalies of the object to be tracked is greater than or equal to a predetermined number;

在所述待跟踪物体的跟踪异常次数大于等于预定次数的情况下,将所述待跟踪物体的历史运动轨迹从待跟踪物体集合中删除。When the number of tracking anomalies of the object to be tracked is greater than or equal to a predetermined number, the historical motion trajectory of the object to be tracked is deleted from the set of objects to be tracked.

根据本公开的另一方面,提供一种物体跟踪装置,包括:According to another aspect of the present disclosure, there is provided an object tracking device, comprising:

历史轨迹存储模块,用于预先存储每个待跟踪物体的历史运动轨迹;A historical trajectory storage module is used to pre-store the historical motion trajectory of each object to be tracked;

定位信息获取模块,用于获取控制平台上所有台面物体的当前定位信息;A positioning information acquisition module is used to obtain the current positioning information of all objects on the control platform;

运动轨迹匹配模块,用于针对每个待跟踪物体,从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹相匹配的当前定位信息;A motion trajectory matching module is used to search, for each object to be tracked, the current positioning information of all the objects on the table for the current positioning information that matches the historical motion trajectory of the object to be tracked;

物体运动跟踪模块,用于将匹配成功的台面物体的当前定位信息,作为对应待跟踪物体的当前定位信息。The object motion tracking module is used to use the current positioning information of the successfully matched table object as the current positioning information of the corresponding object to be tracked.

在本公开的一些实施例中,所述物体跟踪装置用于执行实现如上述任一实施例所述的物体跟踪方法的操作。In some embodiments of the present disclosure, the object tracking device is used to perform operations to implement the object tracking method described in any of the above embodiments.

根据本公开的另一方面,提供一种物体跟踪装置,包括:According to another aspect of the present disclosure, there is provided an object tracking device, comprising:

存储器,用于存储指令;A memory for storing instructions;

处理器,用于执行所述指令,使得所述装置执行实现如上述任一实施例所述的物体跟踪方法的操作。The processor is used to execute the instructions so that the device performs operations to implement the object tracking method as described in any of the above embodiments.

根据本公开的另一方面,提供一种控制平台,其特征在于,包括如上述任一实施例所述的物体跟踪装置。According to another aspect of the present disclosure, a control platform is provided, characterized by comprising an object tracking device as described in any of the above embodiments.

根据本公开的另一方面,提供一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机指令,所述指令被处理器执行时实现如上述任一实施例所述的物体跟踪方法。According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the object tracking method as described in any of the above embodiments is implemented.

本公开可以在无需预测的情况下,实现对物体运动的跟踪。The present disclosure can track the motion of an object without prediction.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

图1和图2为本公开一些实施例中控制平台的示意图。1 and 2 are schematic diagrams of a control platform in some embodiments of the present disclosure.

图3为相关技术物体跟踪方法一些实施例的示意图。FIG. 3 is a schematic diagram of some embodiments of a related art object tracking method.

图4为本公开物体跟踪方法一些实施例的示意图。FIG. 4 is a schematic diagram of some embodiments of the object tracking method disclosed herein.

图5为本公开物体跟踪方法另一些实施例的示意图。FIG. 5 is a schematic diagram of other embodiments of the object tracking method disclosed herein.

图6为本公开一些实施例的场景示意图。FIG. 6 is a schematic diagram of a scenario of some embodiments of the present disclosure.

图7为本公开物体跟踪装置一些实施例的示意图。FIG. 7 is a schematic diagram of some embodiments of the object tracking device disclosed herein.

图8为本公开物体跟踪装置另一些实施例的示意图。FIG. 8 is a schematic diagram of other embodiments of the object tracking device disclosed herein.

具体实施方式DETAILED DESCRIPTION

下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本公开及其应用或使用的任何限制。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.

除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本公开的范围。The relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.

同时,应当明白,为了便于描述,附图中所示出的各个部分的尺寸并不是按照实际的比例关系绘制的。At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为授权说明书的一部分。Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.

在这里示出和讨论的所有示例中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它示例可以具有不同的值。In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

图1和图2为本公开一些实施例中控制平台的示意图。如图1和图 2所示的为智能传送带及类似的控制平台的示意图。需要对方形箱体、包裹等物体进行精确的定位和跟踪,将获取到的物体信息(比如几何尺寸、位置、姿态、箱体编号、历史运动路径)提供给控制平台,从而共同完成实时的闭环控制。Figures 1 and 2 are schematic diagrams of control platforms in some embodiments of the present disclosure. Figures 1 and 2 are schematic diagrams of intelligent conveyor belts and similar control platforms. It is necessary to accurately locate and track objects such as square boxes and packages, and provide the acquired object information (such as geometric size, position, posture, box number, historical motion path) to the control platform to jointly complete real-time closed-loop control.

图1和图2场景中,典型的控制一般需要每秒至少30帧的拍摄速率,即需要每秒至少30次的定位跟踪信息来完成实时控制(每次定位跟踪信息的间隔小于33ms)。一般的3D深度相机都可以达到每秒30 帧的数据采集速率,如果是2D彩色相机或其他传感器,其帧率可更高。所以假定数据采集和定位部分都已满足该要求。In the scenarios of Figures 1 and 2, typical control generally requires a shooting rate of at least 30 frames per second, that is, at least 30 positioning and tracking information per second is required to complete real-time control (the interval between each positioning and tracking information is less than 33ms). General 3D depth cameras can achieve a data acquisition rate of 30 frames per second. If it is a 2D color camera or other sensor, the frame rate can be higher. So it is assumed that both the data acquisition and positioning parts have met this requirement.

当方形箱体等物体低速连续运动时,假定定位部分已完成,即已经获取每一次拍摄下(每一帧)平台上所有方形箱体等物体的几何位置姿态信息,接下来需要的是对这些方形箱体进行跟踪。When objects such as square boxes move continuously at a low speed, it is assumed that the positioning part has been completed, that is, the geometric position and posture information of all objects such as square boxes on the platform has been obtained in each shot (each frame). The next step is to track these square boxes.

本公开的跟踪指的是:对(当前帧)台面上的所有方形箱体的定位结果(比如有N个方形箱体,已知每一个箱体的大小尺寸、中心点坐标和旋转角度等信息,在本公开中简称几何位姿信息。认为几何位姿信息与箱体一一对应),与之前帧所获取的台面上的方形箱体定位结果(比如有M个方形箱体的几何位姿信息)进行匹配,以计算得到:1)当前帧的每一个箱体对应之前的哪一个箱体,给予相同的编号;2)可获取所有箱体各自的历史运动轨迹。当跟踪部分完成后,我们就可以将当前帧的跟踪结果提供给控制装置,控制装置将基于每一个箱体的编号、历史运动轨迹信息等,按照预期路径对其进行实时闭环控制。Tracking disclosed herein refers to: matching the positioning results of all square boxes on the table (current frame) (for example, there are N square boxes, and the size, center point coordinates, rotation angle, and other information of each box are known, referred to as geometric pose information in this disclosure. It is assumed that the geometric pose information corresponds to the box one by one) with the positioning results of the square boxes on the table obtained in the previous frame (for example, there are M square boxes of geometric pose information) to calculate: 1) each box in the current frame corresponds to which previous box, and is given the same number; 2) the historical motion trajectory of all boxes can be obtained. When the tracking part is completed, we can provide the tracking result of the current frame to the control device, and the control device will perform real-time closed-loop control on each box according to the expected path based on the number, historical motion trajectory information, etc.

图3为相关技术物体跟踪方法一些实施例的示意图。如图3所示,相关技术的物体跟踪方法可以包括:由于控制部分有每一个箱体的预期控制路径,因此可相关技术基于上一帧(或此前更多帧)的定位结果、上一帧(或此前更多帧)到当前帧的时间间隔t和预期路径,首先进行预测,估计得到当前帧下预测的定位信息;然后将当前帧下真正得到的定位结果与之进行匹配。基于匹配结果完成逻辑设计,从而进一步完成跟踪。FIG3 is a schematic diagram of some embodiments of the object tracking method of the related art. As shown in FIG3, the object tracking method of the related art may include: since the control part has an expected control path for each box, the related art can be based on the positioning result of the previous frame (or more previous frames), the time interval t from the previous frame (or more previous frames) to the current frame, and the expected path, first predict and estimate the positioning information predicted in the current frame; then match the positioning result actually obtained in the current frame with it. Complete the logic design based on the matching result, thereby further completing the tracking.

发明人通过研究发现相关技术存在一些技术问题:The inventor discovered through research that the related technology has some technical problems:

1、相关技术的定位结果一般由相机视觉或其他传感器获取,我们将提供该功能的称为定位模块;将控制装置称为控制模块。则跟踪功能 (模块)不论是放在定位模块,还是控制模块,或者单独一个模块,在每一次的跟踪计算中,都需要与定位模块或(和)控制模块进行多次交互。因为跟踪模块不仅需要定位模块提供的当前帧定位结果,还需要基于控制和定位模块提供的预测定位信息,这样就会使得每一次跟踪计算中,需要较多的信息传输和交互。1. The positioning results of related technologies are generally obtained by camera vision or other sensors. We call the one that provides this function the positioning module; and the control device the control module. Whether the tracking function (module) is placed in the positioning module, the control module, or a separate module, it needs to interact with the positioning module or (and) the control module multiple times in each tracking calculation. Because the tracking module not only needs the current frame positioning result provided by the positioning module, but also needs the predicted positioning information provided by the control and positioning modules, which will require more information transmission and interaction in each tracking calculation.

2、相关技术的预测需要上一帧(或此前更多帧)的定位结果,上一帧(或此前更多帧)到当前帧的时间间隔t以及预期路径,则自然需要相应的时间资源和空间资源(比如计算资源)。如果相关技术要利用此前更多帧的结果进行更准确的预测,则需要的资源更多。2. The prediction of related technologies requires the positioning results of the previous frame (or more previous frames), the time interval t from the previous frame (or more previous frames) to the current frame, and the expected path, which naturally requires corresponding time resources and space resources (such as computing resources). If the related technology wants to use the results of more previous frames for more accurate prediction, it will require more resources.

3、相关技术还可以采用基于模板的、基于深度学习的等技术,但都会有一定的限制条件。基于模板的需要对目标建模,或者说需要对目标种类特性进行一定限制,基于深度学习的也对目标种类特性有限制,且需要预训练等。而图1和图2所示场景的方形箱体的长宽高等尺寸是未知的(可以多种多样),且箱体自身纹理非常单一(或者说不同箱体之间除尺寸外,纹理都是一致的)。另外,这些技术对时间资源或空间资源的要求较多。3. Related technologies can also use template-based, deep learning-based and other technologies, but they will have certain restrictions. Template-based technologies require target modeling, or require certain restrictions on target type characteristics. Deep learning-based technologies also have restrictions on target type characteristics and require pre-training. The length, width, and height dimensions of the square boxes in the scenes shown in Figures 1 and 2 are unknown (they can be varied), and the texture of the box itself is very simple (or the texture of different boxes is consistent except for the size). In addition, these technologies have high requirements for time resources or space resources.

4、相关技术没有对箱体进出平台情况、异常情况等做完善的考虑。4. The relevant technology does not fully consider the conditions of the box entering and exiting the platform, abnormal situations, etc.

鉴于以上技术问题中的至少一项,本公开提供了一种物体跟踪方法和装置、控制平台和存储介质,下面通过实施例对本公开进行说明。In view of at least one of the above technical problems, the present disclosure provides an object tracking method and device, a control platform and a storage medium, which are described below through embodiments.

本公开针对方形箱体低速运动控制下的跟踪部分,提出了一种无需预测、逻辑简单且完备的物体跟踪方法。The present invention proposes an object tracking method that does not require prediction and has simple and complete logic for the tracking part of a square box under low-speed motion control.

本公开只针对跟踪部分,认为每一定位周期(例如每一帧)下所有箱体的定位结果已获取。其中定位结果主要指的是几何位姿信息,包括方形箱体的几何大小(长和宽)、位姿信息(箱体中心点坐标、旋转角度)等。This disclosure only focuses on the tracking part, and assumes that the positioning results of all boxes in each positioning cycle (e.g., each frame) have been obtained. The positioning results mainly refer to geometric posture information, including the geometric size (length and width) of the square box, posture information (box center point coordinates, rotation angle), etc.

本公开提到的典型场景中的典型控制,其场景和控制条件一般都存在以下先决条件:The typical control in the typical scenarios mentioned in this disclosure generally has the following prerequisites for the scenarios and control conditions:

1)方形箱体低速运动,速度2m/s以下。以每秒30帧计算,即每次定位信息获取时间间隔约33ms。计算可得箱体运动距离不超过 2m/s*33ms=66mm=0.066m。1) The square box moves at a low speed, less than 2m/s. Calculated at 30 frames per second, the time interval for obtaining each positioning information is about 33ms. The calculation shows that the moving distance of the box does not exceed 2m/s*33ms=66mm=0.066m.

2)方形箱体等物体的尺寸不能太小,否则难以被控制装置(平台) 控制。一般来说,例如方形箱体的边长至少都会在15cm以上。2) The size of the object such as a square box cannot be too small, otherwise it will be difficult to be controlled by the control device (platform). Generally speaking, the side length of a square box, for example, will be at least 15 cm.

3)控制平台上将同时存在多个箱体,每个箱体从进入平台到离开需要被分别控制。3) There will be multiple boxes on the control platform at the same time, and each box needs to be controlled separately from entering the platform to leaving.

针对这类场景中的控制需求,本公开提出一种用于方形箱体等物体低速运动控制的跟踪方法。In response to the control requirements in such scenarios, the present disclosure proposes a tracking method for low-speed motion control of objects such as square boxes.

图4为本公开物体跟踪方法一些实施例的示意图。优选的,本实施例可由本公开物体跟踪装置执行。该方法可以包括以下步骤:FIG4 is a schematic diagram of some embodiments of the object tracking method disclosed in the present invention. Preferably, this embodiment can be performed by the object tracking device disclosed in the present invention. The method may include the following steps:

步骤40,预先存储每个待跟踪物体的历史运动轨迹。Step 40: pre-store the historical motion trajectory of each object to be tracked.

步骤41,获取控制平台上所有台面物体的当前定位信息。Step 41, obtaining the current positioning information of all table objects on the control platform.

在本公开的一些实施例中,步骤41可以包括:以预定定位时间间隔获取控制平台上所有台面物体的当前定位信息。In some embodiments of the present disclosure, step 41 may include: acquiring current positioning information of all table objects on the control platform at predetermined positioning time intervals.

在本公开的一些实施例中,步骤41可以包括:采用相机等传感器获取已经有坐标信息的台面上,所有运动的台面物体的当前定位信息。In some embodiments of the present disclosure, step 41 may include: using a sensor such as a camera to obtain current positioning information of all moving table objects on the table that already have coordinate information.

步骤42,针对每个待跟踪物体,从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹相匹配的当前定位信息。Step 42: for each object to be tracked, search the current positioning information of all the objects on the table for the current positioning information that matches the historical motion trajectory of the object to be tracked.

在本公开的一些实施例中,步骤42可以包括:针对每个待跟踪物体,从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹中最新定位信息相匹配的当前定位信息。In some embodiments of the present disclosure, step 42 may include: for each object to be tracked, searching the current positioning information of all table objects for current positioning information that matches the latest positioning information in the historical motion trajectory of the object to be tracked.

在本公开的一些实施例中,针对每个待跟踪物体,所述从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹中最新定位信息相匹配的当前定位信息的步骤包括:计算每个台面物体的当前定位信息与所述待跟踪物体的最新定位信息之间的距离;判断所述距离是否小于预定阈值;在所述距离小于预定阈值的情况下,判定所述距离小于预定阈值的台面物体与所述待跟踪物体匹配成功。In some embodiments of the present disclosure, for each object to be tracked, the step of searching for current positioning information that matches the latest positioning information in the historical motion trajectory of the object to be tracked from the current positioning information of all table objects includes: calculating the distance between the current positioning information of each table object and the latest positioning information of the object to be tracked; determining whether the distance is less than a predetermined threshold; and if the distance is less than the predetermined threshold, determining that the table object with a distance less than the predetermined threshold is successfully matched with the object to be tracked.

在本公开的一些实施例中,所述每个台面物体的当前定位信息与每个待跟踪物体的最新定位信息之间的距离可以为每个台面物体的当前定位信息中的中心点坐标位置与每个待跟踪物体的最新定位信息中的中心点坐标位置之间的距离。In some embodiments of the present disclosure, the distance between the current positioning information of each tabletop object and the latest positioning information of each object to be tracked may be the distance between the center point coordinate position in the current positioning information of each tabletop object and the center point coordinate position in the latest positioning information of each object to be tracked.

在本公开的一些实施例中,所述每个台面物体的中心点坐标位置与每个待跟踪物体的中心点坐标位置之间的距离可以为两者之间的欧氏距离或其它距离。In some embodiments of the present disclosure, the distance between the center point coordinate position of each tabletop object and the center point coordinate position of each to-be-tracked object may be the Euclidean distance or other distance between the two.

在本公开的一些实施例中,所述预定阈值小于一个预定定位时间间隔内物体的运动距离;且所述预定阈值小于物体中心至物体边缘的最小距离。In some embodiments of the present disclosure, the predetermined threshold is smaller than the movement distance of the object within a predetermined positioning time interval; and the predetermined threshold is smaller than the minimum distance from the center of the object to the edge of the object.

在本公开的另一些实施例中,步骤42可以包括:利用相邻两次定位信息中物体的重叠(比如相交面积)等作为判别准则,来判断台面物体与待跟踪物体是否匹配。In other embodiments of the present disclosure, step 42 may include: using the overlap of objects in two adjacent positioning information (such as the intersection area) as a judgment criterion to determine whether the table object matches the object to be tracked.

例如:步骤42可以包括:判断将每个台面物体的当前定位信息中一个面(例如底面),分别与每个待跟踪物体的历史运动轨迹中的最新定位信息中相应面(例如底面)的相交面积是否小于预定面积,来判断判断台面物体与待跟踪物体是否匹配。For example, step 42 may include determining whether the intersection area of a surface (e.g., bottom surface) in the current positioning information of each table object and the corresponding surface (e.g., bottom surface) in the latest positioning information in the historical motion trajectory of each object to be tracked is less than a predetermined area, to determine whether the table object matches the object to be tracked.

对本公开上述实施例提及的场景和控制来说,建议使用基于阈值的、欧氏距离的判别准则即可,本公开上述实施例准则简单、计算量小,且足够有效。For the scenarios and controls mentioned in the above embodiments of the present disclosure, it is recommended to use a threshold-based, Euclidean distance discrimination criterion. The criterion in the above embodiments of the present disclosure is simple, requires little calculation, and is sufficiently effective.

步骤43,将匹配成功的台面物体的当前定位信息,作为对应待跟踪物体的当前定位信息。Step 43: The current positioning information of the successfully matched table object is used as the current positioning information of the corresponding object to be tracked.

在本公开的一些实施例中,匹配成功的台面物体和待跟踪物体为同一物体。In some embodiments of the present disclosure, the successfully matched table object and the object to be tracked are the same object.

在本公开的一些实施例中,所述物体跟踪方法还可以包括:判断是否存在与所有待跟踪物体的历史运动轨迹均匹配不成功的台面物体的当前定位信息;在存在与所有待跟踪物体的历史运动轨迹均匹配不成功的台面物体的当前定位信息的情况下,将所述台面物体作为新的待跟踪物体,将所述台面物体的当前定位信息作为待跟踪物体的当前定位信息。In some embodiments of the present disclosure, the object tracking method may further include: determining whether there is current positioning information of a table top object that fails to match the historical motion trajectories of all objects to be tracked; if there is current positioning information of a table top object that fails to match the historical motion trajectories of all objects to be tracked, treating the table top object as a new object to be tracked, and treating the current positioning information of the table top object as the current positioning information of the object to be tracked.

在本公开的一些实施例中,所述物体跟踪方法还可以包括:在创建新的待跟踪物体的情况下,为新的待跟踪物体增加路径状态值,其中,路径状态为正常或异常,其中,正常(状态)路径指的是真正新进入控制平台的箱子,只能从控制平台的某指定位置进入;异常(状态)路径指的是除指定位置进入以外的其他类型(比如凭空丢进平台的箱子等,用来表征不是从传送带正常进入控制平台的情况)。In some embodiments of the present disclosure, the object tracking method may further include: in the case of creating a new object to be tracked, adding a path state value for the new object to be tracked, wherein the path state is normal or abnormal, wherein a normal (state) path refers to a box that has truly newly entered the control platform and can only enter from a designated position of the control platform; an abnormal (state) path refers to other types of entry other than the designated position (such as a box thrown into the platform out of thin air, etc., used to characterize the situation where the control platform is not entered normally from the conveyor belt).

在本公开的一些实施例中,所述物体跟踪方法还可以包括:判断是否存在与所有台面物体的当前定位信息均匹配不成功的待跟踪物体的历史运动轨迹;在存在与所有台面物体的当前定位信息均匹配不成功的待跟踪物体的历史运动轨迹的情况下,将所述待跟踪物体的历史运动轨迹从待跟踪物体集合中删除。In some embodiments of the present disclosure, the object tracking method may further include: determining whether there is a historical motion trajectory of the object to be tracked that fails to match the current positioning information of all table objects; if there is a historical motion trajectory of the object to be tracked that fails to match the current positioning information of all table objects, deleting the historical motion trajectory of the object to be tracked from the set of objects to be tracked.

在本公开的一些实施例中,所述将所述待跟踪物体的历史运动轨迹从待跟踪物体集合中删除包括:将所述待跟踪物体的跟踪异常次数加1;判断所述待跟踪物体的跟踪异常次数是否大于等于预定次数;在所述待跟踪物体的跟踪异常次数大于等于预定次数的情况下,将所述待跟踪物体的历史运动轨迹从待跟踪物体集合中删除。In some embodiments of the present disclosure, deleting the historical motion trajectory of the object to be tracked from the set of objects to be tracked includes: adding 1 to the number of tracking exceptions of the object to be tracked; determining whether the number of tracking exceptions of the object to be tracked is greater than or equal to a predetermined number; and deleting the historical motion trajectory of the object to be tracked from the set of objects to be tracked if the number of tracking exceptions of the object to be tracked is greater than or equal to a predetermined number.

在本公开的一些实施例中,所述物体跟踪方法还可以包括:在一个台面物体的当前定位信息与一个待跟踪物体的历史运动轨迹匹配成功的情况下,判断所述台面物体是否已离开控制平台;在所述台面物体未离开控制平台的情况下,执行将匹配成功的台面物体的当前定位信息,作为对应待跟踪物体的当前定位信息的操作(即路径更新操作),之后将所述待跟踪物体从待跟踪物体集合中删除,将所述台面物体从台面物体集合中删除;在所述台面物体已离开控制平台的情况下,将所述待跟踪物体从待跟踪物体集合中删除,将所述台面物体从台面物体集合中删除。In some embodiments of the present disclosure, the object tracking method may further include: when the current positioning information of a tabletop object successfully matches the historical motion trajectory of an object to be tracked, determining whether the tabletop object has left the control platform; when the tabletop object has not left the control platform, executing an operation (i.e., a path update operation) using the current positioning information of the successfully matched tabletop object as the current positioning information of the object to be tracked, and then deleting the object to be tracked from the set of objects to be tracked, and deleting the tabletop object from the set of tabletop objects; when the tabletop object has left the control platform, deleting the object to be tracked from the set of objects to be tracked, and deleting the tabletop object from the set of tabletop objects.

基于本公开上述实施例提供的物体跟踪方法,针对智能传送带等平台型控制装置对方形箱体等物体低速运动控制(实时闭环控制)的需求,给出了对方形箱体进行跟踪的完整流程和方法。本公开上述实施例无需与其他模块交互,无需箱体的预期运动路径,无需实时预测当前定位信息。Based on the object tracking method provided by the above embodiment of the present disclosure, a complete process and method for tracking a square box is provided to meet the needs of platform-type control devices such as intelligent conveyor belts for low-speed motion control (real-time closed-loop control) of objects such as square boxes. The above embodiment of the present disclosure does not require interaction with other modules, does not require an expected motion path for the box, and does not require real-time prediction of current positioning information.

基于场景中实际控制和运行条件,本公开上述实施例只需每一帧 (每一预定定位时间间隔)的定位信息即可完成对多箱体的跟踪,涵盖了箱体从进入平台到离开,以及可能的异常情况等完整的生命周期。本公开上述实施例提出的以“路径集合”的观点逻辑清楚、完备,所需时间资源和空间资源都较少。Based on the actual control and operating conditions in the scene, the above embodiment of the present disclosure only needs positioning information of each frame (each predetermined positioning time interval) to complete the tracking of multiple boxes, covering the complete life cycle of the boxes from entering the platform to leaving, as well as possible abnormal situations. The "path set" viewpoint proposed in the above embodiment of the present disclosure is logically clear and complete, and requires less time and space resources.

本公开以“路径集合”的观点来跟踪箱体,完成对任意箱体的实时跟踪。本公开的“路径集合”更像是每一个箱体的历史运动轨迹,和控制部分的控制路径是不同的。控制部分的控制路径是基于预期路径和箱体当前位姿,对箱体发出控制指令使其按照预期路径进行运动。而这里的“路径集合”是从历史运动轨迹的角度,分别考虑各个箱体,在从进入平台到离开平台为止这个过程中的状态。The present disclosure tracks the box from the perspective of "path set" to complete real-time tracking of any box. The "path set" disclosed in the present disclosure is more like the historical motion trajectory of each box, which is different from the control path of the control part. The control path of the control part is based on the expected path and the current posture of the box, and sends control instructions to the box to make it move according to the expected path. The "path set" here considers the state of each box from the perspective of historical motion trajectory, from entering the platform to leaving the platform.

图5为本公开物体跟踪方法另一些实施例的示意图。优选的,本实施例可由本公开物体跟踪装置执行。图5实施例中物体为方形箱体,图5实施例中的物体也可以为包裹等其它物体。图5实施例的物体跟踪方法可以包括以下步骤:FIG5 is a schematic diagram of other embodiments of the object tracking method of the present disclosure. Preferably, the present embodiment can be performed by the object tracking device of the present disclosure. The object in the embodiment of FIG5 is a square box, and the object in the embodiment of FIG5 can also be other objects such as a package. The object tracking method of the embodiment of FIG5 may include the following steps:

步骤1,获取当前帧的定位结果列表,表示当前帧台面上所有方形箱体各自的定位信息,总计M个箱体。将其中一个的定位结果记为m,0≤m≤(M-1)。Step 1: Get the positioning result list of the current frame, which indicates the positioning information of all square boxes on the table in the current frame, totaling M boxes. The positioning result of one of them is recorded as m, 0≤m≤(M-1).

步骤2,“路径集合”存储各个方形箱体各自的历史运动轨迹(再次强调,非控制路径)。Step 2: The “path collection” stores the historical motion trajectories of each square box (again, non-control paths).

在本公开的一些实施例中,选择只在路径集合中存储最新一次的位姿信息。即,当前帧的上一次更新结果。In some embodiments of the present disclosure, only the latest pose information is stored in the path set, that is, the last update result of the current frame.

本公开上述实施例路径集合中总计N个路径,含义是目前跟踪的N个箱体各自的历史运动轨迹(位姿信息等)。将其中一个路径记为n,0≤n≤(N-1)。该路径n表示截止到当前帧为止,上一次最近更新的(比如上一帧)该方形箱体的几何位姿信息。There are a total of N paths in the path set of the above embodiment of the present disclosure, which means the historical motion trajectory (position information, etc.) of each of the N boxes currently tracked. One of the paths is recorded as n, 0≤n≤(N-1). The path n represents the geometric position information of the square box that was last updated (for example, in the previous frame) up to the current frame.

在本公开的一些实施例中,可以根据需求扩展为所有历史位姿信息,可以采用所有历史位姿信息对匹配结果进行加权判断。In some embodiments of the present disclosure, it can be expanded to all historical posture information as required, and all historical posture information can be used to perform weighted judgment on the matching results.

步骤3,将路径n和定位结果m进行基于预定阈值的匹配。如果匹配成功,表明定位结果m属于路径n,即定位结果m对应的方形箱体匹配到路径n对应(跟踪)的方形箱体上,则执行步骤4-1。否则,如果匹配不成功,则执行步骤5-1。Step 3, match the path n and the positioning result m based on a predetermined threshold. If the match is successful, it indicates that the positioning result m belongs to the path n, that is, the square box corresponding to the positioning result m is matched to the square box corresponding to (tracked by) the path n, and then execute step 4-1. Otherwise, if the match is unsuccessful, execute step 5-1.

在本公开的一些实施例中,基于阈值的匹配:主要是基于位姿信息中的中心点坐标进行判断。基于路径n的最新位置信息(中心点坐标),和定位结果m的位置信息(中心点坐标),计算两者之间的欧氏距离。In some embodiments of the present disclosure, threshold-based matching: mainly based on the center point coordinates in the pose information. Based on the latest position information (center point coordinates) of path n and the position information (center point coordinates) of positioning result m, the Euclidean distance between the two is calculated.

在本公开的一些实施例中,可设置预定阈值δ=0.07m,当两者间的欧氏距离小于该阈值时,认为匹配成功,否则失败。In some embodiments of the present disclosure, a predetermined threshold δ=0.07m may be set. When the Euclidean distance between the two is less than the threshold, the match is considered successful, otherwise it is considered a failure.

在本公开的一些实施例中,该阈值成立的条件是(同时满足): 1)小于一帧内的运动距离。由于方形箱体低速运动,速度2m/s以下;控制要求定位跟踪信息的更新至少是每秒30帧,即每组时间间隔小于33ms,计算可得运动距离不超过2m/s*33ms=0.066m;条件1) 满足;2)小于箱子最短边长的一半。考虑到控制装置的控制要求,方形箱体的边长至少都会在15cm以上;条件2)满足。In some embodiments of the present disclosure, the conditions for the threshold to be established are (satisfied simultaneously): 1) less than the movement distance within one frame. Since the square box moves at a low speed, the speed is less than 2m/s; the control requires that the update of the positioning and tracking information is at least 30 frames per second, that is, the time interval of each group is less than 33ms, and the calculated movement distance does not exceed 2m/s*33ms=0.066m; condition 1) is met; 2) less than half of the shortest side length of the box. Considering the control requirements of the control device, the side length of the square box will be at least 15cm; condition 2) is met.

步骤4-1,根据定位结果m箱体是否已离开平台。如果是已离开平台,则执行步骤4-2;否则,如果没有离开平台。则表明箱体还在控制平台控制范围内,则执行步骤4-3。Step 4-1, according to the positioning result m, whether the box has left the platform. If it has left the platform, execute step 4-2; otherwise, if it has not left the platform, it means that the box is still within the control range of the control platform, and execute step 4-3.

在本公开的一些实施例中,箱体是否已离开平台的判断标准为:箱体四个角是否都已离开控制平台。In some embodiments of the present disclosure, a criterion for determining whether the box has left the platform is: whether all four corners of the box have left the control platform.

步骤4-2,如果是已离开平台。则将定位结果m从当前帧的定位结果列表中删除。这里已经匹配成功了,因此后续不需要再对定位结果m进行匹配,从列表中删除可减少后续计算量。步骤4-2之后,接下来跳转到步骤6,即,执行“路径消亡”的操作。Step 4-2, if it has left the platform, then delete the positioning result m from the positioning result list of the current frame. The match has been successful here, so there is no need to match the positioning result m in the future. Deleting it from the list can reduce the amount of subsequent calculations. After step 4-2, jump to step 6, that is, perform the "path extinction" operation.

步骤4-3,进入“路径更新”操作,之后,执行步骤4-4。Step 4-3, enter the "path update" operation, then execute step 4-4.

在本公开的一些实施例中,“路径更新”操作可以包括:将定位结果m的信息更新到路径n中,则路径n就获取了对应箱体的最新几何位姿信息,且与以往的历史运动轨迹完成关联。同时,将路径n 的更新异常计数器(在“路径建立”中会详细解释)置为0。In some embodiments of the present disclosure, the "path update" operation may include: updating the information of the positioning result m to the path n, so that the path n obtains the latest geometric posture information of the corresponding box and is associated with the previous historical motion trajectory. At the same time, the update exception counter of the path n (which will be explained in detail in "path establishment") is set to 0.

步骤4-4,将定位结果m从当前帧的定位结果列表中删除;接下来跳转到步骤0。Step 4-4, delete the positioning result m from the positioning result list of the current frame; then jump to step 0.

步骤5-1,继续判断是否已遍历当前帧的所有定位结果。如果不是(没有遍历完当前帧的所有定位结果),则执行步骤5-2;如果是 (已经遍历完当前帧的所有定位结果),则说明路径n没有匹配上当前帧的任何一个定位结果。则路径n进入“路径消亡”操作,即跳转到步骤6。Step 5-1, continue to determine whether all positioning results of the current frame have been traversed. If not (all positioning results of the current frame have not been traversed), execute step 5-2; if yes (all positioning results of the current frame have been traversed), it means that path n does not match any positioning result of the current frame. Then path n enters the "path extinction" operation, that is, jump to step 6.

步骤5-2,令m=m+1,之后继续将定位结果列表中的下一个(定位结果m+1)与路径n做基于阈值的匹配,即跳转回步骤0。Step 5-2, set m=m+1, and then continue to match the next one in the positioning result list (positioning result m+1) with path n based on the threshold, that is, jump back to step 0.

步骤6,进行“路径消亡”操作。Step 6: Perform the “path extinction” operation.

在本公开的一些实施例中,“路径消亡”操作,用来表示对路径进行消亡(删除)操作,表示该路径的生命周期已结束,不需要再对该路径(及其对应箱体)进行跟踪。In some embodiments of the present disclosure, the "path extinction" operation is used to indicate the extinction (deletion) operation of a path, indicating that the life cycle of the path has ended and the path (and its corresponding box) does not need to be tracked anymore.

在本公开的一些实施例中,步骤6可以包括:In some embodiments of the present disclosure, step 6 may include:

步骤6-1,判断该箱体是否已离开平台。判断箱体是否已离开平台的方法与步骤4-1中描述的方式相同。Step 6-1, determine whether the box has left the platform. The method for determining whether the box has left the platform is the same as that described in step 4-1.

步骤6-2,如果是箱体已离开,即步骤4-2的情况下,则该路径的生命周期自然结束了,这属于正常消亡:立即将路径n从“路径集合”中删除。Step 6-2, if the box has left, that is, in the case of step 4-2, the life cycle of the path naturally ends, which is a normal extinction: immediately delete the path n from the "path set".

步骤6-3,如果箱体没有离开,即路径n没有匹配上任何一个定位结果,表明可能存在跟丢等异常情况。为了对该类异常情况进行兜底,本公开考虑对路径n进行强制(异常)消亡。Step 6-3, if the box has not left, that is, path n does not match any positioning result, it indicates that there may be abnormal situations such as lost tracking. In order to cover such abnormal situations, the present disclosure considers forcibly (abnormally) eliminating path n.

在本公开的一些实施例中,步骤6-3可以包括:在路径n中设置一个更新异常计数器(在“路径建立”中会详细解释);首先将该计数器数值+1,然后判断是否达到预设数值,比如3次(表示连续3 帧没有更新。该值可根据场景设定,但建议不要太大,否则会在路径与定位结果的匹配阶段增加出错可能)。如果达到阈值,则立即将该路径n从“路径集合”中删除(强制消亡);如果没达到,则直接进入后续步骤7。In some embodiments of the present disclosure, step 6-3 may include: setting an update exception counter in path n (which will be explained in detail in "path establishment"); first, the counter value is increased by 1, and then it is determined whether it reaches a preset value, such as 3 times (indicating that there is no update for 3 consecutive frames. This value can be set according to the scene, but it is recommended not to be too large, otherwise it will increase the possibility of errors in the matching stage of the path and the positioning result). If the threshold is reached, the path n is immediately deleted from the "path set" (forced extinction); if it is not reached, go directly to the subsequent step 7.

步骤7,判断是否已遍历路径集合中所有路径。如果未遍历路径集合中所有路径,则进入下一个循环,对下一条路径(路径n+1),重复上述步骤3-步骤6的操作;如果已遍历路径集合中所有路径,表明路径集合中的所有路径都已处理完毕,则进入步骤0。Step 7, determine whether all paths in the path set have been traversed. If not, enter the next loop and repeat the above steps 3 to 6 for the next path (path n+1); if all paths in the path set have been traversed, indicating that all paths in the path set have been processed, then enter step 0.

步骤8,判断定位结果列表是否为空。如果列表非空,表明有定位结果(记为j)没有匹配到路径集合的任何一个路径上,则执行步骤9。如果列表为空。表明当前帧的所有定位结果都已匹配成功,则执行步骤10。Step 8, determine whether the positioning result list is empty. If the list is not empty, it indicates that there is a positioning result (denoted as j) that is not matched to any path in the path set, and then execute step 9. If the list is empty, it indicates that all positioning results of the current frame have been successfully matched, and then execute step 10.

本公开上述实施例在步骤4-2和步骤4-4(基于阈值的匹配,当匹配成功时)中,对已匹配上的定位结果m进行了删除操作,因此凡是配上对的定位结果都被删除了。如果当前帧的所有定位结果都匹配上了,则列表将为空。In the above embodiment of the present disclosure, in step 4-2 and step 4-4 (threshold-based matching, when the match is successful), the matched positioning result m is deleted, so all the matched positioning results are deleted. If all the positioning results of the current frame are matched, the list will be empty.

步骤9,进入“路径建立”操作,接下来再进入步骤10。Step 9, enter the "path establishment" operation, and then enter step 10.

在本公开的一些实施例中,步骤9可以包括:在定位结果j没有匹配到路径集合的任意一个路径中的情况下,本公开在路径集合中新建一个新路径(此前路径集合中总共有M个路径,则该路径就是第 M+1个)。该路径有以下特点:In some embodiments of the present disclosure, step 9 may include: when the positioning result j does not match any path in the path set, the present disclosure creates a new path in the path set (there are a total of M paths in the previous path set, then this path is the M+1th path). This path has the following characteristics:

a)路径拥有一个状态,该状态表示该路径为正常或异常。a) A path has a state, which indicates whether the path is normal or abnormal.

正常(状态)路径指的是真正新进入控制平台的箱子:只能从控制平台的某指定位置进入,见图6的场景示意图。The normal (state) path refers to a box that has just entered the control platform: it can only enter from a certain specified position of the control platform, as shown in the scenario diagram of Figure 6.

异常(状态)路径指的是除指定位置进入以外的其他类型(比如凭空丢进平台的箱子等,用来表征不是从传送带正常进入控制平台的情况)。Abnormal (state) paths refer to other types of entry except for the designated location (such as boxes thrown into the platform out of thin air, etc., which are used to represent the situation where the control platform is not entered normally from the conveyor belt).

本公开当出现定位结果j时(没有匹配上),都会对该定位结果建立一个新的路径,并将定位结果更新到新建的路径上。除了状态是正常或异常外,路径的其余状态和操作(比如路径更新和消亡等)都完全一样。In the present disclosure, when a positioning result j appears (no match), a new path will be created for the positioning result, and the positioning result will be updated to the newly created path. Except for the state being normal or abnormal, the rest of the states and operations of the path (such as path update and extinction, etc.) are exactly the same.

本公开上述实施例将路径分为正常和异常的好处在于:将路径分为正常和异常既可以区分该箱子到底是正常进入平台的,还是跟丢的 (或者凭空丢进来的等)。更重要的是,异常路径可以给与箱子相应的操作,比如报警,比如运动到指定的位置。只需要对异常路径设置统一的处理手段即可。但对路径本身(以及跟踪方法中的所有流程),对异常路径的操作和正常状态的没有区别。The advantage of dividing the paths into normal and abnormal in the above embodiment of the present disclosure is that dividing the paths into normal and abnormal can distinguish whether the box enters the platform normally or is lost (or thrown in out of thin air, etc.). More importantly, the abnormal path can give the box corresponding operations, such as alarm, such as moving to a specified location. It is only necessary to set a unified processing method for the abnormal path. However, for the path itself (and all processes in the tracking method), there is no difference between the operation of the abnormal path and the normal state.

b)路径还拥有一个“更新异常计数器”,在路径建立时都置为 0(新建的正常状态、异常状态路径都是。因为此时它们都刚“更新”)。非0值表示该路径已经连续多少次没有更新了。比如更新异常计数器为3,表示该路径已经连续3次没有更新(连续3次,没有和当前帧的所有定位结果匹配成功)。b) The path also has an "update exception counter", which is set to 0 when the path is established (both for newly created normal and abnormal state paths, because they have just been "updated" at this time). A non-zero value indicates how many times the path has not been updated in a row. For example, if the update exception counter is 3, it means that the path has not been updated for 3 consecutive times (3 consecutive times, it has not successfully matched all the positioning results of the current frame).

步骤10,输出当前帧的跟踪信息,即现在的“路径集合”。本次跟踪结束。Step 10: Output the tracking information of the current frame, that is, the current "path set". This tracking is completed.

在本公开的一些实施例中,步骤10可以包括:将“路径集合”中的各个路径的最新状态(其中必要的信息。表示跟踪的各个箱子的最新情况)提供给控制部分,就可以告诉控制部分当前台面上每一个箱体的编号、几何位置姿态,和历史运动轨迹了。In some embodiments of the present disclosure, step 10 may include: providing the latest status of each path in the "path set" (including necessary information, indicating the latest situation of each box being tracked) to the control part, so that the control part can be told the number, geometric position posture, and historical motion trajectory of each box on the current table.

以上就是完成一次跟踪的所有流程(获取了当前帧的定位结果后)。The above is the entire process of completing a tracking (after obtaining the positioning result of the current frame).

本公开上述实施例路径集合中的每一个路径包括三个阶段,即路径建立→路径更新→路径消亡。相比于针对方形箱体自身来考虑每一次跟踪而言(即每一次定位结束后,确定箱体是否是新进入,箱体是否离开,箱体对应此前哪个箱体等),本公开上述实施例提出的路径集合观点能够在箱体不断进入和离开平台的情况下、以及在出现异常时都仅考虑路径的最新状态即可,是建立、更新还是消亡。Each path in the path set of the above embodiment of the present disclosure includes three stages, namely, path establishment → path update → path extinction. Compared with considering each tracking for the square box itself (i.e., after each positioning, determining whether the box is a new entry, whether the box has left, which box the box corresponds to, etc.), the path set viewpoint proposed in the above embodiment of the present disclosure can only consider the latest state of the path, whether it is established, updated or extinct, when the box constantly enters and leaves the platform, and when an abnormality occurs.

本公开上述实施例不需要基于控制模块的预期路径对当前帧的定位信息进行预测(不需要预测),无需与其他模块交互(不需要交互)。仅利用每一次的定位结果,完成对方形箱体的跟踪。因此本公开对时间资源和空间资源的需求少。The above embodiment of the present disclosure does not need to predict the positioning information of the current frame based on the expected path of the control module (no prediction is required), and does not need to interact with other modules (no interaction is required). Only the positioning result of each time is used to complete the tracking of the square box. Therefore, the present disclosure has little demand on time resources and space resources.

本公开上述实施例可以适用于图1和图2实施例的典型场景。The above-mentioned embodiments of the present disclosure may be applicable to typical scenarios of the embodiments of FIG. 1 and FIG. 2 .

本公开上述实施例也可以适应于图6所示的场景示意图。如图6所示,方形箱体从传送带上运动而来,从某一指定边(指定位置。实际场景中一定是只能从指定位置进入的,而离开的位置可以有很多)进入平台型控制装置,然后按照预设路径被控制并离开平台(比如绿色箭头或黄色箭头所示意的)。在方形箱体进入平台到离开平台这个过程中,对方形箱体进行跟踪,输出实时地几何位姿信息给控制平台。The above-mentioned embodiments of the present disclosure can also be adapted to the scene schematic diagram shown in FIG6. As shown in FIG6, the square box moves from the conveyor belt and enters the platform-type control device from a specified side (specified position. In the actual scene, it can only enter from the specified position, and there can be many positions for leaving), and then is controlled and leaves the platform according to a preset path (such as indicated by a green arrow or a yellow arrow). In the process from the square box entering the platform to leaving the platform, the square box is tracked and real-time geometric posture information is output to the control platform.

本公开上述实施例台面上可以同时有多个方形箱体,且需要各自分别控制。In the above embodiment of the present disclosure, there can be multiple square boxes on the table at the same time, and each of them needs to be controlled separately.

图7为本公开物体跟踪装置一些实施例的示意图。如图7所示,本公开物体跟踪装置可以包括历史轨迹存储模块70、定位信息获取模块 71、运动轨迹匹配模块72和物体运动跟踪模块73,其中:FIG7 is a schematic diagram of some embodiments of the object tracking device of the present disclosure. As shown in FIG7 , the object tracking device of the present disclosure may include a history track storage module 70, a positioning information acquisition module 71, a motion track matching module 72 and an object motion tracking module 73, wherein:

历史轨迹存储模块70,用于预先存储每个待跟踪物体的历史运动轨迹。The historical trajectory storage module 70 is used to pre-store the historical motion trajectory of each object to be tracked.

定位信息获取模块71,用于获取控制平台上所有台面物体的当前定位信息。The positioning information acquisition module 71 is used to acquire the current positioning information of all table objects on the control platform.

在本公开的一些实施例中,定位信息获取模块71可以用于以预定定位时间间隔获取控制平台上所有台面物体的当前定位信息。In some embodiments of the present disclosure, the positioning information acquisition module 71 may be used to acquire the current positioning information of all table objects on the control platform at a predetermined positioning time interval.

运动轨迹匹配模块72,用于针对每个待跟踪物体,从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹相匹配的当前定位信息。The motion trajectory matching module 72 is used to search, for each object to be tracked, the current positioning information of all the objects on the table for the current positioning information that matches the historical motion trajectory of the object to be tracked.

在本公开的一些实施例中,运动轨迹匹配模块72可以用于针对每个待跟踪物体,从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹中最新定位信息相匹配的当前定位信息。In some embodiments of the present disclosure, the motion trajectory matching module 72 may be used to search, for each object to be tracked, the current positioning information of all table objects for the current positioning information that matches the latest positioning information in the historical motion trajectory of the object to be tracked.

在本公开的一些实施例中,运动轨迹匹配模块72可以用于计算每个台面物体的当前定位信息与每个待跟踪物体的最新定位信息之间的距离;判断所述距离是否小于预定阈值;在所述距离小于预定阈值的情况下,判定所述距离小于预定阈值的台面物体与待跟踪物体匹配成功。In some embodiments of the present disclosure, the motion trajectory matching module 72 can be used to calculate the distance between the current positioning information of each table object and the latest positioning information of each object to be tracked; determine whether the distance is less than a predetermined threshold; if the distance is less than the predetermined threshold, determine that the table object with a distance less than the predetermined threshold is successfully matched with the object to be tracked.

在本公开的一些实施例中,所述每个台面物体的当前定位信息与每个待跟踪物体的最新定位信息之间的距离可以为每个台面物体的当前定位信息中的中心点坐标位置与每个待跟踪物体的最新定位信息中的中心点坐标位置之间的距离。In some embodiments of the present disclosure, the distance between the current positioning information of each table object and the latest positioning information of each object to be tracked may be the distance between the center point coordinate position in the current positioning information of each table object and the center point coordinate position in the latest positioning information of each object to be tracked.

在本公开的一些实施例中,所述预定阈值小于一个预定定位时间间隔内物体的运动距离;所述预定阈值小于物体中心至物体边缘的最小距离。In some embodiments of the present disclosure, the predetermined threshold is smaller than the movement distance of the object within a predetermined positioning time interval; the predetermined threshold is smaller than the minimum distance from the center of the object to the edge of the object.

在本公开的一些实施例中,运动轨迹匹配模块72可以用于利用相邻两次定位信息中物体的重叠(比如相交面积)等作为判别准则,来判断台面物体与待跟踪物体是否匹配。In some embodiments of the present disclosure, the motion trajectory matching module 72 may be configured to use the overlap of objects in two adjacent positioning information (such as the intersection area) as a criterion to determine whether the table object matches the object to be tracked.

在本公开的一些实施例中,运动轨迹匹配模块72可以用于判断将每个台面物体的当前定位信息中一个面(例如底面),分别与每个待跟踪物体的历史运动轨迹中的最新定位信息中相应面(例如底面)的相交面积是否小于预定面积,来判断判断台面物体与待跟踪物体是否匹配。In some embodiments of the present disclosure, the motion trajectory matching module 72 can be used to determine whether the intersection area of a surface (e.g., bottom surface) in the current positioning information of each table object and the corresponding surface (e.g., bottom surface) in the latest positioning information in the historical motion trajectory of each object to be tracked is less than a predetermined area, so as to determine whether the table object matches the object to be tracked.

对本公开上述实施例提及的场景和控制来说,建议使用基于阈值的、欧氏距离的判别准则即可,本公开上述实施例准则简单、计算量小,且足够有效For the scenarios and controls mentioned in the above embodiments of the present disclosure, it is recommended to use a threshold-based, Euclidean distance discrimination criterion. The above embodiments of the present disclosure have simple criteria, small calculation amount, and are sufficiently effective.

物体运动跟踪模块73,用于将匹配成功的台面物体的当前定位信息,作为对应待跟踪物体的当前定位信息。The object motion tracking module 73 is used to use the current positioning information of the successfully matched table object as the current positioning information of the corresponding object to be tracked.

在本公开的一些实施例中,匹配成功的台面物体和待跟踪物体为同一物体。In some embodiments of the present disclosure, the successfully matched table object and the object to be tracked are the same object.

在本公开的一些实施例中,所述物体跟踪装置还可以用于输出待跟踪物体的当前运动轨迹,其中,所述当前运动轨迹包括历史运动轨迹和当前定位信息。In some embodiments of the present disclosure, the object tracking device may also be used to output a current motion trajectory of the object to be tracked, wherein the current motion trajectory includes a historical motion trajectory and current positioning information.

在本公开的一些实施例中,所述物体跟踪装置还可以用于判断是否存在与所有待跟踪物体的历史运动轨迹均匹配不成功的台面物体的当前定位信息;在存在与所有待跟踪物体的历史运动轨迹均匹配不成功的台面物体的当前定位信息的情况下,将所述台面物体作为新的待跟踪物体,将所述台面物体的当前定位信息作为待跟踪物体的当前定位信息。In some embodiments of the present disclosure, the object tracking device can also be used to determine whether there is current positioning information of a table top object that fails to match the historical motion trajectories of all objects to be tracked; if there is current positioning information of a table top object that fails to match the historical motion trajectories of all objects to be tracked, the table top object is used as a new object to be tracked, and the current positioning information of the table top object is used as the current positioning information of the object to be tracked.

在本公开的一些实施例中,所述物体跟踪装置还可以用于判断是否存在与所有台面物体的当前定位信息均匹配不成功的待跟踪物体的历史运动轨迹;在存在与所有台面物体的当前定位信息均匹配不成功的待跟踪物体的历史运动轨迹的情况下,将所述待跟踪物体的历史运动轨迹从待跟踪物体集合中删除。In some embodiments of the present disclosure, the object tracking device can also be used to determine whether there is a historical motion trajectory of the object to be tracked that fails to match the current positioning information of all table objects; if there is a historical motion trajectory of the object to be tracked that fails to match the current positioning information of all table objects, the historical motion trajectory of the object to be tracked is deleted from the set of objects to be tracked.

在本公开的一些实施例中,所述物体跟踪装置在将所述待跟踪物体的历史运动轨迹从待跟踪物体集合中删除的情况下,可以用于将所述待跟踪物体的跟踪异常次数加1;判断所述待跟踪物体的跟踪异常次数是否大于等于预定次数;在所述待跟踪物体的跟踪异常次数大于等于预定次数的情况下,将所述待跟踪物体的历史运动轨迹从待跟踪物体集合中删除。In some embodiments of the present disclosure, the object tracking device can be used to add 1 to the number of tracking exceptions of the object to be tracked when the historical motion trajectory of the object to be tracked is deleted from the set of objects to be tracked; determine whether the number of tracking exceptions of the object to be tracked is greater than or equal to a predetermined number; and delete the historical motion trajectory of the object to be tracked from the set of objects to be tracked when the number of tracking exceptions of the object to be tracked is greater than or equal to a predetermined number.

在本公开的一些实施例中,所述物体跟踪装置还可以用于在一个台面物体的当前定位信息与一个待跟踪物体的历史运动轨迹匹配成功的情况下,判断所述台面物体是否已离开控制平台;在所述台面物体未离开控制平台的情况下,执行将匹配成功的台面物体的当前定位信息,作为对应待跟踪物体的当前定位信息的操作(即路径更新操作),之后将所述待跟踪物体从待跟踪物体集合中删除,将所述台面物体从台面物体集合中删除;在所述台面物体已离开控制平台的情况下,将所述待跟踪物体从待跟踪物体集合中删除,将所述台面物体从台面物体集合中删除。In some embodiments of the present disclosure, the object tracking device can also be used to determine whether a tabletop object has left the control platform when the current positioning information of the tabletop object successfully matches the historical motion trajectory of an object to be tracked; when the tabletop object has not left the control platform, perform an operation of using the current positioning information of the successfully matched tabletop object as the current positioning information of the corresponding object to be tracked (i.e., a path update operation), and then delete the object to be tracked from the set of objects to be tracked, and delete the tabletop object from the set of tabletop objects; when the tabletop object has left the control platform, delete the object to be tracked from the set of objects to be tracked, and delete the tabletop object from the set of tabletop objects.

在本公开的一些实施例中,所述物体跟踪装置用于执行实现如上述任一实施例(例如图4或图5任一实施例)所述的物体跟踪方法的操作。In some embodiments of the present disclosure, the object tracking device is used to perform operations of implementing the object tracking method described in any of the above embodiments (for example, any of the embodiments in FIG. 4 or FIG. 5 ).

基于本公开上述实施例提供的物体跟踪装置,针对智能传送带等平台型控制装置对方形箱体等物体低速运动控制(实时闭环控制)的需求,给出了对方形箱体进行跟踪的完整流程和方法。本公开上述实施例无需与其他模块交互,无需箱体的预期运动路径,无需实时预测当前定位信息。Based on the object tracking device provided by the above embodiment of the present disclosure, a complete process and method for tracking a square box is provided to meet the needs of platform-type control devices such as intelligent conveyor belts for low-speed motion control (real-time closed-loop control) of objects such as square boxes. The above embodiment of the present disclosure does not require interaction with other modules, does not require an expected motion path for the box, and does not require real-time prediction of current positioning information.

图8为本公开物体跟踪装置另一些实施例的示意图。如图8所示,本公开物体跟踪装置可以包括存储器81和处理器82,其中:FIG8 is a schematic diagram of some other embodiments of the object tracking device of the present disclosure. As shown in FIG8 , the object tracking device of the present disclosure may include a memory 81 and a processor 82, wherein:

存储器81,用于存储指令。The memory 81 is used for storing instructions.

处理器82,用于执行所述指令,使得所述装置执行实现如上述任一实施例(例如图4或图5任一实施例)所述的物体跟踪方法的操作。The processor 82 is used to execute the instructions so that the device performs operations to implement the object tracking method as described in any of the above embodiments (for example, any of the embodiments in FIG. 4 or FIG. 5 ).

基于场景中实际控制和运行条件,本公开上述实施例只需每一帧(每一预定定位时间间隔)的定位信息即可完成对多箱体的跟踪,涵盖了箱体等物体从进入平台到离开,以及可能的异常情况等完整的生命周期。本公开上述实施例提出的以“路径集合”的观点逻辑清楚、完备,所需时间资源和空间资源都较少。Based on the actual control and operating conditions in the scene, the above embodiment of the present disclosure only needs positioning information of each frame (each predetermined positioning time interval) to complete the tracking of multiple boxes, covering the complete life cycle of objects such as boxes from entering the platform to leaving, as well as possible abnormal situations. The "path set" viewpoint proposed in the above embodiment of the present disclosure is logically clear and complete, and requires less time and space resources.

根据本公开的另一方面,提供一种控制平台,包括如上述任一实施例(例如图7或图8任一实施例)所述的物体跟踪装置。According to another aspect of the present disclosure, a control platform is provided, comprising an object tracking device as described in any of the above embodiments (eg, any of the embodiments in FIG. 7 or FIG. 8 ).

基于本公开上述实施例提供的控制平台,以“路径集合”的观点来跟踪箱体,完成对任意箱体的实时跟踪。本公开的“路径集合”更像是每一个箱体的历史运动轨迹,和控制部分的控制路径是不同的。控制部分的控制路径是基于预期路径和箱体当前位姿,对箱体发出控制指令使其按照预期路径进行运动。而这里的“路径集合”是从历史运动轨迹的角度,分别考虑各个箱体,在从进入平台到离开平台为止这个过程中的状态。Based on the control platform provided by the above-mentioned embodiment of the present disclosure, the box is tracked from the perspective of "path set" to complete the real-time tracking of any box. The "path set" of the present disclosure is more like the historical motion trajectory of each box, which is different from the control path of the control part. The control path of the control part is based on the expected path and the current posture of the box, and a control instruction is issued to the box to make it move according to the expected path. The "path set" here considers the state of each box from the perspective of the historical motion trajectory, from entering the platform to leaving the platform.

根据本公开的另一方面,提供一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机指令,所述指令被处理器执行时实现如上述任一实施例(例如图4或图5任一实施例)所述的物体跟踪方法。According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the object tracking method as described in any of the above embodiments (for example, any of the embodiments in Figure 4 or Figure 5) is implemented.

本公开上述实施例路径集合中的每一个路径包括三个阶段,即路径建立→路径更新→路径消亡。相比于针对方形箱体自身来考虑每一次跟踪而言(即每一次定位结束后,确定箱体是否是新进入,箱体是否离开,箱体对应此前哪个箱体等),本公开上述实施例提出的路径集合观点能够在箱体不断进入和离开平台的情况下、以及在出现异常时都仅考虑路径的最新状态即可,是建立、更新还是消亡。Each path in the path set of the above embodiment of the present disclosure includes three stages, namely, path establishment → path update → path extinction. Compared with considering each tracking for the square box itself (i.e., after each positioning, determining whether the box is a new entry, whether the box has left, which box the box corresponds to, etc.), the path set viewpoint proposed in the above embodiment of the present disclosure can only consider the latest state of the path, whether it is established, updated or extinct, when the box constantly enters and leaves the platform, and when an abnormality occurs.

本公开上述实施例不需要基于控制模块的预期路径对当前帧的定位信息进行预测(不需要预测),无需与其他模块交互(不需要交互)。仅利用每一次的定位结果,完成对方形箱体的跟踪。因此本公开对时间资源和空间资源的需求少。The above embodiment of the present disclosure does not need to predict the positioning information of the current frame based on the expected path of the control module (no prediction is required), and does not need to interact with other modules (no interaction is required). Only the positioning result of each time is used to complete the tracking of the square box. Therefore, the present disclosure has little demand on time resources and space resources.

在上面所描述的物体跟踪装置可以实现为用于执行本申请所描述功能的通用处理器、可编程逻辑控制器(PLC)、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件或者其任意适当组合。The object tracking device described above can be implemented as a general-purpose processor, a programmable logic controller (PLC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components or any appropriate combination thereof for performing the functions described in the present application.

至此,已经详细描述了本公开。为了避免遮蔽本公开的构思,没有描述本领域所公知的一些细节。本领域技术人员根据上面的描述,完全可以明白如何实施这里公开的技术方案。So far, the present disclosure has been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指示相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

本公开的描述是为了示例和描述起见而给出的,而并不是无遗漏的或者将本公开限于所公开的形式。很多修改和变化对于本领域的普通技术人员而言是显然的。选择和描述实施例是为了更好说明本公开的原理和实际应用,并且使本领域的普通技术人员能够理解本公开从而设计适于特定用途的带有各种修改的各种实施例。The description of the present disclosure is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the present disclosure to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present disclosure, and to enable those of ordinary skill in the art to understand the present disclosure and thereby design various embodiments with various modifications suitable for specific uses.

Claims (12)

1.一种物体跟踪方法,其特征在于,包括:1. An object tracking method, comprising: 预先存储每个待跟踪物体的历史运动轨迹;Pre-store the historical motion trajectory of each object to be tracked; 获取控制平台上所有台面物体的当前定位信息;Get the current positioning information of all objects on the control platform; 针对每个待跟踪物体,从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹相匹配的当前定位信息;For each object to be tracked, searching for current positioning information that matches the historical motion trajectory of the object to be tracked from the current positioning information of all objects on the table; 将匹配成功的台面物体的当前定位信息,作为对应待跟踪物体的当前定位信息;The current positioning information of the successfully matched table object is used as the current positioning information of the corresponding object to be tracked; 其中,所述物体跟踪方法还包括:Wherein, the object tracking method further includes: 判断是否存在与所有待跟踪物体的历史运动轨迹均匹配不成功的台面物体的当前定位信息;Determine whether there is current positioning information of a table object that fails to match the historical motion trajectories of all objects to be tracked; 在存在与所有待跟踪物体的历史运动轨迹均匹配不成功的台面物体的当前定位信息的情况下,将所述台面物体作为新的待跟踪物体,将所述台面物体的当前定位信息作为待跟踪物体的当前定位信息;In the case where there is current positioning information of a tabletop object that fails to match the historical motion trajectories of all objects to be tracked, the tabletop object is used as a new object to be tracked, and the current positioning information of the tabletop object is used as the current positioning information of the object to be tracked; 在创建新的待跟踪物体的情况下,为新的待跟踪物体增加路径状态值,其中,路径状态为正常或异常,正常状态路径为从控制平台的指定位置进入的待跟踪物体的路径,异常状态路径为从控制平台的异常位置进入的待跟踪物体的路径,异常位置为除指定位置外的位置。When a new object to be tracked is created, a path state value is added for the new object to be tracked, where the path state is normal or abnormal, the normal state path is the path of the object to be tracked entering from the specified position of the control platform, the abnormal state path is the path of the object to be tracked entering from the abnormal position of the control platform, and the abnormal position is a position other than the specified position. 2.根据权利要求1所述的物体跟踪方法,其特征在于,匹配成功的台面物体和待跟踪物体为同一物体;2. The object tracking method according to claim 1, characterized in that the successfully matched table object and the object to be tracked are the same object; 所述物体跟踪方法还包括:The object tracking method further comprises: 输出待跟踪物体的当前运动轨迹,其中,所述当前运动轨迹包括历史运动轨迹和当前定位信息。Output the current motion trajectory of the object to be tracked, wherein the current motion trajectory includes the historical motion trajectory and the current positioning information. 3.根据权利要求1所述的物体跟踪方法,其特征在于,所述针对每个待跟踪物体,从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹相匹配的当前定位信息包括:3. The object tracking method according to claim 1, wherein for each object to be tracked, searching for current positioning information that matches the historical motion trajectory of the object to be tracked from the current positioning information of all table objects comprises: 针对每个待跟踪物体,从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹中最新定位信息相匹配的当前定位信息。For each object to be tracked, current positioning information matching the latest positioning information in the historical motion trajectory of the object to be tracked is searched from the current positioning information of all table objects. 4.根据权利要求3所述的物体跟踪方法,其特征在于,针对每个待跟踪物体,所述从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹中最新定位信息相匹配的当前定位信息包括:4. The object tracking method according to claim 3, characterized in that, for each object to be tracked, searching the current positioning information of all table objects for the current positioning information that matches the latest positioning information in the historical motion trajectory of the object to be tracked comprises: 计算每个台面物体的当前定位信息与所述待跟踪物体的最新定位信息之间的距离;Calculating the distance between the current positioning information of each table object and the latest positioning information of the object to be tracked; 判断所述距离是否小于预定阈值;Determining whether the distance is less than a predetermined threshold; 在所述距离小于预定阈值的情况下,判定所述距离小于预定阈值的台面物体与所述待跟踪物体匹配成功。When the distance is less than a predetermined threshold, it is determined that the table object whose distance is less than the predetermined threshold is successfully matched with the object to be tracked. 5.根据权利要求4所述的物体跟踪方法,其特征在于,5. The object tracking method according to claim 4, characterized in that: 所述获取控制平台上所有台面物体的当前定位信息包括:以预定定位时间间隔获取控制平台上所有台面物体的当前定位信息;The obtaining of the current positioning information of all the objects on the control platform comprises: obtaining the current positioning information of all the objects on the control platform at a predetermined positioning time interval; 所述预定阈值小于一个预定定位时间间隔内物体的运动距离、且所述预定阈值小于物体中心至物体边缘的最小距离。The predetermined threshold is smaller than the moving distance of the object within a predetermined positioning time interval, and the predetermined threshold is smaller than the minimum distance from the center of the object to the edge of the object. 6.根据权利要求1-5中任一项所述的物体跟踪方法,其特征在于,还包括:6. The object tracking method according to any one of claims 1 to 5, further comprising: 判断是否存在与所有台面物体的当前定位信息均匹配不成功的待跟踪物体的历史运动轨迹;Determine whether there is a historical motion trajectory of the object to be tracked that fails to match the current positioning information of all the objects on the table; 在存在与所有台面物体的当前定位信息均匹配不成功的待跟踪物体的历史运动轨迹的情况下,将所述待跟踪物体的历史运动轨迹从待跟踪物体集合中删除。In the case that there is a historical motion trajectory of the object to be tracked that fails to match the current positioning information of all the table objects, the historical motion trajectory of the object to be tracked is deleted from the set of objects to be tracked. 7.根据权利要求6所述的物体跟踪方法,其特征在于,所述将所述待跟踪物体的历史运动轨迹从待跟踪物体集合中删除包括:7. The object tracking method according to claim 6, wherein the deleting the historical motion trajectory of the object to be tracked from the set of objects to be tracked comprises: 将所述待跟踪物体的跟踪异常次数加1;Add 1 to the number of tracking anomalies of the object to be tracked; 判断所述待跟踪物体的跟踪异常次数是否大于等于预定次数;Determining whether the number of tracking anomalies of the object to be tracked is greater than or equal to a predetermined number; 在所述待跟踪物体的跟踪异常次数大于等于预定次数的情况下,将所述待跟踪物体的历史运动轨迹从待跟踪物体集合中删除。When the number of tracking anomalies of the object to be tracked is greater than or equal to a predetermined number, the historical motion trajectory of the object to be tracked is deleted from the set of objects to be tracked. 8.一种物体跟踪装置,其特征在于,包括:8. An object tracking device, comprising: 历史轨迹存储模块,用于预先存储每个待跟踪物体的历史运动轨迹;A historical trajectory storage module is used to pre-store the historical motion trajectory of each object to be tracked; 定位信息获取模块,用于获取控制平台上所有台面物体的当前定位信息;A positioning information acquisition module is used to obtain the current positioning information of all objects on the control platform; 运动轨迹匹配模块,用于针对每个待跟踪物体,从所有台面物体的当前定位信息中查找与所述待跟踪物体的历史运动轨迹相匹配的当前定位信息;A motion trajectory matching module is used to search, for each object to be tracked, the current positioning information of all the objects on the table for the current positioning information that matches the historical motion trajectory of the object to be tracked; 物体运动跟踪模块,用于将匹配成功的台面物体的当前定位信息,作为对应待跟踪物体的当前定位信息;The object motion tracking module is used to use the current positioning information of the successfully matched table object as the current positioning information of the corresponding object to be tracked; 其中,所述物体跟踪装置还用于判断是否存在与所有待跟踪物体的历史运动轨迹均匹配不成功的台面物体的当前定位信息;在存在与所有待跟踪物体的历史运动轨迹均匹配不成功的台面物体的当前定位信息的情况下,将所述台面物体作为新的待跟踪物体,将所述台面物体的当前定位信息作为待跟踪物体的当前定位信息;在创建新的待跟踪物体的情况下,为新的待跟踪物体增加路径状态值,其中,路径状态为正常或异常,正常状态路径为从控制平台的指定位置进入的待跟踪物体的路径,异常状态路径为从控制平台的异常位置进入的待跟踪物体的路径,异常位置为除指定位置外的位置。Among them, the object tracking device is also used to determine whether there is current positioning information of a tabletop object that fails to match the historical motion trajectories of all objects to be tracked; in the case that there is current positioning information of a tabletop object that fails to match the historical motion trajectories of all objects to be tracked, the tabletop object is used as a new object to be tracked, and the current positioning information of the tabletop object is used as the current positioning information of the object to be tracked; in the case of creating a new object to be tracked, a path state value is added to the new object to be tracked, wherein the path state is normal or abnormal, the normal state path is the path of the object to be tracked entering from the specified position of the control platform, the abnormal state path is the path of the object to be tracked entering from the abnormal position of the control platform, and the abnormal position is a position other than the specified position. 9.根据权利要求8所述的物体跟踪装置,其特征在于,所述物体跟踪装置用于执行实现如权利要求2-7中任一项所述的物体跟踪方法的操作。9. The object tracking device according to claim 8, characterized in that the object tracking device is used to perform operations to implement the object tracking method according to any one of claims 2 to 7. 10.一种物体跟踪装置,其特征在于,包括:10. An object tracking device, comprising: 存储器,用于存储指令;A memory for storing instructions; 处理器,用于执行所述指令,使得所述装置执行实现如权利要求1-7中任一项所述的物体跟踪方法的操作。A processor is used to execute the instructions so that the device performs operations to implement the object tracking method according to any one of claims 1 to 7. 11.一种控制平台,其特征在于,包括如权利要求8-10中任一项所述的物体跟踪装置。11. A control platform, characterized by comprising the object tracking device according to any one of claims 8 to 10. 12.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,所述指令被处理器执行时实现如权利要求1-7中任一项所述的物体跟踪方法。12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the object tracking method according to any one of claims 1 to 7 is implemented.
CN202010223928.1A 2020-03-26 2020-03-26 Object tracking method and device, control platform and storage medium Active CN111784224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010223928.1A CN111784224B (en) 2020-03-26 2020-03-26 Object tracking method and device, control platform and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010223928.1A CN111784224B (en) 2020-03-26 2020-03-26 Object tracking method and device, control platform and storage medium

Publications (2)

Publication Number Publication Date
CN111784224A CN111784224A (en) 2020-10-16
CN111784224B true CN111784224B (en) 2024-08-20

Family

ID=72753058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010223928.1A Active CN111784224B (en) 2020-03-26 2020-03-26 Object tracking method and device, control platform and storage medium

Country Status (1)

Country Link
CN (1) CN111784224B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025047926A1 (en) * 2023-08-31 2025-03-06 伊東電機株式会社 Conveyance system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102509457A (en) * 2011-10-09 2012-06-20 青岛海信网络科技股份有限公司 Vehicle tracking method and device
CN106767829A (en) * 2016-12-31 2017-05-31 佛山潮伊汇服装有限公司 Open country swimming automatic navigation method
CN108230353A (en) * 2017-03-03 2018-06-29 北京市商汤科技开发有限公司 Method for tracking target, system and electronic equipment
CN110046548A (en) * 2019-03-08 2019-07-23 深圳神目信息技术有限公司 Tracking, device, computer equipment and the readable storage medium storing program for executing of face

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7298867B2 (en) * 2004-02-20 2007-11-20 Lockheed Martin Corporation Component association tracker system and method
CN110414447B (en) * 2019-07-31 2022-04-15 京东方科技集团股份有限公司 Pedestrian tracking method, device and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102509457A (en) * 2011-10-09 2012-06-20 青岛海信网络科技股份有限公司 Vehicle tracking method and device
CN106767829A (en) * 2016-12-31 2017-05-31 佛山潮伊汇服装有限公司 Open country swimming automatic navigation method
CN108230353A (en) * 2017-03-03 2018-06-29 北京市商汤科技开发有限公司 Method for tracking target, system and electronic equipment
CN110046548A (en) * 2019-03-08 2019-07-23 深圳神目信息技术有限公司 Tracking, device, computer equipment and the readable storage medium storing program for executing of face

Also Published As

Publication number Publication date
CN111784224A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN111700546B (en) Cleaning method of mobile robot and mobile robot
CN113253737B (en) Shelf detection method and device, electronic equipment and storage medium
EP3512785B1 (en) Integrated obstacle detection and payload centering sensor system
US11224972B2 (en) State machine for dynamic path planning
US11682193B2 (en) System and method for real-time supervised machine learning in on-site environment
JP7241374B2 (en) Robotic object placement system and method
CN111784224B (en) Object tracking method and device, control platform and storage medium
CN113544614B (en) Mobile body control method and mobile body control system
JP7272568B2 (en) Method and computational system for performing robot motion planning and repository detection
Wu et al. Depth-based obstacle avoidance through deep reinforcement learning
CN113264313A (en) Shooting method for picking up/putting down goods, shooting module and transfer robot
Bobkov et al. Vision-based navigation method for a local maneuvering of the autonomous underwater vehicle
CN118613353A (en) System and method for object detection and pick order determination
CN116540715B (en) Target tracking method, target tracking device, robot and storage medium
AU2021281467A1 (en) System and method for dimensioning objects
CN112766764A (en) Security monitoring method and device based on intelligent robot and storage medium
CN112114587A (en) Distributed congestion control method and robot
CN115373378B (en) A robot and a method for controlling the movement of the robot
Diankov et al. Integrating grasp planning and visual feedback for reliable manipulation
CN115724106A (en) Goods storing and taking method and system based on drive-in type goods shelf, equipment and storage medium
CN115761068B (en) A method for demonstrating the process of three-dimensional scene animation in a webpage automated warehouse
KR102820614B1 (en) Order picking system using autonomous mobile robots and a robot control server of the system
US12399497B2 (en) Method for preventing a robot from colliding with another robot
TWI791332B (en) Handling machine control method, handling machine control system and control host
CN112686077A (en) Self-driven robot and obstacle identification method

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