Ask Your Question

Pinky's profile - activity

2016-03-17 06:58:24 -0600 received badge  Famous Question (source)
2016-03-02 22:07:16 -0600 received badge  Student (source)
2015-06-05 09:01:42 -0600 received badge  Notable Question (source)
2015-02-09 11:55:13 -0600 received badge  Popular Question (source)
2013-07-24 20:06:46 -0600 commented answer error in train casacde

Steven Thanks a lot for your time and suggestion .. I will try to do it..may be next week..after backing up all my files.

2013-07-23 20:03:50 -0600 commented answer error in train casacde

I tried both way. but didn't work. :( :( :(

2013-07-23 01:07:36 -0600 commented answer error in train casacde

Hi steven , Thanks again for your time. Yes I know what is warning and error. I posted that to say I am generating proper .exe and whiles running it getting the same error(Train dataset for temp stage can not filled. Branch training terminated. Cascade Classifier can't be trained. check the used training parameters"). No I have never changed any source. Last week only I downloaded the opencv2.4.6 to do cascaded training. so I just the apps folder.

2013-07-22 21:09:57 -0600 commented answer error in train casacde

When I build the solution I see the following - 1>------ Rebuild All started: Project: cascade, Configuration: Debug Win32 ------

1> traincascade.cpp

1>c:\users\administrator\documents\visual studio 2010\projects\cascade\cascade\traincascade.cpp : warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss 1>c:\opencv2.4.6\build\include\opencv2\flann\dist.h : warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss 1>c:\opencv2.4.6\build\include\opencv2\flann\dist.h : warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss 1>c:\opencv2.4.6\build\include\opencv2\flann\dist.h : warning C4819 ... (more)

2013-07-22 20:42:02 -0600 commented answer error in train casacde

no it is not happening :( I have rebuild the solution not working. I used your test solution and rebuild in 32bit machine and rebuild it, not working. Ever time I am getting same error ..I don't know what is going wrong.

2013-07-22 03:31:10 -0600 commented answer error in train casacde

ok thanks ..I will keep you posted

2013-07-22 02:55:26 -0600 commented answer error in train casacde

A little question, do I need 2.4.5 dll for building this .cpp code?

2013-07-22 02:52:22 -0600 commented answer error in train casacde

Ok thank you. I will have to do it tomorrow morning as for now I am out of my work place for classes. I will give you updates tomorrow morning.

2013-07-22 01:50:12 -0600 commented answer error in train casacde

Yes I build it with the 2.4.6 version.

2013-07-21 22:59:38 -0600 commented answer error in train casacde

Do you have any suggestion what should I do ?

2013-07-21 20:19:14 -0600 commented answer error in train casacde

HI steven !! yes my system is windos 7, 32 bit .

2013-07-19 00:13:21 -0600 answered a question opencv_core245d.dll cannot be read by vs12

in your project go to properties->linker->additional dependencies and add the corresponding library name. for example for opencv_core245d.dll you need to add opencv_core245d in the additional dependency

2013-07-18 23:38:05 -0600 commented answer opencv_core241d.dll missing

did you set your bin path to the environment path?

2013-07-18 21:36:01 -0600 commented question Build opencv

you do not need to compile, you can just download the .exe of opencv from http://opencv.org/downloads.html and run it.

2013-07-18 21:15:12 -0600 commented answer error in train casacde

:'( :'( :(

2013-07-18 21:00:21 -0600 commented answer error in train casacde

hi Steven !! thank you for your time.. I tested it with opencv2.4.6 also still having same error. here is the new .exe file and all data. can you please check with my .exe file. https://docs.google.com/file/d/0B90iLkzk5IUrbXI3dkRsZFdEVGc/edit?usp=sharing

2013-07-18 02:31:34 -0600 commented question error in train casacde

not a problem. I have shared the link please check it.

2013-07-18 02:25:03 -0600 commented question error in train casacde

I just attached it but it is not show.. if it is possible please give me your email id I will send you directly.

2013-07-17 20:49:13 -0600 commented question error in train casacde

@steven I have attached the zip folder in the question. As you mention I tried changing positive sample number to 40 but still have the same error. There is 2 .vec files in the zip folder positives.vec with 50 samples and positives2.vec with 40 samples.

2013-07-17 20:42:34 -0600 commented question error in train casacde

@Prasanna thanks for your reply I tried using "./" but it does not work.

2013-07-17 03:25:51 -0600 commented question error in train casacde

I have tried using front slahes, back shales, doubles slashes.. but for every cases it gives same error.

2013-07-17 03:24:48 -0600 commented answer error in train casacde

I have updated the question with bg.txt file info and the related path

2013-07-17 02:14:05 -0600 commented question error in train casacde

Hi Prasanna, Thanks for your reply I changed this 2 parameters but still getting the error.

2013-07-16 23:57:23 -0600 answered a question can you switch out xml files facedetection object recognition

yes you can you that. here you can see a code for oject detection. just replace the xml file with your xml.

2013-07-16 21:27:29 -0600 commented answer haartraining.exe and createsamples.exe missing

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.

2013-07-16 21:20:02 -0600 asked a question error in train casacde

Hi I am having an error saying "Train dataset for temp stage can not filled. Branch training terminated. Cascade Classifier can't be trained. check the used training parameters" when I am trying to do training. I used 50 positive and 100 negative images. I saw a similar question here . My bg.txt file is already in the form mentioned in that solution but still having the error.

my console output was as follows-

C:\Users\Administrator\Documents\Visual Studio 2010\Projects\cv_traincascade\Debug>cv_traincascade.exe 
-data test -vec positives.vec -bg infofile.txt -numPos 50 -numNeg 100 -numStages 20 -precalcValBufSize 1024 
-precalcIdxBufSize 1024 -w 24 -h 24


PARAMETERS:
cascadeDirName: test
vecFileName: positives.vec
bgFileName: infofile.txt
numPos: 50
numNeg: 100
numStages: 20
precalcValBufSize[Mb] : 1024
precalcIdxBufSize[Mb] : 1024
stageType: BOOST
featureType: HAAR
sampleWidth: 24
sampleHeight: 24
boostType: GAB
minHitRate: 0.995
maxFalseAlarmRate: 0.5
weightTrimRate: 0.95
maxDepth: 1
maxWeakCount: 100
mode: BASIC
===== TRAINING 0-stage =====
<BEGIN
POS count : consumed   50 : 50
Train dataset for temp stage can not be filled. Branch training terminated.
Cascade classifier can't be trained. Check the used training parameters.

strong text Can you please say what is wrong in my command? any help will be appreciated. thank you.

my directory info- C:\Users\Administrator\Documents\Visual Studio 2010\Projects\cv_traincascade\Debug

cv_traincascade.exe

positives.vec

negative

infofile.txt

context of infofile is al follows-

negative/UMD_001.jpg
negative/UMD_002.jpg
negative/UMD_003.jpg
negative/UMD_004.jpg
negative/UMD_005.jpg
negative/UMD_006.jpg
negative/UMD_007.jpg
negative/UMD_008.jpg
negative/UMD_009.jpg
negative/UMD_010.jpg

...

Here is the zip file of the directory https://docs.google.com/file/d/0B90iLkzk5IUrbXI3dkRsZFdEVGc/edit?usp=sharing

2013-07-16 00:03:43 -0600 commented question Cascade Training Error OpenCV 2.4.4 - Train dataset for temp stage can not filled. Branch training terminated. Cascade Classifier can't be trained. check the used training parameters

Hi, Constantin I am having same error. I changed my bg.txt as you told in the solution but still having the error. can you please help me with it?

2013-07-15 22:08:41 -0600 commented answer haartraining.exe and createsamples.exe missing

Thanks steven its working.

2013-07-15 21:23:41 -0600 edited question generating createsamples.exe in opencv 2.4.6

Hi I am training to make the .exe files from the opencv utilities. I used the traincascade.cpp in the folder C:\opencv2.4.6\apps\traincascade to make the traincascade.exe successfully.

But when I am trying to make the createsamples.exe using createsamples.cpp in the C:\opencv2.4.6\apps\haartraining I am getting Linking error(LNK2019) . Can anyone please explain in details how can I build createsamples.cpp to generate the .exe file.

note: In an empty project in the source I added createsamples.cpp, cvboost.cpp cvcommon.cpp, cvhaarclassifier.cpp and cvsamples.cpp

and in the header I added _cvcommon.h , _cvhaartraining.h, cvclassifier.h and cvhaartraining.h

thanks

2013-07-15 21:23:41 -0600 received badge  Editor (source)