Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream Buffer Handling Mode available to set for Spinnaker cameras #73

Open
lambdaloop opened this issue Aug 1, 2024 · 3 comments
Open

Comments

@lambdaloop
Copy link
Member

This would allow users to take advantage of the buffer built into to the Spinnaker cameras

You can see some documentation here:
https://www.1stvision.com/cameras/IDS/IDS-manuals/en/stream-buffer-handling-mode.html

The default is "NewestOnly" which will drop old frames if not retrieved fast enough. A good alternative is "OldestFirst" which will store frames in a buffer, but drop new frames if buffer is full.

For live applications NewestOnly makes sense, but for many scientific applications where the videos are analyzed posthoc you often want OldestFirst to minimize frame drops.

@bruno-f-cruz
Copy link
Collaborator

A few questions:

  1. Assuming no dropped frames, does this make a difference?
  2. What happens to the frame counter provided by the camera?
  3. Why does NewestOnly doesn't make sense for many scientific applications? It sounds like something important for close loop experiments?

@lambdaloop
Copy link
Member Author

Assuming no dropped frames, does this make a difference?

I don't think this makes a difference when there are no dropped frames in the first place.

What happens to the frame counter provided by the camera?

I can't find documentation on this, but presumably the frame ids are buffered?

Why does NewestOnly doesn't make sense for many scientific applications? It sounds like something important for close loop experiments?

Sorry I phrased that poorly. I agree it's important for closed loop experiments, which is what I was including in "live applications". It should really be framed as "live" vs "posthoc" analysis.

@bruno-f-cruz
Copy link
Collaborator

I am ok with defining OldestFirst as default as it is indeed the current default of the SDK anyway:
https://www.flir.com/support-center/iis/machine-vision/application-note/understanding-buffer-handling/

The default buffer handling mode for Spinnaker is Oldest First.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants