Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
CvHaarClassifierCascade cascade = new CvHaarClassifierCascade(cvLoad(CASCADE_FILE));


cvLoad Cant get, if I use import static com.googlecode.javacv.cpp.opencv_core.cvLoad;
it's give Rune Time error
Posted
Updated 14-Jun-12 19:39pm
v2

1 solution

Can you post the Runtime error's logcat output here.

I think it gives you runtime error because of the it cannot locate the CASCADE_FILE used in

Java
CvHaarClassifierCascade cascade = new CvHaarClassifierCascade(cvLoad(CASCADE_FILE));


You need to put the CASCADE_FILE in SD card and the load it using

Java
Environment.getExternalStorageDirectory() + "/" + CASCADE_FILE_NAME;


or put the CASCADE_FILE in assets direcory of project and then load it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900