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

Blink detection actuator switch #44

Open
unixunion opened this issue Dec 22, 2016 · 8 comments
Open

Blink detection actuator switch #44

unixunion opened this issue Dec 22, 2016 · 8 comments

Comments

@unixunion
Copy link

I have a family friend who could use ACAT if it can do blink detection as a "switch". Is there any possibility to add "blink" as a actuator switch.

@alexandre-mbm
Copy link

You can use any switch (hardware or software) by binding it like a simulated keypressing for F12 key.

@RalfCT
Copy link

RalfCT commented Apr 18, 2017

Did you manage to find a 'blink' actuator and configure it as an F12 trigger? I have an MS friend who may also have to rely on blinking as most of her other faculties are lost.

@unixunion
Copy link
Author

unixunion commented Apr 19, 2017 via email

@RalfCT
Copy link

RalfCT commented Apr 19, 2017 via email

@ahaleksandra
Copy link

Hi,
I have tried Emotiv Epoc+ but I cannot make it works with ACAT... Is there anyone who could give me any advice how to connect this...?
I am looking for solution for woman who has MS... We think that blinking should be the best... I will be glad for any hint how to do it...
Thank you indeed!

@zelmon64
Copy link

@ahaleksandra I've made a blink actuator using OpenFace. It sends F22 so that it shouldn't conflict with any thing so add that as another trigger to the keyboard actuator.

OpenFace_Blink_Actuator_v0.0.1_x86
OpenFace_Blink_Actuator_v0.0.1_x64

You'll probably need to install the Visual C++ redistributable package.

  • q to quit
  • r to restart
  • s to display the current aspect ratio of the left eye
  • d to display the current aspect ratio of the right eye

the threshold ratio is currently set to 4.

@LaurentBerger
Copy link

@zelmon64 thanks for code sharing.
I have read your code and to send a F22 do you use only boost only ?

@zelmon64
Copy link

zelmon64 commented Jun 24, 2017

@LaurentBerger it uses SendInput. I'm not sure what you mean about using boost. I only copied an example I found. If there's a better way I'll happily change it.

Edit: for reference here's where I found the example I used: http://forums.codeguru.com/showthread.php?377393-Windows-SDK-User-Interface-How-can-I-emulate-keyboard-events-in-an-application

I added the pause before releasing the key because without it ACAT wouldn't get triggered.

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

6 participants