Ask Your Question
0

opencv_createsamples and opencv_traincascade usage example

asked 2013-08-11 13:26:16 -0600

gektor gravatar image

updated 2013-08-11 21:43:58 -0600

Could anybody recommend a good, "playable" example that demonstrates how to use opencv_createsamples and opencv_traincascade for image detection? I tried to follow Cascade Classifier Training with my own images and it didn't work well.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-08-12 06:23:48 -0600

There are multiple tutorials out there on how to create your own cascade classifier, however, finetuning the parameters is always the hard part of the job. Keep in mind that many guides out there use the older cvHaartraining, but these guides use the same background. However, try to stick to the newer cascade classifier in C++ which is way better developped. You just have to look in docs to look for corresponding C++ functionality.

Some links that are interested and used frequently by forum users:

  1. http://opencvuser.blogspot.be/2011/08/creating-haar-cascade-classifier-aka.html
  2. http://note.sonots.com/SciSoftware/haartraining.html
  3. http://coding-robin.de/2013/07/22/train-your-own-opencv-haar-classifier.html
edit flag offensive delete link more

Comments

Yeah.. I think that is the problem. There are many tutorials, many (maybe all) have outdated documentation, or work off of datasets that aren't provided.

None are "playable".

And the tools seem to simply crash when it doesn't like your parameters. So, you quickly hit a brick wall.

ZachGarner gravatar imageZachGarner ( 2014-04-04 10:30:30 -0600 )edit

I think that if you stick to this forum and search for cascade classifier training that you will hit more then enough information to solve your problems. Last year this topic has popped up multiple times with quite some good information about all the parameters contained.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-04-07 02:28:45 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-08-11 13:26:16 -0600

Seen: 16,854 times

Last updated: Aug 12 '13