Unsolved Custom QCamera plugin
-
How does one go about writing a custom QCamera plugin? Per the QCamera documentation, this camera is not a mobile camera nor a webcam a it's a USB 3 camera and it's not identified using the QCameraInfo::availableCameras function call. What I need to do is create a QCamera plugin wrapper class to the USB cameras SDK for camera capture/control and have the camera reported in the QCameraInfo::availableCameras list.
Is this even possible and if so any help would be greatly appreciated.
John -
@dowhiletrue
While you are waiting for a better answer, I know nothing about this but it looks like this was asked in https://forum.qt.io/topic/79644/how-can-i-get-a-video-stream-from-a-usb-camera. One answer confirms it cannot be done, but another claims he did get it working with USB. As does https://stackoverflow.com/questions/17650710/recording-video-from-usb-cam-with-qt5. Have a read. You have probably checked out these approaches. -
@JonB
Thanks for the information but neither link truly answers my question, I'm guessing it's possible to create the plugin derived from QCamera but I'm thinking it won't be possible for it to show in the QCameraInfo::availableCameras list. Maybe it will if the plugin is installed in a particular location; but that's just a hunch. -
@dowhiletrue said in Custom QCamera plugin:
Maybe it will if the plugin is installed in a particular location
Yes, in mediaservice plugin subdirectory