Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2242

QImageCapture.readyForCaptureChanged signal is not called on Windows 10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.4.2
    • PySide
    • None
    • Windows

    Description

      I use QCamera, QMediaCaptureSession and QImageCapture objects to capture images from the camera. My code captures an image when camera is ready for it.

      But I noticed that QImageCapture.readyForCaptureChanged signal is called only once on Windows platform - just after QCamera.start(). Then it isn't called even if camera state is changed.

      Attached is a small example that triggers QImageCapture.capture() after button push. And it outputs how readyForCapture state is changed.

      Here is an output from Linux. You may see output "READINESS CHANGE" from on_ready event handler for readyForCaptureChanged signal:

      READYNESS CHANGE: True
      CAMERA READY STATE (1): True
      READYNESS CHANGE: False
      READYNESS CHANGE: True
      CAMERA READY STATE (2): True
      Captured 1
      CAMERA READY STATE (1): True
      READYNESS CHANGE: False
      READYNESS CHANGE: True
      CAMERA READY STATE (2): True
      Captured 2         

      And below is an output from Windows. You may see that camera state changes but there are no output "READINESS CHANGE" from on_ready event handler for readyForCaptureChanged signal:

      READYNESS CHANGE: True
      CAMERA READY STATE (1): True
      CAMERA READY STATE (2): False
      Captured 0
      CAMERA READY STATE (1): True
      CAMERA READY STATE (2): False
      Captured 1

      Attachments

        1. example.py
          2 kB
          Ivan Ivanov

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            starterkit Ivan Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: