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 wrong resolution
Qt 6.11 is out! See what's new in the release blog

QCamera wrong resolution

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.2k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi,

    I use QCamera class to get images.

    But the resolution is 640480 !
    My camera resolution is 2592
    1944

    I tried this:

    @
    camera = new QCamera(myCam);

    imageCapture = new QCameraImageCapture(camera);
    
    QImageEncoderSettings imageSettings;
    imageSettings.setResolution(2592,1944);
    imageCapture->setEncodingSettings(imageSettings);
    
    camera->setViewfinder(ui->viewfinder);
    
    connect(imageCapture, SIGNAL(imageCaptured(int,QImage)), this, SLOT(processCapturedImage(int,QImage)));
    
    camera->setCaptureMode(QCamera::CaptureStillImage);
    camera->start();
    

    @

    But it still 640*480.

    Anyone have already solved this problem? thx

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

      Hi,

      You should also add which version of Qt and OS you are using.

      Did you check the value of available resolutions with supportedResolutions ?

      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
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Os: Windows 7 & 8.1
        Qt : 3.0.0, Fram : 5.2.0, Compiler : Mingw 4.8
        App in 32 bit

        Yes I tried supportedResolutions or supportedFlash (the flash doesn't work too)... but ALL results of this function are "VOID":

        @qDebug() << imageCapture->supportedResolutions();@

        Result :
        ()

        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