Skip to content

Etheri improvements and fixes#85

Merged
RedHawk989 merged 8 commits intoEyeTrackVR:HSF-and-new-algos-feature-branchfrom
EtheriVR:Etheri-Improvements-And-Fixes
Jun 17, 2023
Merged

Etheri improvements and fixes#85
RedHawk989 merged 8 commits intoEyeTrackVR:HSF-and-new-algos-feature-branchfrom
EtheriVR:Etheri-Improvements-And-Fixes

Conversation

@EtheriVR
Copy link
Contributor

Description

Fixes dual eye tracking
Fixes IBO filter
Fixes numpy type error
Adds optional configurable averaging of IBO output
Adds /avatar/parameters/LeftClosed and /avatar/parameters/RightClosed parametrs to native OSC output for eyelid control

Changes
Reset IBO data on recalibrate
Make IBO filter a config variable
Make calibration samples a config variable

Checklist

@EtheriVR EtheriVR changed the base branch from main to HSF-and-new-algos-feature-branch June 16, 2023 11:13
Copy link
Member

@lorow lorow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks pretty good to me, nice one! I've only left two open-ended things to discuss whether we should black the code and whether we should expose some more advanced settings for folks to tinker with

Comment on lines +68 to +71
ibo_filter_samples: int = 400
ibo_average_output_samples: int = 0
ibo_fully_close_eye_threshold: float = 0.3
calibration_samples: int = 600
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good idea, I think I'll do the same in my own PR. One thing that I'm thinking about is - should we expose some of the fields like the calibration_samples or ibo_filter_samples in advanced settings?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be awesome to add them as settings, I just didn't know how! I can look! 😅

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd check out how the settings_widget.py is implemented, don't quote on that but I think that's how it all works xD

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll set them up as config settings in a commit soon :)

if os.path.exists(self.imgfile):
os.remove(self.imgfile)

def intense(self, x, y, frame,filterSamples,outputSamples):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I've noticed this in a couple of places, it may be worth just straight up running Black over the file we're currently working as an additional step to format the code just to make it a bit cleaner

https://github.com/psf/black

we should also probably add it as a dev dependency too
https://python-poetry.org/docs/managing-dependencies/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that idea, formatting python doesn't seem very easy!

EtheriVR added 3 commits June 17, 2023 15:36
Adding the eyelids to config and adding an invert bool makes this work with most peoples currently setup eyelids if they used eyetracking before native
@EtheriVR
Copy link
Contributor Author

I had to fix the osc calibration point as I got the wrong settings reference somehow

@RedHawk989
Copy link
Collaborator

All looks good now! I'll black format once merged because pycharm is being funky on this PR atm (user error)

@RedHawk989 RedHawk989 merged commit a00823b into EyeTrackVR:HSF-and-new-algos-feature-branch Jun 17, 2023
@EtheriVR EtheriVR deleted the Etheri-Improvements-And-Fixes branch June 17, 2023 21:32
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

Successfully merging this pull request may close these issues.

3 participants