Sergey1972 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

cvHaarDetectObjects, OpenCV Error: Bad argument (Invalid classifier cascade) #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. compiled open cv 2.1 without sse,sse2, fast math and -o3 options, downloaded 
latest jna and javacv and correctly set the library path with eclipse
2.downloaded test2.class with eclipse
3.runned

What is the expected output? What do you see instead?

[ 0.99636316, 0.042701807, -23.595554
  -0.043815516, 0.99894774, -4.3367324
  2.283744E-4, 5.2293086E-5, 0.9971857 ]
OpenCV Error: Bad argument (Invalid classifier cascade)
in function cvHaarDetectObjects, 
C:\Users\etekno\Desktop\OpenCV-2.1.0\src\cv\cvhaar.cpp(1007)
java.lang.Exception: Stack trace
    at java.lang.Thread.dumpStack(Unknown Source)
    at com.googlecode.javacv.JavaCvErrorCallback.callback(JavaCvErrorCallback.java:67)
    at com.googlecode.javacv.jna.cv.cvHaarDetectObjects(Native Method)
    at com.googlecode.javacv.jna.cv.cvHaarDetectObjects(cv.java:2328)
    at Test2.main(Test2.java:72)

What version of the product are you using? On what operating system?

i'm using eclipse galileo on windows7 Professional 64bit.

java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

Please provide any additional information below.

Before i tried recompiling opencv 2.1 many times, i needed to remove the sse, 
sse2 AND fastmath, -o3 options to not get blue screen crashes after trying to 
stop the test2.class.
Now recompiled like that it does not crash all the system but still gives me 
the error written above while it pops out a dialog telling me that c++ runtime 
library has terminated in an unusual way.

While playing the test2.class the cam led correctly lights, it pops a frame on 
the screen but i can't see the image because it's too small and then it 
crashes. I tried with the built in cam on my laptop and a usb cam.

Do i need to remove some other options with cmake gui? it can be a 64bit 
problem?
I managed to work with opencv and java with the processing + opencv.jar 
libraries but it works only on version 1.0 that is SLOW and also less 
functionalities. Then i finally found your project and i'd really like to use 
it for my thesis :-/

Original issue reported on code.google.com by ete...@gmail.com on 28 Dec 2010 at 1:25

GoogleCodeExporter commented 8 years ago
This is about OpenCV. All your questions will be answered if you read their the 
wiki page about it: http://opencv.willowgarage.com/wiki/FaceDetection

Original comment by samuel.a...@gmail.com on 29 Dec 2010 at 1:51