OpenCV 2.3: Convert Mat to RGBA pixel array

前端 未结 3 1561
一向
一向 2020-12-10 07:23

I am attempting to use OpenCV to grab frames from a webcam and display them in a window using SFML.

VideoCapture returns frames in OpenCV\'s Mat format. To display t

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 07:42

    I like the accepted answer better but this snippet helps you understand what's going on.

     for (int i=0; i

提交回复
热议问题