hi ;
i use opecv to convert an image stored in the sd card to the gray scale
format using the function
Imgproc.cvtColor(src, dest, Imgproc.COLOR_BGR2GRAY);
; but i have this error !!!
E/AndroidRuntime(19363): java.lang.RuntimeException: Failure delivering
result ResultInfo{who=null, request=1, result=-1, data=null} to activity
{com.emsir.BarCodeV12.app/com.emsir.BarCodeV12.cam.TakePictureActivity}:
CvException [org.opencv.core.CvException:
/home/andreyk/OpenCV2/trunk/opencv_2.3.1.b2/modules/imgproc/src/color.cpp:2789:
error: (-215) scn == 3 || scn == 4 in function void cv::cvtColor(const
cv::_InputArray&, const cv::_OutputArray&, int, int)
so probablly that the src color space in android app is not BGR !!!
waht is the color space in android systems ??
thank you in advance :)
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en