Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem with get QImage from camera view
Forum Updated to NodeBB v4.3 + New Features

Problem with get QImage from camera view

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 476 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    never_ever
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved