Skip to main content

Direct show with Spinnaker ?

Comments

10 comments

  • TDY_Markus
    Community team
    Great answers
    Expert (Gold)

    Hello Grégory,

    From your post I understand that you want to stream a camera that works in SpinView in another application. Is this correct?
    This is possible. Please refer to this article :
    https://www.flir.com/support-center/iis/machine-vision/knowledge-base/live-streaming-using-directshow/

    The shortcuts for registering DirectShow are located in this folder:
    C:\Program Files\Teledyne\Spinnaker\shortcuts\directshow_v140

    Please make sure to check DirectShow in the installation dialog of Spinnaker SDK.

    Thanks,
    Markus

    0
  • Grégory BAERT

    Hello,

    Thank you.

    I ran the "SpinSimpleGUI_DirectShow" project in MSVC 2022 and I have this message :

    Unfortunately, I don't find this script file on my computer ...

    Best regards,

    0
  • Grégory BAERT

    Hello,

    I uninstalled Spinnaker and reinstalled it with the third party "Spinnaker AIK" and "SpinnakerDirectShow". And the project "SpinSimpleGUI_DirectShow" work fine.

    I still have to work out how to incorporate it as a feature in my specific software that I'm currently developing for a client.

    To be continued ...

    Best regard,

    0
  • TDY_Markus
    Community team
    Great answers
    Expert (Gold)

    Hello Grégory,

    Yes, this is what I meant with "check DirectShow in the installation dialog". Glad to hear it works for you.

    SpinnakerAIK is for using USB cameras in Cognex VisionPro. We have an KB article covering this topic:
    https://www.flir.com/support-center/iis/machine-vision/application-note/using-flir-usb3usb2-cameras-with-cognex-visionpro/

    Best Regards,
    Markus

     

    0
  • Grégory BAERT

    Hello Markus,

    It's works fine with DirectShow.

    My software is developed in C++ Qt 6 + QML and direct show has apparently not been maintained since Qt 6.

    I'd like to know whether the Backfly USB 3 camera can be controlled via Windows Media Foundation ?

    Thank you,

    Best regards,

    0
  • TDY_Markus
    Community team
    Great answers
    Expert (Gold)

    Hello Grégory,

    Thank you for your patience. I'm afraid I was out of the office.
    Looking at your other post in our forum, it seems you found a solution for this. Right?

    https://teledynevisionsolutions.zendesk.com/hc/en-us/community/posts/28218020063629-BFS-U3-19S4M-C-stream-live-video

    Thanks,
    Markus

    0
  • Grégory BAERT

    Hello Markus,

    Thank you for your message.

    Yes, that is right, I've managed to get an array of 'unsigned char' to display in a QML / Qt6 GUI 'Image' element.

    However, it's not quite the 'stream' rendering I wanted to do originally, as in SpinView.

    Best regards,

    0
  • Grégory BAERT

    Hello,

    How can I best achieve this functionality?

    At the moment, I'm using the 'GetNextImage' method, and it's wasting a lot of time...

    Shouldn't Image Events be used more ?

    I usedd continuous mode and the handling mode is 'NewestOnly'

    Thank you,

    Best regards,

    0
  • Grégory BAERT

    Hello,

    I managed to do what I had in mind.


    Using Qt 6.7.1 with QML and openGL to display images in "stream video" mode from a Flir camera, or any other camera that is not "Windows Media Foundation" compatible but "Direct show": this is no longer possible since Qt6.

    To do this, I used classes inheriting from 'QQuickFramebufferObject' and 'QQuickFramebufferObject::Renderer'.

    0
  • TDY_Markus
    Community team
    Great answers
    Expert (Gold)

    Hello Grégory,

    Glad to hear you found a solution and thanks a lot for your summary.

    Best Regards,
    Markus

     

    0

Please sign in to leave a comment.

Powered by Zendesk