pyfly2 icon indicating copy to clipboard operation
pyfly2 copied to clipboard

Set Frame Rate

Open caiostringari opened this issue 8 years ago • 5 comments

Hi,

Does anyone know how to set frame rate via coding? I need only 5 FPS for my applications and every time I start the camera, need to do it manually via FlyCap2 GUI.

Thanks

Caio

caiostringari avatar Oct 05 '16 23:10 caiostringari

Hi, I already opened an issue for this (issue #10 ). Sadly no answer yet. What I do is I open the manufacturer software flycap2 and in the camera control dialog, I change manually the frame rate as desired. Not really satisfying.

Maxime

JoosMax avatar Dec 11 '16 16:12 JoosMax

Thanks Maxine,

This was my workaround as well, but I need something more stable. I switched to a mix of C++ and python, not really pretty but is working better for me.

Cheers

Caio

caiostringari avatar Dec 12 '16 05:12 caiostringari

Can you eventually share your mixture or explain briefly ? Maxime

JoosMax avatar Dec 12 '16 15:12 JoosMax

Basically it is a python script that writes the C++ source, compiles and runs it. Not the most beautiful thing ever, but works.

https://github.com/caiostringari/PhD/blob/master/videocapture/capture.py

Cheers,

Caio

caiostringari avatar Dec 14 '16 04:12 caiostringari

Thank you, I appreciate your contribution. In french we would say "méthode bourrin". Respect for your pugnacity, Maxime

JoosMax avatar Dec 14 '16 14:12 JoosMax