Ask Your Question

Zuku's profile - activity

2020-09-28 13:33:30 -0600 received badge  Popular Question (source)
2017-05-17 01:26:31 -0600 received badge  Popular Question (source)
2013-12-14 12:28:48 -0600 asked a question opencv_traincascade.exe is not a valid Win32 application

Hi, I tried to train a cascade classifier, but I got an error, when I want to start opencv_traincascade application:

image description

Other utilities (i. e. createsamples) work fine. Some days ago traincascade didn't cause any problems too.

I use Winows 7, thanks i advance.

2013-11-19 11:44:46 -0600 asked a question traincascade - "Cascade classifier can't be trained. Check the used training parameters."

Hi, I'm trying to train simple cascade classifier. I've created vec file with createsamples utility. But when i try to train classifier with command:

C:\ocv_sample> ..\opencv\build\x64\vc10\bin\opencv_traincascade.exe -data data -vec positive\myvec.vec -bg negative\bg.txt -numPos 3 -numNeg 5 -numStages 2 -w 300 -h 50 -featureType LBP
I get an error:
PARAMETERS:
cascadeDirName: data
vecFileName: positive\myvec.vec
bgFileName: negative\bg.txt
numPos: 3
numNeg: 5
numStages: 2
precalcValBufSize[Mb] : 256
precalcIdxBufSize[Mb] : 256
stageType: BOOST
featureType: LBP
sampleWidth: 300
sampleHeight: 50
boostType: GAB
minHitRate: 0.995
maxFalseAlarmRate: 0.5
weightTrimRate: 0.95
maxDepth: 1
maxWeakCount: 100

===== TRAINING 0-stage =====
BEGIN
POS count : consumed   3 : 3
NEG count : acceptanceRatio    5 : 1
Precalculation time: 2.05
+----+---------+---------+
|  N |    HR   |    FA   |
+----+---------+---------+
END
Cascade classifier can't be trained. Check the used training parameters.
My directory structure looks like:
\data
\negative
   bg.txt
   \img
      1.jpg
      2.jpg
      3.jpg
      4.jpg
      5.jpg
\positive
   myvec.vec

bg.txt:

img/1.jpg
img/2.jpg
img/3.jpg
img/4.jpg
img/5.jpg

I use Win7. What am i doing wrong?

2013-10-28 18:57:35 -0600 received badge  Student (source)
2013-10-27 08:39:35 -0600 commented answer WARNING:jni/Android.mk:detection_based_tracker: non-system libraries in linker flags: -lopencv_java

Could you show how your Android.mk file looks like now? I have this same problem and still can't solve it.

2013-10-25 14:02:58 -0600 asked a question face-detection sample: "Android.mk:detection_based_tracker: non-system libraries in linker flags: -lopencv_java"

Hi, Hi, first of all sorry for my bad English. I'm new to OpenCV and have tried to run android samples, but I have problem with samples with native code. When I try to run face-detection I get an error: image description

Console output looks like:

20:50:33 * Auto Build of configuration Default for project OpenCV Sample - face-detection * "C:\adt-bundle-windows-x86_64-20130219\android-ndk-r9\ndk-build.cmd" Android NDK: WARNING:jni/Android.mk:detection_based_tracker: non-system libraries in linker flags: -lopencv_java
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Install : libdetection_based_tracker.so => libs/armeabi-v7a/libdetection_based_tracker.so 20:50:36 Build Finished (took 3s.243ms)

Any ideas how can I solve it? Thanks in advance.