QCamera and supportedFeatures(), does this work on MacOS??
-
I have been using the QCamera class with the QImageCapture class to open and read image frames from USB cameras on my Mac (MacOS 15.0).
The QCamera class is able to open USB cameras (I have tried 3 different ones now) and grab frame, scale, rotate and save to disk.
When I query any of the cameras using the QCamera::supportedFeartures() method, it always returns 0x00.
QCamera::Features vect = m_camToUse->supportedFeatures(); if( 0 == vect ) { // this code path always executes }
If I try to set ExposureMode or FocusMode or WhiteBalanceMode, the only supported modes are ***Auto.
Do these methods of QCamera actual work on MacOS?
I see this question was asked about 9 months ago and no answer was received.
Thanks in advance!!
-
Hi,
Which camera model is that ?
Which version of Qt are you using ? -
I am running Qt 6.8, with the latest version of XCode behind it.
I have tried the software with a Logitech StreamCam, Obsbot Tiny 4K, and a generic no-name webcam.
All of the cameras present their controls properly when accessed via the video4Linux2 api via gcc on both Raspberry PI and Linux desktop platforms.
The cameras present their image formats correctly via the QCamera::photoResollutions() api call.