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. Qt 6.6 Camera supported features

Qt 6.6 Camera supported features

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 419 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.
  • E Offline
    E Offline
    Evanshion
    wrote on last edited by
    #1

    Hi guys, I'm trying to get the features that my camera support but I only receive, from this function, 0 as result:

    void CameraInfoBridge::check(QCamera *camera)
    {
        qDebug() << "Features: " << camera->supportedFeatures();
    

    I'm developing on windows 10 and I have the same result using:

    • intregrated camera
    • 2 other camera module
      is there something I miss?
      I guess it is rather weird that QT does not support any functions

    Thanks in advance for any help

    jsulmJ 1 Reply Last reply
    0
    • E Evanshion

      Hi guys, I'm trying to get the features that my camera support but I only receive, from this function, 0 as result:

      void CameraInfoBridge::check(QCamera *camera)
      {
          qDebug() << "Features: " << camera->supportedFeatures();
      

      I'm developing on windows 10 and I have the same result using:

      • intregrated camera
      • 2 other camera module
        is there something I miss?
        I guess it is rather weird that QT does not support any functions

      Thanks in advance for any help

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Evanshion Please provide more context/code (for example we do not know how you're initialising camera).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      E 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Evanshion Please provide more context/code (for example we do not know how you're initialising camera).

        E Offline
        E Offline
        Evanshion
        wrote on last edited by Evanshion
        #3

        @jsulm yes, of course.

        MediaDevices {
                id: mediaDevices
                Component.onCompleted: {
                    for (var cam of mediaDevices.videoInputs){
                        if (cam.description==="Extraoral camera") //this is my default camera (a camera that supports videoclass, and can change focus, color settings ecc ecc
                            camera.cameraDevice = cam
        
                    }
                }
            }
        
            AudioInput {
                id: audioInput
            }
        
            CaptureSession {
                id: captureSession
                imageCapture : ImageCapture {
                    id: imageCapture
                    property string photopath: filemanager.photo_path
                }
                camera: Camera {
                    id: camera
                    cameraDevice: mediaDevices.defaultVideoInput
                    focusMode: Camera.FocusModeAutoNear
                }
                recorder: MediaRecorder {
                    id: recorder
                    outputLocation: filemanager.video_path+"/"+addMsg("_video")
                }
                audioInput: audioInput
                videoOutput: videoOutput
            }
        
            VideoOutput {
                id: videoOutput
                anchors.fill: parent
                anchors.rightMargin: 0
                anchors.leftMargin: 0
                anchors.bottomMargin: 0
                anchors.topMargin: 0
                fillMode: VideoOutput.PreserveAspectFit      
            }
        

        Tell me if you need further informations
        Thanks in advance

        ps: I use, in another part of the code

        camera.start()
        

        so I can assure I'm already able to see a video stream, recording it and taking photo from it.
        What I can't do is just changing any settings, seem that my cameras (I tried more) are all not supported...

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DanLargo
          wrote on last edited by
          #4

          Was there ever a response to this issue? Any camera I query returns no supportedFeatures.

          Camera enumeration and image capture works fine but regardless of camera no controls work, Exposure, WhiteBalance, Zoom, etc.

          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