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

refactor "algorithm" debug ? #21

Open
bpinsard opened this issue Mar 22, 2021 · 0 comments
Open

refactor "algorithm" debug ? #21

bpinsard opened this issue Mar 22, 2021 · 0 comments

Comments

@bpinsard
Copy link

The use of algorithm view is necessary to adjust the pupil intensity threshold.
I think there would be added value to return the algorithm debug info as objects rather than embedding it in a color image.
The advantages would be :

  • avoid having to convert to rgb when the native frame is not rgb (grayscale, yuv, ...), for instance just np.tile to convert from our gray input to rgb is making a 250 fps to drop dramatically, causing frame loss/lags/overflow. ( Can't use numpy tricks as the array needs to be c-contiguous.)
  • display debug in pupil by drawing over the captured image, prettier when windows scaled, and likely faster than rasterizing on CPU.
  • allowing external program to analyze the debug info.

WDYT?

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

1 participant