Ask Your Question
0

haartraining.exe and createsamples.exe missing

asked 2013-03-25 07:55:00 -0600

jignesh-santhosh gravatar image

Hi, I am new to opencv and I am trying to train a haar feature based classifier. I downloaded opencv for Windows with VS 2010, with pre built libraries. I see that the bin folders do not have haartraining.exe and createsamples.exe. How do I download/ build these? Since I do not see any projects in the folders to build them either. Thanks!

edit retag flag offensive close merge delete

Comments

Hi jignesh !!! Can you please explain in details how can I get haartraining.exe and createsamples.exe ?? I am using opencv2.2

Pinky gravatar imagePinky ( 2013-07-09 02:55:52 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-03-25 09:42:24 -0600

Just look at your apps folder, there is a structure there like mine:

D:\OpenCV2.4\apps\traincascade

Open an empty project in your environment. Add header and .cpp files. Configure the project to build for your target system, not forgetting about the linker settings. Build the solution for your system.

The result will be in debug or release folder. There you will find the exe files.

edit flag offensive delete link more

Comments

1

Thanks! it worked perfectly.

jignesh-santhosh gravatar imagejignesh-santhosh ( 2013-03-25 10:44:36 -0600 )edit

hi Steven, Can you please explain in details how can I get haartraining.exe and createsamples.exe ?? I am using opencv2.2

Pinky gravatar imagePinky ( 2013-07-09 03:00:20 -0600 )edit

First of all move to openCV 2.4.6. Don't stick with old versions. Then apply exactly what I said. How can I be more clear I am wondering. If you don't get it, find someone in your neighborhood who knows about programming and building own projects.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-07-09 06:12:18 -0600 )edit

Hi steven, thanks for your reply. I moved to opencv 2.4.6 and followed your instruction. But when I build the project it only creates projectname.exe in the debug folder, where can I find the haartraining.exe and createsamples.exe?

Pinky gravatar imagePinky ( 2013-07-14 22:24:13 -0600 )edit

Well simply said, create a project haartraining, add all files that are under the haartraining folder as indicated, which will result after built in a haartraining.exe. If you indeed changed your project name, the exe will be different, but functionality the same if you call it in a command line prompt. For the traincascade this would be the same. I suggest using the cascade immediatly and not the older haartraining API. For the createsamples, only add the createsamples file to a new project and build also.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-07-15 02:45:04 -0600 )edit
1

Thanks steven its working.

Pinky gravatar imagePinky ( 2013-07-15 22:08:41 -0600 )edit

That is great :) Good luck with your project!

StevenPuttemans gravatar imageStevenPuttemans ( 2013-07-16 02:06:10 -0600 )edit

Thanks a lot. I have move to this question http://answers.opencv.org/question/16868/error-in-train-casacde/ . May be you can help me with it.

Pinky gravatar imagePinky ( 2013-07-16 21:27:29 -0600 )edit

@Michael Vance: please create your own topic instead of hijacking an old one. The problem has been resolved many times before, so first do a deepened search of the forum. I will remove your question here, please create a new one as stated in the FAQ

StevenPuttemans gravatar imageStevenPuttemans ( 2013-08-13 00:52:50 -0600 )edit

Question Tools

Stats

Asked: 2013-03-25 07:55:00 -0600

Seen: 5,585 times

Last updated: Aug 13 '13