opencv nesne tespiti - template matching yöntemi

10
NESNE TESPİTİ OBJECT DETECTION mesutpiskin.com github.com/mesutpiskin linkedin.com/in/mesutpiskin

Upload: mesutpikin

Post on 13-Jan-2017

757 views

Category:

Engineering


5 download

TRANSCRIPT

Page 1: OpenCV Nesne Tespiti - Template Matching Yöntemi

NESNE TESPİTİOBJECT DETECTION

mesutpiskin.com github.com/mesutpiskin linkedin.com/in/mesutpiskin

Page 2: OpenCV Nesne Tespiti - Template Matching Yöntemi

YÖNTEMLER

• Şablon Eşleştirme (Template Matching)• HAAR Cascade • LBP Local Binary Pattern• HOG Histogram of Oriented Gradients

Nesne Tespit Yöntemleri

Page 3: OpenCV Nesne Tespiti - Template Matching Yöntemi

Şablon Eşleştirme (Template Matching)

1/4

Page 4: OpenCV Nesne Tespiti - Template Matching Yöntemi

Şablon Eşleştirme (Template Matching)

Şablon Eşleştirme (Template Matching)

Kaynak Şablon Sonuç

Sliding window (Kayan,sürgülü pencere) Metodu

Page 5: OpenCV Nesne Tespiti - Template Matching Yöntemi

Eşleştirme Yöntemleri (Matching Methods)

1. TM_CCOEFF2. TM_CCOEFF_NORMED3. TM_CCORR4. TM_CCORR_NORMED5. TM_SQDIFF6. TM_SQDIFF_NORMED

Eşleştirme Yöntemleri

Page 6: OpenCV Nesne Tespiti - Template Matching Yöntemi

Şablon

Eşleştirme Yöntemleri (Matching Methods)

Eşleştirme Yöntemleri

TM_CCOEFF TM_CCOEFF_NORMED

TM_CCORR TM_CCORR_NORMED

Page 7: OpenCV Nesne Tespiti - Template Matching Yöntemi

Eşleştirme Yöntemleri (Matching Methods)

Eşleştirme Yöntemleri

TM_SQDIFF TM_SQDIFF_NORMED

Şablon

Page 8: OpenCV Nesne Tespiti - Template Matching Yöntemi

Eşleştirme Yöntemleri (Matching Methods)

En Küçük ve En Büyük Konum

Core.minMaxLoc()

•src (Kaynak dizisi) – input single-channel array.•minVal (En küçük değer) – pointer to the returned minimum value; NULL is used if not required. •maxVal (En büyük değer) – pointer to the returned maximum value; NULL is used if not required.•minLoc (En küçük konum) – pointer to the returned minimum location ; NULL is used if not required.•maxLoc (En büyük konum) – pointer to the returned maximum location ; NULL is used if not required.

Page 9: OpenCV Nesne Tespiti - Template Matching Yöntemi

Demo

DEMO3.1

Page 10: OpenCV Nesne Tespiti - Template Matching Yöntemi

• http://docs.opencv.org/3.1.0/d4/dc6/tutorial_py_template_matching.html• http://docs.opencv.org/3.1.0/de/da9/tutorial_template_matching.html• http://stackoverflow.com/questions/31919094/template-matching-in-opencv-java• http://docs.opencv.org/2.4/modules/core/doc/operations_on_arrays.html• http://mesutpiskin.com/blog/opencv-matris-uzerinde-cizim-islemleri.html

Kaynakça