CN110288630B - Moving target ghost suppression method for background modeling - Google Patents

Moving target ghost suppression method for background modeling Download PDF

Info

Publication number
CN110288630B
CN110288630B CN201910569625.2A CN201910569625A CN110288630B CN 110288630 B CN110288630 B CN 110288630B CN 201910569625 A CN201910569625 A CN 201910569625A CN 110288630 B CN110288630 B CN 110288630B
Authority
CN
China
Prior art keywords
gray
frame
mask
image
partition
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
CN201910569625.2A
Other languages
Chinese (zh)
Other versions
CN110288630A (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.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
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 Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN201910569625.2A priority Critical patent/CN110288630B/en
Publication of CN110288630A publication Critical patent/CN110288630A/en
Application granted granted Critical
Publication of CN110288630B publication Critical patent/CN110288630B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/215Motion-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a moving target ghost suppression method for background modeling, which comprises the following steps: step 1: extracting a segmented binary image mask generated by a ViBe algorithm, a corresponding video frame and a gray image gray of the frame, wherein the frame is an RGB image, the gray is a gray image, and the mask, the frame and the gray are all width multiplied by height; step 2: frame segmentation, step 3: the mask foreground points are restrained, and the method has the advantages that: the invention can better overcome the ghost problem of the ViBe algorithm on the premise of uncomplicated background in the video sequence.

Description

Moving target ghost suppression method for background modeling
Technical Field
The invention relates to the technical field of automatic detection of video sequences, in particular to a moving target ghost suppression method for background modeling.
Background
With the development of the world, the number of cameras available worldwide has increased dramatically. This growth has resulted in a large increase in data, which means that video data cannot be stored or manually processed.
Moving object detection is an important research direction in the field of computer vision, is the basis of various subsequent advanced processes such as object classification, behavior understanding and the like, and has wide application in the fields of safety monitoring, intelligent transportation and the like. In the fields of computer vision monitoring by an intelligent video screen and the like, background modeling is a key technology and is the basis for realizing the detection and tracking of moving targets. Therefore, the method has important significance for the research of the visual screen background modeling.
Background modeling is fundamental work of sequence image analysis and is a hot problem for researchers at home and abroad at present. The modeling result has important influence on the subsequent processing of video image such as motion detection, moving target classification, tracking and behavior understanding. But due to the difference of practical application environments and the diversity of backgrounds, it is difficult to establish a good background sample. Therefore, in practical application, the design scheme needs to be optimized through different algorithms to obtain a better result.
Since 2011 publication of a paper of the ViBe algorithm, the ViBe algorithm is applied to moving target detection of a visual screen sequence, but the technique has a ghost problem (a detected moving object does not correspond to any real moving object). Ghost problems can lead to false positives by downstream technologies.
Disclosure of Invention
In order to overcome the ghost problem of the ViBe algorithm, the invention provides a ghost detection method.
The technical scheme of the invention is as follows:
a method for suppressing ghost of a moving object of background modeling comprises the following steps:
step 1: extracting a segmented binary image mask generated by a ViBe algorithm, a corresponding video frame and a gray image gray of the frame, wherein the frame is an RGB image, the gray is a gray image, and the mask, the frame and the gray are all width multiplied by height;
step 2: dividing the frame;
and step 3: mask foreground spots are suppressed.
The method for suppressing the ghosting of the moving object modeled by the background is characterized in that the step 2 specifically comprises the following steps:
step 2.1: detecting a gray edge by using an edge detection algorithm to obtain an edge image gray edge;
step 2.2: dividing the frame into N partitions by a watershed algorithm according to the gray edge, wherein each partition has MiEach pixel point, the coordinate in each partition is recorded in Ai={(rij,cij)|j∈[0,Mi-1]},i∈[0,N-1]Wherein r is not less than 0ij<height,0≤cij<width;
The method for suppressing the ghosting of the moving object modeled by the background is characterized in that the step 3 specifically comprises the following steps:
step 3.1: calculating the occupation ratio d of the foreground pixels of the partition according to the formulas (1) and (2)i
Figure BDA0002110589160000021
Figure BDA0002110589160000022
Wherein, I (·) represents an illustrative function, if the parameter is true, 1 is returned, otherwise 0 is returned; mask (r)ij,cij) Representing the binary image mask in coordinates (r)ij,cij) The gray value of (d);
step 3.2: for all the subareas AiI is 0,1, …, N-1, and is processed as follows: if d isiIf < D, the coordinate in the mask is (r)ij,cij) Is set to 0, (r)ij,cij)∈Ai(ii) a Wherein D is a threshold value.
The invention has the beneficial effects that: the invention can better overcome the problems of ghost and smear of the ViBe algorithm on the premise of uncomplicated background in the video sequence, and can extract the target area which obviously changes or moves in the video sequence.
Detailed Description
The following examples are given to illustrate specific embodiments of the present invention.
Step 1: and extracting a segmented binary image mask generated by the ViBe algorithm, a corresponding video frame and a gray image gray of the frame, wherein the frame is an RGB image, the gray is a gray image, and the mask, the frame and the gray are all width multiplied by height.
Step 2: the frame is segmented, and the specific steps are as follows:
step 2.1: detecting the gray edge by using an edge detection algorithm (such as Canny and sobel), and obtaining an edge image gray edge;
step 2.2: dividing the frame into N partitions by a watershed algorithm according to the gray edge, wherein each partition has MiEach pixel point, the coordinate in each partition is recorded in Ai={(rij,cij)|j∈[0,Mi-1]},i∈[0,N-1]Wherein r is not less than 0ij<height,0≤cij< width; wherein A isiDenotes the ith partition, AiIs a set containing all points within the partition; (r)ij,cij) And indicating the jth pixel point in the ith partition.
And step 3: inhibiting mask foreground spots, and specifically comprising the following steps:
step 3.1: calculating the occupation ratio d of the foreground pixels of the partition according to the formulas (1) and (2)i
Figure BDA0002110589160000023
Figure BDA0002110589160000024
Wherein, I (·) represents an illustrative function, if the parameter is true, 1 is returned, otherwise 0 is returned; mask (r)ij,cij) Representing the binary image mask in coordinates (r)ij,cij) The gray value of (d);
step 3.2: for all the subareas AiI is 0,1, …, N-1, and is processed as follows: if d isiIf < D, the coordinate in the mask is (r)ij,cij) Is set to 0, (r)ij,cij)∈Ai(ii) a Where D is the threshold, in this example, D is 0.2.
The embodiments described in this specification are merely illustrative of implementations of the inventive concept and the scope of the present invention should not be considered limited to the specific forms set forth in the embodiments but rather by the equivalents thereof as may occur to those skilled in the art upon consideration of the present inventive concept.

Claims (1)

1. A method for suppressing ghost of a moving object of background modeling is characterized by comprising the following steps:
step 1: extracting a segmented binary image mask generated by a ViBe algorithm, a corresponding video frame and a gray image gray of the frame, wherein the frame is an RGB image, the gray is a gray image, and the mask, the frame and the gray are all width multiplied by height;
step 2: dividing the frame;
the step 2 comprises the following specific steps:
step 2.1: detecting a gray edge by using an edge detection algorithm to obtain an edge image gray edge;
step 2.2: dividing the frame into N partitions by a watershed algorithm according to the gray edge, wherein each partition has MiEach pixel point, the coordinate in each partition is recorded in Ai={(rij,cij)|j∈[0,Mi-1]},i∈[0,N-1]Wherein r is not less than 0ij<height,0≤cij< width; wherein A isiDenotes the ith partition, AiIs a set containing all points within the partition; (r)ij,cij) Representing the jth pixel point in the ith partition;
and step 3: inhibiting mask foreground spots;
the step 3 comprises the following specific steps:
step 3.1: calculating the occupation ratio d of the foreground pixels of the partition according to the formulas (1) and (2)i
Figure FDA0003167924980000011
Figure FDA0003167924980000012
Wherein, I (·) represents an illustrative function, if the parameter is true, 1 is returned, otherwise 0 is returned; mask (r)ij,cij) Representing the binary image mask in coordinates (r)ij,cij) The gray value of (d);
step 3.2: for all the subareas AiI is 0,1, …, N-1, and is processed as follows: if d isiIf < D, the coordinate in the mask is (r)ij,cij) Is set to 0, (r)ij,cij)∈Ai(ii) a Wherein D is a threshold value.
CN201910569625.2A 2019-06-27 2019-06-27 Moving target ghost suppression method for background modeling Active CN110288630B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910569625.2A CN110288630B (en) 2019-06-27 2019-06-27 Moving target ghost suppression method for background modeling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910569625.2A CN110288630B (en) 2019-06-27 2019-06-27 Moving target ghost suppression method for background modeling

Publications (2)

Publication Number Publication Date
CN110288630A CN110288630A (en) 2019-09-27
CN110288630B true CN110288630B (en) 2021-11-09

Family

ID=68019304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910569625.2A Active CN110288630B (en) 2019-06-27 2019-06-27 Moving target ghost suppression method for background modeling

Country Status (1)

Country Link
CN (1) CN110288630B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463165A (en) * 2014-10-24 2015-03-25 南京邮电大学 Target detection method integrating Canny operator with Vibe algorithm
CN106022230A (en) * 2016-05-11 2016-10-12 太原理工大学 Video-based detection method for drowning event in swimming pool
CN106683062A (en) * 2017-01-10 2017-05-17 厦门大学 Method of checking the moving target on the basis of ViBe under a stationary camera
CN107085836A (en) * 2017-05-16 2017-08-22 合肥工业大学 A kind of general ghost removing method in moving object segmentation
CN108805897A (en) * 2018-05-22 2018-11-13 安徽大学 Improved moving target detection VIBE algorithm

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9916644B1 (en) * 2016-09-09 2018-03-13 Omnivision Technologies, Inc. Ghost artifact removal system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463165A (en) * 2014-10-24 2015-03-25 南京邮电大学 Target detection method integrating Canny operator with Vibe algorithm
CN106022230A (en) * 2016-05-11 2016-10-12 太原理工大学 Video-based detection method for drowning event in swimming pool
CN106683062A (en) * 2017-01-10 2017-05-17 厦门大学 Method of checking the moving target on the basis of ViBe under a stationary camera
CN107085836A (en) * 2017-05-16 2017-08-22 合肥工业大学 A kind of general ghost removing method in moving object segmentation
CN108805897A (en) * 2018-05-22 2018-11-13 安徽大学 Improved moving target detection VIBE algorithm

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"An improved motion detection algorithm using ViBe";E. Mahoor;《ICCCNT》;20151231;第1-5页 *
"基于改进的Vibe和Canny边缘检测算法的运动目标检测";贺超宇;《数据通信》;20180228;第32-36页 *

Also Published As

Publication number Publication date
CN110288630A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
Zhang et al. Moving vehicles detection based on adaptive motion histogram
CN112669344B (en) Method and device for positioning moving object, electronic equipment and storage medium
CN110910421B (en) Weak and small moving object detection method based on block characterization and variable neighborhood clustering
CN102098440B (en) Electronic image stabilizing method and electronic image stabilizing system aiming at moving object detection under camera shake
CN109086724B (en) Accelerated human face detection method and storage medium
CN112364865B (en) Method for detecting small moving target in complex scene
CN110796687A (en) Sky background infrared imaging multi-target tracking method
CN112633274A (en) Sonar image target detection method and device and electronic equipment
CN110717934A (en) Anti-occlusion target tracking method based on STRCF
TWI729587B (en) Object localization system and method thereof
CN113205494B (en) Infrared small target detection method and system based on adaptive scale image block weighting difference measurement
WO2019242388A1 (en) Obstacle recognition method for library robot based on depth image
US8437503B2 (en) Method for detecting a moving object in an image stream
Hu et al. Real-time video stabilization for fast-moving vehicle cameras
CN111062415B (en) Target object image extraction method and system based on contrast difference and storage medium
Fang et al. 1-D barcode localization in complex background
CN110288630B (en) Moving target ghost suppression method for background modeling
Lee et al. Multiple moving object segmentation using motion orientation histogram in adaptively partitioned blocks for high-resolution video surveillance systems
CN110751068A (en) Remote weak and small target visual detection method based on self-adaptive space-time fusion
CN111860161B (en) Target shielding detection method
CN114820718A (en) Visual dynamic positioning and tracking algorithm
Zhou et al. On contrast combinations for visual saliency detection
CN112749714A (en) Method for detecting polymorphic dark and weak small target in single-frame infrared image
Pal Improved background subtraction technique for detecting moving objects
CN113034533B (en) Infrared small target detection method based on space-time stationarity

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