Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Android: Highgui.imread Help

(Android emulator + OpenCV)

I'm using the android camera app to take a picture. I am successfully able to get the newly taken picture bitmap and display (Bitmap theImage = (Bitmap) data.getExtras().get("data");) it but now i need to get an Mat out of the picture. For that, i've been using a simple line:

Mat a = Highgui.imread("data");

I've testing it and it is always empty! How can i reach the picture then? Reaching a gallery photo would be fine as well but i don't know how.

Thanks

click to hide/show revision 2
No.2 Revision

Android: Highgui.imread Help

(Android emulator + OpenCV)

I'm using the android camera app to take a picture. I am successfully able to get the newly taken picture bitmap and display (Bitmap it:

Bitmap theImage = (Bitmap) data.getExtras().get("data");) it data.getExtras().get("data");

but now i need to get an Mat out of the picture. For that, i've been using a simple line:

Mat a = Highgui.imread("data");

Highgui.imread("data");

I've testing it and it is always empty! How can i reach the picture then? Reaching a gallery photo would be fine as well but i don't know how.

Thanks

Android: Highgui.imread Help

(Android emulator + OpenCV)

I'm using the android camera app to take a picture. I am successfully able to get the newly taken picture bitmap and display it:

Bitmap theImage = (Bitmap) data.getExtras().get("data");

but now i need to get an Mat out of the picture. For that, i've been using a simple line:

Mat a = Highgui.imread("data");

I've testing it and it is always empty! How can i reach the picture then? Reaching a gallery photo would be fine as well but i don't know how.

Thanks