Closed GoogleCodeExporter closed 9 years ago
Which version of JavaCV are you using?
Original comment by samuel.a...@gmail.com
on 6 Feb 2012 at 2:31
javacv-bin-20120108 version
Original comment by free4st...@gmail.com
on 7 Feb 2012 at 3:54
javacv-bin-20120108 version
Original comment by free4st...@gmail.com
on 7 Feb 2012 at 3:55
And which version of OpenCV?
Original comment by samuel.a...@gmail.com
on 7 Feb 2012 at 4:01
I got the same error;
javacv-bin-20120108 version and openCV2.3.1
Original comment by xuzhike1...@gmail.com
on 12 Feb 2012 at 10:42
I reference to the sample:
http://www.cnblogs.com/ljsspace/archive/2011/08/05/2128948.html
except different versions.
when I changed openCV version to 2.3, got other error:
OpenCV Error: Null pointer (Invalid classifier cascade) in unknown function,
file C:\slave\WinInstallerMegaPack\src\opencv\modules\objdetect\src\haar.cpp,
line 1041
Exception in thread "main" java.lang.RuntimeException:
C:\slave\WinInstallerMegaPack\src\opencv\modules\objdetect\src\haar.cpp:1041:
error: (-27) Invalid classifier cascade
at com.googlecode.javacv.cpp.opencv_objdetect.cvHaarDetectObjects(Native Method)
at com.googlecode.javacv.cpp.opencv_objdetect.cvHaarDetectObjects(opencv_objdetect.java:244)
at com.facedetection.FaceDetection.main(FaceDetection.java:49)
Original comment by xuzhike1...@gmail.com
on 12 Feb 2012 at 10:44
Could you let me know the content of your system PATH? thanks
Original comment by samuel.a...@gmail.com
on 12 Feb 2012 at 11:27
I put all files in OpenCV2.3.1\build\x86\vc10\bin into C:\Windows\System32
folder.
Original comment by xuzhike0...@gmail.com
on 13 Feb 2012 at 4:23
Please try to remove the files from there, and follow the instructions on this
page:
http://code.google.com/p/javacv/wiki/Windows7AndOpenCV
And let me know if this fixes the problem, thank you
Original comment by samuel.a...@gmail.com
on 13 Feb 2012 at 4:25
I follow the instructions
http://code.google.com/p/javacv/wiki/Windows7AndOpenCV
and tried both but still not work:
OpenCV Error: Null pointer (Invalid classifier cascade) in unknown function,
file C:\slave\WinInstallerMegaPack\src\opencv\modules\objdetect\src\haar.cpp,
line 1041
Exception in thread "main" java.lang.RuntimeException:
C:\slave\WinInstallerMegaPack\src\opencv\modules\objdetect\src\haar.cpp:1041:
error: (-27) Invalid classifier cascade
at com.googlecode.javacv.cpp.opencv_objdetect.cvHaarDetectObjects(Native Method)
at com.googlecode.javacv.cpp.opencv_objdetect.cvHaarDetectObjects(opencv_objdetect.java:244)
at com.facedetection.FaceDetection.main(FaceDetection.java:49)
Original comment by xuzhike1...@gmail.com
on 14 Feb 2012 at 12:02
here is my FaceDetection file.
I add OpenCV DLLs and tdd.dll to system PATH C:\Windows\System32
Original comment by xuzhike1...@gmail.com
on 14 Feb 2012 at 12:06
Attachments:
Can you try to run the Demo class in the README.txt instead? Thank you
Original comment by samuel.a...@gmail.com
on 14 Feb 2012 at 1:16
Demo class in README.txt ran well. thx.
but why the FaceDetection cannot work?
Original comment by xuzhike1...@gmail.com
on 15 Feb 2012 at 12:24
Probably because of this missing line:
// Preload the opencv_objdetect module to work around a known bug.
Loader.load(opencv_objdetect.class);
Original comment by samuel.a...@gmail.com
on 15 Feb 2012 at 1:35
Judging by the lack of feedback, I assume the issue has been resolved. Please
let me know if this is not the case.
Original comment by samuel.a...@gmail.com
on 19 Feb 2012 at 4:50
Thank u very much , the issue was with the JavaCV version
Original comment by free4st...@gmail.com
on 11 May 2012 at 11:05
I get the same errors, could you please share which JavaCV version is needed to
make the FaceDetection work?
Thank you
Original comment by Cristina...@gmail.com
on 13 May 2012 at 9:30
[deleted comment]
I got "Invalid classifier cascade" error when the CASCADE_FILE was not put in
the location my code is looking for. The error is gone once I fixed the
location. It also looks like the DLLs are loaded based on the exact name match,
so the currnt 0.1 version only works with OpenCV 2.4.0.
Original comment by barr...@gmail.com
on 22 Jun 2012 at 5:57
I tried OpenCV 2.4.1 and was able to overcome the first "Can't find dependent
libraries" error by renaming opencv_core241.dll and opencv_core241d.dll to
opencv_core240.dll and opencv_core240d.dll. It then complained the same error
with a different jniopencv_xxx.
Original comment by barr...@gmail.com
on 22 Jun 2012 at 6:03
Original issue reported on code.google.com by
free4st...@gmail.com
on 5 Feb 2012 at 7:34Attachments: