Problem with get QImage from camera view



  • Hi,
    I need to get view from camera. First I get view by using openCV, now I wanted to change it and use Qt to get image. I tried to use QCamera, but I don't know how to get QImage.
    I tried to

    1. set capture destination to buffer, but it is not supported

      isSupported = imageCapture[index]->isCaptureDestinationSupported(QCameraImageCapture::CaptureToBuffer); //false

    2. use QVideoProbe::setSource(...) but it also not supported.

    Any other ways to get QImage from camera view? Thanks.


  • Lifetime Qt Champion

    Hi,

    Since OpenCV already does what you need, why not just convert the image from OpenCV to QImage ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.