OpenCV Error reading YUV buffer

假如想象 提交于 2019-12-07 15:03:21

问题


I'm trying to get high resolution uncompressed images through the camera of an Android phone (Samsung Galaxy S3), using OpenCV v2.4. I set width and height using VideoCapture.set(Highgui.CV_CAP_PROP_FRAME_WIDTH, width) and same for height, but whenever I go to a mid-high resolution, the following error starts appearing:

ERROR reading YUV buffer: width=1600, height=1200, size=2880000, receivedSize=1036800

I'm guessing it means that the buffer is not big enough to store all the data, which I understand, but there must be some way to allocate a bigger buffer. Does anybody know how, or any workaround?

Thank you!

来源:https://stackoverflow.com/questions/12106540/opencv-error-reading-yuv-buffer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!