Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

CaptureSession ImageCapture Not Work



  • Hello, I want to take a picture from the camera of my mobile device. In Qt 6, ImageCapture is used for this.

        Camera {
            id: camera
            active: true
            focusMode: Camera.FocusModeAutoNear
        }
    
        CaptureSession {
            id: captureSession
            camera: camera
            videoOutput: videoOutput
    
            imageCapture: ImageCapture {
                id: imageCapture
    
                onErrorOccurred: {
                    console.log(errorString)
                }
    
                onErrorChanged: {
                    console.log(errorString)
                }
            }
        }
    
    ...
    
    imageCapture.capture()
    
    

    Error

    D qml     : : Capturing to buffer not supported.
    D qml     : : Capturing to buffer not supported.
    

Log in to reply