Ask Your Question
1

Android camera problem

asked 2013-03-19 11:52:50 -0600

muthu gravatar image

updated 2013-03-19 21:50:18 -0600

I'm developing opencv apps in android in and testing them in Beagleboard-xm and Embest DevKit8500,both having ARM Cortex-A8 processor..

In both of the boards connected camera is working normally in the android camera app. But the opencv apps donot work(not even the samples).

In Javacamera, the error message "It seems that your device does not support camera(or it is locked).Application will be closed)

In Nativecamera, the app doesnt even open.

How can i fix this problem?The camera i'm using a UVC camera with 1.3MP resolution.

edit retag flag offensive close merge delete

Comments

What is your Android version, OpenCV4Android SDK version and Manager version? Do other programs work with camera ok? Such error message usually means that samples cannot open any camera on your device. Alternatively camera can be locked by another process. Try to reboot device and check samples again. First with Java camera, then with native camera.

Alexander Smorkalov gravatar imageAlexander Smorkalov ( 2013-03-20 00:32:58 -0600 )edit

I have tried with Jellybean and Froyo..And with OCV4Android versions 2.4.3.1 & 2.4.4 ..none of them worked.. Yes the default android camera worked. Should I specify the camera resolution or the screen resolution using setResolution().

muthu gravatar imagemuthu ( 2013-03-20 00:59:56 -0600 )edit

And what about 3rd party apps? Camera application works with internal system API.

Alexander Smorkalov gravatar imageAlexander Smorkalov ( 2013-03-20 01:15:21 -0600 )edit

yes..they work...also i have enabled permission to install 3rd party apps in the settings

muthu gravatar imagemuthu ( 2013-03-20 01:42:43 -0600 )edit

There is known issue with Android 2.2 Froyo: http://www.code.opencv.org/issues/1244

Alexander Smorkalov gravatar imageAlexander Smorkalov ( 2013-03-20 01:56:45 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-03-20 04:24:52 -0600

alvise gravatar image

Have you tried to add the permission to use the camera in the AndroidManifest.xml?

<uses-permission android:name="android.permission.CAMERA" />

<uses-feature
    android:name="android.hardware.camera"
    android:required="false" />
<uses-feature
    android:name="android.hardware.camera.autofocus"
    android:required="false" />
<uses-feature
    android:name="android.hardware.camera.front"
    android:required="false" />
<uses-feature
    android:name="android.hardware.camera.front.autofocus"
    android:required="false" />
edit flag offensive delete link more

Comments

yes of course i did...the problem persists!

muthu gravatar imagemuthu ( 2013-03-20 23:00:07 -0600 )edit

Question Tools

Stats

Asked: 2013-03-19 11:52:50 -0600

Seen: 5,174 times

Last updated: Mar 20 '13