Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Custom QCamera plugin

Custom QCamera plugin

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 765 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dowhiletrue
    wrote on last edited by
    #1

    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

    JonBJ 1 Reply Last reply
    0
    • D dowhiletrue

      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

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @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.

      D 1 Reply Last reply
      1
      • JonBJ JonB

        @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.

        D Offline
        D Offline
        dowhiletrue
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @dowhiletrue said in Custom QCamera plugin:

          Maybe it will if the plugin is installed in a particular location

          Yes, in mediaservice plugin subdirectory

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved