CN106203429A - Based on the shelter target detection method under binocular stereo vision complex background - Google Patents

Based on the shelter target detection method under binocular stereo vision complex background Download PDF

Info

Publication number
CN106203429A
CN106203429A CN201610530766.XA CN201610530766A CN106203429A CN 106203429 A CN106203429 A CN 106203429A CN 201610530766 A CN201610530766 A CN 201610530766A CN 106203429 A CN106203429 A CN 106203429A
Authority
CN
China
Prior art keywords
sigma
pixel
camera
target detection
complex background
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
CN201610530766.XA
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.)
Northwestern Polytechnical University
Original Assignee
Northwestern Polytechnical University
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 Northwestern Polytechnical University filed Critical Northwestern Polytechnical University
Priority to CN201610530766.XA priority Critical patent/CN106203429A/en
Publication of CN106203429A publication Critical patent/CN106203429A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/255Detecting or recognising potential candidate objects based on visual cues, e.g. shapes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention discloses a kind of based on the shelter target detection method under binocular stereo vision complex background, for solving the technical problem of existing shelter target detection method accuracy of detection difference.Technical scheme is first to demarcate binocular camera to obtain the correction chart picture of row alignment, then obtain disparity map by Stereo matching and carry out background modeling, calculate scene three-dimensional coordinate and generate downward projection figure, finally by MeanShift method, downward projection figure is carried out cluster and obtain testing result.The present invention utilizes space three-dimensional information, efficiently solves the technical problem in the monocular vision such as interference of target occlusion, the change of scene light, shade and complex background, improves accuracy of detection.

Description

Based on the shelter target detection method under binocular stereo vision complex background
Technical field
The present invention relates to a kind of shelter target detection method, particularly relate to a kind of based on binocular stereo vision complex background Under shelter target detection method.
Background technology
Traditional moving object detection is mostly based on the method for monocular vision, and for stereoscopic vision, monocular vision has Its advantage, but there is also the biggest defect.The quantity of information of monocular vision is little, the most only need to process piece image, and arithmetic speed is relative Comparatively fast, but image lost the three-dimensional information of actual scene in projection process, therefore has irremediable defect.Adopting Carry out in moving object detection by method based on monocular vision, such as document " Effective Gaussian mixture learning for video background subtraction.Pattern Analysis and Machine Intelligence, IEEE Transactions on, 2005,27 (5): 827-832 " it is usually present target occlusion and week How the problems such as the change of enveloping field scape light and the interference of shade, solve the difficult point of these problems always research.For these Problem many scholars have done numerous studies, put forward algorithm based on target characteristic coupling, multi-tool plate for occlusion issue The algorithm joined, for light change and the problem such as shadow interference, proposes many Gaussian Background model and shadow removing algorithm etc., but this A little methods are affected relatively big by environmental factors, are easy to the phenomenon that target detection is failed occur in actual applications.
Summary of the invention
In order to overcome the deficiency of existing shelter target detection method accuracy of detection difference, the present invention provides a kind of and stands based on binocular Shelter target detection method under body vision complex background.First the method is demarcated binocular camera and is obtained the correction chart of row alignment Picture, then obtains disparity map by Stereo matching and carries out background modeling, calculates scene three-dimensional coordinate and generates downward projection figure, finally By MeanShift method, downward projection figure is carried out cluster and obtain testing result.The present invention utilizes space three-dimensional information, effectively Solve the technical problem in the monocular vision such as interference of target occlusion, the change of scene light, shade and complex background, improve Accuracy of detection.
The technical solution adopted for the present invention to solve the technical problems is: a kind of based under binocular stereo vision complex background Shelter target detection method, be characterized in comprising the following steps:
Step one, binocular camera are demarcated.
Initially with Zhang Zhengyou gridiron pattern scaling method, shoot multiple gridiron pattern images respectively, in order to demarcate two cameras Inner parameter M1, external parameter M2The scaling board image calculation on ground it is placed on by shooting.Image coordinate (u, v) and the world Coordinate (Xw,Yw,Zw) homogeneous transformational relation as follows:
z c u v 1 = 1 d x 0 u 0 0 1 d y v 0 0 0 1 f 0 0 0 0 f 0 0 0 0 1 0 R C T C 0 → 1 X w Y w Z w 1 = = f u 0 u 0 0 0 f v v 0 0 0 0 1 0 R C T C 0 → 1 X w Y w Z w 1 = M 1 M 2 X w Y w Z w 1 - - - ( 1 )
Wherein, f is camera focus, (u0,v0) it is figure principal point coordinate, dxAnd dyRepresent respectively each pixel at transverse axis x and Physical coordinates on longitudinal axis y.
Then stereo calibration calculates spatially two video camera P1And P2Geometrical relationship, the rotation between i.e. two cameras Matrix R and translation matrix T.Select right camera as reference camera.Relation is as follows:
P1=R* (P2-T) (2)
The correction chart picture of row alignment is obtained finally by non-demarcation three-dimensional correction HartLey algorithm.Requirement binocular camera is adopted Collection image synchronization.
Step 2, Stereo matching obtain parallax.
By the match point between the camera view of binocular solid matching primitives left and right, obtain disparity map, select Gaussian Mixture Modeling method carries out background modeling to disparity map, eliminates the complex background interference to target detection.According to parallax, baseline and interior Ginseng, uses trigonometric calculations scene three-dimensional coordinate.Choose the world coordinate system for XOY face with ground, three-dimensional point is projected to Ground, projects to the number of three-dimensional point of certain pixel as the color value of this pixel, generates downward projection figure.
Step 3, downward projection figure cluster.
Probability density at x is fh,k(x):
f h , k ( x ) = Σ i = 1 n K ( | | x - x i h | | ) - - - ( 3 )
Wherein, K (x) is kernel function, and h is radius
F to be madeh,kX () is maximum, to fh,kX () derivation obtainsWherein g (s)=-k'(s),
▿ f h , k = Σ i = 1 n ( x - x i ) g ( | | x - x i h | | 2 ) = [ Σ i = 1 n g ( | | x - x i h | | 2 ) ] [ Σ i = 1 n x i g ( | | x - x i h | | 2 ) Σ i = 1 n g ( | | x - x i h | | 2 ) - x ] - - - ( 4 )
Order:
m h , g ( x ) = Σ i = 1 n x i g ( | | x - x i h | | 2 ) Σ i = 1 n g ( | | x - x i h | | 2 ) - x - - - ( 5 )
MakeAnd if only if mh,g(x)=0, the central coordinate of circle that must make new advances:
x = Σ i = 1 n x i g ( | | x - x i h | | 2 ) Σ i = 1 n g ( | | x - x i h | | 2 ) - - - ( 6 )
Due to the particularity of projection, only consider that the distance of pixel cannot obtain cluster result accurately, calculating probability During density, need to meet: the color value of (a) pixel is the most close with the color value of central pixel point, and probability density is the highest;(b) From the position of central point more close to pixel, probability density is the highest.Therefore, kernel function K is selectedh(x):
K h ( x ) = K ( | | x s - x i s h | | ) * K ( | | x r - x i r h | | ) - - - ( 7 )
After MeanShift cluster, each class represents a target.This result is projected to display in former right image final Testing result.
The invention has the beneficial effects as follows: first the method is demarcated binocular camera and obtained the correction chart picture of row alignment, then leads to Cross Stereo matching to obtain disparity map and carry out background modeling, calculate scene three-dimensional coordinate and generate downward projection figure, finally use MeanShift method carries out cluster to downward projection figure and obtains testing result.The present invention utilizes space three-dimensional information, effectively solves Determine the technical problem in the monocular vision such as interference of target occlusion, the change of scene light, shade and complex background, improve Accuracy of detection.
Below in conjunction with detailed description of the invention, the present invention is elaborated.
Detailed description of the invention
The present invention specifically comprises the following steps that based on the shelter target detection method under binocular stereo vision complex background
Step one, binocular camera are demarcated.
Initially with the gridiron pattern scaling method of Zhang Zhengyou, about 20 gridiron pattern images of shooting respectively, in order to demarcate two The inner parameter M of individual camera1, external parameter M2The scaling board image calculation on ground it is placed on by shooting.Image coordinate (u, v) With world coordinates (Xw,Yw,Zw) homogeneous transformational relation as follows:
z c u v 1 = 1 d x 0 u 0 0 1 d y v 0 0 0 1 f 0 0 0 0 f 0 0 0 0 1 0 R C T C 0 → 1 X w Y w Z w 1 = f u 0 u 0 0 0 f v v 0 0 0 0 1 0 R C T C 0 → 1 X w Y w Z w 1 = M 1 M 2 X w Y w Z w 1 - - - ( 1 )
Wherein f is camera focus, (u0,v0) it is figure principal point coordinate, dxAnd dyRepresent respectively each pixel at transverse axis x and Physical coordinates on longitudinal axis y, these parameters all can be obtained by camera calibration.
Then stereo calibration calculates spatially two video camera P1And P2Geometrical relationship, the rotation between i.e. two cameras Matrix R and translation matrix T.Select right camera as reference camera.Relation is as follows:
P1=R* (P2-T) (2)
The correction chart picture of row alignment is obtained finally by non-demarcation three-dimensional correction HartLey algorithm.Requirement binocular camera is adopted Collection image synchronization.
Step 2, Stereo matching obtain parallax.
By the match point between the camera view of binocular solid matching primitives left and right, obtain disparity map, select Gaussian Mixture Modeling method carries out background modeling to disparity map, to eliminate the complex background interference to target detection.According to parallax, baseline and interior Ginseng, uses trigonometric calculations scene three-dimensional coordinate.Choose the world coordinate system for XOY face with ground, three-dimensional point is projected to Ground, projects to the number of three-dimensional point of certain pixel as the color value of this pixel, generates downward projection figure.
Step 3, downward projection figure cluster.
Probability density at x is fh,k(x):
f h , k ( x ) = Σ i = 1 n K ( | | x - x i h | | ) - - - ( 3 )
Wherein K (x) is kernel function, and h is radius
F to be madeh,kX () is maximum, to fh,kX () derivation obtainsWherein g (s)=-k'(s),
▿ f h , k = Σ i = 1 n ( x - x i ) g ( | | x - x i h | | 2 ) = [ Σ i = 1 n g ( | | x - x i h | | 2 ) ] [ Σ i = 1 n x i g ( | | x - x i h | | 2 ) Σ i = 1 n g ( | | x - x i h | | 2 ) - x ] - - - ( 4 )
Order:
m h , g ( x ) = Σ i = 1 n x i g ( | | x - x i h | | 2 ) Σ i = 1 n g ( | | x - x i h | | 2 ) - x - - - ( 5 )
MakeAnd if only if mh,g(x)=0, it can be deduced that new central coordinate of circle:
x = Σ i = 1 n x i g ( | | x - x i h | | 2 ) Σ i = 1 n g ( | | x - x i h | | 2 ) - - - ( 6 )
Due to the particularity of projection, only consider that the distance of pixel cannot obtain cluster result accurately, calculating probability During density, need to meet: the color value of (a) pixel is the most close with the color value of central pixel point, and probability density is the highest;(b) From the position of central point more close to pixel, probability density is the highest.Therefore, kernel function K is selectedh(x):
K h ( x ) = K ( | | x s - x i s h | | ) * K ( | | x r - x i r h | | ) - - - ( 7 )
After MeanShift cluster, each class represents a target.This result is projected to display in former right image final Testing result.

Claims (1)

1. one kind based on the shelter target detection method under binocular stereo vision complex background, it is characterised in that include following step Rapid:
Step one, binocular camera are demarcated;
Initially with Zhang Zhengyou gridiron pattern scaling method, shoot multiple gridiron pattern images respectively, in order to demarcate in two cameras Portion's parameter M1, external parameter M2The scaling board image calculation on ground it is placed on by shooting;Image coordinate (u, v) and world coordinates (Xw,Yw,Zw) homogeneous transformational relation as follows:
z c u v 1 = 1 d x 0 u 0 0 1 d y v 0 0 0 1 f 0 0 0 0 f 0 0 0 0 1 0 R C T C 0 → 1 X w Y w Z w 1 = f u 0 u 0 0 0 f v v 0 0 0 0 1 0 R C T C 0 → 1 X w Y w Z w 1 = M 1 M 2 X w Y w Z w 1 - - - ( 1 )
Wherein, f is camera focus, (u0,v0) it is figure principal point coordinate, dxAnd dyRepresent that each pixel is at transverse axis x and longitudinal axis y respectively On physical coordinates;
Then stereo calibration calculates spatially two video camera P1And P2Geometrical relationship, the spin matrix R between i.e. two cameras With translation matrix T;Select right camera as reference camera;Relation is as follows:
P1=R* (P2-T) (2)
The correction chart picture of row alignment is obtained finally by non-demarcation three-dimensional correction HartLey algorithm;Require binocular camera collection figure As synchronizing;
Step 2, Stereo matching obtain parallax;
By the match point between the camera view of binocular solid matching primitives left and right, obtain disparity map, select Gaussian Mixture modeling Method carries out background modeling to disparity map, eliminates the complex background interference to target detection;According to parallax, baseline and internal reference, adopt With trigonometric calculations scene three-dimensional coordinate;Choose the world coordinate system for XOY face with ground, three-dimensional point projected to ground, Project to the number of three-dimensional point of certain pixel as the color value of this pixel, generate downward projection figure;
Step 3, downward projection figure cluster;
Probability density at x is fh,k(x):
f h , k ( x ) = Σ i = 1 n K ( | | x - x i h | | ) - - - ( 3 )
Wherein, K (x) is kernel function, and h is radius
F to be madeh,kX () is maximum, to fh,kX () derivation obtainsWherein g (s)=-k'(s),
▿ f h , k = Σ i = 1 n ( x - x i ) g ( | | x - x i h | | 2 ) = [ Σ i = 1 n g ( | | x - x i h | | 2 ) ] [ Σ i = 1 n x i g ( | | x - x i h | | 2 ) Σ i = 1 n g ( | | x - x i h | | 2 ) - x ] - - - ( 4 )
Order:
m h , g ( x ) = Σ i = 1 n x i g ( | | x - x i h | | 2 ) Σ i = 1 n g ( | | x - x i h | | 2 ) - x - - - ( 5 )
MakeAnd if only if mh,g(x)=0, the central coordinate of circle that must make new advances:
x = Σ i = 1 n x i g ( | | x - x i h | | 2 ) Σ i = 1 n g ( | | x - x i h | | 2 ) - - - ( 6 )
Due to the particularity of projection, only consider that the distance of pixel cannot obtain cluster result accurately, calculating probability density Time, need to meet: the color value of (a) pixel is the most close with the color value of central pixel point, and probability density is the highest;(b) from The pixel that the position of heart point is the nearest, probability density is the highest;Therefore, kernel function K is selectedh(x):
K h ( x ) = K ( | | x s - x i s h | | ) * K ( | | x r - x i r h | | ) - - - ( 7 )
After MeanShift cluster, each class represents a target;Project to this result former right image shows final inspection Survey result.
CN201610530766.XA 2016-07-06 2016-07-06 Based on the shelter target detection method under binocular stereo vision complex background Pending CN106203429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610530766.XA CN106203429A (en) 2016-07-06 2016-07-06 Based on the shelter target detection method under binocular stereo vision complex background

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610530766.XA CN106203429A (en) 2016-07-06 2016-07-06 Based on the shelter target detection method under binocular stereo vision complex background

Publications (1)

Publication Number Publication Date
CN106203429A true CN106203429A (en) 2016-12-07

Family

ID=57473634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610530766.XA Pending CN106203429A (en) 2016-07-06 2016-07-06 Based on the shelter target detection method under binocular stereo vision complex background

Country Status (1)

Country Link
CN (1) CN106203429A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107657643A (en) * 2017-08-28 2018-02-02 浙江工业大学 A kind of parallax calculation method based on space plane constraint
CN108038866A (en) * 2017-12-22 2018-05-15 湖南源信光电科技股份有限公司 A kind of moving target detecting method based on Vibe and disparity map Background difference
CN108346160A (en) * 2017-12-22 2018-07-31 湖南源信光电科技股份有限公司 The multiple mobile object tracking combined based on disparity map Background difference and Meanshift
TWI658431B (en) * 2017-10-02 2019-05-01 緯創資通股份有限公司 Image processing method, image processing device and computer readable storage medium
CN110505437A (en) * 2018-05-18 2019-11-26 杭州海康威视数字技术股份有限公司 A kind of method, apparatus and system of object prompt
CN111598939A (en) * 2020-05-22 2020-08-28 中原工学院 Human body circumference measuring method based on multi-vision system
CN113077510A (en) * 2021-04-12 2021-07-06 广州市诺以德医疗科技发展有限公司 System for inspecting stereoscopic vision function under shielding
CN113139995A (en) * 2021-04-19 2021-07-20 杭州伯资企业管理合伙企业(有限合伙) Low-cost method for detecting and evaluating light occlusion between objects

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102129688A (en) * 2011-02-24 2011-07-20 哈尔滨工业大学 Moving target detection method aiming at complex background
CN103106659A (en) * 2013-01-28 2013-05-15 中国科学院上海微系统与信息技术研究所 Open area target detection and tracking method based on binocular vision sparse point matching
CN105160649A (en) * 2015-06-30 2015-12-16 上海交通大学 Multi-target tracking method and system based on kernel function unsupervised clustering
CN105528785A (en) * 2015-12-03 2016-04-27 河北工业大学 Binocular visual image stereo matching method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102129688A (en) * 2011-02-24 2011-07-20 哈尔滨工业大学 Moving target detection method aiming at complex background
CN103106659A (en) * 2013-01-28 2013-05-15 中国科学院上海微系统与信息技术研究所 Open area target detection and tracking method based on binocular vision sparse point matching
CN105160649A (en) * 2015-06-30 2015-12-16 上海交通大学 Multi-target tracking method and system based on kernel function unsupervised clustering
CN105528785A (en) * 2015-12-03 2016-04-27 河北工业大学 Binocular visual image stereo matching method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
吴静静等: "一种基于mean shift的多通道图像分割算法", 《包装工程》 *
杨明: "基于双目立体视觉的三维重建研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
苑全德等: "一种基于特征点三维信息的自然路标提取与快速匹配方法", 《智能计算机与应用》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107657643A (en) * 2017-08-28 2018-02-02 浙江工业大学 A kind of parallax calculation method based on space plane constraint
CN107657643B (en) * 2017-08-28 2019-10-25 浙江工业大学 A kind of parallax calculation method based on space plane constraint
TWI658431B (en) * 2017-10-02 2019-05-01 緯創資通股份有限公司 Image processing method, image processing device and computer readable storage medium
CN108038866A (en) * 2017-12-22 2018-05-15 湖南源信光电科技股份有限公司 A kind of moving target detecting method based on Vibe and disparity map Background difference
CN108346160A (en) * 2017-12-22 2018-07-31 湖南源信光电科技股份有限公司 The multiple mobile object tracking combined based on disparity map Background difference and Meanshift
CN110505437A (en) * 2018-05-18 2019-11-26 杭州海康威视数字技术股份有限公司 A kind of method, apparatus and system of object prompt
CN111598939A (en) * 2020-05-22 2020-08-28 中原工学院 Human body circumference measuring method based on multi-vision system
CN111598939B (en) * 2020-05-22 2021-01-26 中原工学院 Human body circumference measuring method based on multi-vision system
CN113077510A (en) * 2021-04-12 2021-07-06 广州市诺以德医疗科技发展有限公司 System for inspecting stereoscopic vision function under shielding
CN113077510B (en) * 2021-04-12 2022-09-20 广州市诺以德医疗科技发展有限公司 System for inspecting stereoscopic vision function under shielding
CN113139995A (en) * 2021-04-19 2021-07-20 杭州伯资企业管理合伙企业(有限合伙) Low-cost method for detecting and evaluating light occlusion between objects
CN113139995B (en) * 2021-04-19 2022-06-21 杭州伯资企业管理合伙企业(有限合伙) Low-cost method for detecting and evaluating light occlusion between objects

Similar Documents

Publication Publication Date Title
CN106203429A (en) Based on the shelter target detection method under binocular stereo vision complex background
CN109816703B (en) Point cloud registration method based on camera calibration and ICP algorithm
CN103400409B (en) A kind of coverage 3D method for visualizing based on photographic head attitude Fast estimation
WO2021004312A1 (en) Intelligent vehicle trajectory measurement method based on binocular stereo vision system
CN104504671B (en) Method for generating virtual-real fusion image for stereo display
CN104596502B (en) Object posture measuring method based on CAD model and monocular vision
CN104680582B (en) A kind of three-dimensional (3 D) manikin creation method of object-oriented customization
CN104778694B (en) A kind of parametrization automatic geometric correction method shown towards multi-projection system
CN109461180A (en) A kind of method for reconstructing three-dimensional scene based on deep learning
CN103115613B (en) Three-dimensional space positioning method
CN108288292A (en) A kind of three-dimensional rebuilding method, device and equipment
CN105279789B (en) A kind of three-dimensional rebuilding method based on image sequence
CN106289106A (en) Stereo vision sensor that a kind of line-scan digital camera and area array cameras combine and scaling method
CN104933718A (en) Physical coordinate positioning method based on binocular vision
CN102129708A (en) Fast multilevel imagination and reality occlusion method at actuality enhancement environment
CN104376552A (en) Virtual-real registering algorithm of 3D model and two-dimensional image
CN103868460A (en) Parallax optimization algorithm-based binocular stereo vision automatic measurement method
CN110009672A (en) Promote ToF depth image processing method, 3D rendering imaging method and electronic equipment
CN109345581B (en) Augmented reality method, device and system based on multi-view camera
CN105184857A (en) Scale factor determination method in monocular vision reconstruction based on dot structured optical ranging
CN103763543B (en) The acquisition method of resultant hologram
CN107977996A (en) Space target positioning method based on target calibrating and positioning model
CN110910431A (en) Monocular camera-based multi-view three-dimensional point set recovery method
CN110264527A (en) Real-time binocular stereo vision output method based on ZYNQ
CN111105451B (en) Driving scene binocular depth estimation method for overcoming occlusion effect

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161207

WD01 Invention patent application deemed withdrawn after publication