ottomatic-io / pyphantom

Communicate with Vision Research Phantom® cameras with python
GNU Lesser General Public License v3.0
10 stars 2 forks source link

Pulling video from camera #2

Open jaclynnstubbs opened 5 years ago

jaclynnstubbs commented 5 years ago

When I run your python notebook, I can see all the correct information regarding my camera. But do you have a script that explains how to pull frames/video from the camera?

cbenhagen commented 5 years ago

That notebook wasn't that helpful actually. I added a simple example of how to get a single raw frame: https://github.com/OTTOMATIC-IO/pyphantom/blob/master/examples/get_single_frame.py

To get a color image you would need to debayer, apply white balance etc. A really old and incomplete attempt to implement this in python is here: https://github.com/OTTOMATIC-IO/pycine/blob/master/pycine/color.py

For internal use I implemented a python wrapper for the demo C implementation from Vision Research. It would be nice to either fully port this to Python or to be able to release the full code.

The corresponding issue in pycine is here: https://github.com/OTTOMATIC-IO/pycine/issues/2

cbenhagen commented 5 years ago

Over time we hope to release more and more of our internal stuff to make this easier. If you need quick access to the clips on your cam today, please consider to use our virtual file system PHANTOMfuse: https://ottomatic.io/o/phantomfuse/