murthylab / pybmt

Python Ball Motion Tracking (pymbt): A python interface for FicTrac (https://github.com/rjdmoore/fictrac)
Other
0 stars 5 forks source link

running run_examaple.py with camera #1

Open BZattera opened 3 years ago

BZattera commented 3 years ago

Hi! I would like to run the example you provided taking input from my camera instead than from test.mp4. I changed the config file and I put 0 instead of test.mp4 in the field src_fn, but still I wasn't able to start the normal fictrac camera in that way. Should I have to change some other params in the config file or somewhere else?

davidt0x commented 3 years ago

Hi,

May I ask what type of camera are you using? If it is a point grey camera, make sure you are passing pgr_enable=True to the constructor of FicTracDriver. This will enable PGR support.

If you are not using a PGR camera. Then we will need to figure out why OpenCV (the library FicTrac is using for generic USB video cameras) is not picking it up.

BZattera commented 3 years ago

Hi, I am using a Flir camera which is not PGR. Do you have any suggestions to manage this type of cameras?

davidt0x commented 3 years ago

I think what you need is a version of FicTrac compiled with the Spinnaker SDK. See:

https://github.com/rjdmoore/fictrac#usb23-camera-installation

pybmt currently works off a forked version of FicTrac. I have only build it using the OpenCV and FlyCapture SDKs. I will try to build it with the Spinnaker SDK as well but I probably won't get to it till later next week.

tedwu-neuro commented 2 years ago

I think what you need is a version of FicTrac compiled with the Spinnaker SDK. See:

https://github.com/rjdmoore/fictrac#usb23-camera-installation

pybmt currently works off a forked version of FicTrac. I have only build it using the OpenCV and FlyCapture SDKs. I will try to build it with the Spinnaker SDK as well but I probably won't get to it till later next week.

Hi, may I ask if this issue has been fixed or not? I mean if I can use Spinnaker now? Thanks!