Android:相机帧分辨率大于640x480(Android: camera frame resolution larger than 640x480)
在Android中,您需要将Surface设置为相机,以便进行预览。 但相机预览仅支持640x480 。 我尝试在C ++(Android NDK)中使用OpenCV和VideoCapture,但更高的分辨率也无效。
那么,有没有办法要求更高分辨率的相机帧(例如1024x768 - 相机支持)并处理这些帧而不实际显示它们?
谢谢你的任何提示。
In Android you need to set a Surface to the camera so that you get a preview. But camera preview is only supported up to 640x480. I tried using OpenCV and VideoCapture in C++ (Android NDK) but higher resolution did not work either.
So, is there a way to request camera frames in higher resolutions (for example 1024x768 - which is supported by the camera) and process those frames without actually displaying them?
Thanks for any hint.
原文:https://stackoverflow.com/questions/19181692
更新时间:2020-01-03 03:52
最满意答案
我发现它是ImageFormat和分辨率的组合。 您需要设置正确的Imagefo