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. QCamera resolution selection

QCamera resolution selection

Scheduled Pinned Locked Moved General and Desktop
qcameraqimageencoderse
5 Posts 2 Posters 2.1k 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.
  • M Offline
    M Offline
    mking
    wrote on last edited by mking
    #1

    I'm having some problems using QCamera on a Microsoft Surface 3 Pro running Win8.1. I can connect to either camera (front or rear) and capture without any problems.

    However, the front camera comes up at 1920x1080, but the rear camera is 640x480. I cannot seem to change this.

    I've tried changing the resolution using the QImageEncoderSettings:

    QImageEncoderSettings imageSettings;
    imageSettings.setCodec("image/jpeg");
    imageSettings.setResolution(1920,1080);
    imageCapture->setEncodingSettings(imageSettings);
    

    This makes no difference. When I try to get supported resolutions or codecs, both return empty lists.

    I know the camera is capable of better. It's spec'd the same as the front camera, I believe, and when I use the system Camera software it is far higher resolution.

    How do I get the camera to switch to a higher resolution?

    Thanks!

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

      Hi and welcome to devnet,

      What version of Qt are you currently using ?

      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
        mking
        wrote on last edited by
        #3

        Thanks!

        I'm using Qt 5.4

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

          Visual Studio or MinGW ?

          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
            mking
            wrote on last edited by
            #5

            Visual Studio 2013. I'm building against the VS2013 64bit OpenGL libraries (msvc2013_64_opengl).

            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