QByteArray device
= QCamera
::availableDevices()[0];
QCamera camera(device);
QVideoWidget surface;
surface.resize(320, 240);
camera.setViewfinder(&surface);
QByteArray device = QCamera::availableDevices()[0];
QCamera camera(device);
QVideoWidget surface;
surface.resize(320, 240);
camera.setViewfinder(&surface);
To copy to clipboard, switch view to plain text mode
How could I get the image capture by QCamera?
I want to do some post-processing on the camera video
QCameraImageCapture is too slow for real time
Anything similar to following codes?
QCamera camera(device);
QImage img
= camera.
getQImage();
//take the image buffer of camera
QCamera camera(device);
QImage img = camera.getQImage(); //take the image buffer of camera
To copy to clipboard, switch view to plain text mode
Bookmarks