Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Camera change resolution on Windows

QML Camera change resolution on Windows

Scheduled Pinned Locked Moved QML and Qt Quick
cameraresolution
1 Posts 1 Posters 1.5k 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.
  • R Offline
    R Offline
    ratwix
    wrote on last edited by
    #1

    Hello,

    I have got a Logitech Webcam pluged in a Windows 7 PC. I want to capture Still images from this camera in the best possible resolution.

    My camera is 800x600 compatible, but all the capture I made are 640x480. The result is the same with a better HD camera. All photos have 640x480 resolution.

    To check the validity of the camera :

    "var res = camera.supportedViewfinderResolutions(15);
    console.debug("Camera resolution : " + JSON.stringify(res));"

    wchodze do detekcjiqml: Camera resolution : [{"width":160,"height":120},{"width":176,"height":144},{"width":320,"height":176},{"width":320,"height":240},{"width":352,"height":288},{"width":432,"height":240},{"width":544,"height":288},{"width":640,"height":360},{"width":640,"height":480},{"width":752,"height":416},{"width":800,"height":448},{"width":864,"height":480},{"width":800,"height":600},{"width":960,"height":544}]

    Here is the code I use :

    Camera {
        id: camera
        captureMode: Camera.CaptureStillImage
    
        imageCapture {
            resolution: "800x600"
    
            onImageCaptured: {
                ...
            }
        }
    }
    

    camera.imageCapture.captureToLocation("d:/Perso/test.png");

    Thanks for your help

    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