How to Modify OpenCV4Android Source Code to support USB Camera On Android device

asked 2015-03-29 06:04:51 -0500

Hello everybody , it's the first time that i ask question here.My English is not so good,so i hope that everyone can understand. Now I am doing a project on Android , using USB Camera to capture the image and processing with OpenCV.And I have tested my Android environment,I use Android API of Class Android.hardware.Camera to write a simple android project to test the system,the result is that i have own one back camera(that just is USB camera).When I import OpenCV4Android Sample of 15-puzzle into eclipse, I clean,build and launch the sample into my Android develop board.However,when i open the app of 15-puzzle,i get the dialogue,it shows the infomation "It seems that your device does not support camera(or it is locked).Application will be closed." I google this problem,and get the answer of "OpenCV4Android Library doesn't support USB Camera".But now,I don't know how to modify the OpenCV4Android Source Code to meet my demand. Thanks!

edit retag flag offensive close merge delete