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. [Qt] Take picture from USB camera

[Qt] Take picture from USB camera

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.6k 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.
  • M Offline
    M Offline
    mini.oxford
    wrote on last edited by
    #1

    I have a problem with taking a picture from camera. I would like to not save it on disc, I want have it in buffer.
    @
    imageCapture->setCaptureDestination( QCameraImageCapture::CaptureToBuffer);
    imageCapture->capture();
    @

    This pice of code doesn't work.

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

      Hi and welcome to devnet,

      Doesn't work is a bit vague. You should tell what your are expecting and what you are getting ?

      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
      • M Offline
        M Offline
        mini.oxford
        wrote on last edited by
        #3

        The program compiles correctly but the flag has not been assigned to write to buffer. I want save capture in buffer but flag has not been changed.

        1 Reply Last reply
        0
        • JeroentjehomeJ Offline
          JeroentjehomeJ Offline
          Jeroentjehome
          wrote on last edited by
          #4

          Hi, still very vague. How do you setup your QCameraImageCapture class? Do you set it to:
          @
          camera->setCaptureMode(QCamera::CaptureStillImage);
          camera->start();
          @
          Did you try the entire sequence given in the docs?

          Greetz, Jeroen

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mini.oxford
            wrote on last edited by
            #5

            I set up a webcam and answer correctly and captures the image to a file but when I set the flag to write to the buffer pass code builds correctly without any problems, I checked the setting flags and no change. It may be because it works on windows, linux and to be able to operate correctly.

            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