Ask Your Question
0

OpenCV tutorial3 Example

asked 2013-03-21 06:02:29 -0600

NightLife gravatar image

Hi Guys,

I have a question about Tutorial3 (The android-openCV sample). I have not changed the original code also!!! When I touch the screen to take an Image, It can not save it and close the application.

Can anybody help me?

Thanks alot

edit retag flag offensive close merge delete

Comments

Can you quote logcat?

Andrey Pavlenko gravatar imageAndrey Pavlenko ( 2013-04-05 02:06:14 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-03-21 07:12:14 -0600

It has something to do with the access configuration file for android. Make sure the permissions are set correctly.

Add this to your 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

Dear Steven,

The permissions are exactly the same as yours, It can not save it in SD card !!!

Do you have any Idea about it?

NightLife gravatar imageNightLife ( 2013-03-21 07:32:28 -0600 )edit
1

Probably you will need to search for write permission to add to the manifest. However I am not experienced in Android Mobile Phone programming :)

StevenPuttemans gravatar imageStevenPuttemans ( 2013-03-21 11:49:02 -0600 )edit

Thanks anyway :)

NightLife gravatar imageNightLife ( 2013-03-22 03:21:54 -0600 )edit

Question Tools

Stats

Asked: 2013-03-21 06:02:29 -0600

Seen: 161 times

Last updated: Mar 21 '13