How I can create samples using opencv 2.4.9 using command prompt, there's only opencv_createsamples.exe for visual studio?

asked 2014-07-24 02:59:19 -0600

Shiloh gravatar image

updated 2014-07-24 03:13:31 -0600

berak gravatar image

My friend want to made her own classifier used opencv 2.4.9 so I installed it with python 2.7.6, NumPy 1.8.1, SciPy 0.11.0, and used python extension from here

There no error in import numpy, scipy, and cv2, and try the samples, it's work.. But when I see that there 3 folder vc10, vc11, vc12, contains opencv_createsamples.exe, and opencv_traincascade.exe, I try to create samples, none works, always getting error "MSVCP100.dll" or "MSVCP110.dll" or "MSVCP120.dll" not found, and I searched, and found that vc10, vc11, vc12 is for visual studio..

So how to train classifier using command prompt??

edit retag flag offensive close merge delete

Comments

It's solved, if I want used opencv_createsamples.exe from folder vc12 I need install Visual C++ Redistributable Packages for Visual Studio 2013, where you can get here, needed to installed both vcredist_x64 and vcredist_x86...

Shiloh gravatar imageShiloh ( 2014-07-24 05:16:55 -0600 )edit

She already collected 1500 positive image which she writed in info.txt, the format like this: 1.bmp 1 10 27 388 215, I need to use opencv_createsamples to make vector file, and how do you make vector file manually?

Shiloh gravatar imageShiloh ( 2014-07-24 05:26:35 -0600 )edit

Also with the tool but only providing the data file and not any angles and such :) you are on the right track! @berak people still need the tool to create the opencv data vector!

StevenPuttemans gravatar imageStevenPuttemans ( 2014-07-24 09:47:37 -0600 )edit
1

sorry, yes, i was wrong about it.

berak gravatar imageberak ( 2014-07-24 10:44:43 -0600 )edit
1

@StevenPuttemans yes, it's just basic command, without maxxangle, maxyangle, maxzangle, and such...

Shiloh gravatar imageShiloh ( 2014-07-24 12:11:01 -0600 )edit

@berak thanks for helping me...

Shiloh gravatar imageShiloh ( 2014-07-24 12:11:21 -0600 )edit