Thanks for this hint – in fact what you describe is my current workaround but I think it should be possible to consciously set the capture devic resolution via Qt. Interestingly the current default resolution of the mac M1 cam is a square of 1552 x 1552 pixels but I typically use 16:9 rations.
I will investigate this in more detail and will possibly report a bug or at least non-ideal implementation in order to improve it. Let's see. Best Alex -- http://www.carot.de Email : alexan...@carot.de Tel.: +49 (0)177 5719797 > Gesendet: Dienstag, 15. Oktober 2024 um 10:19 Uhr > Von: "ekke" <e...@ekkes-corner.org> > An: interest@qt-project.org > Betreff: Re: [Interest] QCamera -> how to set resolution > > I remember that I also had some problems setting the Camera resolution > on ios or android. > So I always use the default resolution and later scale the captured QImage, > but I only need the captured images to upload to a server, no video > processing, so this probably won't help you > > ekke > > > Am 14.10.24 um 23:51 schrieb Alexander Carôt via Interest: > > Hello all, > > > > I have been using an Intel macOS with Sonoma 14.5 most of my time – here > > video processing with Qt6.8 works fine. I simply do frame-by-frame image > > capture and display the images in 16:9 format. > > > > However, on an Apple-Silicon-M1 Mac also with Sonoma 14.5 I have a problem > > with the resolution of the inbuilt cam which seems to not have a default > > 16:9 resolution – thus, the image is shrinked. > > > > So far I do (simplified): > > ========================= > > > > QSize resolution(1280, 720); > > camera = new QCamera( QMediaDevices::defaultVideoInput() ); > > captureSession.setCamera(camera); > > captureSession.setImageCapture(&imageCapture); > > imageCapture.setResolution(resolution); > > camera->start(); > > > > And I additionally tied this after instantiating the camera object: > > =================================================================== > > QCameraFormat myCamFormat; > > myCamFormat.resolution().setWidth(1280); > > myCamFormat.resolution().setHeight(720); > > camera->setCameraFormat(myCamFormat); > > > > However, it did not resolve the isse – can anyone advise how to do it ? > > > > Thanks beforehand, > > best > > > > Alex > > > > -- > > http://www.carot.de > > Email : alexan...@carot.de > > Tel.: +49 (0)177 5719797 > > > > _______________________________________________ > > Interest mailing list > > Interest@qt-project.org > > https://lists.qt-project.org/listinfo/interest > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > https://lists.qt-project.org/listinfo/interest > _______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest