WO2021227790A1 - Video image target association method, apparatus, and terminal device - Google Patents

Video image target association method, apparatus, and terminal device Download PDF

Info

Publication number
WO2021227790A1
WO2021227790A1 PCT/CN2021/088459 CN2021088459W WO2021227790A1 WO 2021227790 A1 WO2021227790 A1 WO 2021227790A1 CN 2021088459 W CN2021088459 W CN 2021088459W WO 2021227790 A1 WO2021227790 A1 WO 2021227790A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
frame
position information
association
degree
Prior art date
Application number
PCT/CN2021/088459
Other languages
French (fr)
Chinese (zh)
Inventor
王健
宁哲
Original Assignee
深圳云天励飞技术股份有限公司
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 深圳云天励飞技术股份有限公司 filed Critical 深圳云天励飞技术股份有限公司
Publication of WO2021227790A1 publication Critical patent/WO2021227790A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A video image target association method, an apparatus, and a terminal device, applicable in the technical field of data processing, the method comprising: obtaining first frame sequence number information and first position information for a reference target, and obtaining second frame sequence number information and second position information for a target to be associated; determining target video frames according to the first frame sequence number information and the second frame sequence number information; determining a temporal coincidence degree for the reference target and the target to be associated according to the number of frames among the target video frames where the reference target and the target to be associated are simultaneously present; determining a spatial association degree for the reference target and the target to be associated according to the first position information and the second position information among the target video frames; calculating an association confidence score for the target to be associated according to the temporal coincidence degree and the spatial association degree; and if the association confidence score for the target to be associated satisfies a preset association condition, determining the target to be associated as an associated target which possesses an association relationship with the reference target. The present method can improve target association accuracy among video images.

Description

视频图像目标关联方法、装置及终端设备Video image target association method, device and terminal equipment
本申请要求于2020年5月15日提交中国专利局,申请号为202010412909.3、发明名称为“视频图像目标关联方法、装置及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on May 15, 2020, the application number is 202010412909.3, and the invention title is "Video Image Target Association Method, Apparatus, and Terminal Equipment", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请本申请属于数据处理技术领域,尤其涉及一种视频图像目标关联方法、装置及终端设备。This application belongs to the field of data processing technology, and in particular relates to a method, device and terminal device for associating video image objects.
背景技术Background technique
目前对视频数据的处理应用中,存在着通过寻找视频图像中不同目标之间的关联关系,实现对特定人物或者特定物体的监控和分析的方法。然而,现有的视频图像的目标关联方法准确度较低。At present, in the processing and application of video data, there are methods to realize the monitoring and analysis of specific people or specific objects by searching for the correlation between different targets in the video image. However, the accuracy of the existing target association methods for video images is low.
发明内容Summary of the invention
有鉴于此,本申请实施例提供了视频图像目标关联方法、装置及终端设备,以解决现有技术中如何提高视频图像中目标关联的准确性的问题。In view of this, the embodiments of the present application provide a video image target association method, device, and terminal equipment to solve the problem of how to improve the accuracy of target association in a video image in the prior art.
本申请实施例的第一方面提供了一种视频图像目标关联方法,包括:The first aspect of the embodiments of the present application provides a method for associating video image objects, including:
获取与参考目标对应的第一数据,以及获取与待关联目标对应的第二数据,其中,所述第一数据包括所述参考目标在预设视频图像序列中的第一帧序号信息及对应的第一位置信息,所述第二数据包括所述待关联目标在所述预设视频图像序列中的第二帧序号信息及对应的第二位置信息;Acquire first data corresponding to the reference target, and acquire second data corresponding to the target to be associated, where the first data includes the first frame number information of the reference target in the preset video image sequence and the corresponding First location information, where the second data includes second frame number information and corresponding second location information of the target to be associated in the preset video image sequence;
根据所述第一帧序号信息及所述第二帧序号信息,确定所述参考目标及所述待关联目标在所述预设视频图像序列中的出现时刻及消失时刻,得到目标视频帧;Determine, according to the first frame sequence number information and the second frame sequence number information, the appearance and disappearance moments of the reference target and the target to be associated in the preset video image sequence to obtain a target video frame;
根据所述目标视频帧中所述参考目标及所述待关联目标同时存在的帧数, 确定所述参考目标与所述待关联目标的时间重合度;Determine the temporal coincidence degree of the reference target and the target to be associated according to the number of frames in the target video frame where the reference target and the target to be associated simultaneously exist;
根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标与所述待关联目标的空间关联度;Determine the degree of spatial association between the reference target and the target to be associated according to the first position information and the second position information in the target video frame;
根据所述时间重合度和所述空间关联度计算所述待关联目标的关联置信度;Calculating the correlation confidence of the target to be correlated according to the temporal coincidence degree and the spatial correlation degree;
若所述待关联目标的关联置信度满足预设关联条件,则将所述待关联目标确定为与所述参考目标具有关联关系的关联目标。If the association confidence of the target to be associated satisfies a preset association condition, the target to be associated is determined as an association target that has an association relationship with the reference target.
本申请实施例的第二方面提供了一种视频图像目标关联装置,包括:A second aspect of the embodiments of the present application provides a device for associating a video image target, including:
获取单元,用于获取与参考目标对应的第一数据,以及获取与待关联目标对应的第二数据,其中,所述第一数据包括所述参考目标在预设视频图像序列中的第一帧序号信息及对应的第一位置信息,所述第二数据包括所述待关联目标在所述预设视频图像序列中的第二帧序号信息及对应的第二位置信息;The acquiring unit is configured to acquire first data corresponding to the reference target and acquire second data corresponding to the target to be associated, wherein the first data includes the first frame of the reference target in the preset video image sequence Serial number information and corresponding first position information, where the second data includes second frame serial number information and corresponding second position information of the target to be associated in the preset video image sequence;
目标视频帧确定单元,用于根据所述第一帧序号信息及所述第二帧序号信息,确定所述参考目标及所述待关联目标在所述预设视频图像序列中的出现时刻及消失时刻,得到目标视频帧;A target video frame determining unit, configured to determine the appearance and disappearance of the reference target and the target to be associated in the preset video image sequence according to the first frame sequence number information and the second frame sequence number information At the moment, get the target video frame;
时间重合度确定单元,用于根据所述目标视频帧中所述参考目标及所述待关联目标同时存在的帧数,确定所述参考目标与所述待关联目标的时间重合度;A time coincidence degree determining unit, configured to determine the time coincidence degree of the reference target and the target to be associated according to the number of frames in the target video frame where the reference target and the target to be associated exist at the same time;
空间关联度确定单元,用于根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标与所述待关联目标的空间关联度;A spatial association degree determining unit, configured to determine the spatial association degree between the reference target and the target to be associated according to the first position information and the second position information in the target video frame;
关联置信度计算单元,用于根据所述时间重合度和所述空间关联度计算所述待关联目标的关联置信度;An association confidence degree calculation unit, configured to calculate the association confidence degree of the target to be associated according to the temporal coincidence degree and the spatial correlation degree;
关联目标确定单元,用于若所述待关联目标的关联置信度满足预设关联条件,则将所述待关联目标确定为与所述参考目标具有关联关系的关联目标。The associated target determination unit is configured to determine the to-be-associated target as an associated target that has an association relationship with the reference target if the association confidence of the to-be-associated target meets a preset association condition.
本申请实施例的第三方面提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,当所述处理器执 行所述计算机程序时,使得终端设备实现如所述视频图像目标关联的步骤。The third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program When the time, the terminal device is made to realize the steps of associating the video image target.
本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,当所述计算机程序被处理器执行时,使得终端设备实现如所述视频图像目标关联的步骤。The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the terminal device realizes the video image Steps of target association.
本申请实施例的第五方面提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行如第一方面中所述的视频图像目标关联方法。The fifth aspect of the embodiments of the present application provides a computer program product, which when the computer program product runs on a terminal device, causes the terminal device to execute the video image target association method as described in the first aspect.
本申请实施例与现有技术相比存在的有益效果是:本申请实施例中,由于能够结合参考目标与待关联目标的时间重合度和空间关联度,从时间维度和空间维度两方面来确定准确地计算待关联目标的关联置信度,并根据关联置信度准确地确定出与参考目标具有关联关系的关联目标,因此能够提高视频图像的目标关联的准确性。Compared with the prior art, the embodiment of the present application has the following beneficial effects: In the embodiment of the present application, since the time coincidence degree and the spatial relevance degree of the reference target and the target to be associated can be combined, it can be determined from both the time dimension and the space dimension. Accurately calculate the association confidence of the target to be associated, and accurately determine the association target that has an association relationship with the reference target according to the association confidence, so that the accuracy of the target association of the video image can be improved.
附图说明Description of the drawings
图1是本申请实施例提供的一种视频图像目标关联方法的实现流程示意图;FIG. 1 is a schematic diagram of the implementation process of a method for associating video image objects provided by an embodiment of the present application;
图2是本申请实施例提供的一种视频图像目标关联装置的示意图;FIG. 2 is a schematic diagram of a video image target association device provided by an embodiment of the present application;
图3是本申请实施例提供的终端设备的示意图。Fig. 3 is a schematic diagram of a terminal device provided by an embodiment of the present application.
具体实施方式Detailed ways
实施例一:Example one:
图1示出了本申请实施例提供的第一种视频图像目标关联方法的流程示意图,详述如下:FIG. 1 shows a schematic flowchart of a first method for associating video image objects provided by an embodiment of the present application, and the details are as follows:
在S101中,获取与参考目标对应的第一数据,以及获取与待关联目标对应的第二数据,其中,所述第一数据包括所述参考目标在预设视频图像序列中的第一帧序号信息及对应的第一位置信息,所述第二数据包括所述待关联目标在所述预设视频图像序列中的第二帧序号信息及对应的第二位置信息。In S101, first data corresponding to a reference target is acquired, and second data corresponding to a target to be associated is acquired, where the first data includes the first frame number of the reference target in a preset video image sequence Information and corresponding first position information, and the second data includes second frame number information and corresponding second position information of the target to be associated in the preset video image sequence.
本申请实施例中的预设视频图像序列为由若干帧视频图像组成的序列,该序列为提前通过摄像设备拍摄获取的视频数据;为了描述简便,本申请实施例中将预设视频图像序列中的视频图像称为视频帧。本申请实施例中的目标指的是预设视频图像序列中与特定实体对象(例如人、物体、人体部位或者物体部位)对应的图像,参考目标为选定的需要进行视频图像目标关联的主目标,待关联目标为选定的需要被检测是否与参考目标具有关联关系的目标。The preset video image sequence in the embodiment of this application is a sequence composed of several frames of video images, and this sequence is the video data captured by the camera equipment in advance; for simplicity of description, the preset video image sequence is The video image is called a video frame. The target in the embodiments of this application refers to an image corresponding to a specific physical object (such as a person, an object, a human body part, or an object part) in a preset video image sequence, and the reference target is the selected main subject that needs to be associated with the video image target. Target, the target to be associated is the selected target that needs to be detected whether there is an association relationship with the reference target.
本申请实施例中,参考目标对应的第一数据和待关联目标对应的第二数据可以从目标数据集中获取得到。该目标数据集为提前将预设视频图像序列进行多目标跟踪或者多目标检测后得到的数据的集合,该目标数据集包括预设视频图像序列中检测到的目标对应的视频帧的帧序号信息以及该目标在该视频帧中的位置信息,该位置信息具体可以为与目标对应的目标框的坐标数据(可包括目标框的中心坐标信息、边缘点坐标信息等)。具体地,参考目标对应的数据称为第一数据,该第一数据包括第一帧序号信息和第一位置信息,第一帧序号信息为预设视频图像序列中该参考目标对应的第一视频帧的序号,第一位置信息为参考目标在该第一视频帧中的位置信息;其中,该第一视频帧为预设视频图像序列中包含参考目标的视频帧。具体地,待关联目标对应的第二数据包括第二帧序号信息和第二位置信息,第二帧序号信息为预设视频图像序列中该待关联目标对应的第二视频帧的序号,第二位置信息为待关联目标在该第二视频帧中的位置信息;该第二视频帧为预设视频图像序列中包含该待关联目标的视频帧。In the embodiment of the present application, the first data corresponding to the reference target and the second data corresponding to the target to be associated can be obtained from the target data set. The target data set is a collection of data obtained after multi-target tracking or multi-target detection is performed on a preset video image sequence in advance, and the target data set includes frame number information of the video frame corresponding to the target detected in the preset video image sequence And the position information of the target in the video frame, the position information may specifically be coordinate data of the target frame corresponding to the target (may include center coordinate information of the target frame, edge point coordinate information, etc.). Specifically, the data corresponding to the reference target is called first data. The first data includes first frame number information and first position information. The first frame number information is the first video corresponding to the reference target in the preset video image sequence. The sequence number of the frame, and the first position information is the position information of the reference target in the first video frame; wherein, the first video frame is a video frame containing the reference target in the preset video image sequence. Specifically, the second data corresponding to the target to be associated includes second frame number information and second position information. The second frame number information is the sequence number of the second video frame corresponding to the target to be associated in the preset video image sequence. The location information is the location information of the target to be associated in the second video frame; the second video frame is a video frame that contains the target to be associated in a preset video image sequence.
可选地,本申请实施例中的参考目标和待关联目标为对应两种不同实体对象类型的目标;Optionally, the reference target and the target to be associated in the embodiment of the present application are targets corresponding to two different entity object types;
对应地,所述获取与参考目标对应的第一数据,以及获取与待关联目标对应的第二数据,具体包括:Correspondingly, the acquiring the first data corresponding to the reference target and acquiring the second data corresponding to the target to be associated specifically includes:
A1:确定预设视频图像序列中需要进行关联的第一目标类型和第二目标类型,其中所述第一目标类型和第二目标类型分别为两种不同的实体对象类型;A1: Determine the first target type and the second target type that need to be associated in the preset video image sequence, where the first target type and the second target type are respectively two different entity object types;
A2:从目标数据集中获取与第一目标类型对应的第一目标数据集,以及获取与第二目标类型对应的第二目标数据集,其中所述目标数据集为提前将预设视频图像序列进行多目标跟踪或者多目标检测后得到的数据的集合;A2: Obtain a first target data set corresponding to the first target type from the target data set, and obtain a second target data set corresponding to the second target type, wherein the target data set is a preset video image sequence performed in advance The collection of data obtained after multi-target tracking or multi-target detection;
A3:确定属于第一目标类型的参考目标,并从所述第一目标数据集中获取与所述参考目标对应的第一数据;A3: Determine the reference target belonging to the first target type, and obtain the first data corresponding to the reference target from the first target data set;
A4:从属于第二目标类型的目标中选取一个作为待关联目标,并从所述第二目标数据集中获取与所述待关联目标对应的第二数据。A4: Select one of the targets belonging to the second target type as the target to be associated, and obtain the second data corresponding to the target to be associated from the second target data set.
示例性地,所述实体对象类型包括但不限于人脸、人身、人的某一器官、指定物体等。通过选择两种属于不同实体对象类型的目标作为参考目标和待关联目标,能够建立视频图像序列中不同类型的目标的关联关系,以便进行特定的监控和分析。例如,参考目标可以为目标人物的人脸图像,待关联目标可以为车辆图像;通过本申请实施例的方法,能够准确地建立视频图像序列中人脸图像和车辆图像的关联关系,从而能够分析确定目标人物所驾驶的车辆信息。Exemplarily, the entity object type includes, but is not limited to, a human face, a human body, a certain organ of a person, a designated object, and the like. By selecting two targets belonging to different entity object types as the reference target and the target to be associated, the association relationship between the different types of targets in the video image sequence can be established for specific monitoring and analysis. For example, the reference target may be the face image of the target person, and the target to be associated may be the vehicle image; through the method of the embodiment of this application, the association relationship between the face image and the vehicle image in the video image sequence can be accurately established, so as to be able to analyze Determine the information of the vehicle driven by the target person.
可选地,本申请实施例中的参考目标和待关联目标为对应同一实体对象类型的目标。例如,参考目标为人物A的人脸图像,待关联目标人物B的人脸图像;通过本申请实施例的方法,能够准确地确定人物A和人物B的关联关系,从而能够分析确定人物A和人物B是否为同伴等信息。Optionally, the reference target and the target to be associated in the embodiment of the present application are targets corresponding to the same entity object type. For example, the reference target is the face image of the person A, and the face image of the target person B is to be associated; through the method of the embodiment of the present application, the association relationship between the person A and the person B can be accurately determined, so that the person A and the person B can be analyzed and determined. Whether character B is a companion and other information.
在S102中,根据所述第一帧序号信息及所述第二帧序号信息,确定所述参考目标及所述待关联目标在所述预设视频图像序列中的出现时刻及消失时刻,得到目标视频帧。In S102, according to the first frame sequence number information and the second frame sequence number information, determine the appearance and disappearance moments of the reference target and the target to be associated in the preset video image sequence to obtain the target Video frame.
本申请实施例中,第一帧序号信息中的第一起始帧序号即为参考目标在预设视频图像序列中的出现时刻对应的帧序号,第一结束帧序号即为参考目标在预设视频图像序列中的消失时刻对应的帧序号。第二帧序号信息中的第二起始帧序号即为待关联目标在预设视频图像序列中的出现时刻对应的帧序号,第二结束帧序号即为待关联目标在预设视频图像序列中的消失时刻对应的帧序号。具体地,根据第一起始帧序号和第二起始帧序号,确定其中帧序号较大的为目标视频帧对应的起始帧序号,即参考目标和待关联目标中出现较晚的时刻对应的视频帧作为目标视频帧中的起始帧。具体地,根据第一结束帧序号和第二结束帧序号,确定其中帧序号较小的为目标视频帧对应的结束帧序号,即参考目标和待关联目标中消失较早的时刻对应的视频帧为目标视频帧中的结束帧。根据确定出的目标视频帧中的起始帧序号和结束帧序号,从预设视频图像序列中获取目标视频帧。In the embodiment of this application, the first starting frame sequence number in the first frame sequence number information is the frame sequence number corresponding to the time when the reference target appears in the preset video image sequence, and the first ending frame sequence number is the reference target in the preset video sequence. The frame number corresponding to the disappearing moment in the image sequence. The second starting frame number in the second frame number information is the frame number corresponding to the moment when the target to be associated appears in the preset video image sequence, and the second end frame number is the target to be associated in the preset video image sequence The frame number corresponding to the moment of disappearance. Specifically, according to the first starting frame sequence number and the second starting frame sequence number, it is determined that the larger frame sequence number is the starting frame sequence number corresponding to the target video frame, that is, the reference target and the target to be associated correspond to the later time. The video frame is used as the starting frame in the target video frame. Specifically, according to the first end frame sequence number and the second end frame sequence number, the smaller frame sequence number is the end frame sequence number corresponding to the target video frame, that is, the video frame corresponding to the earlier disappearance of the reference target and the target to be associated Is the end frame in the target video frame. According to the determined start frame number and end frame number in the determined target video frame, the target video frame is obtained from the preset video image sequence.
在S103中,根据所述目标视频帧的帧数,所述参考目标与所述待关联目标的时间重合度;In S103, according to the number of frames of the target video frame, the temporal coincidence of the reference target and the target to be associated;
在获取到目标视频帧后,对目标视频帧进行逐一检测(例如将目视频帧的每一帧的帧序号与第一帧序号信息和第二帧序号信息进行比对),从中确定出 参考目标和待关联目标同时存在的视频帧的帧数。根据该帧数,确定参考目标和待关联目标的时间重合度。可直接以该帧数作为该时间重合度,或者,也可将该帧数除以预设视频图像序列的总帧数作为该时间重合度。After the target video frame is obtained, the target video frame is detected one by one (for example, the frame number of each frame of the target video frame is compared with the first frame number information and the second frame number information), and the reference target is determined from it The number of video frames that exist at the same time as the target to be associated. According to the number of frames, the time coincidence of the reference target and the target to be associated is determined. The number of frames can be directly used as the time coincidence degree, or the number of frames can also be divided by the total number of frames of the preset video image sequence as the time coincidence degree.
在S104中,根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标与所述待关联目标的空间关联度;In S104, determine the degree of spatial association between the reference target and the target to be associated according to the first position information and the second position information in the target video frame;
根据目标视频帧中参考目标对应的第一位置信息和待关联目标对应的第二位置信息,在目标视频帧中分析参考目标和待关联目标的位置关系,根据该位置关系确定参考目标和待关联目标的空间关联度。According to the first position information corresponding to the reference target in the target video frame and the second position information corresponding to the target to be associated, the position relationship between the reference target and the target to be associated is analyzed in the target video frame, and the reference target and the target to be associated are determined according to the position relationship The spatial relevance of the target.
可选地,该空间关联度包括面积重合度、目标距离值、目标方向角、目标位移偏差值中的任意一项或者多项。Optionally, the spatial correlation degree includes any one or more of the area coincidence degree, the target distance value, the target direction angle, and the target displacement deviation value.
其中,面积重合度指的是同一视频帧中参考目标所在区域与待关联目标所在区域的重合比例;目标距离值指的是同一视频帧中参考目标与待关联目标的距离;目标方向角指的是参考目标和待关联目标的连线与第一指定方向的夹角;目标位移偏差值指的是参考目标和待关联目标经过预设时间后的位移偏差。Among them, the area overlap refers to the overlap ratio of the area where the reference target is located and the area where the target to be associated is located in the same video frame; the target distance value refers to the distance between the reference target and the target to be associated in the same video frame; the target direction angle refers to It is the angle between the line connecting the reference target and the target to be associated with the first specified direction; the target displacement deviation value refers to the displacement deviation of the reference target and the target to be associated after a preset time has passed.
可选地,本申请实施例中目标对应的位置信息(即参考目标对应的第一位置信息或者待关联目标对应的第二位置信息)具体包括该目标对应的目标框(即该目标所在区域的最小外接矩形框)的坐标信息,具体可以包该目标框的中心坐标
Figure PCTCN2021088459-appb-000001
和目标框的两个对角点的坐标信息,例如目标框左上角点的坐标
Figure PCTCN2021088459-appb-000002
和右下角点的坐标
Figure PCTCN2021088459-appb-000003
本申请实施例中,N用于表示某个目标的标识,例如可以用N 1表示参考目标的标识,N 2表示待关联目标的标识,f表示在预设视频图像序列中对应的帧序号。例如,
Figure PCTCN2021088459-appb-000004
表示参考目标在帧序号为f 0的视频帧中的目标框的中心坐标。
Optionally, the location information corresponding to the target in the embodiment of the present application (that is, the first location information corresponding to the reference target or the second location information corresponding to the target to be associated) specifically includes the target frame corresponding to the target (that is, the area where the target is located). The coordinate information of the smallest enclosing rectangular box), which can specifically include the center coordinates of the target box
Figure PCTCN2021088459-appb-000001
The coordinate information of the two opposite corners of the target box, such as the coordinates of the upper left corner of the target box
Figure PCTCN2021088459-appb-000002
And the coordinates of the lower right point
Figure PCTCN2021088459-appb-000003
In the embodiments of the present application, N is used to represent the identification of a certain target. For example, N 1 can be used to represent the identification of the reference target, N 2 is the identification of the target to be associated, and f is the corresponding frame number in the preset video image sequence. E.g,
Figure PCTCN2021088459-appb-000004
Indicates the center coordinates of the target frame of the reference target in the video frame with the frame number f 0.
可选地,所述空间关联度包括面积重合度,所述根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标与所述待关联目标的空间关联度,包括:Optionally, the spatial correlation degree includes an area coincidence degree, and the reference target and the target to be associated are determined according to the first position information and the second position information in the target video frame. Spatial relevance, including:
根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,计算所述参考目标和所述待关联目标在同一视频帧中分别对应的目标框之间的目标框重叠面积;According to the first position information and the second position information in the target video frame, the target frame overlap area between the target frames corresponding to the reference target and the target to be associated in the same video frame is calculated ;
根据所述目标框重叠面积确定所述参考目标与所述待关联目标的面积重合度。The degree of overlap of the area of the reference target and the target to be associated is determined according to the overlapping area of the target frame.
本申请实施例中的空间关联度至少包括面积重合度
Figure PCTCN2021088459-appb-000005
本申请实施例中的第一位置信息至少包括参考目标对应的参考目标框的两个对角点的坐标信息,本申请实施例中的第二位置信息至少包括待关联目标对应的待关联目标框的两个对角点的坐标信息。根据参考目标框的两个对角点的坐标信息,确定参考目标框的面积S 1;根据待关联目标框的两个对角点的坐标信息,计算得到待关联目标框的面积S 2;之后根据同一视频帧中参考目标框和待关联目标框之间的位置关系,确定这两个目标框之间的目标框重叠面积(S 1∩S 2)。
The spatial correlation degree in the embodiment of this application at least includes the area coincidence degree
Figure PCTCN2021088459-appb-000005
The first position information in the embodiment of the present application includes at least the coordinate information of two diagonal points of the reference target frame corresponding to the reference target, and the second position information in the embodiment of the present application includes at least the target frame to be associated corresponding to the target to be associated. The coordinate information of the two diagonal points. Determine the area S 1 of the reference target frame according to the coordinate information of the two diagonal points of the reference target frame ; calculate the area S 2 of the target frame to be associated according to the coordinate information of the two diagonal points of the target frame to be associated; According to the positional relationship between the reference target frame and the target frame to be associated in the same video frame, the target frame overlap area (S 1 ∩S 2 ) between the two target frames is determined.
之后,根据目标框重叠面积,计算参考目标和待关联目标的面积重合度
Figure PCTCN2021088459-appb-000006
具体地,将目标框重叠面积除以参考目标和待关联目标分别对应的两个目标框中面积较小的目标框的面积,得到面积重合度
Figure PCTCN2021088459-appb-000007
其计算公式如下:
Then, according to the overlapping area of the target frame, calculate the area overlap degree of the reference target and the target to be associated
Figure PCTCN2021088459-appb-000006
Specifically, the overlapping area of the target frame is divided by the area of the target frame with the smaller area in the two target frames corresponding to the reference target and the target to be associated, respectively, to obtain the area overlap degree
Figure PCTCN2021088459-appb-000007
The calculation formula is as follows:
Figure PCTCN2021088459-appb-000008
Figure PCTCN2021088459-appb-000008
可选地,本申请实施例中具体是在M帧目标视频帧中计算参考目标和待关联目标的面积重合度的,因此可以通过求M帧目标视频帧中的面积重合度的均值
Figure PCTCN2021088459-appb-000009
和方差
Figure PCTCN2021088459-appb-000010
来作为最终的面积重合度的指标。其中,M为步骤B1中确定出的目标视频帧的帧数,M>0;设首帧目标视频帧的帧序号f=1,目标视频帧中的尾帧的帧序号f=M,则:
Optionally, in the embodiment of the present application, the area coincidence degree of the reference target and the target to be associated is specifically calculated in M target video frames, so the average value of the area coincidence degree in the M target video frames can be calculated
Figure PCTCN2021088459-appb-000009
Sum variance
Figure PCTCN2021088459-appb-000010
As an indicator of the final area overlap. Among them, M is the frame number of the target video frame determined in step B1, M>0; set the frame number f=1 of the first target video frame, and the frame number f=M of the last frame in the target video frame, then:
面积重合度的均值
Figure PCTCN2021088459-appb-000011
的计算公式如下:
Mean value of area coincidence
Figure PCTCN2021088459-appb-000011
The calculation formula is as follows:
Figure PCTCN2021088459-appb-000012
Figure PCTCN2021088459-appb-000012
面积重合度的方差
Figure PCTCN2021088459-appb-000013
的计算公式如下:
Variance of area coincidence
Figure PCTCN2021088459-appb-000013
The calculation formula is as follows:
Figure PCTCN2021088459-appb-000014
Figure PCTCN2021088459-appb-000014
可选地,所述空间关联度包括目标距离值,所述根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标与所述待关联目标的空间关联度,包括:Optionally, the degree of spatial association includes a target distance value, and the relationship between the reference target and the target to be associated is determined according to the first position information and the second position information in the target video frame. Spatial relevance, including:
根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,计算所述参考目标和所述待关联目标在同一视频帧中分别对应的目标框中心坐标之间的距离,得到所述目标距离值。Calculate the distance between the center coordinates of the target frame corresponding to the reference target and the target to be associated in the same video frame according to the first position information and the second position information in the target video frame, Obtain the target distance value.
本申请实施例中,空间关联度至少包括目标距离值,第一位置信息至少包括参考目标对应的目标框的中心坐标
Figure PCTCN2021088459-appb-000015
第二位置信息至少包括待 关联目标对应的目标框的中心坐标
Figure PCTCN2021088459-appb-000016
计算同一视频帧中这两个目标框中心坐标之间的距离,得到同一视频帧中参考目标和待关联目标之间的目标距离值L f,其计算公式如下:
In the embodiment of the present application, the spatial correlation degree at least includes the target distance value, and the first position information includes at least the center coordinates of the target frame corresponding to the reference target
Figure PCTCN2021088459-appb-000015
The second location information includes at least the center coordinates of the target frame corresponding to the target to be associated
Figure PCTCN2021088459-appb-000016
Calculate the distance between the center coordinates of the two target frames in the same video frame, and obtain the target distance value L f between the reference target and the target to be associated in the same video frame. The calculation formula is as follows:
Figure PCTCN2021088459-appb-000017
Figure PCTCN2021088459-appb-000017
可选地,本申请实施例中具体是在M帧目标视频帧中分析参考目标和待关联目标的关联关系的,因此可以通过求M帧目标视频帧中的目标距离值的均值
Figure PCTCN2021088459-appb-000018
和方差D(L f)来作为最终的目标距离值的指标。其中,M为步骤B1中确定出的目标视频帧的帧数,M>0;设首帧目标视频帧的帧序号f=1,目标视频帧中的尾帧的帧序号f=M,则:
Optionally, in the embodiment of the present application, the correlation between the reference target and the target to be associated is specifically analyzed in M target video frames. Therefore, the average value of the target distance value in the M target video frame can be calculated.
Figure PCTCN2021088459-appb-000018
The sum variance D(L f ) is used as the index of the final target distance value. Among them, M is the frame number of the target video frame determined in step B1, M>0; set the frame number f=1 of the first target video frame, and the frame number f=M of the last frame in the target video frame, then:
目标距离值的均值
Figure PCTCN2021088459-appb-000019
的计算公式如下:
Mean value of target distance
Figure PCTCN2021088459-appb-000019
The calculation formula is as follows:
Figure PCTCN2021088459-appb-000020
Figure PCTCN2021088459-appb-000020
目标距离值的方差D(L f)的计算公式如下: The calculation formula of the variance D(L f ) of the target distance value is as follows:
Figure PCTCN2021088459-appb-000021
Figure PCTCN2021088459-appb-000021
可选地,所述空间关联度包括目标方向角,所述根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标和所述待关联目标的空间关联度,包括:Optionally, the spatial association degree includes a target direction angle, and the reference target and the target to be associated are determined according to the first position information and the second position information in the target video frame. Spatial relevance, including:
根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标和所述待关联目标在同一视频帧中分别对应的目标框中心坐标之间的连线线段;According to the first position information and the second position information in the target video frame, determine the connection between the center coordinates of the target frame corresponding to the reference target and the target to be associated in the same video frame Line segment
根据第一指定方向及所述连线线段确定所述目标方向角。The target direction angle is determined according to the first designated direction and the connecting line segment.
本申请实施例中,空间关联度至少包括目标方向角,第一位置信息至少包括参考目标对应的目标框的中心坐标
Figure PCTCN2021088459-appb-000022
第二位置信息至少包括待关联目标对应的目标框的中心坐标
Figure PCTCN2021088459-appb-000023
根据这两个坐标信息确定同一视频帧中参考目标和待关联目标之间的连线线段。
In the embodiment of the present application, the spatial correlation degree includes at least the target direction angle, and the first position information includes at least the center coordinates of the target frame corresponding to the reference target
Figure PCTCN2021088459-appb-000022
The second location information includes at least the center coordinates of the target frame corresponding to the target to be associated
Figure PCTCN2021088459-appb-000023
Determine the line segment between the reference target and the target to be associated in the same video frame according to the two coordinate information.
本申请实施例中的第一指定方向为提前设定的一个参考方向,将上述确定的连线线段与该第一指定方向所成的夹角作为目标方向角。示例性地,设该第一指定方向为垂直方向,用
Figure PCTCN2021088459-appb-000024
表示目标方向角,则该目标方向角的计算公式 如下:
The first designated direction in the embodiment of the present application is a reference direction set in advance, and the angle formed by the aforementioned determined connecting line segment and the first designated direction is taken as the target direction angle. Exemplarily, suppose the first designated direction is the vertical direction, and use
Figure PCTCN2021088459-appb-000024
Indicates the target direction angle, the calculation formula of the target direction angle is as follows:
Figure PCTCN2021088459-appb-000025
Figure PCTCN2021088459-appb-000025
可选地,本申请实施例中具体是在M帧目标视频帧中分析参考目标和待关联目标的关联关系的,因此可以通过求M帧目标视频帧中的目标方向角的均值
Figure PCTCN2021088459-appb-000026
和方差D(α f)来作为最终的目标距离值的指标。其中,M为步骤B1中确定出的目标视频帧的帧数,M>0;设首帧目标视频帧的帧序号f=1,目标视频帧中的尾帧的帧序号f=M,则:
Optionally, in the embodiment of the present application, the correlation between the reference target and the target to be associated is specifically analyzed in M target video frames. Therefore, the average value of the target direction angles in the M target video frames can be calculated.
Figure PCTCN2021088459-appb-000026
The sum variance D(α f ) is used as the index of the final target distance value. Among them, M is the frame number of the target video frame determined in step B1, M>0; set the frame number f=1 of the first target video frame, and the frame number f=M of the last frame in the target video frame, then:
目标方向角的均值
Figure PCTCN2021088459-appb-000027
的计算公式如下:
Mean value of target direction angle
Figure PCTCN2021088459-appb-000027
The calculation formula is as follows:
Figure PCTCN2021088459-appb-000028
Figure PCTCN2021088459-appb-000028
目标方向角的方差D(α f)的计算公式如下: The calculation formula of the variance D(α f ) of the target direction angle is as follows:
Figure PCTCN2021088459-appb-000029
Figure PCTCN2021088459-appb-000029
可选地,所述空间关联度包括目标位移偏差值,所述目标位移偏差值包括位移距离偏差值和/或位移方向角偏差值,所述根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标和所述待关联目标的空间关联度,包括:Optionally, the spatial correlation degree includes a target displacement deviation value, the target displacement deviation value includes a displacement distance deviation value and/or a displacement direction angle deviation value, and the first position in the target video frame is Information and the second location information, determining the degree of spatial association between the reference target and the target to be associated, includes:
C1:根据所述第一位置信息,计算所述参考目标首次出现时对应的第一目标框中心坐标和最后出现时对应的第二目标框中心坐标之间的距离,得到所述参考目标对应的第一位移距离值;C1: According to the first position information, calculate the distance between the center coordinates of the first target frame corresponding to the first appearance of the reference target and the center coordinates of the second target frame corresponding to the last appearance of the reference target to obtain the corresponding The first displacement distance value;
C2:根据所述第二位置信息,计算所述待关联目标首次出现时对应的第三目标框中心坐标和最后出现时对应的第四目标框中心坐标之间的距离,得到所述待关联目标对应的第二位移距离值;C2: According to the second location information, calculate the distance between the center coordinates of the third target frame corresponding to the first appearance of the target to be associated and the center coordinates of the fourth target frame corresponding to the last appearance of the target to be associated to obtain the target to be associated The corresponding second displacement distance value;
C3:根据所述第一位移距离值及所述第二位移距离值确定所述位移距离偏差值;C3: Determine the displacement distance deviation value according to the first displacement distance value and the second displacement distance value;
和/或:and / or:
D1:根据所述第一位置信息,确定所述参考目标首次出现时对应的第一目标框中心坐标和最后出现时对应的第二目标框中心坐标之间的第一位移线段;D1: According to the first position information, determine the first displacement line segment between the center coordinates of the first target frame corresponding to the first appearance of the reference target and the center coordinates of the second target frame corresponding to the last appearance of the reference target;
D2:根据第二指定方向及所述第一位移线段,确定所述参考目标对应的第 一位移方向角;D2: Determine the first displacement direction angle corresponding to the reference target according to the second designated direction and the first displacement line segment;
D3:根据所述第二位置信息,确定所述待关联目标首次出现时对应的第三目标框中心坐标和最后出现时对应的第四目标框中心坐标之间的第二位移线段;D3: According to the second position information, determine the second displacement line segment between the center coordinates of the third target frame corresponding to the first appearance of the target to be associated and the center coordinates of the fourth target frame corresponding to the last appearance;
D4:根据第二指定方向及所述第二位移线段,确定所述待关联目标对应的第二位移方向角;D4: Determine the second displacement direction angle corresponding to the target to be associated according to the second designated direction and the second displacement line segment;
D5:根据所述第一位移方向角及所述第二位移方向角确定所述位移方向角偏差值。D5: Determine the angular deviation value of the displacement direction according to the first displacement direction angle and the second displacement direction angle.
本申请实施例中,空间关联度至少包括目标位移偏差值,该目标位移偏差值可以包括位移距离偏差值和/或位移方向角偏差值。本申请实施例中的第一位置信息至少包括参考目标对应的目标框的中心坐标
Figure PCTCN2021088459-appb-000030
第二位置信息至少包括待关联目标对应的目标框的中心坐标
Figure PCTCN2021088459-appb-000031
根据该第一位置信息和第二位置信息,通过步骤C1至步骤C3的流程,可以确定参考目标和待关联目标之间的位移距离偏差值;通过步骤D1至步骤D5的流程,可以确定参考目标和待关联目标之间的位移方向角偏差值。
In the embodiment of the present application, the degree of spatial correlation includes at least a target displacement deviation value, and the target displacement deviation value may include a displacement distance deviation value and/or a displacement direction angular deviation value. The first position information in the embodiment of the present application includes at least the center coordinates of the target frame corresponding to the reference target
Figure PCTCN2021088459-appb-000030
The second location information includes at least the center coordinates of the target frame corresponding to the target to be associated
Figure PCTCN2021088459-appb-000031
According to the first position information and the second position information, the deviation value of the displacement distance between the reference target and the target to be associated can be determined through the process of step C1 to step C3; the reference target can be determined through the process of step D1 to step D5 The angular deviation of the displacement direction from the target to be associated.
具体地,本申请实施例中是在M帧目标视频帧中分析参考目标和待关联目标的关联关系的,该M帧目标视频帧是在步骤B1中确定出的参考目标和待关联目标同时存在的视频帧,其中,M>0。设首帧目标视频帧的帧序号f=f 0,目标视频帧中的尾帧的帧序号f=f n,则在该M帧目标视频帧中,参考目标和待关联目标首次出现时对应的视频帧的帧序号均为f 0,参考目标和待关联目标最后出现时对应的视频帧的帧序号均为f n。对应地: Specifically, in this embodiment of the present application, the association relationship between the reference target and the target to be associated is analyzed in M target video frames, and the M target video frame is the reference target and the target to be associated determined in step B1. Video frame, where M>0. Assuming that the frame number of the first target video frame is f = f 0 , and the frame number of the last frame in the target video frame is f = f n , then in the M target video frame, the reference target and the target to be associated correspond to when they first appear The frame numbers of the video frames are both f 0 , and the frame numbers of the corresponding video frames when the reference target and the target to be associated last appear are both f n . Correspondingly:
在步骤C1中,将与帧序号f 0对应的第一位置信息中包含的参考目标的目标框中心坐标确定为第一目标框中心坐标
Figure PCTCN2021088459-appb-000032
将与帧序号f n对应的第一位置信息中包含的参考目标的目标框中心坐标确定为第二目标框中心坐标
Figure PCTCN2021088459-appb-000033
根据这两个坐标确定参考目标对应的第一位移距离值
Figure PCTCN2021088459-appb-000034
其计算公式如下:
In step C1, the target frame center coordinates of the reference target included in the first position information corresponding to the frame number f 0 are determined as the first target frame center coordinates
Figure PCTCN2021088459-appb-000032
Determine the target frame center coordinates of the reference target included in the first position information corresponding to the frame number f n as the second target frame center coordinates
Figure PCTCN2021088459-appb-000033
Determine the first displacement distance value corresponding to the reference target according to these two coordinates
Figure PCTCN2021088459-appb-000034
The calculation formula is as follows:
Figure PCTCN2021088459-appb-000035
Figure PCTCN2021088459-appb-000035
在步骤C2中,将与帧序号f 0对应的第二位置信息中包含的待关联目标的目标框中心坐标确定为第三目标框中心坐标
Figure PCTCN2021088459-appb-000036
将与帧序号f n对应的第二位置信息中包含的待关联目标的目标框中心坐标确定为第四目标框中心坐标
Figure PCTCN2021088459-appb-000037
根据这两个坐标确定参考目标对应的第二位移距离值
Figure PCTCN2021088459-appb-000038
其计算公式如下:
In step C2, the center coordinates of the target frame of the target to be associated included in the second position information corresponding to the frame number f 0 are determined as the center coordinates of the third target frame
Figure PCTCN2021088459-appb-000036
Determine the center coordinates of the target frame of the target to be associated included in the second position information corresponding to the frame number f n as the center coordinates of the fourth target frame
Figure PCTCN2021088459-appb-000037
Determine the second displacement distance value corresponding to the reference target according to these two coordinates
Figure PCTCN2021088459-appb-000038
The calculation formula is as follows:
Figure PCTCN2021088459-appb-000039
Figure PCTCN2021088459-appb-000039
在步骤C3中,计算第一位移距离值
Figure PCTCN2021088459-appb-000040
和第二位移距离值
Figure PCTCN2021088459-appb-000041
的差值,得到位移距离偏差值Δx,其计算公式如下:
In step C3, calculate the first displacement distance value
Figure PCTCN2021088459-appb-000040
And the second displacement distance value
Figure PCTCN2021088459-appb-000041
To obtain the displacement distance deviation value Δx, the calculation formula is as follows:
Figure PCTCN2021088459-appb-000042
Figure PCTCN2021088459-appb-000042
在步骤D1中,根据参考目标首次出现时对应的第一目标框中心坐标
Figure PCTCN2021088459-appb-000043
和最后出现时对应的第二目标框中心坐标
Figure PCTCN2021088459-appb-000044
确定这两个坐标之间的连线为参考目标对应的第一位移线段。
In step D1, according to the center coordinates of the first target frame corresponding to the first appearance of the reference target
Figure PCTCN2021088459-appb-000043
And the center coordinates of the second target frame corresponding to the last appearance
Figure PCTCN2021088459-appb-000044
Determine the line between these two coordinates as the first displacement line segment corresponding to the reference target.
在步骤D2中,第二指定方向为提前设定的另一个参考方向,第二指定方向可以与第一指定方向相同也可以不同。将步骤D1中确定的第一位移线段与该第二指定方向所成的夹角确定为参考目标对应的第一位移方向角。可选地,该第二指定方向为水平方向,用
Figure PCTCN2021088459-appb-000045
表示第一位移方向角,则该第一位移方向角的计算公式如下:
In step D2, the second designated direction is another reference direction set in advance, and the second designated direction may be the same as or different from the first designated direction. The angle formed by the first displacement line segment determined in step D1 and the second specified direction is determined as the first displacement direction angle corresponding to the reference target. Optionally, the second designated direction is the horizontal direction, using
Figure PCTCN2021088459-appb-000045
Represents the first displacement direction angle, the calculation formula of the first displacement direction angle is as follows:
Figure PCTCN2021088459-appb-000046
Figure PCTCN2021088459-appb-000046
在步骤D3中,根据待关联目标首次出现时对应的第三目标框中心坐标
Figure PCTCN2021088459-appb-000047
和最后出现时对应的第四目标框中心坐标
Figure PCTCN2021088459-appb-000048
确定这两个坐标之间的连线为待关联目标对应的第二位移线段。
In step D3, according to the center coordinates of the third target frame corresponding to the first appearance of the target to be associated
Figure PCTCN2021088459-appb-000047
And the center coordinates of the fourth target frame corresponding to the last appearance
Figure PCTCN2021088459-appb-000048
It is determined that the line between these two coordinates is the second displacement line segment corresponding to the target to be associated.
在步骤D4中,将步骤D3中确定的第二位移线段与
Figure PCTCN2021088459-appb-000049
该第二指定方向所成的夹角确定为待关联目标对应的第二位移方向角。用表示第二位移方向角,则该第二位移方向角的计算公式如下:
In step D4, compare the second displacement line segment determined in step D3 with
Figure PCTCN2021088459-appb-000049
The angle formed by the second designated direction is determined as the second displacement direction angle corresponding to the target to be associated. To express the second displacement direction angle, the calculation formula for the second displacement direction angle is as follows:
Figure PCTCN2021088459-appb-000050
Figure PCTCN2021088459-appb-000050
在步骤D5中,计算第一位移方向角
Figure PCTCN2021088459-appb-000051
和第二位移方向角
Figure PCTCN2021088459-appb-000052
的差值,得到位移方向角偏差值Δα,其计算公式如下:
In step D5, calculate the first displacement direction angle
Figure PCTCN2021088459-appb-000051
And the second displacement direction angle
Figure PCTCN2021088459-appb-000052
The deviation value of the displacement direction angle Δα is obtained, and the calculation formula is as follows:
Figure PCTCN2021088459-appb-000053
Figure PCTCN2021088459-appb-000053
在S105中,根据所述时间重合度和所述空间关联度计算所述待关联目标的关联置信度。In S105, the correlation confidence of the target to be correlated is calculated according to the temporal coincidence degree and the spatial correlation degree.
具体地,将确定的参考目标和待关联目标的时间重合度和空间关联度分别乘以对应的权重参数ω并求和,得到待关联目标对应的关联置信度,该关联置 信度用于表示该待关联目标与参考目标具有关联关系的可能性。其中,权重参数ω的值可以根据实际情况设定,且ω∈[0,1)。Specifically, the time coincidence degree and the spatial correlation degree of the determined reference target and the target to be associated are respectively multiplied by the corresponding weight parameter ω and summed to obtain the correlation confidence degree corresponding to the target to be correlated, and the correlation confidence degree is used to represent the The possibility that the target to be associated has an association relationship with the reference target. Among them, the value of the weight parameter ω can be set according to the actual situation, and ω∈[0,1).
可选地,所述空间关联度包括面积重合度、目标距离值、目标方向角和目标位移偏差值。本申请实施例中,时间关联度和面积重合度与关联置信度的值为正相关关系,时间关联度和面积重合度越高,则参考目标和待关联目标存在关联关系的可能性越大;目标距离值、目标方向角和目标位移偏差值与关联置信度呈负相关关系,目标距离值、目标方向角和目标位移偏差值越大,则参考目标和待关联目标存在关联关系的可能性越小。示例性地,在M帧目标视频帧中,所述关联置信度的计算公式为:Optionally, the spatial correlation degree includes an area coincidence degree, a target distance value, a target direction angle, and a target displacement deviation value. In the embodiments of the present application, the values of the time correlation degree and the area coincidence degree and the correlation confidence degree are positive correlations. The higher the time correlation degree and the area coincidence degree, the more likely the reference target and the target to be correlated are related; The target distance value, target direction angle, and target displacement deviation value are negatively correlated with the associated confidence. The greater the target distance value, target direction angle, and target displacement deviation value, the more likely the reference target and the target to be associated are related. small. Exemplarily, in the M target video frame, the calculation formula of the correlation confidence is:
Figure PCTCN2021088459-appb-000054
Figure PCTCN2021088459-appb-000054
其中,Score表示关联置信度的值,O t表示时间关联度,
Figure PCTCN2021088459-appb-000055
表示面积重合度的均值,
Figure PCTCN2021088459-appb-000056
表示面积重合度的方差,
Figure PCTCN2021088459-appb-000057
表示目标距离值的均值,D(L f)表示目标距离值的方差,
Figure PCTCN2021088459-appb-000058
表示目标方向角的均值,D(α f)表示目标方向角的方差,Δx为目标位移偏差值中的位移距离偏差值,Δα为目标位移偏差值中的位移方向角偏差值,ω 1~ω 9为权重参数。
Among them, Score represents the value of the correlation confidence, O t represents the time correlation,
Figure PCTCN2021088459-appb-000055
Represents the mean value of area coincidence degree,
Figure PCTCN2021088459-appb-000056
Represents the variance of the area coincidence degree,
Figure PCTCN2021088459-appb-000057
Represents the mean value of the target distance value, D(L f ) represents the variance of the target distance value,
Figure PCTCN2021088459-appb-000058
Represents the average value of the target direction angle, D(α f ) represents the variance of the target direction angle, Δx is the displacement distance deviation value in the target displacement deviation value, Δα is the displacement direction angle deviation value in the target displacement deviation value, ω 1 ~ω 9 is the weight parameter.
本申请实施例中由于结合时间重合度和包含面积重合度、目标距离值、目标方向角和目标位移偏差值等多个指标的空间重合度计算关联置信度的值,因此能够提高关联置信度计算的准确性;并且,由于每个指标对应的权重参数能够根据实际情况设定,因此能够进一步提高关联置信度计算的准确性和灵活性。In the embodiments of the present application, the value of the correlation confidence is calculated by combining the time coincidence degree and the spatial coincidence degree of multiple indicators including the area coincidence degree, the target distance value, the target direction angle, and the target displacement deviation value, so that the correlation confidence degree calculation can be improved. Moreover, since the weight parameter corresponding to each indicator can be set according to the actual situation, the accuracy and flexibility of the calculation of the correlation confidence can be further improved.
在S106中,若所述待关联目标的关联置信度满足预设关联条件,则将所述待关联目标确定为与所述参考目标具有关联关系的关联目标。In S106, if the association confidence of the target to be associated satisfies a preset association condition, the target to be associated is determined as an association target that has an association relationship with the reference target.
当待关联目标的关联置信度满足预设关联条件时,则说明该待关联目标与参考目标具有关联关系的可能性较大,因此将该待关联目标确定为和参考目标具有关联关系的关联目标。可选地,该预设关联条件可以为关联置信度大于或者等于预设的关联置信度阈值。When the association confidence of the target to be associated satisfies the preset association condition, it means that the target to be associated is more likely to have an association relationship with the reference target, so the target to be associated is determined as an association target that has an association relationship with the reference target. . Optionally, the preset association condition may be that the association confidence is greater than or equal to a preset association confidence threshold.
可选地,设参考目标为确定的一个目标,待关联目标为多个预设目标中的一个待定目标,对应地,在所述步骤S101之前,还包括:Optionally, suppose that the reference target is a determined target, and the target to be associated is a pending target among a plurality of preset targets. Correspondingly, before the step S101, the method further includes:
S100:从所述多个预设目标中选择一个目标作为待关联目标;S100: Select one target from the multiple preset targets as the target to be associated;
对应地,在所述步骤S106包括:Correspondingly, the step S106 includes:
若检测到所述多个预设目标中仍存在未确定关联置信度的目标,则返回执行所述步骤S100;If it is detected that there is still a target with an undetermined association confidence level among the plurality of preset targets, return to perform the step S100;
若检测到所述多个预设目标中的每个目标均已确定对应的关联置信度,则将多个预设目标中对应关联置信度最高的待关联目标作为满足预设关联条件的待关联目标,并将所述待关联目标确定为与参考目标具有关联关系的关联目标。If it is detected that each of the plurality of preset targets has determined the corresponding association confidence, then the target to be associated with the highest corresponding association confidence among the plurality of preset targets is regarded as the to-be-associated target that meets the preset association conditions Target, and determine the to-be-associated target as an associated target that has an associated relationship with the reference target.
通过本申请实施例的方法,能够准确地从多个预设目标中确定一个与参考目标具有关联关系的关联目标。Through the method of the embodiment of the present application, it is possible to accurately determine an associated target that has an associated relationship with the reference target from a plurality of preset targets.
本申请实施例中,由于能够结合参考目标与待关联目标的时间重合度和空间关联度,从时间维度和空间维度两方面来确定准确地计算待关联目标的关联置信度,并根据关联置信度准确地确定出与参考目标具有关联关系的关联目标,因此能够提高视频图像的目标关联的准确性。In the embodiments of the present application, since the temporal coincidence degree and the spatial correlation degree of the reference target and the target to be associated can be combined, the correlation confidence of the target to be correlated can be accurately calculated from the two aspects of the time dimension and the space dimension, and the correlation confidence is determined according to the correlation confidence. The association target that has an association relationship with the reference target is accurately determined, so that the accuracy of the target association of the video image can be improved.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
实施例二:Embodiment two:
图2示出了本申请实施例提供的一种视频图像目标关联装置的结构示意图,为了便于说明,仅示出了与本申请实施例相关的部分:FIG. 2 shows a schematic structural diagram of a video image target association device provided by an embodiment of the present application. For ease of description, only the parts related to the embodiment of the present application are shown:
该视频图像目标关联装置包括:获取单元21、目标视频帧确定单元22、时间重合度确定单元23、空间关联度确定单元24、关联置信度计算单元25、关联目标确定单元26。其中:The video image target association device includes: an acquisition unit 21, a target video frame determination unit 22, a temporal coincidence degree determination unit 23, a spatial correlation degree determination unit 24, an association confidence degree calculation unit 25, and an association target determination unit 26. in:
获取单元21,用于获取与参考目标对应的第一数据,以及获取与待关联目标对应的第二数据,其中,所述第一数据包括所述参考目标在预设视频图像序列中的第一帧序号信息及对应的第一位置信息,所述第二数据包括所述待关联目标在所述预设视频图像序列中的第二帧序号信息及对应的第二位置信息。The acquiring unit 21 is configured to acquire first data corresponding to a reference target and acquire second data corresponding to a target to be associated, wherein the first data includes the first data of the reference target in a preset video image sequence. Frame number information and corresponding first position information, and the second data includes second frame number information and corresponding second position information of the target to be associated in the preset video image sequence.
目标视频帧确定单元22,用于根据所述第一帧序号信息及所述第二帧序号信息,确定所述参考目标及所述待关联目标在所述预设视频图像序列中的出现时刻及消失时刻,得到目标视频帧。The target video frame determining unit 22 is configured to determine, according to the first frame sequence number information and the second frame sequence number information, the time of appearance of the reference target and the target to be associated in the preset video image sequence and At the moment of disappearance, the target video frame is obtained.
时间重合度确定单元23,用于根据所述目标视频帧中所述参考目标及所述待关联目标同时存在的帧数,确定所述参考目标与所述待关联目标的时间重合度。The time coincidence degree determining unit 23 is configured to determine the time coincidence degree between the reference target and the target to be associated according to the number of frames in which the reference target and the target to be associated exist simultaneously in the target video frame.
空间关联度确定单元24,用于根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标与所述待关联目标的空间关联度。The spatial association degree determining unit 24 is configured to determine the spatial association degree between the reference target and the target to be associated according to the first position information and the second position information in the target video frame.
关联置信度计算单元25,用于根据所述时间重合度和所述空间关联度计算所述待关联目标的关联置信度。The correlation confidence calculation unit 25 is configured to calculate the correlation confidence of the target to be associated according to the temporal coincidence degree and the spatial correlation degree.
关联目标确定单元26,用于若所述待关联目标的关联置信度满足预设关联条件,则将所述待关联目标确定为与所述参考目标具有关联关系的关联目标。The associated target determination unit 26 is configured to determine the to-be-associated target as an associated target that has an associated relationship with the reference target if the association confidence of the to-be-associated target satisfies a preset association condition.
可选地,所述空间关联度包括面积重合度、目标距离值、目标方向角、目标位移偏差值中的任意一项或者多项。Optionally, the spatial correlation degree includes any one or more of the area coincidence degree, the target distance value, the target direction angle, and the target displacement deviation value.
可选地,所述空间关联度包括面积重合度,所述空间关联度确定单元24包括:Optionally, the spatial correlation degree includes an area coincidence degree, and the spatial correlation degree determining unit 24 includes:
面积重合度确定单元,用于根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,计算所述参考目标和所述待关联目标在同一视频帧中分别对应的目标框之间的目标框重叠面积;根据所述目标框重叠面积确定所述参考目标与所述待关联目标的面积重合度。The area coincidence degree determining unit is configured to calculate the target corresponding to the reference target and the target to be associated in the same video frame according to the first position information and the second position information in the target video frame The overlap area of the target frame between the frames; the overlap degree of the area of the reference target and the target to be associated is determined according to the overlap area of the target frame.
可选地,所述空间关联度包括目标距离值,所述空间关联度确定单元24包括:Optionally, the spatial correlation degree includes a target distance value, and the spatial correlation degree determining unit 24 includes:
目标距离值确定单元,用于根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,计算所述参考目标和所述待关联目标在同一视频帧中分别对应的目标框中心坐标之间的距离,得到所述目标距离值。The target distance value determining unit is configured to calculate the target corresponding to the reference target and the target to be associated in the same video frame according to the first position information and the second position information in the target video frame The distance between the center coordinates of the frame to obtain the target distance value.
可选地,所述空间关联度包括目标方向角,所述空间关联度确定单元24包括:Optionally, the spatial correlation degree includes a target direction angle, and the spatial correlation degree determining unit 24 includes:
目标方向角确定单元,用于根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标和所述待关联目标在同一视频帧中分别对应的目标框中心坐标之间的连线线段;根据第一指定方向及所述连线线段确定所述目标方向角。A target direction angle determination unit, configured to determine the target corresponding to the reference target and the target to be associated in the same video frame according to the first position information and the second position information in the target video frame The connecting line segment between the frame center coordinates; the target direction angle is determined according to the first designated direction and the connecting line segment.
可选地,所述空间关联度包括目标位移偏移值,所述目标位移偏移值包括位移距离偏差值和/或位移方向角偏差值,所述空间关联度确定单元24包括位移距离偏差值确定单元和/或位移方向角偏差值确定单元:Optionally, the spatial correlation degree includes a target displacement offset value, the target displacement offset value includes a displacement distance deviation value and/or a displacement direction angle deviation value, and the spatial correlation degree determining unit 24 includes a displacement distance deviation value Determining the unit and/or the displacement direction angular deviation value determining unit:
位移距离偏差值确定单元,用于根据所述第一位置信息,计算所述参考目标首次出现时对应的第一目标框中心坐标和最后出现时对应的第二目标框中 心坐标之间的距离,得到所述参考目标对应的第一位移距离值;根据所述第二位置信息,计算所述待关联目标首次出现时对应的第三目标框中心坐标和最后出现时对应的第四目标框中心坐标之间的距离,得到所述待关联目标对应的第二位移距离值;根据所述第一位移距离值及所述第二位移距离值确定所述位移距离偏差值;The displacement distance deviation value determining unit is configured to calculate the distance between the center coordinates of the first target frame corresponding to the first appearance of the reference target and the center coordinates of the second target frame corresponding to the last appearance of the reference target according to the first position information, Obtain the first displacement distance value corresponding to the reference target; according to the second position information, calculate the center coordinates of the third target frame corresponding to the first appearance of the target to be associated and the center coordinates of the fourth target frame corresponding to the last appearance of the target to be associated To obtain the second displacement distance value corresponding to the target to be associated; determine the displacement distance deviation value according to the first displacement distance value and the second displacement distance value;
位移方向角确定单元,用于根据所述第一位置信息,确定所述参考目标首次出现时对应的第一目标框中心坐标和最后出现时对应的第二目标框中心坐标之间的第一位移线段;根据第二指定方向及所述第一位移线段,确定所述参考目标对应的第一位移方向角;根据所述第二位置信息,确定所述待关联目标首次出现时对应的第三目标框中心坐标和最后出现时对应的第四目标框中心坐标之间的第二位移线段;根据第二指定方向及所述第二位移线段,确定所述待关联目标对应的第二位移方向角;根据所述第一位移方向角及所述第二位移方向角确定所述位移方向角偏差值。The displacement direction angle determining unit is configured to determine, according to the first position information, the first displacement between the center coordinates of the first target frame corresponding to the first appearance of the reference target and the center coordinates of the second target frame corresponding to the last appearance of the reference target Line segment; according to the second designated direction and the first displacement line segment, determine the first displacement direction angle corresponding to the reference target; according to the second position information, determine the third target corresponding to the first appearance of the target to be associated A second displacement line segment between the frame center coordinates and the corresponding fourth target frame center coordinates when it appeared last; determining the second displacement direction angle corresponding to the target to be associated according to the second designated direction and the second displacement line segment; The deviation value of the displacement direction angle is determined according to the first displacement direction angle and the second displacement direction angle.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction and execution process between the above-mentioned devices/units are based on the same concept as the method embodiment of this application, and its specific functions and technical effects can be found in the method embodiment section. I won't repeat it here.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as needed. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Formal realization can also be realized in the form of a software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.
实施例三:Embodiment three:
图3是本申请一实施例提供的终端设备的示意图。如图3所示,该实施例的终端设备3包括:处理器30、存储器31以及存储在所述存储器31中并可在所述处理器30上运行的计算机程序32,例如视频图像目标关联程序。所述处理器30执行所述计算机程序32时实现上述各个视频图像目标关联方法实施 例中的步骤,例如图1所示的步骤S101至S106。或者,所述处理器30执行所述计算机程序32时实现上述各装置实施例中各模块/单元的功能,例如图2所示单元21至26的功能。Fig. 3 is a schematic diagram of a terminal device provided by an embodiment of the present application. As shown in FIG. 3, the terminal device 3 of this embodiment includes: a processor 30, a memory 31, and a computer program 32 stored in the memory 31 and running on the processor 30, such as a video image object association program . When the processor 30 executes the computer program 32, the steps in the above embodiments of the video image object association method are implemented, for example, steps S101 to S106 shown in Fig. 1. Alternatively, when the processor 30 executes the computer program 32, the functions of the modules/units in the foregoing device embodiments, for example, the functions of the units 21 to 26 shown in FIG. 2 are realized.
示例性的,所述计算机程序32可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器31中,并由所述处理器30执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序32在所述终端设备3中的执行过程。例如,所述计算机程序32可以被分割成获取单元、关联度确定单元、关联置信度计算单元、关联目标确定单元,各单元具体功能如下:Exemplarily, the computer program 32 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 31 and executed by the processor 30 to complete This application. The one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 32 in the terminal device 3. For example, the computer program 32 may be divided into an acquisition unit, an association degree determination unit, an association confidence degree calculation unit, and an association target determination unit. The specific functions of each unit are as follows:
获取单元,用于获取与参考目标对应的第一数据,以及获取与待关联目标对应的第二数据,其中,所述第一数据包括所述参考目标在预设视频图像序列中的第一帧序号信息及对应的第一位置信息,所述第二数据包括所述待关联目标在所述预设视频图像序列中的第二帧序号信息及对应的第二位置信息。The acquiring unit is configured to acquire first data corresponding to the reference target and acquire second data corresponding to the target to be associated, wherein the first data includes the first frame of the reference target in the preset video image sequence Sequence number information and corresponding first location information, and the second data includes second frame sequence number information and corresponding second location information of the target to be associated in the preset video image sequence.
目标视频帧确定单元,用于根据所述第一帧序号信息及所述第二帧序号信息,确定所述参考目标及所述待关联目标在所述预设视频图像序列中的出现时刻及消失时刻,得到目标视频帧。A target video frame determining unit, configured to determine the appearance and disappearance of the reference target and the target to be associated in the preset video image sequence according to the first frame sequence number information and the second frame sequence number information At the moment, the target video frame is obtained.
时间重合度确定单元,用于根据所述目标视频帧中所述参考目标及所述待关联目标同时存在的帧数,确定所述参考目标与所述待关联目标的时间重合度。The time coincidence degree determining unit is configured to determine the time coincidence degree of the reference target and the target to be associated according to the number of frames in the target video frame where the reference target and the target to be associated exist simultaneously.
空间关联度确定单元,用于根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标与所述待关联目标的空间关联度。The spatial association degree determining unit is configured to determine the spatial association degree between the reference target and the target to be associated according to the first position information and the second position information in the target video frame.
关联置信度计算单元,用于根据所述时间重合度和所述空间关联度计算所述待关联目标的关联置信度。The correlation confidence calculation unit is configured to calculate the correlation confidence of the target to be associated according to the temporal coincidence degree and the spatial correlation degree.
关联目标确定单元,用于若所述待关联目标的关联置信度满足预设关联条件,则将所述待关联目标确定为与所述参考目标具有关联关系的关联目标。The associated target determination unit is configured to determine the to-be-associated target as an associated target that has an association relationship with the reference target if the association confidence of the to-be-associated target meets a preset association condition.
所述终端设备3可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器30、存储器31。本领域技术人员可以理解,图3仅仅是终端设备3的示例,并不构成对终端设备3的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device 3 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, a processor 30 and a memory 31. Those skilled in the art can understand that FIG. 3 is only an example of the terminal device 3, and does not constitute a limitation on the terminal device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, and so on.
所称处理器30可以是中央处理单元(Central Processing Unit,CPU), 还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 30 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器31可以是所述终端设备3的内部存储单元,例如终端设备3的硬盘或内存。所述存储器31也可以是所述终端设备3的外部存储设备,例如所述终端设备3上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器31还可以既包括所述终端设备3的内部存储单元也包括外部存储设备。所述存储器31用于存储所述计算机程序以及所述终端设备所需的其他程序和数据。所述存储器31还可以用于暂时地存储已经输出或者将要输出的数据。The memory 31 may be an internal storage unit of the terminal device 3, such as a hard disk or a memory of the terminal device 3. The memory 31 may also be an external storage device of the terminal device 3, such as a plug-in hard disk equipped on the terminal device 3, a smart memory card (Smart Media Card, SMC), and a Secure Digital (SD) Card, Flash Card, etc. Further, the memory 31 may also include both an internal storage unit of the terminal device 3 and an external storage device. The memory 31 is used to store the computer program and other programs and data required by the terminal device. The memory 31 can also be used to temporarily store data that has been output or will be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as needed. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Formal realization can also be realized in the form of a software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.

Claims (10)

  1. 一种视频图像目标关联方法,其特征在于,包括:A method for associating video image targets, characterized in that it comprises:
    获取与参考目标对应的第一数据,以及获取与待关联目标对应的第二数据,其中,所述第一数据包括所述参考目标在预设视频图像序列中的第一帧序号信息及对应的第一位置信息,所述第二数据包括所述待关联目标在所述预设视频图像序列中的第二帧序号信息及对应的第二位置信息;Acquire first data corresponding to the reference target, and acquire second data corresponding to the target to be associated, where the first data includes the first frame number information of the reference target in the preset video image sequence and the corresponding First location information, where the second data includes second frame number information and corresponding second location information of the target to be associated in the preset video image sequence;
    根据所述第一帧序号信息及所述第二帧序号信息,确定所述参考目标及所述待关联目标在所述预设视频图像序列中的出现时刻及消失时刻,得到目标视频帧;Determine, according to the first frame sequence number information and the second frame sequence number information, the appearance and disappearance moments of the reference target and the target to be associated in the preset video image sequence to obtain a target video frame;
    根据所述目标视频帧中所述参考目标及所述待关联目标同时存在的帧数,确定所述参考目标与所述待关联目标的时间重合度;Determine the temporal coincidence degree of the reference target and the target to be associated according to the number of frames in the target video frame where the reference target and the target to be associated simultaneously exist;
    根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标与所述待关联目标的空间关联度;Determine the degree of spatial association between the reference target and the target to be associated according to the first position information and the second position information in the target video frame;
    根据所述时间重合度和所述空间关联度计算所述待关联目标的关联置信度;Calculating the correlation confidence of the target to be correlated according to the temporal coincidence degree and the spatial correlation degree;
    若所述待关联目标的关联置信度满足预设关联条件,则将所述待关联目标确定为与所述参考目标具有关联关系的关联目标。If the association confidence of the target to be associated satisfies a preset association condition, the target to be associated is determined as an association target that has an association relationship with the reference target.
  2. 如权利要求1所述的视频图像目标关联方法,其特征在于,所述空间关联度包括面积重合度、目标距离值、目标方向角、目标位移偏差值中的任意一项或者多项。The video image target association method according to claim 1, wherein the spatial association degree includes any one or more of area coincidence, target distance value, target direction angle, and target displacement deviation value.
  3. 如权利要求1所述的视频图像目标关联方法,其特征在于,所述空间关联度包括面积重合度,所述根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标与所述待关联目标的空间关联度,包括:The method for associating video image objects according to claim 1, wherein the spatial association degree includes an area coincidence degree, and the first position information and the second position information in the target video frame are , Determining the degree of spatial association between the reference target and the target to be associated includes:
    根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,计算所述参考目标和所述待关联目标在同一视频帧中分别对应的目标框之间的目标框重叠面积;According to the first position information and the second position information in the target video frame, the target frame overlap area between the target frames corresponding to the reference target and the target to be associated in the same video frame is calculated ;
    根据所述目标框重叠面积确定所述参考目标与所述待关联目标的面积重合度。The degree of overlap of the area of the reference target and the target to be associated is determined according to the overlapping area of the target frame.
  4. 如权利要求1所述的视频图像目标关联方法,其特征在于,所述空间关联度包括目标距离值,所述根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标与所述待关联目标的空间关联度,包括:The method for associating video image objects according to claim 1, wherein the spatial association degree includes a target distance value, and the first position information and the second position information in the target video frame are , Determining the degree of spatial association between the reference target and the target to be associated includes:
    根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,计算所述参考目标和所述待关联目标在同一视频帧中分别对应的目标框中心坐标之间的距离,得到所述目标距离值。Calculate the distance between the center coordinates of the target frame corresponding to the reference target and the target to be associated in the same video frame according to the first position information and the second position information in the target video frame, Obtain the target distance value.
  5. 如权利要求1所述的视频图像目标关联方法,其特征在于,所述空间关联度包括目标方向角,所述根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标与所述待关联目标的空间关联度,包括:The method for associating video image objects according to claim 1, wherein the spatial association degree includes a target direction angle, and the first position information and the second position information in the target video frame are , Determining the degree of spatial association between the reference target and the target to be associated includes:
    根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标和所述待关联目标在同一视频帧中分别对应的目标框中心坐标之间的连线线段;According to the first position information and the second position information in the target video frame, determine the connection between the center coordinates of the target frame corresponding to the reference target and the target to be associated in the same video frame Line segment
    根据第一指定方向及所述连线线段确定所述目标方向角。The target direction angle is determined according to the first designated direction and the connecting line segment.
  6. 如权利要求1所述的视频图像目标关联方法,其特征在于,所述空间关联度包括目标位移偏差值,所述目标位移偏差值包括位移距离偏差值和/或位移方向角偏差值,所述根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标和所述待关联目标的空间关联度,包括:The method for associating a video image target according to claim 1, wherein the spatial correlation degree includes a target displacement deviation value, and the target displacement deviation value includes a displacement distance deviation value and/or a displacement direction angular deviation value, and the According to the first position information and the second position information in the target video frame, determining the degree of spatial association between the reference target and the target to be associated includes:
    根据所述第一位置信息,计算所述参考目标首次出现时对应的第一目标框中心坐标和最后出现时对应的第二目标框中心坐标之间的距离,得到所述参考目标对应的第一位移距离值;According to the first position information, the distance between the center coordinates of the first target frame corresponding to the first appearance of the reference target and the center coordinates of the second target frame corresponding to the last appearance of the reference target is calculated, and the first corresponding to the reference target is obtained. Displacement distance value;
    根据所述第二位置信息,计算所述待关联目标首次出现时对应的第三目标框中心坐标和最后出现时对应的第四目标框中心坐标之间的距离,得到所述待关联目标对应的第二位移距离值;According to the second position information, the distance between the center coordinates of the third target frame corresponding to the first appearance of the target to be associated and the center coordinates of the fourth target frame corresponding to the last appearance of the target to be associated is calculated to obtain the corresponding target of the target to be associated The second displacement distance value;
    根据所述第一位移距离值及所述第二位移距离值确定所述位移距离偏差值;Determining the displacement distance deviation value according to the first displacement distance value and the second displacement distance value;
    和/或:and / or:
    根据所述第一位置信息,确定所述参考目标首次出现时对应的第一目标框中心坐标和最后出现时对应的第二目标框中心坐标之间的第一位移线段;Determine, according to the first position information, a first displacement line segment between the center coordinates of the first target frame corresponding to the first appearance of the reference target and the center coordinates of the second target frame corresponding to the last appearance of the reference target;
    根据第二指定方向及所述第一位移线段,确定所述参考目标对应的第一位移方向角;Determine the first displacement direction angle corresponding to the reference target according to the second designated direction and the first displacement line segment;
    根据所述第二位置信息,确定所述待关联目标首次出现时对应的第三目标框中心坐标和最后出现时对应的第四目标框中心坐标之间的第二位移线段;Determine, according to the second position information, a second displacement line segment between the center coordinates of the third target frame corresponding to the first appearance of the target to be associated and the center coordinates of the fourth target frame corresponding to the last appearance;
    根据第二指定方向及所述第二位移线段,确定所述待关联目标对应的第二位移方向角;Determine the second displacement direction angle corresponding to the target to be associated according to the second designated direction and the second displacement line segment;
    根据所述第一位移方向角及所述第二位移方向角确定所述位移方向角偏差值。The deviation value of the displacement direction angle is determined according to the first displacement direction angle and the second displacement direction angle.
  7. 一种视频图像目标关联装置,其特征在于,包括:A device for associating video and image objects, which is characterized in that it comprises:
    获取单元,用于获取与参考目标对应的第一数据,以及获取与待关联目标对应的第二数据,其中,所述第一数据包括所述参考目标在预设视频图像序列中的第一帧序号信息及对应的第一位置信息,所述第二数据包括所述待关联目标在所述预设视频图像序列中的第二帧序号信息及对应的第二位置信息;The acquiring unit is configured to acquire first data corresponding to the reference target and acquire second data corresponding to the target to be associated, wherein the first data includes the first frame of the reference target in the preset video image sequence Serial number information and corresponding first position information, where the second data includes second frame serial number information and corresponding second position information of the target to be associated in the preset video image sequence;
    目标视频帧确定单元,用于根据所述第一帧序号信息及所述第二帧序号信息,确定所述参考目标及所述待关联目标在所述预设视频图像序列中的出现时刻及消失时刻,得到目标视频帧;A target video frame determining unit, configured to determine the appearance and disappearance of the reference target and the target to be associated in the preset video image sequence according to the first frame sequence number information and the second frame sequence number information At the moment, get the target video frame;
    时间重合度确定单元,用于根据所述目标视频帧中所述参考目标及所述待关联目标同时存在的帧数,确定所述参考目标与所述待关联目标的时间重合度;A time coincidence degree determining unit, configured to determine the time coincidence degree of the reference target and the target to be associated according to the number of frames in the target video frame where the reference target and the target to be associated exist at the same time;
    空间关联度确定单元,用于根据所述目标视频帧中的所述第一位置信息及所述第二位置信息,确定所述参考目标与所述待关联目标的空间关联度;A spatial association degree determining unit, configured to determine the spatial association degree between the reference target and the target to be associated according to the first position information and the second position information in the target video frame;
    关联置信度计算单元,用于根据所述时间重合度和所述空间关联度计算所述待关联目标的关联置信度;An association confidence degree calculation unit, configured to calculate the association confidence degree of the target to be associated according to the temporal coincidence degree and the spatial correlation degree;
    关联目标确定单元,用于若所述待关联目标的关联置信度满足预设关联条件,则将所述待关联目标确定为与所述参考目标具有关联关系的关联目标。The associated target determination unit is configured to determine the to-be-associated target as an associated target that has an association relationship with the reference target if the association confidence of the to-be-associated target meets a preset association condition.
  8. 如权利要求7所述的视频图像目标关联装置,其特征在于,所述空间关联度包括面积重合度、目标距离值、目标方向角、目标位移偏差值中的任意一项或者多项。8. The video image target association device according to claim 7, wherein the spatial association degree comprises any one or more of area coincidence degree, target distance value, target direction angle, and target displacement deviation value.
  9. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,当所述处理器执行所述计算机程序时,使得终端设备实现如权利要求1至6任一项所述方法的步骤。A terminal device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, when the processor executes the computer program, the terminal device realizes The steps of the method according to any one of claims 1 to 6.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,当所述计算机程序被处理器执行时,使得终端设备实现如权利要求1至6任一项所述方法的步骤。A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, a terminal device is enabled to implement any one of claims 1 to 6 Method steps.
PCT/CN2021/088459 2020-05-15 2021-04-20 Video image target association method, apparatus, and terminal device WO2021227790A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010412909.3A CN111695429B (en) 2020-05-15 2020-05-15 Video image target association method and device and terminal equipment
CN202010412909.3 2020-05-15

Publications (1)

Publication Number Publication Date
WO2021227790A1 true WO2021227790A1 (en) 2021-11-18

Family

ID=72477818

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/088459 WO2021227790A1 (en) 2020-05-15 2021-04-20 Video image target association method, apparatus, and terminal device

Country Status (2)

Country Link
CN (1) CN111695429B (en)
WO (1) WO2021227790A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095750A (en) * 2021-11-20 2022-02-25 深圳市伊登软件有限公司 Cloud platform monitoring method and related product

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111695429B (en) * 2020-05-15 2022-01-11 深圳云天励飞技术股份有限公司 Video image target association method and device and terminal equipment
CN114255409A (en) * 2020-09-23 2022-03-29 中兴通讯股份有限公司 Man-vehicle information association method, device, equipment and storage medium
CN113139416A (en) * 2020-11-17 2021-07-20 西安天伟电子系统工程有限公司 Object association method, computer device, and storage medium
CN112949538B (en) * 2021-03-16 2023-08-04 杭州海康威视数字技术股份有限公司 Target association method, device, electronic equipment and machine-readable storage medium
CN116796025A (en) * 2022-03-18 2023-09-22 北京罗克维尔斯科技有限公司 Image association method, device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107665495A (en) * 2016-07-26 2018-02-06 佳能株式会社 Method for tracing object and Object tracking device
CN108229335A (en) * 2017-12-12 2018-06-29 深圳市商汤科技有限公司 It is associated with face identification method and device, electronic equipment, storage medium, program
CN108734072A (en) * 2017-04-24 2018-11-02 杭州海康威视数字技术股份有限公司 A kind of multi-source method of mapping and device
CN110837582A (en) * 2019-11-28 2020-02-25 重庆紫光华山智安科技有限公司 Data association method and device, electronic equipment and computer-readable storage medium
US20200110971A1 (en) * 2018-10-03 2020-04-09 Idemia Identity & Security France Method for association of items of interest visible in a video
CN111695429A (en) * 2020-05-15 2020-09-22 深圳云天励飞技术有限公司 Video image target association method and device and terminal equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200578B (en) * 2010-03-25 2013-09-04 日电(中国)有限公司 Data correlation equipment and data correlation method
CN106203458B (en) * 2015-04-29 2020-03-06 杭州海康威视数字技术股份有限公司 Crowd video analysis method and system
CN110378172A (en) * 2018-04-13 2019-10-25 北京京东尚科信息技术有限公司 Information generating method and device
CN109271999B (en) * 2018-09-06 2020-12-22 北京京东尚科信息技术有限公司 Image processing method and device and computer readable storage medium
US10496862B1 (en) * 2019-03-18 2019-12-03 Capital One Services, Llc Detection of images in relation to targets based on colorspace transformation techniques and utilizing ultraviolet light
CN110008379A (en) * 2019-03-19 2019-07-12 北京旷视科技有限公司 Monitoring image processing method and processing device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107665495A (en) * 2016-07-26 2018-02-06 佳能株式会社 Method for tracing object and Object tracking device
CN108734072A (en) * 2017-04-24 2018-11-02 杭州海康威视数字技术股份有限公司 A kind of multi-source method of mapping and device
CN108229335A (en) * 2017-12-12 2018-06-29 深圳市商汤科技有限公司 It is associated with face identification method and device, electronic equipment, storage medium, program
US20200110971A1 (en) * 2018-10-03 2020-04-09 Idemia Identity & Security France Method for association of items of interest visible in a video
CN110837582A (en) * 2019-11-28 2020-02-25 重庆紫光华山智安科技有限公司 Data association method and device, electronic equipment and computer-readable storage medium
CN111695429A (en) * 2020-05-15 2020-09-22 深圳云天励飞技术有限公司 Video image target association method and device and terminal equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095750A (en) * 2021-11-20 2022-02-25 深圳市伊登软件有限公司 Cloud platform monitoring method and related product
CN114095750B (en) * 2021-11-20 2022-09-02 深圳市伊登软件有限公司 Cloud platform monitoring method and system and computer readable storage medium

Also Published As

Publication number Publication date
CN111695429B (en) 2022-01-11
CN111695429A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
WO2021227790A1 (en) Video image target association method, apparatus, and terminal device
WO2020207190A1 (en) Three-dimensional information determination method, three-dimensional information determination device, and terminal apparatus
WO2019033574A1 (en) Electronic device, dynamic video face recognition method and system, and storage medium
WO2021143103A1 (en) Video data processing method, apparatus and device, and computer-readable storage medium
WO2022095596A1 (en) Image alignment method, image alignment apparatus and terminal device
WO2019033575A1 (en) Electronic device, face tracking method and system, and storage medium
WO2021184847A1 (en) Method and device for shielded license plate character recognition, storage medium, and smart device
CN109711427A (en) Object detection method and Related product
WO2020215257A1 (en) Image stereo matching method and assisted driving apparatus
WO2021120589A1 (en) Method and apparatus for abnormal image filtering for use on 3d images, device, and storage medium
WO2023103285A1 (en) Positioning method and apparatus, and robot and computer-readable storage medium
CN111126268A (en) Key point detection model training method and device, electronic equipment and storage medium
WO2024022301A1 (en) Visual angle path acquisition method and apparatus, and electronic device and medium
Zhu et al. Global and local geometric constrained feature matching for high resolution remote sensing images
CN113240638B (en) Target detection method, device and medium based on deep learning
CN111259702A (en) User interest estimation method and device
CN114155578A (en) Portrait clustering method, device, electronic equipment and storage medium
CN112633143A (en) Image processing system, method, head-mounted device, processing device, and storage medium
WO2021139169A1 (en) Method and apparatus for card recognition, device, and storage medium
CN114140730A (en) Target matching method, device, equipment and storage medium
CN112581500A (en) Method and device for matching pedestrians and human faces in target tracking
WO2021093744A1 (en) Method and apparatus for measuring diameter of pupil, and computer-readable storage medium
CN111586369A (en) Aggregation detection method and device, electronic equipment and readable storage medium
CN111814869B (en) Method and device for synchronous positioning and mapping, electronic equipment and storage medium
US10390798B2 (en) Computer-aided tracking and motion analysis with ultrasound for measuring joint kinematics

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21803481

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21803481

Country of ref document: EP

Kind code of ref document: A1