[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114842410A - Data detection method and device, storage medium and electronic device - Google Patents

Data detection method and device, storage medium and electronic device Download PDF

Info

Publication number
CN114842410A
CN114842410A CN202210340337.1A CN202210340337A CN114842410A CN 114842410 A CN114842410 A CN 114842410A CN 202210340337 A CN202210340337 A CN 202210340337A CN 114842410 A CN114842410 A CN 114842410A
Authority
CN
China
Prior art keywords
target
feature information
association
detection
matching result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210340337.1A
Other languages
Chinese (zh)
Inventor
彭垚
陈庆
倪华健
赵之健
林亦宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Shanma Zhiqing Technology Co Ltd
Shanghai Supremind Intelligent Technology Co Ltd
Original Assignee
Hangzhou Shanma Zhiqing Technology Co Ltd
Shanghai Supremind Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Shanma Zhiqing Technology Co Ltd, Shanghai Supremind Intelligent Technology Co Ltd filed Critical Hangzhou Shanma Zhiqing Technology Co Ltd
Priority to CN202210340337.1A priority Critical patent/CN114842410A/en
Publication of CN114842410A publication Critical patent/CN114842410A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/761Proximity, similarity or dissimilarity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/764Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/07Target detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Medical Informatics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Molecular Biology (AREA)
  • Mathematical Physics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The embodiment of the invention provides a data detection method, a data detection device, a storage medium and an electronic device, wherein target area data are obtained, the target area data are detected through a detection model, first characteristic information of a target area is obtained, the first characteristic information comprises depth characteristics of all target objects in the target area, multi-target association is carried out on the first characteristic information to establish a target association group, the target association group is detected based on a characteristic database to obtain a detection result, and the characteristic database comprises the characteristic information of the target objects, so that the accuracy of data detection is improved.

Description

一种数据检测方法、装置、存储介质及电子装置A data detection method, device, storage medium and electronic device

技术领域technical field

本发明实施例涉及数据处理领域,具体而言,涉及一种数据检测方法、装置、存储介质及电子装置。Embodiments of the present invention relate to the field of data processing, and in particular, to a data detection method, device, storage medium, and electronic device.

背景技术Background technique

机动车和非机动车都是人们比较常用的交通工具类型,有关机动车的交通规则已经发展得较为成熟,而目前对非机动车的交通管理还处于发展初期。由于非机动车的数量急剧增多,有关非机动车交通违章行为的管理数据也有了指数级的增长,因而对数据管理提出了新的要求。Both motor vehicles and non-motor vehicles are the most commonly used types of transportation. The traffic rules related to motor vehicles have been developed relatively maturely, while the traffic management of non-motor vehicles is still in the early stage of development. Due to the sharp increase in the number of non-motorized vehicles, the management data on non-motorized traffic violations has also grown exponentially, thus placing new requirements on data management.

例如,对于非机动车超额载人这种新型的交通违章行为,当前主要还是靠人为监控方式进行违章识别,即执法人员在案件常发路口进行监管,通过人眼来发现异常违章行为,人为监控的方式是目前主流的非机动车违章识别方式,需要投入大量的人力物力,漏报率也很高。For example, for the new type of traffic violations such as over-carrying of non-motor vehicles, the current mainly relies on human monitoring to identify the violations, that is, law enforcement officers supervise the intersections where cases often occur, and detect abnormal violations through human eyes. The method is the current mainstream non-motor vehicle violation identification method, which requires a lot of manpower and material resources, and the false alarm rate is also high.

而如果利用神经网络深度学习进行监管,则受限于实际应用情景较复杂等缘故,存在误报太多,实用性较差的问题。However, if the neural network deep learning is used for supervision, it is limited by the complexity of the actual application scenario, and there are too many false positives and poor practicability.

因此,如何有效提高数据的有效性是本领域需要解决的主要问题之一。Therefore, how to effectively improve the validity of data is one of the main problems to be solved in this field.

发明内容SUMMARY OF THE INVENTION

根据本发明一实施例,提供了一种数据检测方法,通过对所述第一特征信息执行多目标关联,以建立目标关联组,解决了当前数据管理种数据有效性低的问题。According to an embodiment of the present invention, a data detection method is provided, which solves the problem of low data validity in current data management by performing multi-target association on the first feature information to establish a target association group.

根据本发明一实施例,提供了一种数据检测方法,通过分类检测,对数据进行再次检测,解决对所述目标关联组中所述目标对象的误判问题。According to an embodiment of the present invention, a data detection method is provided. Through classification detection, the data is re-detected to solve the problem of misjudgment of the target object in the target association group.

根据本发明一实施例,提供了一种数据检测方法,所述特征数据库可以根据检测结果不断更新,可以不断扩大检测范围。According to an embodiment of the present invention, a data detection method is provided, wherein the feature database can be continuously updated according to the detection result, and the detection range can be continuously expanded.

根据本发明一实施例,提供了一种数据检测方法,通过数据检测识别非机动车超载行为,代替人为检测,降低了人力物力成本,提高了检测效率。According to an embodiment of the present invention, a data detection method is provided, which can identify non-motor vehicle overloading behavior through data detection, replace manual detection, reduce labor and material costs, and improve detection efficiency.

根据本发明一实施例,提供一种数据检测方法,包括:According to an embodiment of the present invention, a data detection method is provided, including:

获取目标区域数据,通过检测模型检测所述目标区域数据,得到目标区域的第一特征信息,其中所述第一特征信息包括所述目标区域内所有目标对象的深度特征;Obtaining target area data, detecting the target area data through a detection model, and obtaining first feature information of the target area, wherein the first feature information includes the depth features of all target objects in the target area;

对所述第一特征信息执行多目标关联,以建立目标关联组;performing multi-target association on the first feature information to establish a target association group;

基于特征数据库,对所述目标关联组进行检测,得到检测结果,其中所述特征数据库包括所述目标对象的特征信息。Based on a feature database, the target association group is detected to obtain a detection result, wherein the feature database includes feature information of the target object.

根据本发明一示例性实施例,对所述第一特征信息执行多目标关联,以建立目标关联组,包括:According to an exemplary embodiment of the present invention, performing multi-target association on the first feature information to establish a target association group, including:

对所述第一特征信息执行多目标跟踪,得到第二特征信息,其中所述第二特征信息包括所述目标对象的标识符和运动轨迹;Perform multi-target tracking on the first feature information to obtain second feature information, wherein the second feature information includes an identifier and a motion track of the target object;

对所述第二特征信息进行关联处理,得到所述目标关联组。Perform association processing on the second feature information to obtain the target association group.

根据本发明一示例性实施例,对所述第二特征信息进行关联处理,得到所述目标关联组,包括:According to an exemplary embodiment of the present invention, performing association processing on the second feature information to obtain the target association group, including:

基于所述第一特征信息和所述第二特征信息,设定目标关联区域;based on the first feature information and the second feature information, setting a target associated area;

基于所述目标关联区域,对所述目标对象进行关联筛选,得到所述目标关联组;Based on the target association area, perform association screening on the target object to obtain the target association group;

对所述目标关联组进行更新,以得到新的所述目标关联组。The target association group is updated to obtain a new target association group.

根据本发明一示例性实施例,基于特征数据库,对所述目标关联组进行检测,得到检测结果,其中所述特征数据库包括所述目标对象的特征信息,包括:According to an exemplary embodiment of the present invention, the target association group is detected based on a feature database, and a detection result is obtained, wherein the feature database includes feature information of the target object, including:

基于所述特征数据库,对所述目标关联组中所述目标对象的类型进行匹配,得到匹配结果,所述匹配结果包括第一匹配结果和第二匹配结果;Based on the feature database, the types of the target objects in the target association group are matched to obtain a matching result, where the matching result includes a first matching result and a second matching result;

基于所述匹配结果,利用第一基准阈值对所述第一匹配结果进行检测,利用第二基准阈值对所述第二匹配结果进行检测,得到第一检测结果;Based on the matching result, the first matching result is detected with a first reference threshold, and the second matching result is detected with a second reference threshold to obtain a first detection result;

基于所述第一检测结果,对所述目标关联组进行分类检测,得到第二检测结果。Based on the first detection result, the target association group is classified and detected to obtain a second detection result.

根据本发明一示例性实施例,还包括:According to an exemplary embodiment of the present invention, it further includes:

基于所述检测结果,更新所述特征数据库。Based on the detection results, the feature database is updated.

根据本发明另一实施例,提供一种数据检测装置,包括:According to another embodiment of the present invention, a data detection device is provided, comprising:

第一获取模块, 用于获取目标区域数据,通过检测模型检测所述目标区域数据,得到目标区域的第一特征信息,其中所述第一特征信息包括所述目标区域内所有目标对象的深度特征;a first acquisition module, configured to acquire target area data, detect the target area data through a detection model, and obtain first feature information of the target area, wherein the first feature information includes the depth features of all target objects in the target area ;

目标关联模块,用于对所述第一特征信息执行多目标关联,以建立目标关联组;a target association module, configured to perform multi-target association on the first feature information to establish a target association group;

检测模块, 基于特征数据库,对所述目标关联组进行检测,得到检测结果,其中所述特征数据库包括所述目标对象的特征信息。The detection module detects the target association group based on a feature database, and obtains a detection result, wherein the feature database includes feature information of the target object.

根据本发明一示例性实施例,目标关联模块包括:According to an exemplary embodiment of the present invention, the target association module includes:

多目标跟踪模块,用于对所述第一特征信息执行多目标跟踪,得到第二特征信息,其中所述第二特征信息包括所述目标对象的标识符和运动轨迹;a multi-target tracking module, configured to perform multi-target tracking on the first feature information to obtain second feature information, wherein the second feature information includes an identifier and a motion trajectory of the target object;

关联处理模块,用于对所述第二特征信息进行关联处理,得到所述目标关联组。An association processing module, configured to perform association processing on the second feature information to obtain the target association group.

根据本发明一示例性实施例,所述检测模块包括:According to an exemplary embodiment of the present invention, the detection module includes:

匹配单元,用于基于所述特征数据库,对所述目标关联组中所述目标对象的类型进行匹配,得到匹配结果,所述匹配结果包括第一匹配结果和第二匹配结果;a matching unit, configured to match the types of the target objects in the target association group based on the feature database to obtain a matching result, where the matching result includes a first matching result and a second matching result;

第一检测单元,用于基于所述匹配结果,利用第一基准阈值对所述第一匹配结果进行检测,利用第二基准阈值对所述第二匹配结果进行检测,得到第一检测结果;a first detection unit, configured to detect the first matching result with a first reference threshold based on the matching result, and detect the second matching result with a second reference threshold to obtain a first detection result;

分类检测单元,用于基于所述第一检测结果,对所述目标关联组进行分类检测,得到第二检测结果。A classification detection unit, configured to perform classification detection on the target association group based on the first detection result to obtain a second detection result.

根据本发明的又一个实施例,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any one of the above methods when running steps in the examples.

根据本发明的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, there is also provided an electronic device comprising a memory and a processor, wherein the memory stores a computer program, the processor is configured to run the computer program to execute any of the above Steps in Method Examples.

附图说明Description of drawings

图1是根据本发明实施例的一种数据检测方法的移动终端的硬件结构框图;1 is a block diagram of a hardware structure of a mobile terminal according to a data detection method according to an embodiment of the present invention;

图2是根据本发明实施例的一种数据检测方法的流程图;2 is a flowchart of a data detection method according to an embodiment of the present invention;

图3是根据本发明实施例的一种数据检测方法的流程图;3 is a flowchart of a data detection method according to an embodiment of the present invention;

图4是根据本发明实施例的一种数据检测方法的流程图;4 is a flowchart of a data detection method according to an embodiment of the present invention;

图5是根据本发明实施例的一种数据检测方法的流程图;5 is a flowchart of a data detection method according to an embodiment of the present invention;

图6是根据本发明实施例的一种数据检测装置的结构框图。FIG. 6 is a structural block diagram of a data detection apparatus according to an embodiment of the present invention.

具体实施方式Detailed ways

下文中将参考附图并结合实施例来详细说明本发明的实施例。Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in conjunction with the embodiments.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.

本申请实施例中所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的一种检测方法的移动终端的硬件结构框图。如图1所示,移动终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,其中,上述移动终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiments provided in the embodiments of this application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, FIG. 1 is a block diagram of a hardware structure of a mobile terminal according to a detection method according to an embodiment of the present invention. As shown in FIG. 1 , the mobile terminal may include one or more (only one is shown in FIG. 1 ) processors 102 (the processors 102 may include but are not limited to processing devices such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions. Those of ordinary skill in the art can understand that the structure shown in FIG. 1 is only a schematic diagram, which does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal may also include more or fewer components than those shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .

存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的一种检测方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a detection method in the embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 by running the computer program. Various functional applications and data processing implement the above method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。Transmission means 106 are used to receive or transmit data via a network. The specific example of the above-mentioned network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet in a wireless manner.

由上述背景技术可知,如何从交通数据中有效检测非机动车载人行为,并减少检测过程中的误判行为和降低检测过程中的人力物力成本等这些问题是当前需要解决的主要问题。As can be seen from the above background technology, how to effectively detect non-motor vehicle passenger-carrying behavior from traffic data, and reduce misjudgment behavior and human and material cost in the detection process are the main problems that need to be solved at present.

为了更好的解决上述技术问题,本发明公开了一种数据检测方法、装置、存储介质及电子装置,下面的实施例中将逐一进行详细说明。In order to better solve the above technical problems, the present invention discloses a data detection method, device, storage medium and electronic device, which will be described in detail one by one in the following embodiments.

根据本发明一实施例,所述数据检测方法主要的应用场景是根据检测结果检测非机动车是否存在违规行为,该违规行为主要指非机动车超过规定承载人数,即违规超载行为。According to an embodiment of the present invention, the main application scenario of the data detection method is to detect whether a non-motor vehicle has a violation according to the detection result, and the violation mainly refers to the non-motor vehicle exceeding the prescribed number of passengers, that is, illegal overloading.

参见图2,图2示出了根据本说明书一个实施例提供的一种数据检测方法的流程图,具体包括以下步骤:Referring to FIG. 2, FIG. 2 shows a flowchart of a data detection method provided according to an embodiment of the present specification, which specifically includes the following steps:

S202,获取目标区域数据,通过检测模型检测所述目标区域数据,得到目标区域的第一特征信息,其中所述第一特征信息包括所述目标区域内所有目标对象的深度特征;S202, obtaining target area data, and detecting the target area data through a detection model to obtain first feature information of the target area, wherein the first feature information includes depth features of all target objects in the target area;

根据本发明一实施例,其中所述目标区域数据指目标区域内的图像数据,其中所述图像数据包括但不限于图片数据和视频数据,所述目标区域数据是通过接收由数据采集装置传输的数据信息并解码获得。其中所述数据采集装置可以指相机、摄像机等数据采集设备,在本实施例中,所述图像数据主要通过相机和摄像机采集的数据信息解码获得。其中所述目标区域可根据具体需要通过设置所述数据采集装置的安装位置来设定。According to an embodiment of the present invention, the target area data refers to image data in the target area, wherein the image data includes but is not limited to picture data and video data, and the target area data is transmitted by a data acquisition device by receiving data information and decoded. The data collection device may refer to data collection equipment such as cameras and video cameras. In this embodiment, the image data is mainly obtained by decoding the data information collected by the cameras and the video cameras. The target area can be set by setting the installation position of the data acquisition device according to specific needs.

根据本发明一实施例,其中所述检测模型为深度学习检测算法模型,例如YOLOX检测算法,通过ImageNet数据集预训练所述检测模型,再用交通场景下的非机动车、人体数据来微调,最终检测器输出非机动车和人体两个类别的坐标框、位置、置信度等信息。通过所述检测模型检测所述目标区域数据,可以对应检测到所述目标区域数据中所有非机动车和人的对象点,检测并输出对应该对象点的非机动车和人的特征信息。According to an embodiment of the present invention, wherein the detection model is a deep learning detection algorithm model, such as the YOLOX detection algorithm, the detection model is pre-trained by the ImageNet data set, and then fine-tuned with the non-motor vehicle and human body data in the traffic scene, The final detector outputs the coordinate frame, position, confidence and other information of the two categories of non-motor vehicle and human body. By detecting the target area data through the detection model, all object points of non-motor vehicles and people in the target area data can be detected correspondingly, and the characteristic information of the non-motor vehicles and people corresponding to the object points can be detected and output.

根据本发明一实施例,所述非机动车和人为所述目标区域内需要检测的所述目标对象,其中所述第一特征信息是指所述目标区域数据中所有所述目标对象即非机动车和人的深度特征,所述深度特征包括但不限于非机动车的类型、尺寸、位置、时间戳和置信度等特征,以及人的尺寸、位置、时间戳和置信度等特征。According to an embodiment of the present invention, the non-motor vehicle and human are the target objects to be detected in the target area, wherein the first feature information refers to all the target objects in the target area data, that is, non-motor vehicles. Depth features of motor vehicles and people, the depth features include but are not limited to features such as type, size, location, timestamp, and confidence of non-motor vehicles, as well as features such as size, location, timestamp, and confidence of people.

S204,对所述第一特征信息执行多目标关联,以建立目标关联组;S204, performing multi-target association on the first feature information to establish a target association group;

参考图3所示,其中步骤S204包括:Referring to Figure 3, step S204 includes:

S2042,对所述第一特征信息执行多目标跟踪,得到第二特征信息,其中所述第二特征信息包括所述目标对象的标识符和运动轨迹;S2042, performing multi-target tracking on the first feature information to obtain second feature information, wherein the second feature information includes an identifier and a motion trajectory of the target object;

根据本发明一实施例,通过对所述第一特征信息执行多目标跟踪,得到所述目标对象的所述第二特征信息。即根据所述目标区域中所述目标对象即非机动车和人的深度特征,即非机动车的类型、尺寸、位置、时间戳和置信度等特征,以及人的尺寸、位置、时间戳和置信度等特征,通过多目标跟踪处理,得到所述目标对象的所述第二特征信息,其中所述第二特征信息包括所述目标区域内所有所述目标对象的ID和运动轨迹。According to an embodiment of the present invention, the second feature information of the target object is obtained by performing multi-target tracking on the first feature information. That is, according to the depth features of the target objects in the target area, namely the non-motor vehicle and the person, that is, the type, size, location, timestamp and confidence of the non-motor vehicle, as well as the size, location, timestamp and The second feature information of the target object is obtained through multi-target tracking processing, wherein the second feature information includes the IDs and motion trajectories of all the target objects in the target area.

根据本发明一实施例,利用IouTrack跟踪器对所述第一特征信息执行多目标跟踪,以对所述目标对象赋予唯一标识符即目标对象的ID以及形成每个ID所代表的所述目标对象的运动轨迹。在本发明提供的另一些实施例中,也可以用其他多目标跟踪算法对所述第一特征信息执行多目标跟踪,只要能达到同样的功能都可适用本发明,在此不作限制。According to an embodiment of the present invention, an IouTrack tracker is used to perform multi-target tracking on the first feature information, so as to assign a unique identifier to the target object, that is, the ID of the target object, and form the target object represented by each ID movement trajectory. In other embodiments provided by the present invention, other multi-target tracking algorithms can also be used to perform multi-target tracking on the first feature information, and the present invention can be applied as long as the same function can be achieved, which is not limited herein.

S2044,对所述第二特征信息进行关联处理,得到所述目标关联组。S2044. Perform association processing on the second feature information to obtain the target association group.

根据本发明一实施例,由于非机动车上的人体遮挡大,同时受不同的数据采集装置的安装位置影响,持续检出困难,跟踪的ID连续性很难保证,即无法形成有效连续的运动轨迹。因此在本实施例中,需要在所对所述第一特征信息执行多目标跟踪处理后,再对所述第二特征信息进行关联处理,通过得到目标关联组来提高检测的准确性。According to an embodiment of the present invention, due to the large occlusion of the human body on the non-motor vehicle and the influence of the installation positions of different data acquisition devices, continuous detection is difficult, and the tracking ID continuity is difficult to ensure, that is, an effective and continuous movement cannot be formed. trajectory. Therefore, in this embodiment, it is necessary to perform correlation processing on the second feature information after the multi-target tracking processing is performed on the first feature information, so as to improve the detection accuracy by obtaining a target correlation group.

根据本发明一实施例,参考图3所示,其中步骤S2044具体包括:According to an embodiment of the present invention, referring to FIG. 3 , step S2044 specifically includes:

a)基于所述第一特征信息和所述第二特征信息,设定目标关联区域;a) based on the first feature information and the second feature information, setting a target associated area;

b)基于所述目标关联区域,对所述目标对象进行关联筛选,得到所述目标关联组;b) performing association screening on the target object based on the target association area to obtain the target association group;

c)对所述目标关联组进行更新,以得到新的所述目标关联组。c) Update the target association group to obtain the new target association group.

根据本发明一实施例, 所述步骤a) 可具体实施为,根据所述第二特征信息,将非机动车的ID设为主ID,设定关联阈值,该关联阈值可以指距离阈值,以主ID为中心,根据所述关联阈值形成所述目标关联区域。According to an embodiment of the present invention, the step a) may be specifically implemented as follows: according to the second characteristic information, the ID of the non-motor vehicle is set as the main ID, and the association threshold is set, and the association threshold may refer to a distance threshold, to The main ID is the center, and the target association area is formed according to the association threshold.

根据本发明一实施例, 所述步骤b) 可具体实施为,以主ID为中心,According to an embodiment of the present invention, the step b) can be specifically implemented as, with the main ID as the center,

设置关联条件,根据所述关联条件对所述目标关联区域内的所述目标对象进行筛选,符合所述关联条件的所述目标对象设为对应所述主ID的子ID。An association condition is set, the target objects in the target association area are filtered according to the association condition, and the target object that meets the association condition is set as a sub-ID corresponding to the main ID.

根据本发明一实施例,所述关联条件包括时间条件,轨迹相似条件,方向条件和速度条件,当所述目标关联区域内的所述目标对象满足上述所述关联条件的所有条件时,所述目标对象设为对应所述主ID的子ID。According to an embodiment of the present invention, the association condition includes a time condition, a trajectory similarity condition, a direction condition, and a speed condition. When the target object in the target association area satisfies all the above-mentioned association conditions, the The target object is set as the sub-ID corresponding to the main ID.

根据本发明一实施例,所述关联条件可以包括轨迹相似条件,通过轨迹相似性匹配算法模型,计算人体轨迹与非机动车轨迹的相似性,设置一轨迹相似性阈值,例如设置该轨迹相似性阈值为90%,基于所述第一特征信息和所述第二特征信息,即所述目标对象的深度特征和所述目标对象的ID和对应轨迹,计算出所述轨迹相似性,当所述轨迹相似性大于(或大于等于)90%时,所述目标对象满足所述轨迹相似条件。当所述目标对象不满足所述轨迹相似条件,则不再继续进行所述关联筛选。其中所述轨迹相似性匹配算法模型可以为弗雷歇距离算法,也可以是其他具有类似功能的算法,在此不做限制。值得一提的是,所述轨迹相似性阈值为可根据具体情况和需求具体设置。According to an embodiment of the present invention, the association condition may include a trajectory similarity condition, the similarity between the human trajectory and the non-motor vehicle trajectory is calculated through the trajectory similarity matching algorithm model, and a trajectory similarity threshold is set, for example, the trajectory similarity is set The threshold is 90%. Based on the first feature information and the second feature information, that is, the depth feature of the target object and the ID and corresponding trajectory of the target object, the trajectory similarity is calculated. When the When the trajectory similarity is greater than (or greater than or equal to) 90%, the target object satisfies the trajectory similarity condition. When the target object does not meet the trajectory similarity condition, the association screening is not continued. Wherein, the trajectory similarity matching algorithm model may be the Freycher distance algorithm, or may be other algorithms with similar functions, which are not limited herein. It is worth mentioning that the trajectory similarity threshold can be specifically set according to specific situations and needs.

根据本发明一实施例,所述关联条件可以包括时间条件,所述时间条件可具体设置为时间阈值,例如设置所述时间阈值为10s, 基于所述第一特征信息和所述第二特征信息,即所述目标对象的深度特征和所述目标对象的ID和对应轨迹,计算人体和非机动车的相似轨迹的持续时间,如果该持续时间大于(或大于等于)10s,则所述目标对象满足所述时间条件。如果该持续时间小于10s,则判断不满足所述时间条件,则不再继续进行所述关联筛选。值得一提的是,所述时间阈值可根据具体情况和需求具体设置。According to an embodiment of the present invention, the association condition may include a time condition, and the time condition may be specifically set as a time threshold, for example, set the time threshold to 10s, based on the first feature information and the second feature information , that is, the depth feature of the target object and the ID and corresponding trajectory of the target object, calculate the duration of the similar trajectory of the human body and non-motor vehicles, if the duration is greater than (or greater than or equal to) 10s, then the target object The time condition is satisfied. If the duration is less than 10s, it is determined that the time condition is not satisfied, and the association screening is not continued. It is worth mentioning that the time threshold can be specifically set according to specific conditions and needs.

根据本发明一实施例,所述关联条件可以包括方向条件,所述方向条件可具体设置为运动方向偏差阈值,例如设置所述运动方向偏差阈值为5%, 基于所述第一特征信息和所述第二特征信息,即所述目标对象的深度特征和所述目标对象的ID和对应轨迹,计算人体和非机动车的相似轨迹的运动方向偏差,如果该运动方向偏差小于(或小于等于)5%,则所述目标对象满足所述方向条件。如果该运动方向偏差大于5%,则判断不满足所述方向条件,则不再继续进行所述关联筛选。值得一提的是,所述运动方向偏差阈值可根据具体情况和需求具体设置。According to an embodiment of the present invention, the association condition may include a direction condition, and the direction condition may be specifically set as a movement direction deviation threshold, for example, the movement direction deviation threshold is set to 5%, based on the first feature information and all The second feature information, that is, the depth feature of the target object and the ID and corresponding trajectory of the target object, calculate the movement direction deviation of the similar trajectory of the human body and the non-motor vehicle, if the movement direction deviation is less than (or less than or equal to) 5%, the target object satisfies the direction condition. If the movement direction deviation is greater than 5%, it is determined that the direction condition is not satisfied, and the association screening is not continued. It is worth mentioning that the movement direction deviation threshold can be specifically set according to specific conditions and needs.

根据本发明一实施例,所述关联条件可以包括速度条件,所述速度条件可具体设置为运动速度偏差阈值,例如设置所述运动速度偏差阈值为5%, 基于所述第一特征信息和所述第二特征信息,即所述目标对象的深度特征和所述目标对象的ID和对应轨迹,计算人体和非机动车的相似轨迹的运动速度偏差,如果该运动速度偏差小于(或小于等于)5%,则所述目标对象满足所述速度条件。如果该运动速度偏差大于5%,则判断不满足所述速度条件,则不再继续进行所述关联筛选。值得一提的是,所述运动速度偏差阈值可根据具体情况和需求具体设置。According to an embodiment of the present invention, the association condition may include a speed condition, and the speed condition may be specifically set as a movement speed deviation threshold, for example, setting the movement speed deviation threshold to 5%, based on the first feature information and the The second feature information, that is, the depth feature of the target object and the ID and corresponding trajectory of the target object, calculate the movement speed deviation of the similar trajectory of the human body and the non-motor vehicle, if the movement speed deviation is less than (or less than or equal to) 5%, the target object satisfies the speed condition. If the movement speed deviation is greater than 5%, it is determined that the speed condition is not satisfied, and the association screening is not continued. It is worth mentioning that the motion speed deviation threshold can be specifically set according to specific conditions and needs.

在本发明另外一些实施例中,所述关联条件还可以包括除时间条件,轨迹相似条件,方向条件和速度条件之外的其它条件,即可以增减条件,所述关联条件可根据具体需求设置。上述所列关联条件不作为限制。In some other embodiments of the present invention, the association conditions may also include other conditions than time conditions, trajectory similarity conditions, direction conditions, and speed conditions, that is, conditions that can be increased or decreased, and the association conditions can be set according to specific needs . The association conditions listed above are not limiting.

在本发明另外一些实施例中,所述关联条件还可以只包括时间条件,轨迹相似条件,方向条件和速度条件中的其中几个条件,即可以筛减条件。所述关联条件可根据具体需求设置。上述所列关联条件不作为限制。In some other embodiments of the present invention, the association condition may only include several conditions among the time condition, the trajectory similarity condition, the direction condition and the speed condition, that is, the condition that can be filtered out. The association conditions can be set according to specific requirements. The association conditions listed above are not limiting.

根据本发明一实施例,以主ID为中心,当所述目标关联区域内的所述目标对象满足进行关联筛选时设置的所述关联条件,则所述关联条件的所述目标对象设为对应所述主ID的子ID,所述主ID和所述子ID组成所述目标关联组。According to an embodiment of the present invention, with the main ID as the center, when the target object in the target association area satisfies the association condition set when performing association screening, the target object of the association condition is set to correspond to The sub-ID of the main ID, the main ID and the sub-ID form the target association group.

根据本发明一实施例, 所述步骤c) 可具体实施为,对所述目标区域进行持续关联筛选。对于经过关联筛选后符合关联条件的不同子ID,若是新的子ID,则提取该子ID所代表的人体的深度特征,与所述目标关联组的人体特征做匹配,若匹配成功,则用新的子ID的轨迹更新到所述目标关联组中对应的子ID上,若匹配失败,则该子ID作为新的子ID纳入所述目标关联组。即如果是旧的子ID,则更新所述目标关联组中对应子ID的运动轨迹。上述实施过程即对所述目标关联组进行更新,以得到新的所述目标关联组。According to an embodiment of the present invention, the step c) may be specifically implemented as performing continuous association screening on the target area. For different sub-IDs that meet the association conditions after association screening, if it is a new sub-ID, extract the depth features of the human body represented by the sub-ID, and match with the human body features of the target association group. If the matching is successful, use The track of the new sub-ID is updated to the corresponding sub-ID in the target association group. If the matching fails, the sub-ID is included in the target association group as a new sub-ID. That is, if it is an old sub-ID, update the motion trajectory of the corresponding sub-ID in the target association group. The above implementation process is to update the target association group to obtain the new target association group.

值得一提的是,所述目标关联组的所述子ID可能由于被遮挡等原因会在所述目标区域内短暂消失,当遮挡物消失,则该子ID重新出现,所以需要避免将同一子ID加入所述目标关联组,否则会出现所述目标关联组中出现两个同一子ID,从而会对后续非机动车的超载检测结果出现重大影响,极大降低了检测结果的准确性。通过所述步骤c) 可以有效检测出这种情况,当所述子ID再次出现时,用新的子ID的轨迹更新到所述目标关联组中对应的旧的子ID上,避免了同一子ID多次加入所述目标关联组,提高了检测的准确性。It is worth mentioning that the sub-ID of the target association group may temporarily disappear in the target area due to occlusion and other reasons. The ID is added to the target association group, otherwise two identical sub-IDs will appear in the target association group, which will have a significant impact on the subsequent overload detection results of non-motor vehicles, and greatly reduce the accuracy of the detection results. Through the step c), this situation can be effectively detected. When the sub-ID appears again, the track of the new sub-ID is updated to the corresponding old sub-ID in the target association group, avoiding the same sub-ID. The ID is added to the target association group for many times, which improves the detection accuracy.

S206,基于特征数据库,对所述目标关联组进行检测,得到检测结果,其中所述特征数据库包括所述目标对象的特征信息。S206: Detect the target association group based on a feature database to obtain a detection result, where the feature database includes feature information of the target object.

根据本发明一实施例,其中所述特征数据库中所述特征信息的收集方式包括但不限于通过路况数据收集特征信息的方式,也可以通过为所述非机动车进行上牌注册或特征数据库注册而收集特征信息的方式。According to an embodiment of the present invention, the method of collecting the characteristic information in the characteristic database includes, but is not limited to, the method of collecting characteristic information through road condition data. The way in which characteristic information is collected.

根据本发明一实施例,其中所述特征信息主要指所述目标对象的基础特征等信息,所述特征信息可以为图像数据和信息数据,可以是帧图片数据也可以是特定时间段内的视频数据,也可以是针对所述目标对象提取出的信息数据。所述特征信息的表现形式包括但不限于图片、视频、文字和音频等方式。所述目标对象的特征信息的内容包括但不限于非机动车的类型、检测信息和状态信息。According to an embodiment of the present invention, the feature information mainly refers to information such as basic features of the target object, and the feature information may be image data and information data, frame picture data, or video in a specific time period. The data may also be information data extracted for the target object. The representation forms of the feature information include, but are not limited to, pictures, videos, texts, and audios. The content of the feature information of the target object includes but is not limited to the type, detection information and status information of the non-motor vehicle.

根据本发明一实施例,当所述目标对象指非机动车时,所述目标对象可以包括各种类型的非机动车。不同类型的非机动车的载人量可能相同,也可能不相同,所以非机动车的类型也是对所述目标关联组进行超载检测的前提条件。所述非机动车的检测信息主要包括对应不同类型的非机动车的载人数量标准,即用于检测超载的相关阈值。其中所述非机动车的类型和检测信息可以根据具体情况设置,在此不作限制。According to an embodiment of the present invention, when the target object refers to a non-motor vehicle, the target object may include various types of non-motor vehicles. The occupancy capacity of different types of non-motor vehicles may be the same or different, so the types of non-motor vehicles are also a prerequisite for overload detection for the target association group. The detection information of the non-motor vehicle mainly includes the standard of the number of people corresponding to different types of non-motor vehicles, that is, the relevant threshold for detecting overloading. The type and detection information of the non-motor vehicle can be set according to specific conditions, which are not limited here.

根据本发明一实施例,其中非机动车的状态信息具体为:例如,非机动车在未超载使用时的状态信息和非机动车在超载使用时的状态信息,这里非机车超载主要是指人的数量超过交通规则中的规定数量。According to an embodiment of the present invention, the state information of the non-motor vehicle is specifically: for example, the state information of the non-motor vehicle when the non-motor vehicle is not overloaded and the state information of the non-motor vehicle when the non-motor vehicle is overloaded. The number exceeds the number specified in the traffic regulations.

值得一提的是,非机动车的状态信息包括不同类型的非机动车的状态信息,以及在不同场景下的非机动车的状态信息,其中所述状态信息包括该状态场景下用图片、视频、文字和音频等方式所呈现的信息和人和车作为目标关联组的信息。It is worth mentioning that the status information of non-motor vehicles includes the status information of different types of non-motor vehicles, and the status information of non-motor vehicles in different scenarios, wherein the status information includes pictures and videos used in the status scene. , text and audio, etc., and the information of people and vehicles as the target association group.

根据本发明一实施例,其中所述特征数据库可以进行更新,包括但不限于在线更新或者离线更新,即所述特征数据库中的所述特征信息可以增加或减少或改变。According to an embodiment of the present invention, the feature database can be updated, including but not limited to online update or offline update, that is, the feature information in the feature database can be increased, decreased or changed.

根据本发明一实施例,参考图5所示,所述步骤S206还包括:According to an embodiment of the present invention, referring to FIG. 5 , the step S206 further includes:

S2061,基于所述特征数据库,对所述目标关联组中所述目标对象的类型进行匹配,得到匹配结果,所述匹配结果包括第一匹配结果和第二匹配结果;S2061, based on the feature database, match the types of the target objects in the target association group to obtain a matching result, where the matching result includes a first matching result and a second matching result;

S2062,基于所述匹配结果,利用第一基准阈值对所述第一匹配结果进行检测,利用第二基准阈值对所述第二匹配结果进行检测,得到第一检测结果;S2062, based on the matching result, use a first reference threshold to detect the first matching result, and use a second reference threshold to detect the second matching result to obtain a first detection result;

S2063,基于所述第一检测结果,对所述目标关联组进行分类检测,得到第二检测结果。S2063, based on the first detection result, perform classification detection on the target association group to obtain a second detection result.

根据本发明一实施例,所述步骤S2061可具体实施为, 根据所述特征数据库对所述目标关联组的所述目标对象的主ID进行类型匹配,即匹配非机动车的具体类型,其中非机动车的类型决定了该机动车的载人数量,从而后续判断该非机动车是否存在超载行为。当所述目标关联组的所述目标对象的主ID可以与所述特征数据库中的非机动车的类型完成匹配时,则为第一匹配结果;当所述目标关联组的所述目标对象的主ID为匹配到所述特征数据库中的非机动车类型时,则为第二匹配结果。According to an embodiment of the present invention, the step S2061 may be specifically implemented as: performing type matching on the main ID of the target object of the target association group according to the feature database, that is, matching the specific type of the non-motor vehicle, wherein the non-motor vehicle type is matched. The type of motor vehicle determines the number of people in the motor vehicle, so as to determine whether the non-motor vehicle is overloaded. When the primary ID of the target object of the target association group can be matched with the type of non-motor vehicle in the feature database, it is the first matching result; When the primary ID is a non-motor vehicle type matched to the feature database, it is the second matching result.

根据本发明一实施例,根据所述步骤S2062,其中第一匹配结果对应第一基准阈值,即每种类型的非机动车对应一个判断该非机动车是否超载的第一基准阈值,所述第一基准阈值为在交通规则规定范围内,所述非机动车的最高载人数量;当所述匹配结果为第二匹配结果时,即所述目标关联组的所述目标对象的主ID并没有匹配到所述特征数据库中的非机动车类型,则并不存在对应的在交通规则规定范围内,所述非机动车的最高载人数量,这时默认对应所述第二基准阈值。优选的,所述第二基准阈值为2,2为通过经验值赋予的数值,大部分非机动车的核载人数为2。其中所述第二基准阈值可以具体设置,在此提供一个优选值而并不作为限制。According to an embodiment of the present invention, according to step S2062, wherein the first matching result corresponds to a first reference threshold, that is, each type of non-motor vehicle corresponds to a first reference threshold for judging whether the non-motor vehicle is overloaded, the A reference threshold is the maximum number of people carried by the non-motor vehicle within the range specified by the traffic rules; when the matching result is the second matching result, that is, the primary ID of the target object in the target association group does not have If the type of non-motor vehicle is matched to the feature database, there is no corresponding maximum number of people in the non-motor vehicle within the range specified by the traffic rules, and in this case, the default corresponds to the second reference threshold. Preferably, the second reference threshold is 2, where 2 is a numerical value assigned through experience, and the nuclear occupancy of most non-motor vehicles is 2. The second reference threshold may be specifically set, and a preferred value is provided here instead of limiting.

根据本发明一实施例,利用第一基准阈值对所述第一匹配结果进行检测,得到第一检测结果,其中第一检测结果具体指:所述第一匹配结果大于所述第一基准阈值,则判断所述目标关联组发生超载行为的概率较高,所述第一匹配结果小于等于所述第一基准阈值,则判断所述目标关联组未发生超载行为。According to an embodiment of the present invention, the first matching result is detected by using a first reference threshold to obtain a first detection result, wherein the first detection result specifically refers to: the first matching result is greater than the first reference threshold, Then, it is judged that the target association group has a high probability of overload behavior, and the first matching result is less than or equal to the first reference threshold, and it is judged that the target association group does not have overload behavior.

根据本发明一实施例,利用第二基准阈值对所述第二匹配结果进行检测,得到第一检测结果,其中第一检测结果具体指:所述第二匹配结果大于所述第二基准阈值,则判断所述目标关联组发生超载行为的概率较高,所述第二匹配结果小于等于所述第二基准阈值,则判断所述目标关联组未发生超载行为。According to an embodiment of the present invention, the second matching result is detected by using a second reference threshold to obtain a first detection result, where the first detection result specifically refers to: the second matching result is greater than the second reference threshold, Then, it is judged that the target association group has a high probability of overload behavior, and the second matching result is less than or equal to the second reference threshold, and it is judged that the target association group does not have overload behavior.

根据本发明一实施例,根据所述步骤S2062,基于所述第一检测结果,对发生超载行为概率较高的所述目标关联组进行分类检测,其中所述分类检测主要是通过分类模型进行检测,主要排除在所述目标关联组中,该子ID并不是主ID即非机动车的驾驶人或乘车人,而是长时间处于该非机动车周围的其他人,以及排除在所述目标关联组中,该子ID并不是主ID即非机动车的驾驶人或乘车人,而是其他一些误检物等情况。According to an embodiment of the present invention, according to the step S2062, based on the first detection result, the target association group with a high overload behavior probability is classified and detected, wherein the classification detection is mainly performed by a classification model , mainly excluded from the target association group, the sub-ID is not the main ID, that is, the driver or passenger of the non-motor vehicle, but other people who have been around the non-motor vehicle for a long time, and excluded from the target In the association group, the sub-ID is not the main ID, that is, the driver or passenger of the non-motor vehicle, but some other misdetected objects.

值得一提的是,在步骤S204中,是在2D平面中对第一特征信息进行多目标跟踪和关联,由于2D平面视角的局限性以及该第一特征信息并未包括3D深度信息,因此所述目标关联组中主ID和子ID有很大概率发生误检,因此需要对所述目标关联组再进行分类检测,从而排除一些在非机动车周围长时间停留或长时间行驶保持一直的情况,以及该子ID并不是主ID即非机动车的驾驶人或乘车人,而是其他一些误检物(例如货物)等情况,从而提高检测结果的准确性。It is worth mentioning that in step S204, multi-target tracking and association are performed on the first feature information in the 2D plane. Due to the limitation of the 2D plane viewing angle and the first feature information does not include 3D depth information, the The main ID and sub-ID in the target association group have a high probability of false detection, so the target association group needs to be classified and detected, so as to exclude some cases of staying around non-motor vehicles for a long time or driving for a long time. And the sub-ID is not the main ID, that is, the driver or passenger of the non-motor vehicle, but some other misdetected objects (such as goods), etc., so as to improve the accuracy of the detection result.

S208,基于所述检测结果,更新所述特征数据库。S208, based on the detection result, update the feature database.

根据本发明一实施例,在步骤S206中,当所述目标关联组中所述目标对象的类型并未在所述特征数据库中匹配到对应类型时,可以将所述目标关联组中所述目标对象的特征信息更新到所述特征数据库中,从而扩大所述特征数据库所包括的所述特征信息,当所述目标对象的所述主ID即非机动车再次出现时,则可以对所述目标关联组的行为进行有效检测。According to an embodiment of the present invention, in step S206, when the type of the target object in the target association group does not match the corresponding type in the feature database, the target object in the target association group can be The feature information of the object is updated into the feature database, thereby expanding the feature information included in the feature database. When the primary ID of the target object, that is, a non-motor vehicle, appears again, the target The behavior of the associated group is effectively detected.

根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。The method according to the above-mentioned embodiment can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by means of hardware, but the former is a better implementation in many cases. Based on this understanding, the technical solutions of the present invention essentially or the parts that contribute to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.

在本实施例中还提供了一种数据检测装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a data detection apparatus is also provided, and the apparatus is used to implement the above-mentioned embodiments and preferred implementations, and what has been described will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.

根据本发明另一实施例,参考图6,提供一种数据检测装置,包括:According to another embodiment of the present invention, referring to FIG. 6, a data detection apparatus is provided, including:

第一获取模块30, 用于获取目标区域数据,通过检测模型检测所述目标区域数据,得到目标区域的第一特征信息,其中所述第一特征信息包括所述目标区域内所有目标对象的深度特征;The first acquisition module 30 is configured to acquire target area data, detect the target area data through a detection model, and obtain first feature information of the target area, wherein the first feature information includes the depths of all target objects in the target area feature;

根据本发明一实施例,其中所述目标区域数据指目标区域内的图像数据,其中所述图像数据包括但不限于图片数据和视频数据,所述目标区域数据是通过接收由数据采集装置传输的数据信息并解码获得。其中所述数据采集装置可以指相机、摄像机等数据采集设备,在本实施例中,所述图像数据主要通过相机和摄像机采集的数据信息解码获得。其中所述目标区域可根据具体需要通过设置所述数据采集装置的安装位置来设定。According to an embodiment of the present invention, the target area data refers to image data in the target area, wherein the image data includes but not limited to picture data and video data, and the target area data is transmitted by a data acquisition device by receiving data information and decoded. The data collection device may refer to data collection equipment such as cameras and video cameras. In this embodiment, the image data is mainly obtained by decoding the data information collected by the cameras and the video cameras. The target area can be set by setting the installation position of the data acquisition device according to specific needs.

根据本发明一实施例,其中所述检测模型为深度学习检测算法模型,例如YOLOX检测算法,通过ImageNet数据集预训练所述检测模型,再用交通场景下的非机动车、人体数据来微调,最终检测器输出非机动车和人体两个类别的坐标框、位置、置信度等信息。通过所述检测模型检测所述目标区域数据,可以对应检测到所述目标区域数据中所有非机动车和人的对象点,检测并输出对应该对象点的非机动车和人的特征信息。According to an embodiment of the present invention, wherein the detection model is a deep learning detection algorithm model, such as the YOLOX detection algorithm, the detection model is pre-trained by the ImageNet data set, and then fine-tuned with the non-motor vehicle and human body data in the traffic scene, The final detector outputs the coordinate frame, position, confidence and other information of the two categories of non-motor vehicle and human body. By detecting the target area data through the detection model, all object points of non-motor vehicles and people in the target area data can be detected correspondingly, and the characteristic information of the non-motor vehicles and people corresponding to the object points can be detected and output.

根据本发明一实施例,所述非机动车和人为所述目标区域内需要检测的所述目标对象,其中所述第一特征信息是指所述目标区域数据中所有所述目标对象即非机动车和人的深度特征,所述深度特征包括但不限于非机动车的类型、尺寸、位置、时间戳和置信度等特征,以及人的尺寸、位置、时间戳和置信度等特征。According to an embodiment of the present invention, the non-motor vehicle and human are the target objects to be detected in the target area, wherein the first feature information refers to all the target objects in the target area data, that is, non-motor vehicles. Depth features of motor vehicles and people, the depth features include but are not limited to features such as type, size, location, timestamp, and confidence of non-motor vehicles, as well as features such as size, location, timestamp, and confidence of people.

目标关联模块40,用于对所述第一特征信息执行多目标关联,以建立目标关联组;A target association module 40, configured to perform multi-target association on the first feature information to establish a target association group;

其中所述目标关联模块40还包括:The target association module 40 further includes:

多目标跟踪模块41,用于对所述第一特征信息执行多目标跟踪,得到第二特征信息,其中所述第二特征信息包括所述目标对象的标识符和运动轨迹;A multi-target tracking module 41, configured to perform multi-target tracking on the first feature information to obtain second feature information, wherein the second feature information includes an identifier and a motion trajectory of the target object;

根据本发明一实施例,通过对所述第一特征信息执行多目标跟踪,得到所述目标对象的所述第二特征信息。即根据所述目标区域中所述目标对象即非机动车和人的深度特征,即非机动车的类型、尺寸、位置、时间戳和置信度等特征,以及人的尺寸、位置、时间戳和置信度等特征,通过多目标跟踪处理,得到所述目标对象的所述第二特征信息,其中所述第二特征信息包括所述目标区域内所有所述目标对象的ID和运动轨迹。According to an embodiment of the present invention, the second feature information of the target object is obtained by performing multi-target tracking on the first feature information. That is, according to the depth features of the target objects in the target area, namely the non-motor vehicle and the person, that is, the type, size, location, timestamp and confidence of the non-motor vehicle, as well as the size, location, timestamp and The second feature information of the target object is obtained through multi-target tracking processing, wherein the second feature information includes the IDs and motion trajectories of all the target objects in the target area.

根据本发明一实施例,利用IouTrack跟踪器对所述第一特征信息执行多目标跟踪,以对所述目标对象赋予唯一标识符即目标对象的ID以及形成每个ID所代表的所述目标对象的运动轨迹。在本发明提供的另一些实施例中,也可以用其他多目标跟踪算法对所述第一特征信息执行多目标跟踪,只要能达到同样的功能都可适用本发明,在此不作限制。According to an embodiment of the present invention, an IouTrack tracker is used to perform multi-target tracking on the first feature information, so as to assign a unique identifier to the target object, that is, the ID of the target object, and form the target object represented by each ID movement trajectory. In other embodiments provided by the present invention, other multi-target tracking algorithms can also be used to perform multi-target tracking on the first feature information, and the present invention can be applied as long as the same function can be achieved, which is not limited herein.

关联处理模块42,用于对所述第二特征信息进行关联处理,得到所述目标关联组。The association processing module 42 is configured to perform association processing on the second feature information to obtain the target association group.

根据本发明一实施例,由于非机动车上的人体遮挡大,同时受不同的数据采集装置的安装位置影响,持续检出困难,跟踪的ID连续性很难保证,即无法形成有效连续的运动轨迹。因此在本实施例中,需要在所对所述第一特征信息执行多目标跟踪处理后,再对所述第二特征信息进行关联处理,通过得到目标关联组来提高检测的准确性。According to an embodiment of the present invention, due to the large occlusion of the human body on the non-motor vehicle and the influence of the installation positions of different data acquisition devices, continuous detection is difficult, and the tracking ID continuity is difficult to ensure, that is, an effective and continuous movement cannot be formed. trajectory. Therefore, in this embodiment, it is necessary to perform correlation processing on the second feature information after the multi-target tracking processing is performed on the first feature information, so as to improve the detection accuracy by obtaining a target correlation group.

根据本发明一实施例,其中所述关联处理模块42具体包括:According to an embodiment of the present invention, the association processing module 42 specifically includes:

目标关联区域设定单元421,用于基于所述第一特征信息和所述第二特征信息,设定目标关联区域;a target associated area setting unit 421, configured to set a target associated area based on the first feature information and the second feature information;

关联筛选单元422,用于基于所述目标关联区域,对所述目标对象进行关联筛选,得到所述目标关联组;an association screening unit 422, configured to perform association screening on the target object based on the target association area to obtain the target association group;

目标关联组更新单元423,用于对所述目标关联组进行更新,以得到新的所述目标关联组。The target association group updating unit 423 is configured to update the target association group to obtain the new target association group.

根据本发明一实施例,根据所述第二特征信息,将非机动车的ID设为主ID,设定关联阈值,该关联阈值可以指距离阈值,以主ID为中心,根据所述关联阈值形成所述目标关联区域。According to an embodiment of the present invention, according to the second characteristic information, the ID of the non-motor vehicle is set as the main ID, and a correlation threshold is set, and the correlation threshold may refer to a distance threshold, with the main ID as the center, according to the correlation threshold The target association area is formed.

根据本发明一实施例,以主ID为中心,设置关联条件,根据所述关联条件对所述目标关联区域内的所述目标对象进行筛选,符合所述关联条件的所述目标对象设为对应所述主ID的子ID。According to an embodiment of the present invention, an association condition is set centered on the main ID, the target objects in the target association area are screened according to the association condition, and the target objects that meet the association condition are set as corresponding The sub-ID of the main ID.

根据本发明一实施例,所述关联条件包括时间条件,轨迹相似条件,方向条件和速度条件,当所述目标关联区域内的所述目标对象满足上述所述关联条件的所有条件时,所述目标对象设为对应所述主ID的子ID。According to an embodiment of the present invention, the association condition includes a time condition, a trajectory similarity condition, a direction condition, and a speed condition. When the target object in the target association area satisfies all the above-mentioned association conditions, the The target object is set as the sub-ID corresponding to the main ID.

根据本发明一实施例,所述关联条件可以包括轨迹相似条件,通过轨迹相似性匹配算法模型,计算人体轨迹与非机动车轨迹的相似性,设置一轨迹相似性阈值,例如设置该轨迹相似性阈值为90%,基于所述第一特征信息和所述第二特征信息,即所述目标对象的深度特征和所述目标对象的ID和对应轨迹,计算出所述轨迹相似性,当所述轨迹相似性大于(或大于等于)90%时,所述目标对象满足所述轨迹相似条件。当所述目标对象不满足所述轨迹相似条件,则不再继续进行所述关联筛选。其中所述轨迹相似性匹配算法模型可以为弗雷歇距离算法,也可以是其他具有类似功能的算法,在此不做限制。值得一提的是,所述轨迹相似性阈值为可根据具体情况和需求具体设置。According to an embodiment of the present invention, the association condition may include a track similarity condition, and the similarity between the human body track and the non-motor vehicle track is calculated through a track similarity matching algorithm model, and a track similarity threshold is set, for example, setting the track similarity The threshold is 90%. Based on the first feature information and the second feature information, that is, the depth feature of the target object and the ID and corresponding trajectory of the target object, the trajectory similarity is calculated. When the When the trajectory similarity is greater than (or greater than or equal to) 90%, the target object satisfies the trajectory similarity condition. When the target object does not meet the trajectory similarity condition, the association screening is not continued. Wherein, the trajectory similarity matching algorithm model may be the Frecher distance algorithm, or may be other algorithms with similar functions, which are not limited herein. It is worth mentioning that the trajectory similarity threshold can be specifically set according to specific situations and needs.

根据本发明一实施例,所述关联条件可以包括时间条件,所述时间条件可具体设置为时间阈值,例如设置所述时间阈值为10s, 基于所述第一特征信息和所述第二特征信息,即所述目标对象的深度特征和所述目标对象的ID和对应轨迹,计算人体和非机动车的相似轨迹的持续时间,如果该持续时间大于(或大于等于)10s,则所述目标对象满足所述时间条件。如果该持续时间小于10s,则判断不满足所述时间条件,则不再继续进行所述关联筛选。值得一提的是,所述时间阈值可根据具体情况和需求具体设置。According to an embodiment of the present invention, the association condition may include a time condition, and the time condition may be specifically set as a time threshold, for example, set the time threshold to 10s, based on the first feature information and the second feature information , that is, the depth feature of the target object and the ID and corresponding trajectory of the target object, calculate the duration of the similar trajectory of the human body and non-motor vehicles, if the duration is greater than (or greater than or equal to) 10s, then the target object The time condition is satisfied. If the duration is less than 10s, it is determined that the time condition is not satisfied, and the association screening is not continued. It is worth mentioning that the time threshold can be specifically set according to specific conditions and needs.

根据本发明一实施例,所述关联条件可以包括方向条件,所述方向条件可具体设置为运动方向偏差阈值,例如设置所述运动方向偏差阈值为5%, 基于所述第一特征信息和所述第二特征信息,即所述目标对象的深度特征和所述目标对象的ID和对应轨迹,计算人体和非机动车的相似轨迹的运动方向偏差,如果该运动方向偏差小于(或小于等于)5%,则所述目标对象满足所述方向条件。如果该运动方向偏差大于5%,则判断不满足所述方向条件,则不再继续进行所述关联筛选。值得一提的是,所述运动方向偏差阈值可根据具体情况和需求具体设置。According to an embodiment of the present invention, the association condition may include a direction condition, and the direction condition may be specifically set as a movement direction deviation threshold, for example, the movement direction deviation threshold is set to 5%, based on the first feature information and all The second feature information, that is, the depth feature of the target object and the ID and corresponding trajectory of the target object, calculate the movement direction deviation of the similar trajectory of the human body and the non-motor vehicle, if the movement direction deviation is less than (or less than or equal to) 5%, the target object satisfies the direction condition. If the movement direction deviation is greater than 5%, it is determined that the direction condition is not satisfied, and the association screening is not continued. It is worth mentioning that the movement direction deviation threshold can be specifically set according to specific conditions and needs.

根据本发明一实施例,所述关联条件可以包括速度条件,所述速度条件可具体设置为运动速度偏差阈值,例如设置所述运动速度偏差阈值为5%, 基于所述第一特征信息和所述第二特征信息,即所述目标对象的深度特征和所述目标对象的ID和对应轨迹,计算人体和非机动车的相似轨迹的运动速度偏差,如果该运动速度偏差小于(或小于等于)5%,则所述目标对象满足所述速度条件。如果该运动速度偏差大于5%,则判断不满足所述速度条件,则不再继续进行所述关联筛选。值得一提的是,所述运动速度偏差阈值可根据具体情况和需求具体设置。According to an embodiment of the present invention, the association condition may include a speed condition, and the speed condition may be specifically set as a movement speed deviation threshold, for example, setting the movement speed deviation threshold to 5%, based on the first feature information and the The second feature information, that is, the depth feature of the target object and the ID and corresponding trajectory of the target object, calculate the movement speed deviation of the similar trajectory of the human body and the non-motor vehicle, if the movement speed deviation is less than (or less than or equal to) 5%, the target object satisfies the speed condition. If the movement speed deviation is greater than 5%, it is determined that the speed condition is not satisfied, and the association screening is not continued. It is worth mentioning that the motion speed deviation threshold can be specifically set according to specific conditions and needs.

在本发明另外一些实施例中,所述关联条件还可以包括除时间条件,轨迹相似条件,方向条件和速度条件之外的其它条件,即可以增减条件,所述关联条件可根据具体需求设置。上述所列关联条件不作为限制。In some other embodiments of the present invention, the association conditions may also include other conditions than time conditions, trajectory similarity conditions, direction conditions, and speed conditions, that is, conditions that can be increased or decreased, and the association conditions can be set according to specific needs . The association conditions listed above are not limiting.

在本发明另外一些实施例中,所述关联条件还可以只包括时间条件,轨迹相似条件,方向条件和速度条件中的其中几个条件,即可以筛减条件。所述关联条件可根据具体需求设置。上述所列关联条件不作为限制。In some other embodiments of the present invention, the association condition may only include several conditions among the time condition, the trajectory similarity condition, the direction condition and the speed condition, that is, the condition that can be filtered out. The association conditions can be set according to specific requirements. The association conditions listed above are not limiting.

根据本发明一实施例,以主ID为中心,当所述目标关联区域内的所述目标对象满足进行关联筛选时设置的所述关联条件,则所述关联条件的所述目标对象设为对应所述主ID的子ID,所述主ID和所述子ID组成所述目标关联组。According to an embodiment of the present invention, with the main ID as the center, when the target object in the target association area satisfies the association condition set when performing association screening, the target object of the association condition is set to correspond to The sub-ID of the main ID, the main ID and the sub-ID form the target association group.

根据本发明一实施例,对所述目标区域进行持续关联筛选。对于经过关联筛选后符合关联条件的不同子ID,若是新的子ID,则提取该子ID所代表的人体的深度特征,与所述目标关联组的人体特征做匹配,若匹配成功,则用新的子ID的轨迹更新到所述目标关联组中对应的子ID上,若匹配失败,则该子ID作为新的子ID纳入所述目标关联组。即如果是旧的子ID,则更新所述目标关联组中对应子ID的运动轨迹。上述实施过程即对所述目标关联组进行更新,以得到新的所述目标关联组。According to an embodiment of the present invention, continuous association screening is performed on the target area. For different sub-IDs that meet the association conditions after association screening, if it is a new sub-ID, extract the depth features of the human body represented by the sub-ID, and match with the human body features of the target association group. If the matching is successful, use The track of the new sub-ID is updated to the corresponding sub-ID in the target association group. If the matching fails, the sub-ID is included in the target association group as a new sub-ID. That is, if it is an old sub-ID, update the motion trajectory of the corresponding sub-ID in the target association group. The above implementation process is to update the target association group to obtain the new target association group.

值得一提的是,所述目标关联组的所述子ID可能由于被遮挡等原因会在所述目标区域内短暂消失,当遮挡物消失,则该子ID重新出现,所以需要避免将同一子ID加入所述目标关联组,否则会出现所述目标关联组中出现两个同一子ID,从而会对后续非机动车的超载检测结果出现重大影响,极大降低了检测结果的准确性。通过所述目标关联组更新单元423可以有效检测出这种情况,当所述子ID再次出现时,用新的子ID的轨迹更新到所述目标关联组中对应的旧的子ID上,避免了同一子ID多次加入所述目标关联组,提高了检测的准确性。It is worth mentioning that the sub-ID of the target association group may temporarily disappear in the target area due to occlusion and other reasons. The ID is added to the target association group, otherwise two identical sub-IDs will appear in the target association group, which will have a significant impact on the subsequent overload detection results of non-motor vehicles, and greatly reduce the accuracy of the detection results. This situation can be effectively detected by the target association group updating unit 423. When the sub-ID appears again, the track of the new sub-ID is updated to the corresponding old sub-ID in the target association group to avoid The same sub-ID is added to the target association group multiple times, which improves the detection accuracy.

检测模块50, 基于特征数据库,对所述目标关联组进行检测,得到检测结果,其中所述特征数据库包括所述目标对象的特征信息。The detection module 50 detects the target association group based on a feature database, and obtains a detection result, wherein the feature database includes feature information of the target object.

根据本发明一实施例,其中所述特征数据库中所述特征信息的收集方式包括但不限于通过路况数据收集特征信息的方式,也可以通过为所述非机动车进行上牌注册或特征数据库注册而收集特征信息的方式。According to an embodiment of the present invention, the method of collecting the characteristic information in the characteristic database includes, but is not limited to, the method of collecting characteristic information through road condition data. The way in which characteristic information is collected.

根据本发明一实施例,其中所述特征信息主要指所述目标对象的基础特征等信息,所述特征信息可以为图像数据和信息数据,可以是帧图片数据也可以是特定时间段内的视频数据,也可以是针对所述目标对象提取出的信息数据。所述特征信息的表现形式包括但不限于图片、视频、文字和音频等方式。所述目标对象的特征信息的内容包括但不限于非机动车的类型、检测信息和状态信息。According to an embodiment of the present invention, the feature information mainly refers to information such as basic features of the target object, and the feature information may be image data and information data, frame picture data, or video within a specific time period. The data may also be information data extracted for the target object. The representation forms of the feature information include, but are not limited to, pictures, videos, texts, and audios. The content of the feature information of the target object includes but is not limited to the type, detection information and status information of the non-motor vehicle.

根据本发明一实施例,当所述目标对象指非机动车时,所述目标对象可以包括各种类型的非机动车。不同类型的非机动车的载人量可能相同,也可能不相同,所以非机动车的类型也是对所述目标关联组进行超载检测的前提条件。所述非机动车的检测信息主要包括对应不同类型的非机动车的载人数量标准,即用于检测超载的相关阈值。其中所述非机动车的类型和检测信息可以根据具体情况设置,在此不作限制。According to an embodiment of the present invention, when the target object refers to a non-motor vehicle, the target object may include various types of non-motor vehicles. The occupancy capacity of different types of non-motor vehicles may be the same or different, so the types of non-motor vehicles are also a prerequisite for the overload detection of the target association group. The detection information of the non-motor vehicle mainly includes the standard of the number of passengers corresponding to different types of non-motor vehicles, that is, the relevant threshold for detecting overloading. The type and detection information of the non-motor vehicle can be set according to specific conditions, which are not limited here.

根据本发明一实施例,其中非机动车的状态信息具体为:例如,非机动车在未超载使用时的状态信息和非机动车在超载使用时的状态信息,这里非机车超载主要是指人的数量超过交通规则中的规定数量。According to an embodiment of the present invention, the state information of the non-motor vehicle is specifically: for example, the state information of the non-motor vehicle when the non-motor vehicle is not overloaded and the state information of the non-motor vehicle when the non-motor vehicle is overloaded. The number exceeds the number specified in the traffic regulations.

值得一提的是,非机动车的状态信息包括不同类型的非机动车的状态信息,以及在不同场景下的非机动车的状态信息,其中所述状态信息包括该状态场景下用图片、视频、文字和音频等方式所呈现的信息和人和车作为目标关联组的信息。It is worth mentioning that the status information of non-motor vehicles includes the status information of different types of non-motor vehicles, and the status information of non-motor vehicles in different scenarios, wherein the status information includes pictures and videos used in the status scene. , text and audio, etc., and the information of people and vehicles as the target association group.

根据本发明一实施例,其中所述特征数据库可以进行更新,包括但不限于在线更新或者离线更新,即所述特征数据库中的所述特征信息可以增加或减少或改变。According to an embodiment of the present invention, the feature database can be updated, including but not limited to online update or offline update, that is, the feature information in the feature database can be increased, decreased or changed.

根据本发明一实施例,所述检测模块50还包括:According to an embodiment of the present invention, the detection module 50 further includes:

匹配单元51,用于基于所述特征数据库,对所述目标关联组中所述目标对象的类型进行匹配,得到匹配结果,所述匹配结果包括第一匹配结果和第二匹配结果;A matching unit 51, configured to match the types of the target objects in the target association group based on the feature database to obtain a matching result, where the matching result includes a first matching result and a second matching result;

第一检测单元52,用于基于所述匹配结果,利用第一基准阈值对所述第一匹配结果进行检测,利用第二基准阈值对所述第二匹配结果进行检测,得到第一检测结果;The first detection unit 52 is configured to, based on the matching result, use a first reference threshold to detect the first matching result, and use a second reference threshold to detect the second matching result to obtain a first detection result;

分类检测单元53,用于基于所述第一检测结果,对所述目标关联组进行分类检测,得到第二检测结果。The classification detection unit 53 is configured to perform classification detection on the target association group based on the first detection result to obtain a second detection result.

根据本发明一实施例, 根据所述特征数据库对所述目标关联组的所述目标对象的主ID进行类型匹配,即匹配非机动车的具体类型,其中非机动车的类型决定了该机动车的载人数量,从而后续判断该非机动车是否存在超载行为。当所述目标关联组的所述目标对象的主ID可以与所述特征数据库中的非机动车的类型完成匹配时,则为第一匹配结果;当所述目标关联组的所述目标对象的主ID为匹配到所述特征数据库中的非机动车类型时,则为第二匹配结果。According to an embodiment of the present invention, type matching is performed on the main ID of the target object of the target association group according to the feature database, that is, matching the specific type of non-motor vehicle, wherein the type of non-motor vehicle determines the motor vehicle The number of people carried, so as to determine whether the non-motor vehicle is overloaded. When the primary ID of the target object of the target association group can be matched with the type of non-motor vehicle in the feature database, it is the first matching result; When the primary ID is a non-motor vehicle type matched to the feature database, it is the second matching result.

根据本发明一实施例,其中第一匹配结果对应第一基准阈值,即每种类型的非机动车对应一个判断该非机动车是否超载的第一基准阈值,所述第一基准阈值为在交通规则规定范围内,所述非机动车的最高载人数量;当所述匹配结果为第二匹配结果时,即所述目标关联组的所述目标对象的主ID并没有匹配到所述特征数据库中的非机动车类型,则并不存在对应的在交通规则规定范围内,所述非机动车的最高载人数量,这时默认对应所述第二基准阈值。优选的,所述第二基准阈值为2,2为通过经验值赋予的数值,大部分非机动车的核载人数为2。其中所述第二基准阈值可以具体设置,在此提供一个优选值而并不作为限制。According to an embodiment of the present invention, the first matching result corresponds to a first reference threshold, that is, each type of non-motor vehicle corresponds to a first reference threshold for judging whether the non-motor vehicle is overloaded, and the first reference threshold is in traffic Within the scope specified by the rule, the maximum number of people carrying the non-motor vehicle; when the matching result is the second matching result, that is, the primary ID of the target object in the target association group does not match the feature database The non-motor vehicle type in , there is no corresponding maximum number of people in the non-motor vehicle within the range specified by the traffic rules, which corresponds to the second reference threshold by default. Preferably, the second reference threshold is 2, and 2 is a numerical value assigned by experience, and the nuclear occupancy of most non-motor vehicles is 2. The second reference threshold may be specifically set, and a preferred value is provided here instead of limiting.

根据本发明一实施例,利用第一基准阈值对所述第一匹配结果进行检测,得到第一检测结果,其中第一检测结果具体指:所述第一匹配结果大于所述第一基准阈值,则判断所述目标关联组发生超载行为的概率较高,所述第一匹配结果小于等于所述第一基准阈值,则判断所述目标关联组未发生超载行为。According to an embodiment of the present invention, the first matching result is detected by using a first reference threshold to obtain a first detection result, wherein the first detection result specifically refers to: the first matching result is greater than the first reference threshold, Then, it is judged that the target association group has a high probability of overload behavior, and the first matching result is less than or equal to the first reference threshold, and it is judged that the target association group does not have overload behavior.

根据本发明一实施例,利用第二基准阈值对所述第二匹配结果进行检测,得到第一检测结果,其中第一检测结果具体指:所述第二匹配结果大于所述第二基准阈值,则判断所述目标关联组发生超载行为的概率较高,所述第二匹配结果小于等于所述第二基准阈值,则判断所述目标关联组未发生超载行为。According to an embodiment of the present invention, the second matching result is detected by using a second reference threshold to obtain a first detection result, where the first detection result specifically refers to: the second matching result is greater than the second reference threshold, Then, it is judged that the target association group has a high probability of overload behavior, and the second matching result is less than or equal to the second reference threshold, and it is judged that the target association group does not have overload behavior.

根据本发明一实施例基于所述第一检测结果,对发生超载行为概率较高的所述目标关联组进行分类检测,其中所述分类检测主要是通过分类模型进行检测,主要排除在所述目标关联组中,该子ID并不是主ID即非机动车的驾驶人或乘车人,而是长时间处于该非机动车周围的其他人,以及排除在所述目标关联组中,该子ID并不是主ID即非机动车的驾驶人或乘车人,而是其他一些误检物等情况。According to an embodiment of the present invention, based on the first detection result, a classification detection is performed on the target association group with a high overload behavior probability, wherein the classification detection is mainly performed by a classification model, which is mainly excluded from the target. In the association group, the sub-ID is not the main ID, that is, the driver or passenger of the non-motor vehicle, but other people who have been around the non-motor vehicle for a long time, and excluded from the target association group, the sub-ID It is not the main ID, that is, the driver or passenger of a non-motor vehicle, but some other false detections.

值得一提的是,所述目标关联模块40具体是在2D平面中对第一特征信息进行多目标跟踪和关联,由于2D平面视角的局限性以及该第一特征信息并未包括3D深度信息,因此所述目标关联组中主ID和子ID有很大概率发生误检,因此需要对所述目标关联组再进行分类检测,从而排除一些在非机动车周围长时间停留或长时间行驶保持一直的情况,以及该子ID并不是主ID即非机动车的驾驶人或乘车人,而是其他一些误检物(例如货物)等情况,从而提高检测结果的准确性。It is worth mentioning that the target association module 40 specifically performs multi-target tracking and association on the first feature information in the 2D plane. Due to the limitations of the 2D plane viewing angle and the first feature information does not include 3D depth information, Therefore, the main ID and sub-ID in the target association group have a high probability of false detection, so the target association group needs to be classified and detected, so as to exclude some people who stay around non-motor vehicles for a long time or keep driving for a long time. situation, and the sub-ID is not the main ID, that is, the driver or passenger of a non-motor vehicle, but some other misdetected objects (such as goods), etc., so as to improve the accuracy of the detection results.

更新模块60,基于所述检测结果,更新所述特征数据库。The updating module 60, based on the detection result, updates the feature database.

根据本发明一实施例,当所述目标关联组中所述目标对象的类型并未在所述特征数据库中匹配到对应类型时,可以将所述目标关联组中所述目标对象的特征信息更新到所述特征数据库中,从而扩大所述特征数据库所包括的所述特征信息,当所述目标对象的所述主ID即非机动车再次出现时,则可以对所述目标关联组的行为进行有效检测。According to an embodiment of the present invention, when the type of the target object in the target association group does not match the corresponding type in the feature database, the feature information of the target object in the target association group can be updated into the feature database, thereby expanding the feature information included in the feature database, and when the primary ID of the target object, that is, a non-motor vehicle, reappears, the behavior of the target association group can be performed. Effective detection.

本发明的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.

在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to, a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM for short), and a random access memory (Random Access Memory, referred to as RAM for short) , mobile hard disk, magnetic disk or CD-ROM and other media that can store computer programs.

本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, comprising a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments.

在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.

本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementation manners, and details are not described herein again in this embodiment.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device, which can be centralized on a single computing device, or distributed in a network composed of multiple computing devices On the other hand, they can be implemented in program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, can be performed in a different order than shown here. Or the described steps, or they are respectively made into individual integrated circuit modules, or a plurality of modules or steps in them are made into a single integrated circuit module to realize. As such, the present invention is not limited to any particular combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1.一种数据检测方法,其特征在于,包括:1. a data detection method, is characterized in that, comprises: 获取目标区域数据,通过检测模型检测所述目标区域数据,得到目标区域的第一特征信息,其中所述第一特征信息包括所述目标区域内所有目标对象的深度特征;Obtaining target area data, detecting the target area data through a detection model, and obtaining first feature information of the target area, wherein the first feature information includes the depth features of all target objects in the target area; 对所述第一特征信息执行多目标关联,以建立目标关联组;performing multi-target association on the first feature information to establish a target association group; 基于特征数据库,对所述目标关联组进行检测,得到检测结果,其中所述特征数据库包括所述目标对象的特征信息。Based on a feature database, the target association group is detected to obtain a detection result, wherein the feature database includes feature information of the target object. 2.根据权利要求1所述的方法,其特征在于,对所述第一特征信息执行多目标关联,以建立目标关联组,包括:2. The method according to claim 1, wherein performing multi-target association on the first feature information to establish a target association group, comprising: 对所述第一特征信息执行多目标跟踪,得到第二特征信息,其中所述第二特征信息包括所述目标对象的标识符和运动轨迹;Perform multi-target tracking on the first feature information to obtain second feature information, wherein the second feature information includes an identifier and a motion track of the target object; 对所述第二特征信息进行关联处理,得到所述目标关联组。Perform association processing on the second feature information to obtain the target association group. 3.根据权利要求2所述的方法,其特征在于,对所述第二特征信息进行关联处理,得到所述目标关联组,包括:3. The method according to claim 2, wherein, performing association processing on the second feature information to obtain the target association group, comprising: 基于所述第一特征信息和所述第二特征信息,设定目标关联区域;based on the first feature information and the second feature information, setting a target associated area; 基于所述目标关联区域,对所述目标对象进行关联筛选,得到所述目标关联组;Based on the target association area, perform association screening on the target object to obtain the target association group; 对所述目标关联组进行更新,以得到新的所述目标关联组。The target association group is updated to obtain a new target association group. 4.根据权利要求1所述的方法,其特征在于,基于特征数据库,对所述目标关联组进行检测,得到检测结果,其中所述特征数据库包括所述目标对象的特征信息,包括:4. The method according to claim 1, wherein the target association group is detected based on a feature database, and a detection result is obtained, wherein the feature database comprises feature information of the target object, including: 基于所述特征数据库,对所述目标关联组中所述目标对象的类型进行匹配,得到匹配结果,所述匹配结果包括第一匹配结果和第二匹配结果;Based on the feature database, the types of the target objects in the target association group are matched to obtain a matching result, where the matching result includes a first matching result and a second matching result; 基于所述匹配结果,利用第一基准阈值对所述第一匹配结果进行检测,利用第二基准阈值对所述第二匹配结果进行检测,得到第一检测结果;Based on the matching result, the first matching result is detected with a first reference threshold, and the second matching result is detected with a second reference threshold to obtain a first detection result; 基于所述第一检测结果,对所述目标关联组进行分类检测,得到第二检测结果。Based on the first detection result, the target association group is classified and detected to obtain a second detection result. 5.根据权利要求1所述的方法,其特征在于,还包括:5. The method of claim 1, further comprising: 基于所述检测结果,更新所述特征数据库。Based on the detection results, the feature database is updated. 6.一种数据检测装置,其特征在于,包括:6. A data detection device, characterized in that, comprising: 第一获取模块, 用于获取目标区域数据,通过检测模型检测所述目标区域数据,得到目标区域的第一特征信息,其中所述第一特征信息包括所述目标区域内所有目标对象的深度特征;a first acquisition module, configured to acquire target area data, detect the target area data through a detection model, and obtain first feature information of the target area, wherein the first feature information includes the depth features of all target objects in the target area ; 目标关联模块,用于对所述第一特征信息执行多目标关联,以建立目标关联组;a target association module, configured to perform multi-target association on the first feature information to establish a target association group; 检测模块, 基于特征数据库,对所述目标关联组进行检测,得到检测结果,其中所述特征数据库包括所述目标对象的特征信息。The detection module detects the target association group based on a feature database, and obtains a detection result, wherein the feature database includes feature information of the target object. 7.根据权利要求6所述的装置,其特征在于,目标关联模块包括:7. The apparatus according to claim 6, wherein the target association module comprises: 多目标跟踪模块,用于对所述第一特征信息执行多目标跟踪,得到第二特征信息,其中所述第二特征信息包括所述目标对象的标识符和运动轨迹;a multi-target tracking module, configured to perform multi-target tracking on the first feature information to obtain second feature information, wherein the second feature information includes an identifier and a motion trajectory of the target object; 关联处理模块,用于对所述第二特征信息进行关联处理,得到所述目标关联组。An association processing module, configured to perform association processing on the second feature information to obtain the target association group. 8.根据权利要求6所述的装置,其特征在于,所述检测模块包括:8. The device according to claim 6, wherein the detection module comprises: 匹配单元,用于基于所述特征数据库,对所述目标关联组中所述目标对象的类型进行匹配,得到匹配结果,所述匹配结果包括第一匹配结果和第二匹配结果;a matching unit, configured to match the types of the target objects in the target association group based on the feature database to obtain a matching result, where the matching result includes a first matching result and a second matching result; 第一检测单元,用于基于所述匹配结果,利用第一基准阈值对所述第一匹配结果进行检测,利用第二基准阈值对所述第二匹配结果进行检测,得到第一检测结果;a first detection unit, configured to detect the first matching result with a first reference threshold based on the matching result, and detect the second matching result with a second reference threshold to obtain a first detection result; 分类检测单元,用于基于所述第一检测结果,对所述目标关联组进行分类检测,得到第二检测结果。A classification detection unit, configured to perform classification detection on the target association group based on the first detection result to obtain a second detection result. 9.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至5任一项中所述的方法。9. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any one of the claims 1 to 5 when running the method described. 10.一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至5任一项中所述的方法。10. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any one of claims 1 to 5 method described in.
CN202210340337.1A 2022-04-02 2022-04-02 Data detection method and device, storage medium and electronic device Pending CN114842410A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210340337.1A CN114842410A (en) 2022-04-02 2022-04-02 Data detection method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210340337.1A CN114842410A (en) 2022-04-02 2022-04-02 Data detection method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN114842410A true CN114842410A (en) 2022-08-02

Family

ID=82564653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210340337.1A Pending CN114842410A (en) 2022-04-02 2022-04-02 Data detection method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114842410A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190332872A1 (en) * 2018-04-28 2019-10-31 Beijing Kuangshi Technology Co., Ltd. Information push method, information push device and information push system
CN111400550A (en) * 2019-12-30 2020-07-10 深圳市商汤科技有限公司 Target motion trajectory construction method and device and computer storage medium
CN112949538A (en) * 2021-03-16 2021-06-11 杭州海康威视数字技术股份有限公司 Target association method and device, electronic equipment and machine-readable storage medium
CN113516099A (en) * 2021-07-30 2021-10-19 浙江商汤科技开发有限公司 Traffic behavior recognition method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190332872A1 (en) * 2018-04-28 2019-10-31 Beijing Kuangshi Technology Co., Ltd. Information push method, information push device and information push system
CN111400550A (en) * 2019-12-30 2020-07-10 深圳市商汤科技有限公司 Target motion trajectory construction method and device and computer storage medium
CN112949538A (en) * 2021-03-16 2021-06-11 杭州海康威视数字技术股份有限公司 Target association method and device, electronic equipment and machine-readable storage medium
CN113516099A (en) * 2021-07-30 2021-10-19 浙江商汤科技开发有限公司 Traffic behavior recognition method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHANG Y等: "A Group target tracking algorithm based on topology", 《JOURNAL OF PHYSICS: CONFERENCE SERIES》, vol. 1544, no. 1, 31 May 2020 (2020-05-31), pages 12 - 35 *
冯吉红: "基于视频流的非机动车检测与违章行为识别关键技术研究", 《浙江工商大学硕士学位论文》, 31 December 2021 (2021-12-31), pages 25 - 54 *

Similar Documents

Publication Publication Date Title
CN108053427B (en) An improved multi-target tracking method, system and device based on KCF and Kalman
CN108062349B (en) Video surveillance method and system based on video structured data and deep learning
CN108009473B (en) Video structured processing method, system and storage device based on target behavior attribute
CN108052859B (en) A method, system and device for abnormal behavior detection based on clustered optical flow features
US8744125B2 (en) Clustering-based object classification
WO2021051601A1 (en) Method and system for selecting detection box using mask r-cnn, and electronic device and storage medium
CN104200466B (en) A kind of method for early warning and video camera
CN112614187A (en) Loop detection method, device, terminal equipment and readable storage medium
CN111800507A (en) Traffic monitoring method and traffic monitoring system
WO2021227586A1 (en) Traffic accident analysis method, apparatus, and device
CN109377694B (en) Monitoring method and system for community vehicles
US10115005B2 (en) Methods and systems of updating motion models for object trackers in video analytics
Jo Cumulative dual foreground differences for illegally parked vehicles detection
CN104794435A (en) Unmanned aerial vehicle to ground moving target detection method based on vision
CN109784254A (en) A kind of method, apparatus and electronic equipment of rule-breaking vehicle event detection
CN110969215A (en) Clustering method and device, storage medium and electronic device
CN114648748A (en) Motor vehicle illegal parking intelligent identification method and system based on deep learning
CN112433539A (en) Unmanned aerial vehicle scheduling method and system for processing high-speed traffic accidents and readable storage medium
CN114078319A (en) Method and device for detecting potential hazard site of traffic accident
CN112597924B (en) Electric bicycle track tracking method, camera device and server
CN114283361B (en) Method and device for determining status information, storage medium and electronic device
CN114842410A (en) Data detection method and device, storage medium and electronic device
CN110956097B (en) Method and module for extracting occlusion human body, and scene conversion method and device
CN117237418A (en) Moving object detection method and system based on deep learning
CN106921846A (en) Video mobile terminal legacy detection means

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination