[go: up one dir, main page]

CN113723176B - A target object determination method, device, storage medium and electronic device - Google Patents

A target object determination method, device, storage medium and electronic device Download PDF

Info

Publication number
CN113723176B
CN113723176B CN202110812392.1A CN202110812392A CN113723176B CN 113723176 B CN113723176 B CN 113723176B CN 202110812392 A CN202110812392 A CN 202110812392A CN 113723176 B CN113723176 B CN 113723176B
Authority
CN
China
Prior art keywords
processing
area
target
region
recognition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110812392.1A
Other languages
Chinese (zh)
Other versions
CN113723176A (en
Inventor
彭垚
侯仁政
赵之健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Shanma Data Technology Co ltd
Shanghai Supremind Intelligent Technology Co Ltd
Original Assignee
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 Shanghai Supremind Intelligent Technology Co Ltd filed Critical Shanghai Supremind Intelligent Technology Co Ltd
Priority to CN202110812392.1A priority Critical patent/CN113723176B/en
Publication of CN113723176A publication Critical patent/CN113723176A/en
Application granted granted Critical
Publication of CN113723176B publication Critical patent/CN113723176B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/243Classification techniques relating to the number of classes
    • G06F18/2431Multiple classes
    • 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

Landscapes

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

Abstract

本发明实施例提供了一种目标对象确定方法、装置、存储介质和电子装置,涉及对象识别技术的技术领域。其方法包括:获取连续帧的目标图像;对所述目标图像进行对象类型过滤处理,以得到目标处理区域;对所述目标处理区域进行区域特征过滤处理,以得到第一识别区域;基于预设的运动特征条件,对所述第一识别区域进行对象运动特征检测处理,并将所述第一识别区域中包含的满足运动特征条件的初始对象作为第一对象;对所述第一对象进行像素差异识别处理;在处理结果为所述第一对象满足像素差异条件的情况下,将所述第一对象确定为所述目标对象。通过本发明,解决了对象识别精度低的问题,进而达到了提高对象识别精度和识别效率的效果。

Figure 202110812392

Embodiments of the present invention provide a target object determination method, device, storage medium and electronic device, which relate to the technical field of object recognition technology. The method includes: acquiring target images of consecutive frames; performing object type filtering processing on the target image to obtain a target processing area; performing regional feature filtering processing on the target processing area to obtain a first recognition area; The motion feature condition of the first recognition area is subjected to object motion feature detection processing, and the initial object that satisfies the motion feature condition contained in the first recognition area is used as the first object; Difference recognition processing; in the case that the processing result is that the first object satisfies the pixel difference condition, determining the first object as the target object. Through the present invention, the problem of low object recognition accuracy is solved, thereby achieving the effect of improving the object recognition accuracy and recognition efficiency.

Figure 202110812392

Description

一种目标对象确定方法、装置、存储介质和电子装置A target object determination method, device, storage medium and electronic device

技术领域technical field

本发明实施例涉及图像识别领域,具体而言,涉及一种目标对象确定方法、装置、存储介质及电子装置。Embodiments of the present invention relate to the field of image recognition, and in particular, to a target object determination method, device, storage medium, and electronic device.

背景技术Background technique

随着我国经济的发展,目标对象识别技术被应用到多个领域,但是,目前的目标对象识别技术一般是通过像素识别或轨迹预判的方式对目标区域的目标对象进行识别的,这种识别方式在目标对象的像素与周围环境的像素区别较小,或目标对象处于静止状态,或目标对象所处的环境噪音光照等影响因素较强时,将会对目标对象的识别结果造成影响。With the development of my country's economy, target object recognition technology has been applied to many fields. However, the current target object recognition technology generally recognizes the target object in the target area through pixel recognition or trajectory prediction. The method will affect the recognition result of the target object when the difference between the pixels of the target object and the pixels of the surrounding environment is small, or the target object is in a static state, or the environmental noise and illumination where the target object is located are strong.

例如,在交通识别领域中,现有的抛洒物智能检测装置的检测方法大多依赖于前背景分离技术来捕捉前景,然后设置时间阈值确定是否产生抛洒物,这种方式在道路堵车状态下,当车辆之间或车辆与环境之间的像素接近时,容易出现车辆误检的情况,或受光照反射、噪声影响,容易导致伪前景,从而导致静止状态的抛洒物无法被检出的抛洒物的识别精度低的问题。For example, in the field of traffic recognition, most of the existing detection methods of the intelligent detection device for thrown objects rely on the front-background separation technology to capture the foreground, and then set a time threshold to determine whether the thrown objects are generated. When the pixels between vehicles or between vehicles and the environment are close to each other, it is prone to false detection of vehicles, or it is easily affected by light reflection and noise, which can easily lead to false foregrounds, resulting in the identification of projectiles that cannot be detected in the static state. problem of low precision.

而目前针对上述问题,尚未有较好的处理办法。At present, there is no better solution to the above problems.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种目标对象识别方法、装置、存储介质及电子装置,以至少解决相关技术中目标对象识别精度低的问题。Embodiments of the present invention provide a target object recognition method, device, storage medium, and electronic device, so as to at least solve the problem of low target object recognition accuracy in the related art.

根据本发明的一个实施例,提供了一种目标对象确定方法,包括:According to an embodiment of the present invention, a method for determining a target object is provided, including:

获取连续帧的目标图像;Get the target image of consecutive frames;

对所述目标图像进行对象类型过滤处理,以得到目标处理区域;Performing object type filtering processing on the target image to obtain a target processing area;

对所述目标处理区域进行区域特征过滤处理,以得到第一识别区域,其中,所述目标处理区域包括所述第一识别区域;Performing regional feature filtering processing on the target processing area to obtain a first recognition area, wherein the target processing area includes the first recognition area;

基于预设的运动特征条件,对所述第一识别区域进行对象运动特征检测处理,并将所述第一识别区域中包含的满足运动特征条件的初始对象作为第一对象;Based on the preset motion feature conditions, object motion feature detection processing is performed on the first recognition area, and the initial object included in the first recognition area that satisfies the motion feature conditions is used as the first object;

对所述第一对象进行像素差异识别处理;performing pixel difference recognition processing on the first object;

在处理结果为所述第一对象满足像素差异条件的情况下,将所述第一对象确定为所述目标对象。When the processing result is that the first object satisfies the pixel difference condition, the first object is determined as the target object.

在一个示例性实施例中,所述对所述目标图像进行对象类型过滤处理,以得到目标处理区域包括:In an exemplary embodiment, performing object type filtering processing on the target image to obtain the target processing area includes:

对所述目标图像进行环境类型分割处理,以得到第一处理区域;Performing environment type segmentation processing on the target image to obtain a first processing area;

对所述目标图像进行对象特征识别处理,以得到第二处理区域;Performing object feature recognition processing on the target image to obtain a second processing area;

基于所述第二处理区域,对所述第一处理区域进行区域重合过滤处理,以得到所述目标处理区域。Based on the second processing area, a region coincidence filtering process is performed on the first processing area to obtain the target processing area.

在一个示例性实施例中,所述基于所述第二处理区域,对所述第一处理区域进行区域重合过滤处理,以得到所述目标处理区域包括:In an exemplary embodiment, performing an area coincidence filtering process on the first processing area based on the second processing area to obtain the target processing area includes:

将所述第一处理区域与所述第二处理区域进行重合检测处理,以得到区域重合值;performing overlap detection processing on the first processing region and the second processing region to obtain a region coincidence value;

在确定所述区域重合值小于等于预设值的情况下,确定所述第一处理区域为所述目标处理区域;In the case of determining that the area coincidence value is less than or equal to a preset value, determine that the first processing area is the target processing area;

在确定所述区域重合值大于所述预设值的情况下,对所述第一处理区域进行第一过滤处理。When it is determined that the area coincidence value is greater than the preset value, a first filtering process is performed on the first processing area.

在一个示例性实施例中,所述基于预设的运动特征条件,对所述第一识别区域进行对象运动特征检测处理,并将所述第一识别区域中包含的满足运动特征条件的初始对象作为第一对象包括:In an exemplary embodiment, the object motion feature detection process is performed on the first recognition region based on the preset motion feature conditions, and the initial objects included in the first recognition region that meet the motion feature conditions are As the first object includes:

对所述初始对象进行运动状态检测处理;performing motion state detection processing on the initial object;

在确定所述初始对象处于静止状态的情况下,对所述初始对象进行静止时长检测处理;In the case of determining that the initial object is in a stationary state, perform a stationary duration detection process on the initial object;

在确定所述初始对象的静止时长满足阈值的情况下,将所述初始对象作为所述第一对象。When it is determined that the stationary duration of the initial object satisfies a threshold, the initial object is used as the first object.

在一个示例性实施例中,所述对所述目标处理区域进行区域特征过滤处理,以得到第一识别区域包括:In an exemplary embodiment, the performing region feature filtering processing on the target processing region to obtain the first identification region includes:

对所述目标处理区域进行面积特征检测处理,以获取所述目标处理区域的面积特征信息;Performing area feature detection processing on the target processing area to obtain area feature information of the target processing area;

对所述面积特征信息进行面积特征比较处理,在确定所述面积特征信息满足面积阈值的情况下,将所述目标处理区域作为所述第一识别区域;在确定所述面积特征信息不满足面积阈值的情况下,对所述目标处理区域进行第二过滤处理。Perform area feature comparison processing on the area feature information, and in the case that the area feature information is determined to meet the area threshold, the target processing area is used as the first identification area; when it is determined that the area feature information does not satisfy the area In the case of the threshold value, the second filtering process is performed on the target processing area.

在一个示例性实施例中,在所述对所述目标处理区域进行区域特征过滤处理,以得到第一识别区域之前,所述方法还包括:In an exemplary embodiment, before the region feature filtering process is performed on the target processing region to obtain the first identification region, the method further includes:

获取连续帧的目标图像;Get the target image of consecutive frames;

对所述目标图像进行图像目标检测处理,以得到所述目标处理区域。Perform image object detection processing on the target image to obtain the target processing area.

在一个示例性实施例中,在所述在处理结果为所述第一对象满足像素差异条件的情况下,将所述第一对象确定为所述目标对象之后,所述方法还包括:In an exemplary embodiment, when the processing result is that the first object satisfies the pixel difference condition, after determining the first object as the target object, the method further includes:

将所述目标对象存储至目标存储区域。The target object is stored in the target storage area.

根据本发明的另一个实施例,提供了一种目标对象确定装置,包括:According to another embodiment of the present invention, an apparatus for determining a target object is provided, comprising:

图像采集模块,用于获取连续帧的目标图像;The image acquisition module is used to acquire target images of consecutive frames;

对象类型过滤模块,用于对所述目标图像进行对象类型过滤处理,以得到目标处理区域;an object type filtering module for performing object type filtering processing on the target image to obtain a target processing area;

区域特征过滤模块,用于对所述目标处理区域进行区域特征过滤处理,以得到第一识别区域,其中,所述目标处理区域包括所述第一识别区域;a regional feature filtering module, configured to perform regional feature filtering processing on the target processing region to obtain a first recognition region, wherein the target processing region includes the first recognition region;

运动特征检测模块,用于基于预设的运动特征条件,对所述第一识别区域进行对象运动特征检测处理,并将所述第一识别区域中包含的满足运动特征条件的初始对象作为第一对象;A motion feature detection module, configured to perform object motion feature detection processing on the first recognition area based on preset motion feature conditions, and use the initial object included in the first recognition area that satisfies the motion feature conditions as the first object;

像素差异识别模块,用于对所述第一对象进行像素差异识别处理;a pixel difference recognition module, configured to perform pixel difference recognition processing on the first object;

目标对象确定模块,用于在处理结果为所述第一对象满足像素差异条件的情况下,将所述第一对象确定为所述目标对象。A target object determination module, configured to determine the first object as the target object when the processing result is that the first object satisfies the pixel difference condition.

根据本发明的又一个实施例,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。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.

通过本发明,由于先对连续帧的图像进行了对象类型处理,使得在进行目标对象识别过程中所受的干扰因素减少,而随后进行的区域特征过滤处理能够将不符合要求的目标处理区域进行过滤,从而减少了识别过程的计算量,而进行对象运动特征检测处理能够避免对静止对象的错误识别,提高识别的精确度,随后在此基础上,再进行像素差异识别则能够快速对目标对象进行精确识别,因此,可以解决目标对象识别精度低的问题,达到提高目标对象的识别精度和识别效率的效果。According to the present invention, since the object type processing is performed on the images of consecutive frames first, the interference factors in the process of target object recognition are reduced, and the area feature filtering processing performed subsequently can perform the target processing area that does not meet the requirements. Filtering, thereby reducing the amount of calculation in the recognition process, and performing object motion feature detection processing can avoid false recognition of stationary objects and improve the accuracy of recognition. Therefore, the problem of low recognition accuracy of the target object can be solved, and the effect of improving the recognition accuracy and recognition efficiency of the target object can be achieved.

附图说明Description of drawings

图1是本发明实施例的一种目标对象确定方法的移动终端的硬件结构框图;1 is a block diagram of a hardware structure of a mobile terminal of a method for determining a target object according to an embodiment of the present invention;

图2是根据本发明实施例的一种目标对象确定方法的流程图;2 is a flowchart of a method for determining a target object according to an embodiment of the present invention;

图3是根据本发明实施例的一种目标对象确定装置的结构框图;3 is a structural block diagram of an apparatus for determining a target object according to an embodiment of the present invention;

图4是根据本发明具体实施例的流程框图;Fig. 4 is a flow chart according to a specific embodiment of the present invention;

图5是根据本发明具体实施例的结构示意图。FIG. 5 is a schematic structural diagram according to a specific 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 the present 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 method for determining a target object 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 ) processor 102 (the processor 102 may include, but is not limited to, a processing device 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 further 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 method for determining a target object in an embodiment of the present invention, the processor 102 runs the computer program stored in the memory 104, Thereby, various functional applications and data processing are performed, that is, the above-mentioned method is realized. 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.

在本实施例中提供了一种目标对象确定方法,图2是根据本发明实施例的一种目标对象确定方法的流程图,如图2所示,该流程包括如下步骤:A method for determining a target object is provided in this embodiment. FIG. 2 is a flowchart of a method for determining a target object according to an embodiment of the present invention. As shown in FIG. 2 , the process includes the following steps:

步骤S202,获取连续帧的目标图像;Step S202, acquiring target images of consecutive frames;

在本实施例中,获取连续帧的目标图像是为了能够通过对连续帧的图像进行比对识别,从而判断目标图像中的目标对象是否满足运动条件,提高识别精度。In this embodiment, the purpose of acquiring the target images of consecutive frames is to compare and identify the images of the consecutive frames, so as to determine whether the target object in the target images meets the motion condition, and improve the recognition accuracy.

其中,连续帧的目标图像可以(但不限于)是连续两帧,也可以是连续两帧以上的图像,目标图像可以(但不限于)是照片,也可与是视频,还可以是其它类型的多媒体图像数据。Wherein, the target image of consecutive frames may be (but not limited to) two consecutive frames, or may be images of more than two consecutive frames, and the target image may be (but not limited to) a photo, a video, or other types of images. multimedia image data.

需要说明的是,目标对象可以(但不限于)是路面、天空、人、车、抛洒物等其它事物,其中,抛洒物可以是塑料袋、纸屑、易拉罐等固态或非固态的事物。It should be noted that the target object can be (but not limited to) other things such as road, sky, people, cars, and throwing objects, wherein the throwing objects can be solid or non-solid things such as plastic bags, paper scraps, and cans.

步骤S204,对目标图像进行对象类型过滤处理,以得到目标处理区域;Step S204, performing object type filtering processing on the target image to obtain the target processing area;

在本实施例中,对目标图像进行对象类型过滤处理是为了将包含非目标对象的区域进行过滤,从而减少识别过程中的数据处理量,提高目标对象识别效率。In this embodiment, the object type filtering process is performed on the target image to filter the area containing non-target objects, thereby reducing the amount of data processing in the recognition process and improving the target object recognition efficiency.

其中,对象类型过滤处理可以(但不限于)是对通过不同方式识别得到的区域进行比对,随后将包含非目标对象的区域进行过滤,也可以是对目标图像中包含的对象进行框选以确定初始的识别区域,随后再对框选的对象进行识别过滤,还可以通过其它方式进行过滤;目标处理区域可以是方形、圆形或其它多边形的标识框区域,也可以是从目标图像中截取的局部图像,还可以是其它形式的区域。The object type filtering process may (but is not limited to) compare regions identified through different methods, and then filter regions containing non-target objects, or may select objects included in the target image to Determine the initial recognition area, and then perform recognition and filtering on the selected objects, and can also filter in other ways; the target processing area can be a square, circular or other polygonal identification frame area, or it can be intercepted from the target image. It can also be other forms of regions.

例如,将测试视频流的每帧图像输入到训练好的MASK-RCNN或其他实例分割模型中,以通过实例分割模型将目标图像的每个像素点分为路面、天空、人、车、抛洒物、其他共6类含有疑似抛洒物的多个不规则区域,再用训练好的人、车检测yolov5深度学习检测模型,对图像进行检测,以得到图像中人、车矩形区域,再将多个不规则区域与人、车矩形区域进行比对,再确定不规则区域与人、车矩形区域有重合的情况下,则剔除该抛洒物分割区域,从而得到与人、车不重合的不规则抛洒物区域,该区域即为抛洒物预触发区域(相当于前述的目标处理区域)。For example, each frame image of the test video stream is input into the trained MASK-RCNN or other instance segmentation model to classify each pixel of the target image into road, sky, people, cars, throwing objects through the instance segmentation model , a total of 6 other irregular areas containing suspected thrown objects, and then use the trained yolov5 deep learning detection model to detect people and vehicles to detect the image to obtain the rectangular area of people and vehicles in the image, and then multiple The irregular area is compared with the rectangular areas of people and vehicles, and if it is determined that the irregular area overlaps with the rectangular areas of people and vehicles, the divided area of the throwing object is eliminated, so as to obtain irregular throwing that does not overlap with people and vehicles. Object area, this area is the pre-trigger area of the projectile (equivalent to the aforementioned target processing area).

步骤S206,对目标处理区域进行区域特征过滤处理,以得到第一识别区域,其中,目标处理区域包括第一识别区域;Step S206, performing regional feature filtering processing on the target processing area to obtain a first recognition area, wherein the target processing area includes the first recognition area;

在本实施例中,对区域进行过滤是为了将过大和过小的对象进行过滤,从而减少识别过程中的计算量,提高识别效率;同时减少非目标对象的干扰,提高识别精度。In this embodiment, the area is filtered to filter objects that are too large and too small, thereby reducing the amount of calculation in the recognition process and improving the recognition efficiency; at the same time, reducing the interference of non-target objects and improving the recognition accuracy.

其中,区域特征可以(但不限于)是目标处理区域的大小、格式、像素等,区域特征过滤处理可以(但不限于)是将过大及过小的目标过滤掉;第一识别区域可以(但不限于)是有多个,也可以是有一个。Wherein, the regional feature can be (but not limited to) the size, format, pixel, etc. of the target processing area, and the regional feature filtering process can (but is not limited to) filter out objects that are too large and too small; the first recognition region can be ( But not limited to) there may be more than one, or there may be one.

需要说明的是,在进行目标处理区域确定的过程中,目标处理区域与目标对象的之间的空间较小,因而目标处理区域的大小可以反应目标对象的大小,因此通过将不满足大小要求的目标处理区域进行过滤即可将非目标对象进行过滤。It should be noted that in the process of determining the target processing area, the space between the target processing area and the target object is small, so the size of the target processing area can reflect the size of the target object. The target processing area can be filtered to filter the non-target objects.

步骤S208,基于预设的运动特征条件,对第一识别区域进行对象运动特征检测处理,并将第一识别区域中包含的满足运动特征条件的初始对象作为第一对象;Step S208, based on the preset motion feature conditions, perform object motion feature detection processing on the first recognition area, and use the initial object included in the first recognition area that meets the motion feature conditions as the first object;

在本实施例中,确定初始对象的运动状态是为了根据不同需求对不同运动状态的对象进行识别,从而适应不同的识别环境。In this embodiment, determining the motion state of the initial object is to recognize objects with different motion states according to different requirements, so as to adapt to different recognition environments.

例如,对位于路面且处于静止状态的抛洒物进行识别,或对处于抛洒运动过程中的物体进行识别等。For example, it can identify the throwing objects that are located on the road and are in a stationary state, or identify objects that are in the process of throwing and moving.

其中,运动特征条件包括静止时长、在连续帧的图像中的位置变化、线速度大小及方向、角速度大小、动作时长等条件;初始对象可以(但不限于)是塑料袋、纸屑、易拉罐等固态或非固态、运动或静止的抛洒物。Among them, the motion feature conditions include static duration, position changes in consecutive frames of images, linear velocity and direction, angular velocity, action duration and other conditions; the initial object can be (but not limited to) plastic bags, paper scraps, cans, etc. Solid or non-solid, moving or stationary projectiles.

步骤S2010,对第一对象进行像素差异识别处理;Step S2010, performing pixel difference identification processing on the first object;

在本实施例中,对第一对象进行像素差异识别处理是为了将第一对象与第一对象所在的环境进行区分,从而避免因环境因素(例如地面、树木等)造成的识别错误,提高识别精度。In this embodiment, the pixel difference recognition process is performed on the first object to distinguish the first object from the environment where the first object is located, so as to avoid recognition errors caused by environmental factors (such as ground, trees, etc.), and improve recognition precision.

其中,像素差异识别处理可以(但不限于)是将第一对象的像素与环境像素进行比较,也可以是对第一对象的识别检测结果与环境识别结果进行比较,还可以是通过其他方式进行处理。Wherein, the pixel difference identification processing may be (but not limited to) comparing the pixels of the first object with the environment pixels, or may be comparing the identification detection result of the first object with the environment identification result, or may be performed in other ways. deal with.

步骤S2012,在处理结果为第一对象满足像素差异条件的情况下,将第一对象确定为目标对象。Step S2012, when the processing result is that the first object satisfies the pixel difference condition, determine the first object as the target object.

在本实施例中,当确认第一对象与周围环境的像素差异较大时,则可确定该第一对象为抛洒物。In this embodiment, when it is confirmed that the pixel difference between the first object and the surrounding environment is large, it can be determined that the first object is a throwing object.

例如,当确认疑似抛洒物与周围图像像素有明显差异时,则可排除路面对识别造成的影响,从而确定该物体为抛洒物,避免了环境因素对识别过程造成的影响,提高了识别精度。For example, when it is confirmed that the suspected thrown object is significantly different from the surrounding image pixels, the influence of the road surface on the recognition can be excluded, so that the object is determined to be a thrown object, which avoids the influence of environmental factors on the recognition process and improves the recognition accuracy. .

通过上述步骤,由于先对连续帧的图像进行了对象类型处理,使得在进行目标对象识别过程中所受的干扰因素减少,而随后进行的区域特征过滤处理能够将不符合要求的目标处理区域进行过滤,从而减少了识别过程的计算量,而进行对象运动特征检测处理能够避免对静止对象的错误识别,提高识别的精确度,随后在此基础上,再进行像素差异识别则能够快速对目标对象进行精确识别,解决了目标对象识别精度低的问题,提高了目标对象的识别精度和识别效率。Through the above steps, since the object type processing is first performed on the images of consecutive frames, the interference factors in the process of target object recognition are reduced, and the subsequent region feature filtering processing can be performed to target processing regions that do not meet the requirements. Filtering, thereby reducing the amount of calculation in the recognition process, and performing object motion feature detection processing can avoid false recognition of stationary objects and improve the accuracy of recognition. Accurate identification solves the problem of low identification accuracy of the target object, and improves the identification accuracy and identification efficiency of the target object.

在一个可选的实施例中,对目标图像进行对象类型过滤处理,以得到目标处理区域包括:In an optional embodiment, performing object type filtering processing on the target image to obtain the target processing area includes:

步骤S2042,对目标图像进行环境类型分割处理,以得到第一处理区域;Step S2042, performing environment type segmentation processing on the target image to obtain a first processing area;

在本实施例中,对目标图像进行环境类型分割是为了将包含不同内容的图像区域进行分离,从而能够对单独的区域进行识别处理,进而减少识别过程中的计算量。In this embodiment, the purpose of performing environment type segmentation on the target image is to separate image regions containing different contents, so that individual regions can be identified, thereby reducing the amount of calculation in the identification process.

其中,进行环境类型分割处理可以是通过预设的神经网络模型进行切割的,也可以是通过预定的分割算法实现的,还可以是通过其它方式实现的;第一处理区域可以(但不限于)是一个,也可以是至少两个;第一处理区域可以是规则的多边形或圆形,如方形、三角形、圆形、椭圆形等,也可以是不规则的多边形。The environment type segmentation processing may be performed by a preset neural network model, or by a predetermined segmentation algorithm, or by other methods; the first processing area may be (but not limited to) is one, or at least two; the first processing area may be a regular polygon or circle, such as a square, triangle, circle, ellipse, etc., or an irregular polygon.

例如,将测试视频流的每帧图像输入到训练好的MASK-RCNN或其他实例分割模型中,以通过实例分割模型将目标图像的每个像素点分为路面、天空、人、车、抛洒物、其他共6类处理区域。For example, each frame image of the test video stream is input into the trained MASK-RCNN or other instance segmentation model to classify each pixel of the target image into road, sky, people, cars, throwing objects through the instance segmentation model , and other 6 types of processing areas.

需要说明的时,使用图像实例分割算法提取抛洒物区域,还能够避免背景建模不稳定导致的误检。When it needs to be explained, using the image instance segmentation algorithm to extract the spill area can also avoid false detection caused by unstable background modeling.

步骤S2044,对目标图像进行对象特征识别处理,以得到第二处理区域;Step S2044, performing object feature recognition processing on the target image to obtain a second processing area;

在本实施例中,对目标图像进行对象特征识别是为了确定目标图像中包含非目标对象的区域,从而在后续处理过程中将包含非目标对象的区域进行筛选剔除。In this embodiment, the object feature recognition is performed on the target image to determine the region in the target image that contains the non-target object, so that the region containing the non-target object is screened out in the subsequent processing process.

其中,对象特征识别处理可以是确认目标图像中人、车等非目标对象的区域,也可以是确建筑、树木等非目标对象的区域,还可以是确认其它区域,第二处理区域可以(但不限于)是一个,也可以是至少两个;第一处理区域可以是规则的多边形或圆形,如方形、三角形、圆形、椭圆形等,也可以是不规则的多边形。Among them, the object feature recognition processing may be to confirm the area of non-target objects such as people and cars in the target image, or it may be to confirm the area of non-target objects such as buildings and trees, and it may also be to confirm other areas. The second processing area may (but It is not limited to one, but can also be at least two; the first processing area can be a regular polygon or circle, such as a square, triangle, circle, ellipse, etc., or an irregular polygon.

例如,用训练好的人、车检测yolov5深度学习检测模型,对图像进行检测,得到图像中人、车矩形区域。For example, using the trained yolov5 deep learning detection model to detect people and cars, detect the image to obtain the rectangular area of people and cars in the image.

需要说明的是,加入人车检测模型,是为了过滤人车误报的情况,特别是过滤堵车情况下车辆被误检为抛洒物/遗留物的情况。It should be noted that the addition of the human-vehicle detection model is to filter out the false positives of people and vehicles, especially when the vehicle is mistakenly detected as a thrown object/remaining object in a traffic jam.

步骤S2046,基于第二处理区域,对第一处理区域进行区域重合过滤处理,以得到目标处理区域。Step S2046, based on the second processing area, perform area coincidence filtering processing on the first processing area to obtain a target processing area.

在本实施例中,对第一处理区域进行区域重合过滤是将与第二处理区域重合的第一处理区域进行过滤,以减少包含非目标对象的的区域,减少计算量。In this embodiment, the area overlap filtering on the first processing area is to filter the first processing area that overlaps with the second processing area, so as to reduce the area containing non-target objects and reduce the amount of calculation.

例如,如果第一处理区域与第二处理区域有重合,则剔除该第一处理区域,得到与人、车不重合的抛洒物区域,即为抛洒物预触发区域。For example, if the first processing area overlaps with the second processing area, the first processing area is eliminated to obtain a throwing object area that does not overlap with people and vehicles, that is, the throwing object pre-triggering area.

需要说明的是,步骤S2042和步骤S2044的执行顺序是可以互换的,即可以先执行步骤S2044,然后再执行S2042。It should be noted that the execution order of step S2042 and step S2044 can be interchanged, that is, step S2044 may be executed first, and then step S2042 may be executed.

在一个可选的实施例中,基于第二处理区域,对第一处理区域进行区域重合过滤处理,以得到目标处理区域包括:In an optional embodiment, based on the second processing area, performing area coincidence filtering processing on the first processing area to obtain the target processing area includes:

步骤S20462,将第一处理区域与第二处理区域进行重合检测处理,以得到区域重合值;Step S20462, performing overlap detection processing on the first processing region and the second processing region to obtain a region coincidence value;

步骤S20464,在确定区域重合值小于等于预设值的情况下,确定第一处理区域为目标处理区域;Step S20464, in the case that the determined area coincidence value is less than or equal to the preset value, determine the first processing area as the target processing area;

步骤S20466,在确定区域重合值大于预设值的情况下,对第一处理区域进行第一过滤处理。Step S20466, in the case that the determined area coincidence value is greater than the preset value, perform a first filtering process on the first processing area.

在本实施例中,在确定区域重合值大于预设值,则认为该第一处理区域与第二处理区域重合度较大,所包含的非目标对象较多,因而对其进行过滤处理。In this embodiment, when it is determined that the area coincidence value is greater than the preset value, it is considered that the first processing area and the second processing area have a greater degree of coincidence and contain more non-target objects, so they are filtered.

其中,重合检测处理可以(但不限于)是计算第一处理区域与第二处理区域之间的重合的像素量或计算第一处理区域与第二处理区域之间的重合的边界量,也可以是计算计算第一处理区域与第二处理区域之间的重合的面积大小等;对第一处理区域进行第一过滤处理可以(但不限于)是将第一处理区域进行剔除或进行其它处理。Wherein, the coincidence detection process may be (but not limited to) the calculation of the overlapped pixel quantity between the first processing area and the second processing area or the calculation of the overlapped boundary quantity between the first processing area and the second processing area, or It is to calculate the overlapping area between the first processing area and the second processing area, etc. The first filtering processing on the first processing area may (but is not limited to) exclude the first processing area or perform other processing.

在一个可选的实施例中,基于预设的运动特征条件,对第一识别区域进行对象运动特征检测处理,并将第一识别区域中包含的满足运动特征条件的初始对象作为第一对象包括:In an optional embodiment, based on a preset motion feature condition, an object motion feature detection process is performed on the first recognition area, and an initial object included in the first recognition area that satisfies the motion feature condition is used as the first object including: :

步骤S2082,对初始对象进行运动状态检测处理;Step S2082, performing motion state detection processing on the initial object;

步骤S2084,在确定初始对象处于静止状态的情况下,对初始对象进行静止时长检测处理;Step S2084, in the case of determining that the initial object is in a static state, perform static duration detection processing on the initial object;

步骤S2086,在确定初始对象的静止时长满足阈值的情况下,将初始对象作为第一对象。Step S2086, in the case that it is determined that the stationary duration of the initial object satisfies the threshold, the initial object is taken as the first object.

在本实施例中,运动状态检测可以是通过对连续帧的目标图像进行检测,当初始对象在连续帧的目标图像中的位置无变化的情况下,则确认目标对象处于静止状态,否则处于运动状态;而在确定初始对象处于静止状态之后再进行静止时长的阈值判断,是为了避免物体受周围环境影响发生二次运动造成的判断错误,例如塑料被风吹动等。In this embodiment, the motion state detection may be performed by detecting the target images of consecutive frames. When the position of the initial object in the target images of consecutive frames does not change, it is confirmed that the target object is in a static state, otherwise it is in motion. After determining that the initial object is in a static state, the threshold value of the static duration is determined to avoid the judgment error caused by the secondary movement of the object affected by the surrounding environment, such as plastic being blown by the wind.

在一个可选的实施例中,对目标处理区域进行区域特征过滤处理,以得到第一识别区域包括:In an optional embodiment, performing area feature filtering processing on the target processing area to obtain the first identification area includes:

步骤S2062,对目标处理区域进行面积特征检测处理,以获取目标处理区域的面积特征信息;Step S2062, performing area feature detection processing on the target processing area to obtain area feature information of the target processing area;

步骤S2064,对面积特征信息进行面积特征比较处理,在确定面积特征信息满足面积阈值的情况下,将目标处理区域作为第一识别区域;在确定面积特征信息不满足面积阈值的情况下,对目标处理区域进行第二过滤处理。Step S2064, performing area feature comparison processing on the area feature information, and in the case that the area feature information satisfies the area threshold, the target processing area is used as the first identification area; when it is determined that the area feature information does not meet the area threshold, the target processing area is determined. The processing area is subjected to a second filtering process.

在本实施例中,对目标处理区域进行面积特征检测处理是为了将过大或过小的区域进行过滤,以减少过大或过小的区域中的非目标对象对识别过程造成的干扰,提高检测效率。In this embodiment, the area feature detection processing is performed on the target processing area in order to filter the area that is too large or too small, so as to reduce the interference caused by the non-target objects in the area that is too large or too small to the recognition process, and improve the detection efficiency.

在一个可选的实施例中,在对目标处理区域进行区域特征过滤处理,以得到第一识别区域之前,该方法还包括:In an optional embodiment, before the region feature filtering process is performed on the target processing region to obtain the first identification region, the method further includes:

步骤S202,获取连续帧的目标图像;Step S202, acquiring target images of consecutive frames;

步骤S2040,对目标图像进行图像目标检测处理,以得到目标处理区域。Step S2040, performing image object detection processing on the target image to obtain a target processing area.

在本实施例中,直接通过图像目标检测处理确定目标处理区域,能够避免因对目标图像进行切割造成的数据分类过程,从而提高图像识别效率。In this embodiment, the target processing area is directly determined by the image target detection processing, which can avoid the data classification process caused by cutting the target image, thereby improving the image recognition efficiency.

其中,图像目标检测处理可以是通过预设的算法实现的,也可以是通过神经网络模型实现的,还可以是通过其它方式实现的。The image target detection processing may be implemented by a preset algorithm, or by a neural network model, or by other means.

在一个可选的实施例中,在在处理结果为第一对象满足像素差异条件的情况下,将第一对象确定为目标对象之后,该方法还包括:In an optional embodiment, when the processing result is that the first object satisfies the pixel difference condition, after the first object is determined as the target object, the method further includes:

步骤S2016,将目标对象存储至目标存储区域。Step S2016, the target object is stored in the target storage area.

在本实施例中,将目标对象存储至目标存储区域是为了方便后期进行信息回溯,实现对数据的管理。In this embodiment, the purpose of storing the target object in the target storage area is to facilitate information backtracking at a later stage and realize data management.

其中,目标存储区域可以(但不限于)是硬盘、flash等内部存储设备,也可以是管理云等外部存储设备。The target storage area may be (but not limited to) an internal storage device such as a hard disk and flash, or an external storage device such as a management cloud.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如 ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, 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.) execute the methods described in the various embodiments of the present invention.

在本实施例中还提供了一种目标对象确定装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。This embodiment also provides an apparatus for determining a target object, 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.

图3是根据本发明实施例的目标对象去欸的那个装置的结构框图,如图3所示,该装置包括:Fig. 3 is a structural block diagram of the apparatus for removing a target object according to an embodiment of the present invention. As shown in Fig. 3, the apparatus includes:

图像采集模块32,用于获取连续帧的目标图像;The image acquisition module 32 is used for acquiring target images of consecutive frames;

对象类型过滤模块34,用于对目标图像进行对象类型过滤处理,以得到目标处理区域;The object type filtering module 34 is used to perform object type filtering processing on the target image to obtain the target processing area;

区域特征过滤模块36,用于对目标处理区域进行区域特征过滤处理,以得到第一识别区域,其中,目标处理区域包括第一识别区域;The regional feature filtering module 36 is configured to perform regional feature filtering processing on the target processing region to obtain a first recognition region, wherein the target processing region includes the first recognition region;

运动特征检测模块38,用于基于预设的运动特征条件,对第一识别区域进行对象运动特征检测处理,并将第一识别区域中包含的满足运动特征条件的初始对象作为第一对象;The motion feature detection module 38 is configured to perform object motion feature detection processing on the first recognition area based on preset motion feature conditions, and use the initial object that meets the motion feature conditions contained in the first recognition area as the first object;

像素差异识别模块310,用于对第一对象进行像素差异识别处理;a pixel difference identification module 310, configured to perform pixel difference identification processing on the first object;

目标对象确定模块312,用于在处理结果为第一对象满足像素差异条件的情况下,将第一对象确定为目标对象。The target object determination module 312 is configured to determine the first object as the target object when the processing result is that the first object satisfies the pixel difference condition.

在一个可选的实施例中,对象类型过滤模块34包括:In an optional embodiment, the object type filtering module 34 includes:

类型分割单元342,用于对目标图像进行环境类型分割处理,以得到第一处理区域;a type segmentation unit 342, configured to perform environment type segmentation processing on the target image to obtain a first processing area;

特征识别单元344,用于对目标图像进行对象特征识别处理,以得到第二处理区域;The feature recognition unit 344 is used to perform object feature recognition processing on the target image to obtain the second processing area;

重合过滤单元346,用于基于第二处理区域,对第一处理区域进行区域重合过滤处理,以得到目标处理区域。The coincidence filtering unit 346 is configured to perform area coincidence filtering processing on the first processing area based on the second processing area, so as to obtain the target processing area.

在一个可选的实施例中,重合过滤单元346包括:In an optional embodiment, the coincidence filtering unit 346 includes:

重合检测子单元3462,用于将第一处理区域与第二处理区域进行重合检测处理,以得到区域重合值;The coincidence detection subunit 3462 is used to perform the coincidence detection process on the first processing area and the second processing area to obtain the area coincidence value;

区域确定子单元3464,用于在确定区域重合值小于等于预设值的情况下,确定第一处理区域为目标处理区域;The area determination subunit 3464 is used to determine the first processing area as the target processing area under the condition that the determined area coincidence value is less than or equal to the preset value;

第一过滤子单元3466,用于在确定区域重合值大于预设值的情况下,对第一处理区域进行第一过滤处理。The first filtering subunit 3466 is configured to perform a first filtering process on the first processing region when the determined region coincidence value is greater than a preset value.

在一个可选的实施例中,运动特征检测模块38包括:In an optional embodiment, the motion feature detection module 38 includes:

运动状态检测单元382,用于对初始对象进行运动状态检测处理;A motion state detection unit 382, configured to perform motion state detection processing on the initial object;

时长检测单元384,用于在确定初始对象处于静止状态的情况下,对初始对象进行静止时长检测处理;A duration detection unit 384, configured to perform stationary duration detection processing on the initial object when it is determined that the initial object is in a stationary state;

第一对象确定单元386,用于在确定初始对象的静止时长满足阈值的情况下,将初始对象作为第一对象。The first object determining unit 386 is configured to use the initial object as the first object when it is determined that the stationary duration of the initial object satisfies the threshold.

在一个可选的实施例中,区域特征过滤模块36包括:In an optional embodiment, the regional feature filtering module 36 includes:

面积检测单元362,用于对目标处理区域进行面积特征检测处理,以获取目标处理区域的面积特征信息;The area detection unit 362 is used to perform area feature detection processing on the target processing area to obtain the area feature information of the target processing area;

特征比较单元364,用于对面积特征信息进行面积特征比较处理,在确定面积特征信息满足面积阈值的情况下,将目标处理区域作为第一识别区域;在确定面积特征信息不满足面积阈值的情况下,对目标处理区域进行第二过滤处理。The feature comparison unit 364 is configured to perform area feature comparison processing on the area feature information, and when it is determined that the area feature information satisfies the area threshold, the target processing area is used as the first identification area; when it is determined that the area feature information does not meet the area threshold Next, a second filtering process is performed on the target processing area.

在一个可选的实施例中,该装置还包括:In an optional embodiment, the device further includes:

图像采集单元302,用于在对目标处理区域进行区域特征过滤处理,以得到第一识别区域之前,获取连续帧的目标图像;The image acquisition unit 302 is configured to acquire target images of consecutive frames before performing regional feature filtering processing on the target processing area to obtain the first recognition area;

目标检测模块340,用于对目标图像进行图像目标检测处理,以得到目标处理区域。The target detection module 340 is configured to perform image target detection processing on the target image to obtain the target processing area.

在一个可选的实施例中,该装置还包括:In an optional embodiment, the device further includes:

存储模块316,用于在处理结果为第一对象满足像素差异条件的情况下,将第一对象确定为目标对象之后将目标对象存储至目标存储区域。The storage module 316 is configured to store the target object in the target storage area after determining the first object as the target object when the processing result is that the first object satisfies the pixel difference condition.

需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above modules can be implemented by software or hardware, and the latter can be implemented in the following ways, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination The forms are located in different processors.

下面结合具体实施例对本发明进行说明。The present invention will be described below with reference to specific embodiments.

如图4所示,本实施例主要包括以下步骤:As shown in Figure 4, this embodiment mainly includes the following steps:

步骤S401,图像实例分割部分,包括搜集大量含有抛洒物的图像,以及利用搜集的图像训练MASK-RCNN或其他实例分割模型,该模型能够将图像每个像素点分为路面、天空、人、车、抛洒物、其他共6类。Step S401, the image instance segmentation part, including collecting a large number of images containing throwing objects, and using the collected images to train MASK-RCNN or other instance segmentation models, which can divide each pixel of the image into road, sky, people, and vehicles. , throwing objects, other a total of 6 categories.

步骤S402,将测试视频流的每帧图像输入到实例分割模型,可得到图像中含有疑似抛洒物的多个不规则区域。In step S402, each frame of the image of the test video stream is input into the instance segmentation model, and a plurality of irregular regions containing suspected thrown objects in the image can be obtained.

步骤S403,人车检测部分,包括用训练好的人、车检测yolov5深度学习检测模型,对图像进行检测,得到图像中人、车矩形区域;Step S403, the person and vehicle detection part, including using the trained yolov5 deep learning detection model to detect people and vehicles, detect the image, and obtain the rectangular area of people and vehicles in the image;

步骤S404,剔除人车区域部分,如果步骤S402得到的抛洒物分割区域与步骤S403检测到的人、车区域有重合,则剔除该抛洒物分割区域,以得到与人、车不重合的抛洒物区域,即为抛洒物预触发区域;Step S404, remove the part of the person and vehicle area, if the throwing object segmentation area obtained in step S402 overlaps with the person and vehicle area detected in step S403, then remove the throwing object segmentation area to obtain the throwing object that does not overlap with people and vehicles. area, which is the pre-trigger area of the projectile;

步骤S405,逻辑过滤部分,对步骤S404得到的抛洒物预触发区域依次进行区域大小过滤(过大及过小的目标都被过滤掉)、持续时间过滤(抛洒物需要在路面持续一段时间才认为是真正的抛洒物,只有多帧图像的同一位置始终存在预触发抛洒物才算真正抛洒物)、与区域周围像素差异(抛洒物需要与周围图像像素有明显差异,用于排除路面)等逻辑规则计算,判断是否区域中的对象是否为抛洒物;In step S405, the logic filtering part performs area size filtering on the pre-triggered area of the throwing object obtained in step S404 (oversized and too small targets are filtered out), duration filtering (the throwing object needs to be on the road for a period of time to be considered It is a real throwing object. Only the pre-triggered throwing object always exists in the same position of the multi-frame image is a real throwing object), and the difference with the pixels around the area (the throwing object needs to be significantly different from the surrounding image pixels, which is used to exclude the road) and other logic Rule calculation to determine whether the object in the area is a throwing object;

步骤S406,在确定为抛洒物的情况下,进行报警处理。In step S406, if it is determined that the object is thrown, an alarm process is performed.

对应的,如图5所示,为实现上述步骤,本实施例还提供高速抛洒物 /遗留物检测系统,该系统至少包括以下单元:Correspondingly, as shown in FIG. 5 , in order to realize the above steps, the present embodiment also provides a high-speed throwing object/remaining object detection system, which at least includes the following units:

图像获取单元51,用于视频流读入;Image acquisition unit 51, used for video stream reading;

高速抛洒物/遗留物检测单元52,用于通过算法实现高速抛洒物/遗留物检测;A high-speed thrown object/remaining object detection unit 52, which is used to realize high-speed thrown object/remaining object detection through an algorithm;

报警单元53,用于负责输出报警信息;The alarm unit 53 is used for outputting alarm information;

事件检索及查询单元54,用于事后检索及查询。The event retrieval and query unit 54 is used for post-event retrieval and query.

本发明的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。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 principles of the present invention shall be included within the protection scope of the present invention.

Claims (9)

1. A target object determination method, comprising:
acquiring target images of continuous frames;
carrying out object type filtering processing on the target image to obtain a target processing area;
performing regional characteristic filtering processing on the target processing region to obtain a first identification region, wherein the target processing region comprises the first identification region;
performing object motion feature detection processing on the first identification area based on a preset motion feature condition, and taking an initial object which meets the motion feature condition and is contained in the first identification area as a first object;
performing pixel difference recognition processing on the first object;
determining the first object as the target object in the case that the first object satisfies a pixel difference condition as a result of the processing;
wherein the performing object type filtering processing on the target image to obtain a target processing region includes: performing environment type segmentation processing on the target image to obtain a first processing area;
carrying out object feature recognition processing on the target image to obtain a second processing area;
and performing area superposition filtering processing on the first processing area based on the second processing area to obtain the target processing area.
2. The method of claim 1, wherein said performing a region-coincidence filtering process on the first processing region based on the second processing region to obtain the target processing region comprises:
carrying out coincidence detection processing on the first processing area and the second processing area to obtain an area coincidence value;
determining the first processing area as the target processing area under the condition that the area coincidence value is determined to be smaller than or equal to a preset value;
and under the condition that the area coincidence value is determined to be larger than the preset value, performing first filtering processing on the first processing area.
3. The method according to claim 1, wherein the performing object motion feature detection processing on the first recognition area based on a preset motion feature condition, and the taking an initial object included in the first recognition area and satisfying the motion feature condition as a first object comprises:
carrying out motion state detection processing on the initial object;
under the condition that the initial object is determined to be in a static state, carrying out static duration detection processing on the initial object;
taking the initial object as the first object when the static duration of the initial object is determined to meet a threshold.
4. The method according to claim 1, wherein the performing a region feature filtering process on the target processing region to obtain a first identified region comprises:
carrying out area characteristic detection processing on the target processing region to acquire area characteristic information of the target processing region;
performing area feature comparison processing on the area feature information, and taking the target processing region as the first identification region under the condition that the area feature information is determined to meet an area threshold; and under the condition that the area characteristic information is determined not to meet the area threshold value, performing second filtering processing on the target processing area.
5. The method according to claim 1, wherein before said performing a region feature filtering process on said target processing region to obtain a first identified region, said method further comprises:
acquiring target images of continuous frames;
and carrying out image target detection processing on the target image to obtain the target processing area.
6. The method according to claim 1, wherein after determining the first object as the target object in a case where the processing result is that the first object satisfies a pixel difference condition, the method further comprises:
and storing the target object to a target storage area.
7. A target object determination apparatus, comprising:
the image acquisition module is used for acquiring target images of continuous frames;
the object type filtering module is used for carrying out object type filtering processing on the target image to obtain a target processing area;
the regional characteristic filtering module is used for performing regional characteristic filtering processing on the target processing region to obtain a first identification region, wherein the target processing region comprises the first identification region;
the motion characteristic detection module is used for carrying out object motion characteristic detection processing on the first identification area based on a preset motion characteristic condition and taking an initial object which is contained in the first identification area and meets the motion characteristic condition as a first object;
the pixel difference identification module is used for carrying out pixel difference identification processing on the first object;
a target object determination module, configured to determine the first object as the target object if the processing result is that the first object satisfies a pixel difference condition;
wherein the object type filtering module comprises:
the type segmentation unit is used for carrying out environment type segmentation processing on the target image to obtain a first processing area; the characteristic identification unit is used for carrying out object characteristic identification processing on the target image to obtain a second processing area; and the overlapping filtering unit is used for carrying out area overlapping filtering processing on the first processing area based on the second processing area so as to obtain a target processing area.
8. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 6 when executed.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
CN202110812392.1A 2021-07-19 2021-07-19 A target object determination method, device, storage medium and electronic device Active CN113723176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110812392.1A CN113723176B (en) 2021-07-19 2021-07-19 A target object determination method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110812392.1A CN113723176B (en) 2021-07-19 2021-07-19 A target object determination method, device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113723176A CN113723176A (en) 2021-11-30
CN113723176B true CN113723176B (en) 2022-06-10

Family

ID=78673416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110812392.1A Active CN113723176B (en) 2021-07-19 2021-07-19 A target object determination method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113723176B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114501045A (en) * 2021-12-29 2022-05-13 浙江大华技术股份有限公司 Live broadcast method, live broadcast device, electronic device and storage medium
CN114252453A (en) * 2021-12-29 2022-03-29 清远加多宝草本植物科技有限公司 Detection system and detection method
CN116935027A (en) * 2022-03-29 2023-10-24 脸萌有限公司 Object identification method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109886219A (en) * 2019-02-26 2019-06-14 中兴飞流信息科技有限公司 Shed object detecting method, device and computer readable storage medium
CN111274982A (en) * 2020-02-04 2020-06-12 浙江大华技术股份有限公司 Method and device for identifying projectile and storage medium
CN112149649A (en) * 2020-11-24 2020-12-29 深圳市城市交通规划设计研究中心股份有限公司 Road spray detection method, computer equipment and storage medium
CN112465868A (en) * 2020-11-30 2021-03-09 浙江大华汽车技术有限公司 Target detection tracking method and device, storage medium and electronic device
CN112541395A (en) * 2020-11-13 2021-03-23 浙江大华技术股份有限公司 Target detection and tracking method and device, storage medium and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10586102B2 (en) * 2015-08-18 2020-03-10 Qualcomm Incorporated Systems and methods for object tracking

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109886219A (en) * 2019-02-26 2019-06-14 中兴飞流信息科技有限公司 Shed object detecting method, device and computer readable storage medium
CN111274982A (en) * 2020-02-04 2020-06-12 浙江大华技术股份有限公司 Method and device for identifying projectile and storage medium
CN112541395A (en) * 2020-11-13 2021-03-23 浙江大华技术股份有限公司 Target detection and tracking method and device, storage medium and electronic device
CN112149649A (en) * 2020-11-24 2020-12-29 深圳市城市交通规划设计研究中心股份有限公司 Road spray detection method, computer equipment and storage medium
CN112465868A (en) * 2020-11-30 2021-03-09 浙江大华汽车技术有限公司 Target detection tracking method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN113723176A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN109087510B (en) Traffic monitoring method and device
US11455805B2 (en) Method and apparatus for detecting parking space usage condition, electronic device, and storage medium
CN113723176B (en) A target object determination method, device, storage medium and electronic device
CN107609485B (en) Traffic sign identification method, storage medium, and processing device
WO2022105243A1 (en) Event detection method, apparatus, electronic device, and storage medium
CN113155173B (en) Perception performance evaluation method and device, electronic device and storage medium
CN112836683B (en) License plate recognition method, device, equipment and medium for portable camera equipment
CN110555347B (en) Vehicle target identification method and device with dangerous cargo-carrying behavior and electronic equipment
CN113160272B (en) Target tracking method and device, electronic equipment and storage medium
WO2021027944A1 (en) Position compliance recognition method and apparatus, storage medium and electronic apparatus
CN115423735A (en) Passenger flow volume statistical method and system
CN113837222A (en) Cloud-edge cooperative machine learning deployment application method and device for millimeter wave radar intersection traffic monitoring system
CN107704797A (en) Real-time detection method and system and equipment based on pedestrian in security protection video and vehicle
CN104361366B (en) License plate recognition method and license plate recognition device
WO2024159623A1 (en) Floating obstacle detection method and apparatus, electronic device, and storage medium
CN109727268A (en) Method for tracking target, device, computer equipment and storage medium
CN115100628B (en) Obstacle recognition method and device for automatic driving vehicle
Ng et al. Outdoor illegal parking detection system using convolutional neural network on Raspberry Pi
WO2024011889A1 (en) Information recognition method and apparatus, and storage medium
CN103106400B (en) A kind of method for detecting human face and device
CN110942008B (en) Deep learning-based face sheet information positioning method and system
CN118535459A (en) Road testing method and system for autonomous driving
Kaimkhani et al. UAV with Vision to Recognise Vehicle Number Plates
CN114283361B (en) Method and device for determining status information, storage medium and electronic device
CN116311157A (en) Obstacle recognition method and obstacle recognition model training method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20241212

Address after: 200210 building C, No. 888, Huanhu West 2nd Road, Lingang New Area, pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee after: SHANGHAI SHIMMA INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region after: China

Patentee after: Shanghai Shanma Data Technology Co.,Ltd.

Address before: 201306 building C, No. 888, Huanhu West 2nd Road, Lingang New District, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee before: SHANGHAI SHIMMA INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before: China