Instead of capturing single frames, you may use QGraphicsVideoItem and QCamera.setViewfinder.
If you want to capture frames, you'd need to use QCameraImageCapture in conjunction with QCamera. -Marian 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 > [email protected] > https://lists.qt-project.org/listinfo/pyside > _______________________________________________ PySide mailing list [email protected] https://lists.qt-project.org/listinfo/pyside
