What steps will reproduce the problem?
1. software dev platform: IDE eclipse 3.7.2 + android sdk r18 + android ndk r7
+ cygwin; hardware platform: motorola xt910 razr;
the dev configuration is ok. can run android sdk and ndk samples in AVD and my phone;
2. I config the opencv to the ide,i think is ok too;the sample project build
ok, can run in AVD and the result is ok too. it can run in the phone too,but in
the phone display nothing just a black screen, and it can find some ui menus if
i touch the screen.( in eclipse,I select android sdk DroidRAZR[Android
2.3.3],the sample is tutorial-2-opencvcamera,and the other samples(use the
camera) had same problem )
3. I debug it in my phone, and find the program block in the method
"SampleCvViewBase.run()", and it block in this codes "if(mCamera.grab())".
mCamera.grab() can't have a return. the method is a native method.
What is the expected output? What do you see instead?
the result of the program run in my phone just like it run in AVD.
What version of the product are you using? On what operating system?
dev platform: windows 7 home base
eclipse 3.7.2 (Version: Indigo Service Release 2)
android sdk r18 select the DroidRAZR[Android 2.3.3]
opencv 2.4.0 android
the phone is motorola xt910 razr.(OS Android 2.3.5)
Please provide any additional information below.
download the files form
http://sourceforge.net/projects/opencvlibrary/files/opencv-android/2.4.0/OpenCV-
2.4.0-android-bin.tar.bz2/download
and then open the opencv\OpenCV-2.4.0-samples\tutorial-2-opencvcamera project
Original issue reported on code.google.com by 501931...@qq.com on 13 Jun 2012 at 8:11
Original issue reported on code.google.com by
501931...@qq.com
on 13 Jun 2012 at 8:11