[PySide] How to get QPixmap from QCamera

Marian Beermann public at enkore.de
Sun May 19 09:28:44 CEST 2019

Instead of capturing single frames, you may use QGraphicsVideoItem and

If you want to capture frames, you'd need to use QCameraImageCapture in
conjunction with QCamera.


Am 19.05.19 um 07:31 schrieb henry.wede--- via PySide:
> Hello,
> I am trying to create a program so I can use a USB microscope/camera for
> alignment on a CNC router.  The image needs to have cross-hairs and
> other helpful geometry overlayed on top of the camera image.  I have
> spent a few hours looking at examples and trying to come up with a
> solution from the documentation.  
> I think that I would like to have a QTimer that gets an image from the
> QCamera a couple times a second and then uses that in a QGraphicsScene. 
> Then I can control the Z ordering and easily add lines, circles, etc.  I
> have done some drawing in the QGraphicsScene before so I am comfortable
> with that part.  However, I cannot find a way to get the image from the
> QCamera object.  
> Can anyone offer a suggestion?  I am out of my comfort zone with this one.
> Thanks,
> Henry
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> https://lists.qt-project.org/listinfo/pyside

More information about the PySide mailing list