Showing posts with label CamShift. Show all posts
Showing posts with label CamShift. Show all posts

8/18/2011

Fast face detection using AdaBoost+Camshift combined Algorithm / C++ Soruce (OpenCV) / AdaBoost + CamShift ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ๊ฒฐํ•ฉํ•œ ๊ณ ์† ์–ผ๊ตด ๊ฒ€์ถœ




Created Date : 2007.1
Language : C/C++
Tool : Microsoft Visual C++ 6.0
Library & Utilized : OpenCV 1.0
Reference : Learning OpenCV Book
etc. : web cam need








This program is fast face detection that is made by combining AdaBoost+CamShift Algrithm.
AdaBoost Algorithm is good method to detect some trained object.
But AdaBoost is weak to track the object.
So I combined the CamShift algorithm for tracking.
This algorithm is running like below flow chart.
When the porocess is intergration mode, It run 2 times more speed.
You can download this source -> <source code>
Plz reply your valuable comment.
Thank you.


(Please understand my bad english ability. If you point out my mistake, I would correct pleasurably. Thank you!!) 







AdaBoost + CAMShift ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ๊ฒฐํ•ฉํ•œ ์‹ค์‹œ๊ฐ„ ๊ณ ์† ์–ผ๊ตด ๊ฒ€์ถœ ์†Œ์Šค์ฝ”๋“œ
์›น์บ  ์—ฐ๊ฒฐ ํ•„์š” / openCV 1.0 ์„ค์น˜ ํ•„์š”
(์†Œ์Šค์ฝ”๋“œ + ์‹คํ–‰ํŒŒ์ผ + openCV 1.0(openCV๋ฅผ ์ด์šฉํ•จ))

AdaBoost ์•Œ๊ณ ๋ฆฌ์ฆ˜์€ ์–ผ๊ตด/๋น„์–ผ๊ตด์„ ํŒ๋ณ„ํ•˜๋Š” ๋ถ„๋ฅ˜๊ธฐ๋กœ์จ
์‹ค์‹œ๊ฐ„์—์„œ ์–ผ๊ตด์„ ๊ฒ€์ถœํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ์ „ ์˜์—ญ์„ ์Šค์บ”ํ•ด์•ผํ•˜๋Š” ๋น„ํšจ์œจ์ด ์žˆ๋‹ค.
Camsfhit ์•Œ๊ณ ๋ฆฌ์ฆ˜์€ meanShift ์ƒ‰๋ถ„ํ•  ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์‹ค์‹œ๊ฐ„์—์„œ object tracking์„ ์œ„ํ•˜์—ฌ ๊ฐœ๋ฐœํ•œ ์•Œ๊ณ ๋ฆฌ์ฆ˜์ด๋‹ค.

์ €์ž๋Š” AdaBoost ์•Œ๊ณ ๋ฆฌ์ฆ˜์˜ ์–ผ๊ตด ๊ฒ€์ถœ๊ณผ CAMshift ์˜ tracking์„ ๊ฒฐํ•ฉํ•˜์—ฌ ๊ณ ์† ์–ผ๊ตด ๊ฒ€์ถœ ํ”„๋กœ๊ทธ๋žจ์„ ๊ตฌํ˜„ํ•˜์˜€๋‹ค.
<๊ฒ€์ถœ + ํŠธ๋ž˜ํ‚น + ์—…๋ฐ์ดํŠธ>์˜ ๋ฐฉ๋ฒ•์œผ๋กœ ํ”„๋กœ๊ทธ๋žจ์ด ๋™์ž‘ํ•จ
์‹คํ—˜๊ฒฐ๊ณผ ์•ฝ 2๋ฐฐ ๋น ๋ฅธ ๊ฒ€์ถœ ์†๋„๋ฅผ ๋ณด์ธ๋‹ค.

=== ์ธํ„ฐํŽ˜์ด์Šค ====
๊ฒ€์ถœ๋ชจ๋“œ ์„ ํƒ : AdaBoost ๊ฒ€์ถœ / intergration(๊ฒฐํ•ฉ๋ฐฉ๋ฒ•) ๊ฒ€์ถœ
์ตœ์†Œ ์–ผ๊ตด ํฌ๊ธฐ ์„ค์ •
๊ฒ€์ถœ ์—…๋ฐ์ดํŠธ threshold ๊ฒฐ์ • ๋ฐ•์Šค

์†Œ์Šค๋Š” ์—ฌ๊ธฐ์„œ ๋‹ค์šด ๋ฐ›์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. <source code>