CN102004898A - Target tracking method based on template matching - Google Patents
Target tracking method based on template matching Download PDFInfo
- Publication number
- CN102004898A CN102004898A CN2010105296812A CN201010529681A CN102004898A CN 102004898 A CN102004898 A CN 102004898A CN 2010105296812 A CN2010105296812 A CN 2010105296812A CN 201010529681 A CN201010529681 A CN 201010529681A CN 102004898 A CN102004898 A CN 102004898A
- Authority
- CN
- China
- Prior art keywords
- template
- image
- matching
- tracking
- value
- 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
Links
Images
Abstract
The invention belongs to the field of image processing and machine vision, in particular relates to a target tracking method based on the template matching. The template image and pixels with a matching area are arrayed into a plurality of sub windows according to the circle; and the target is guaranteed to have the translation and the rotational invariance by adopting the circular template matching principle. The edge strength value of the template and each pixel in the tracking window can be calculated by using a Kirsch operator. The summation of the gray matching valve and the edge strength matching value is used as the matching result. The position of the optimal matching value is determined as the position of the tracking target. The invention can be used for a target identifying and tracking system.
Description
Technical field
The invention belongs to Flame Image Process and field of machine vision, relate to a kind of target recognition and tracking method, particularly a kind of image object recognition and tracking method based on template matches.
Background technology
Identification of targets is the important research content of machine vision and image processing field with following the tracks of always.There is important use to be worth at aspects such as supervisory system, safety-protection system, military fields.Early stage track algorithm mainly is based on the contrast track algorithm of target and background.The contrast track algorithm utilizes the contrast between target and its background to discern and extract echo signal, is the tracker class methods that grow up the earliest, can be divided into edge tracking, centre of form tracking, peak time tracking etc. according to the difference to the target reference point.These class methods are simple, are easy to realize that processing speed is fast, but resists in disturbing ability.Along with electronic technology and development of computer, the image relevant matches is applied in tracker.
Correlation tracking is that the benchmark image with system is chosen to be template, with template in track window with different off-set value displacements, calculation template overlaps the correlation of area image then, and the optimum matching zone is defined as tracking position of object.For example, the absolute average algorithm of gray scale difference is exactly a kind of simple correlation matching algorithm.But these class methods only have translation invariance usually, and do not have rotational invariance.This makes algorithm can't accurately orient the target location sometimes, thereby has influenced the range of application of algorithm.
Therefore design a kind of novel method for tracking target and have important use value.
Summary of the invention
Technical matters to be solved by this invention is, designs a kind of target recognition and tracking method, realizes gray level image identification of targets and tracking.
The technical solution adopted in the present invention is: a kind of target recognition and tracking method, template size is elected n * n (n is an odd number) as, pixel in the template is the center of circle with the template center, form (n+1)/2 subwindow by circular arrangement, first subwindow is unique point itself, second subwindow then is 3 * 3 the window at center for unique point ....Adopt the Kirsch operator to ask for the edge intensity value computing of template pixel and track window pixel respectively.The matching criterior function is made up of two parts, first be template and each subwindow pixel grey scale of zone to be matched and difference, second portion be template and each subwindow pixel edge intensity of zone to be matched and difference.Two absolute values be defined as the target location with minimum position.
The objective of the invention is to propose a kind of target recognition and tracking method, adopt circular shuttering to guarantee that algorithm has rotational invariance, in the matching criterior function, increase the matching value of edge strength, utilize the detailed information of image to improve the accuracy of Target Recognition, finish gray level image identification of targets and tracking.
Description of drawings
Fig. 1 is a Kirsch operator template.
Fig. 2 is a pixel grey scale neighborhood window.
Fig. 3 is the target following result.
Embodiment
Below in conjunction with embodiment and accompanying drawing the present invention is described in further detail.
The present invention adopts the Kirsch operator to ask for the edge intensity value computing of each pixel in template image and the track window.The Kirsch operator is made up of 83 * 3 template windows, each template represent respectively a specific detection side to, its template operator is as shown in Figure 1.
If (x y) is the pixel of edge intensity value computing to be calculated to P, and the intensity profile of its 8 neighborhood as shown in Figure 2.If q
k(k=0,1 ..., 7) be the edge strength on the k direction that obtains after image is handled through k Kirsch operator template, following recurrence relation formula is then arranged:
q
0=5(p
4+p
5+p
6)-3(p
0+p
1+p
2+p
3+p
7) (1)
P (x, y) pixel through the edge strength S that obtains this point after the Kirsch algorithm process (x y) is:
S(x,y)=max{q
k},k=0,1,2,...,7 (3)
The object matching criterion function is defined as:
D(A,B)=D
1+D
2 (4)
D wherein
1Be gray scale matching value, D
2Be the edge strength matching value.
If (h, q) grey scale pixel value of position is a to template image
H, q, (h, q) grey scale pixel value of position is b to mate the district in the track window
H, qBy circular arrangement, then the gray scale matching value of i round interior pixel is e with image to be matched in template image and the tracking area
i, this value is asked for by following formula:
The gray scale matching value D in template and district to be matched
1Ask for by following formula:
W wherein
iRepresent the contribution weights of different subwindow interior pixels to the gray scale matching value.
Because the gray scale matching value is the difference sum of the subwindow interior pixel gray-scale value of template image and district to be matched image, this detailed information to image has played certain filtration, thereby influences the accuracy of matching result.In order in matching process, to utilize detailed information such as edge of image, in the matching criterior function, increased edge strength occurrence D
2Asking for and gray scale matching value D of this
1Method similar.
If (h, q) the pixel edge intensity level of position is a to template image
s H, q, (h, q) the pixel edge intensity level of position is b to mate the district in the track window
s H, qStill by circular arrangement, then the edge strength matching value of i round interior pixel is e with image to be matched in template image and the tracking area
s i, this value is asked for by following formula:
The gray scale matching value D in template and district to be matched
2Ask for by following formula:
W wherein
iRepresent the contribution weights of different subwindow interior pixels to edge strength matching value.
Template image is moved in tracking area, and the zone of matching criterior function minimum is defined as the position of target.
Embodiment
Fig. 3 has provided and has adopted the inventive method to seek the situation of target location in a few width of cloth consecutive images.The target's center position of cross position among the figure for adopting the inventive method to try to achieve, the target location that round dot is tried to achieve for the absolute average algorithm that adopts gray scale difference.By sample result as can be seen, the inventive method can be carried out comparatively accurate in locating tracking to the target in the consecutive image.Environmental background comparatively complexity or target taken place under the situation that translation, rotation etc. change, the inventive method is still effective.
Claims (6)
1. the method for tracking target based on template matches is characterized in that best match position is defined as tracking position of object according to the image calculation matching value in coupling district in trace template image and the track window.
2. the method for tracking target based on template matches according to claim 1 is characterized in that, the pixel of template image and district to be matched image is all pressed circular arrangement, has rotational invariance to guarantee algorithm.
3. the method for tracking target based on template matches according to claim 1 is characterized in that, adopts the edge intensity value computing of pixel in Kirsch operator calculation template and the track window.
4. the method for tracking target based on template matches according to claim 1 is characterized in that the matching criterior function is made up of two parts, and a part is the gray scale matching value, and another part is the edge strength matching value.
5. the method for tracking target based on template matches according to claim 1 is characterized in that, subwindow gray scale matching value is tried to achieve by the difference sum of template image and the corresponding subwindow interior pixel of district to be matched image gray-scale value.
6. the method for tracking target based on template matches according to claim 1 is characterized in that, subwindow edge strength matching value is tried to achieve by the difference sum of template image and the corresponding subwindow interior pixel of district to be matched image edge intensity value computing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105296812A CN102004898A (en) | 2010-11-03 | 2010-11-03 | Target tracking method based on template matching |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105296812A CN102004898A (en) | 2010-11-03 | 2010-11-03 | Target tracking method based on template matching |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102004898A true CN102004898A (en) | 2011-04-06 |
Family
ID=43812251
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105296812A Pending CN102004898A (en) | 2010-11-03 | 2010-11-03 | Target tracking method based on template matching |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102004898A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102254181A (en) * | 2011-07-06 | 2011-11-23 | 天津工业大学 | Multi-order differential ring-shaped template matching tracking method |
CN103093193A (en) * | 2012-12-28 | 2013-05-08 | 中国航天时代电子公司 | Space image guided weapon object identification method |
CN103824289A (en) * | 2014-02-17 | 2014-05-28 | 哈尔滨工业大学 | Template-based array image registration method in snapshot spectral imaging |
CN104794733A (en) * | 2014-01-20 | 2015-07-22 | 株式会社理光 | Object tracking method and device |
CN106650742A (en) * | 2015-10-28 | 2017-05-10 | 中通服公众信息产业股份有限公司 | Image characteristic extraction method and image characteristic extraction device based on annular kernel |
CN107450565A (en) * | 2017-09-18 | 2017-12-08 | 天津工业大学 | Intelligent movable tracks car |
CN107924569A (en) * | 2016-07-29 | 2018-04-17 | 欧姆龙株式会社 | Image processing apparatus and image processing method |
CN109325453A (en) * | 2018-09-27 | 2019-02-12 | 沈阳理工大学 | The template matching tracking of moving target |
CN111612014A (en) * | 2020-04-26 | 2020-09-01 | 东风汽车集团有限公司 | Windshield glass identification error-proofing method in gluing process |
CN113223047A (en) * | 2021-03-05 | 2021-08-06 | 兰州大学 | FPGA-based template matching target tracking method and tracking system |
-
2010
- 2010-11-03 CN CN2010105296812A patent/CN102004898A/en active Pending
Non-Patent Citations (4)
Title |
---|
修春波: "序列图像的目标识别方法", 《计算机工程与应用》 * |
修春波等: "用于实时跟踪的模板匹配神经网络算法", 《北京理工大学学报》 * |
崔高健等: "基于立体机器视觉的前方车辆探测", 《计算机测量与控制》 * |
彭晓明等: "一种利用信息融合的运动目标跟踪算法", 《计算机工程与应用》 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102254181B (en) * | 2011-07-06 | 2015-03-04 | 天津工业大学 | Multi-order differential ring-shaped template matching tracking method |
CN102254181A (en) * | 2011-07-06 | 2011-11-23 | 天津工业大学 | Multi-order differential ring-shaped template matching tracking method |
CN103093193A (en) * | 2012-12-28 | 2013-05-08 | 中国航天时代电子公司 | Space image guided weapon object identification method |
CN103093193B (en) * | 2012-12-28 | 2016-03-09 | 中国航天时代电子公司 | A kind of vacant lot image guidance weaponry target recognition methods |
CN104794733B (en) * | 2014-01-20 | 2018-05-08 | 株式会社理光 | Method for tracing object and device |
CN104794733A (en) * | 2014-01-20 | 2015-07-22 | 株式会社理光 | Object tracking method and device |
CN103824289A (en) * | 2014-02-17 | 2014-05-28 | 哈尔滨工业大学 | Template-based array image registration method in snapshot spectral imaging |
CN106650742A (en) * | 2015-10-28 | 2017-05-10 | 中通服公众信息产业股份有限公司 | Image characteristic extraction method and image characteristic extraction device based on annular kernel |
CN106650742B (en) * | 2015-10-28 | 2020-02-21 | 中通服公众信息产业股份有限公司 | Image feature extraction method and device based on annular kernel |
CN107924569A (en) * | 2016-07-29 | 2018-04-17 | 欧姆龙株式会社 | Image processing apparatus and image processing method |
CN107924569B (en) * | 2016-07-29 | 2021-06-25 | 欧姆龙株式会社 | Image processing apparatus, image processing method, and storage medium |
CN107450565A (en) * | 2017-09-18 | 2017-12-08 | 天津工业大学 | Intelligent movable tracks car |
CN109325453A (en) * | 2018-09-27 | 2019-02-12 | 沈阳理工大学 | The template matching tracking of moving target |
CN109325453B (en) * | 2018-09-27 | 2022-03-04 | 沈阳理工大学 | Template matching tracking method for moving target |
CN111612014A (en) * | 2020-04-26 | 2020-09-01 | 东风汽车集团有限公司 | Windshield glass identification error-proofing method in gluing process |
CN113223047A (en) * | 2021-03-05 | 2021-08-06 | 兰州大学 | FPGA-based template matching target tracking method and tracking system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102004898A (en) | Target tracking method based on template matching | |
CN101887586B (en) | Self-adaptive angular-point detection method based on image contour sharpness | |
CN104200495B (en) | A kind of multi-object tracking method in video monitoring | |
CN103413120B (en) | Tracking based on object globality and locality identification | |
CN102163282A (en) | Method and device for acquiring interested area in palm print image | |
CN102034114A (en) | Characteristic point detection-based template matching tracing method | |
CN102908120B (en) | Eye fundus image registration method, eye fundus image optic disk nerve and vessel measuring method and eye fundus image matching method | |
CN104991235A (en) | Method for rapid tracking target based on radar trace points | |
CN108921880B (en) | Visual multi-target tracking method based on multiple single trackers | |
CN105427342A (en) | Method and system for detecting and tracking underwater small-target sonar image target | |
CN101281648A (en) | Method for tracking dimension self-adaption video target with low complex degree | |
CN105006003A (en) | Random projection fern based real-time target tracking algorithm | |
CN106250854A (en) | Body gait recognition methods based on micro-Doppler feature and support vector machine | |
CN103728599A (en) | Method for restraining deception false target jamming through remotely configured initiative and passive radar net | |
CN103268496A (en) | Target identification method of SAR (synthetic aperture radar) images | |
CN106709939A (en) | Target tracking method and target tracking apparatus | |
CN104881561A (en) | Hough transform-based track-before-detect method of multidimensional parameters | |
CN110084830A (en) | A kind of detection of video frequency motion target and tracking | |
CN103913166A (en) | Star extraction method based on energy distribution | |
CN105044710A (en) | Tracking initiation method including radial velocity information for a circular motion target | |
CN104407345B (en) | Improved dynamic planning method for weak target detection tracking | |
CN109782290B (en) | Automatic underwater sound target position tracking method for preventing tracking deviation | |
CN105844191A (en) | Radio frequency identification-based electronic tag motion direction judgment method and system | |
CN103996207A (en) | Object tracking method | |
CN104637038B (en) | A kind of improvement CamShift trackings based on weighted histogram model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C53 | Correction of patent of invention or patent application | ||
CB02 | Change of applicant information |
Address after: 300387 Tianjin city Xiqing District West Binshui Road No. 399 Applicant after: Tianjin Polytechnic University Address before: 300160 Tianjin City Hedong District Forest Road No. 63 Applicant before: Tianjin Polytechnic University |
|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20110406 |