java,android,opencv,face-detection,eye-tracking
I've no idea whether there is any library for that, but using technique descirbed in article Eye-blink detection system for human–computer interaction by Aleksandra Królak and Paweł Strumiłło (you can download it here and here and here is some simplified version) in my opinion is a good option. Generally this...
You could just use a standard array and give it FIFO like capabilities like the following char array[20]; // prepend the array and cut off the last value for (int i = 19 ; i >= 0 ; i--) { // ignore the last element, so it gets overwritten if...
python,r,levenshtein-distance,edit-distance,eye-tracking
You need a version of the Wagner-Fisher algorithm that uses non-unit cost in its inner loop. I.e. where the usual algorithm has +1, use +del_cost(a[i]), etc. and define del_cost, ins_cost and sub_cost as functions taking one or two symbols (probably just table lookups).
Found all the answers in this well commented code on github. The constants (like Type 77) can be found here Maybe the PsychoPy devolpers want to link this file in the documentation...?