Closed GoogleCodeExporter closed 9 years ago
Could you also please provide the `width` and `height` that you get from
`camera.getParameters().getPreviewSize()`? Thanks
Original comment by samuel.a...@gmail.com
on 1 Mar 2014 at 10:57
[deleted comment]
Preview size, 1280*720
Picture size, 640*480
Original comment by htp2...@gmail.com
on 2 Mar 2014 at 3:23
Ok, so 1280*720*1.5 = 1382400 => The data your are getting has width=1280 and
height=720, so please allocate an IplImage of that size.
And please ask your questions on the mailing list next time, if possible,
thanks!
Original comment by samuel.a...@gmail.com
on 2 Mar 2014 at 3:47
Hi Samuel,
Why is not the data size determined by picture size rather than preview size?
Thanks.
Original comment by htp2...@gmail.com
on 2 Mar 2014 at 3:55
Hi Samuel,
Why is not the data size determined by picture size rather than preview size?
And why is the formula with a factor "1.5"?
Should I allocate a IplImage as below?
yuvIplimage = IplImage.create(1280, 720,
opencv_core.IPL_DEPTH_8U, 2);
And thanks for the great library you created.
Thanks.
Original comment by htp2...@gmail.com
on 2 Mar 2014 at 4:03
1. I'm guessing it's because your device doesn't support 640x480. But I'm not
the one you should be asking.
2. OpenCV wasn't designed to support YUV data, so yes that's how we need to
allocate it, for now. This is just an ugly hack.
Original comment by samuel.a...@gmail.com
on 2 Mar 2014 at 4:08
Original issue reported on code.google.com by
htp2...@gmail.com
on 28 Feb 2014 at 4:35