morefigs / py-ic-imaging-control

Python wrapper for the IC Imaging Control SDK from The Imaging Source (TIS)
MIT License
33 stars 22 forks source link

Live video stream #31

Open matthims opened 4 years ago

matthims commented 4 years ago

I'm attempting to run an IC camera (DMK 31BU03) on Python 3.7 and using Spyder. I can connect to the camera and alter various properties, and can also save images without any errors popping up. However, those images are blank (only 13kB jpgs), and the live video is also blank (it pops up in an 'ActiveMovie window' on Windows 10). I've played with the graphics backend options (inline, auto qt4, qt5 and tkinter) with no luck. I've looked through all the wrapper files in pyicic but can't find how it passes the video (e.g. OpenCV). My only guess is that the 'sink' is not set correctly, but when I try altering set_format(), I get the same error even if I provide the same value it provides for get_format():

File "**\py-ic-imaging-control-master\pyicic\IC_Camera.py", line 263, in set_format raise IC_Exception(err)

IC_Exception: 0

I've managed to live video via other software and Labview.

Anyone else had this issue and found a fix?

matthims commented 4 years ago

Solved. The default frame rate was too high.