Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    [Qt] Take picture from USB camera

    General and Desktop
    3
    5
    1242
    Loading More Posts
    • 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
      mini.oxford last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • M
          mini.oxford last edited by

          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 Reply Quote 0
          • Jeroentjehome
            Jeroentjehome last edited by

            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 Reply Quote 0
            • M
              mini.oxford last edited by

              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 Reply Quote 0
              • First post
                Last post