from QCamera or QVideoWidget get video bytes
-
@zabitqt Oh, you can't convert it to QImage like this, as your debug info shows, the frame data you get from the camera is in YUV format, which QImage doesn't support.
If you want to get a QImage, just callframe.image(), you don't even need to clone, map and unmap... -
@Bonnie said in from QCamera or QVideoWidget get video bytes:
frame.image()
It doesn't exist method frame.image(). OK I have understand that the problem is QImage that not support Format_YUYV. I search a solution in google. Thank you so much!