Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. CaptureSession ImageCapture Not Work

CaptureSession ImageCapture Not Work

Scheduled Pinned Locked Moved Unsolved Qt 6
1 Posts 1 Posters 255 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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.
    
    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