Ask Your Question
0

how to run opencv_creatsamples.exe

asked 2013-03-04 06:54:32 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

hello there, I am trying to run opencv_createsamples.exe on my computer running Windows8(64-bit). My file is in directory C:\Emgu\bin\opencv_createsamples.exe. So whenever I try to run it from its directory using cmd it gives error: "The program can't start because opencv_core249.dll is missing from your computer.Try reinstalling the program to fix this problem." I've also tried re-installing it but it doesn't work. Can somebody help me?

edit retag flag offensive close merge delete

Comments

1

You probably need to add opencv_core249.dll to your system Path. This means locating it in your OpenCV install and adding that entire directory to your PATH variable in Windows->Advanced Settings.

This is the last step in the installation tutorial

awknaust gravatar imageawknaust ( 2013-03-04 08:49:51 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-03-04 09:36:48 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

1) Add the dll to the folder where the exe is located after manually compiling your createsamples.

OR

2) Like mentioned above, add the dll folder of OpenCV to your operatings system PATH variable.

edit flag offensive delete link more

Comments

thank you , thank you very much for helping me champions!.. it worked

SuYo gravatar imageSuYo ( 2013-03-05 07:11:34 -0600 )edit

You are welcome :) If it is fixed, then please accept answers, it will show people that topic is closed.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-03-05 08:23:38 -0600 )edit

sorry, I have another problem. I have 2 +ive samples inside "PositiveImages", 2 -ive in "NegativeImages" directory.All +img list in pos_desc.txt and -img list in neg_desc.txt I give the cmd > opencv_createsamples -vec pos_vec.vec -info pos_desc.txt -bg neg_desc.txt -num 9 it created only 2 samples . What did went wrong? And also please guide me how to use opencv_traincascade with same vec file. Thank you

SuYo gravatar imageSuYo ( 2013-03-06 04:12:20 -0600 )edit

Hi, Can you tell me how to know how many number of positive samples to generate? And how to feed paramaters into opencv_traincascade such as -numPos -numNeg -numStages -precalcValBufSize -precalcIdxBufSize etc.

SuYo gravatar imageSuYo ( 2013-03-06 04:21:39 -0600 )edit

Create a new question for your problem, this is not the way to go and people won't look at the problem :)

StevenPuttemans gravatar imageStevenPuttemans ( 2013-03-06 04:46:57 -0600 )edit

Can I have some good tutorial to create a classifier stepwised? Tired of searching...bot no good one found

SuYo gravatar imageSuYo ( 2013-03-06 04:47:12 -0600 )edit

As a last help: http://note.sonots.com/SciSoftware/haartraining.html This is about the most common referred manual for classifier training. Following his steps it should all work. Next time, new problem = new question, also accept peoples answers when they help you, else people will stop helping out :)

StevenPuttemans gravatar imageStevenPuttemans ( 2013-03-06 04:49:12 -0600 )edit
1

thanks a lot ... for your support :)

SuYo gravatar imageSuYo ( 2013-03-06 05:09:10 -0600 )edit
0

answered 2014-10-26 15:30:40 -0600

Sabri gravatar image

In Visual Studio 2013 you need to add this to to Environment Variables and then Restart your pc. This is the path where .dll file located in.

enter image description here

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-04 06:54:32 -0600

Seen: 4,565 times

Last updated: Oct 26 '14