Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QCamera flash is not working properly

QCamera flash is not working properly

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 125 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.
  • C Offline
    C Offline
    Choudhary Ramesh
    wrote on last edited by Choudhary Ramesh
    #1

    hi , when i try to take picture through QImageCapture with flash mode on ,the resulting captured image has pink effect on it ,what's causing it ?

        CaptureSession
        {
            id:mCaptureSession
            camera: Camera
            {
                id:mCamera
                flashMode:Camera.FlashOn
            }
            imageCapture: ImageCapture
            {
                id:mImageCapture
                onImagaSaved:
                {
                    imagePreview = ""
                    imagePreview="file:///"+"MfilePath";
                }
            }
            videoOutput: mVideoOutput
            
            function capture()
            {
                if(mImageCapture.readyForCapture && mCamera.isFlashReady())
                    mImageCapture.captureToFile("MfilePath")
            }
        }
        
        VideoOutput
        {
            id:mVideoOutput
            anchors.fill: parent
            Image 
            {
                id: imagePreview
                anchors.fill: parent
                source: ""
            }
        }
    
    

    platform:- android (sdk 30)
    Qt version :- 6.2
    see video

    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