Capture camera preview for using in OpenCV. Converting to RGB and Gray Mat's. Java. Android

前端 未结 1 1984
执念已碎
执念已碎 2021-02-10 18:14

I want to detect faces on camera previews. I saw this example in OpenCV samples:

@Override
protected Bitmap processFrame(VideoCapture capture) {
    capture.retr         


        
相关标签:
1条回答
  • 2021-02-10 18:50

    480+240 (as height) results from YUV 420 format.

    this format has Y-plane with 480x320, U and V plane with each 0.5*resolution of Y plane (lookup YUV formats for details). As all 3 Planes of one Frame are stored in one Image, you have to allocate enough Space.

    0 讨论(0)
提交回复
热议问题