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. QCameraExposure not possible to get or set attributes (Camera Example)

QCameraExposure not possible to get or set attributes (Camera Example)

Scheduled Pinned Locked Moved Unsolved General and Desktop
qcameraqt 5.7
4 Posts 2 Posters 1.8k Views
  • 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.
  • T Offline
    T Offline
    TayMarthin
    wrote on 24 Jan 2017, 15:51 last edited by
    #1

    Hello to everyone,

    I am just trying to set exposure mode to the webcam using the class QCamera::QExposureMode. Running the example from installation of QT Creator under Windows 7 (qt/examples/multimedia/camera.pro). Camera in real time and capture of pictures are both working, but changing exposure compensation seems to do nothing. In fact, changing the code to get apperture or shutterspeeds returns -1 (it is supposed to return a qreal with some value not negative). While checking if the camera allows exposuremode, the result is that it is not supported. Is this behaviour normal? Strange thing is that with apertura or other parameters, I do not have access to any of its attributes (the functions return 0, false or a negative value).

    I would appreciate some help with that!!!

    Thanks a lot,
    Taymarthin

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 24 Jan 2017, 21:16 last edited by
      #2

      Hi and welcome to devnet,

      Not all backends of QtMultimedia support all the features. You should check whether the parameters are supported.

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

      T 1 Reply Last reply 25 Jan 2017, 08:28
      0
      • S SGaist
        24 Jan 2017, 21:16

        Hi and welcome to devnet,

        Not all backends of QtMultimedia support all the features. You should check whether the parameters are supported.

        T Offline
        T Offline
        TayMarthin
        wrote on 25 Jan 2017, 08:28 last edited by
        #3

        @SGaist Thanks for your help. I had checked all these parameters but as I said, all these callings return FALSE, it means Not Supported (for exposure, shutterspeed, etc). The point is that if I try to change exposure, brightness or other parameters from Skype (Configuring Webcam video) for example, I am allowed to change any of these parameters successfully. This means that it is not a problem with the webcam, those parameters are supported. Does it have any sense?

        Regards,
        TayMarthin

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 25 Jan 2017, 11:21 last edited by
          #4

          I didn't wrote that there was any problem with your webcam, just that the backend used might not implement these parameters.

          You can check which backend is loaded by setting the "Q_DEBUG_PLUGINS" environment variable to 1 in the Run part of the Project panel in Qt Creator.

          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
          • A azarubkin referenced this topic on 1 Mar 2025, 09:23

          2/4

          24 Jan 2017, 21:16

          • Login

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