Lifeline is a library for handwriting recognition. It is specifically tailored for touch-based input.
Before installation please ensure you have the following libraries installed (used exclusively for the testsuite, Lifeline itself has no dependencies for now):
- OpenGL with GLEW
- SFML 2.0 (RC as of September 3 2012)
Lifeline does not come with a pre-recorded alphabet. You can use the testsuite to record characters. Lifeline will then use these characters in the future to test against input. For compatibility reasons Lifeline is built in C.
On the client's end data should be recorded as a linked list of
LPoint
s. For readability reasons there is a LPointData
typedeffed as
a List (see used datastructures). You can insert points like in the
following snippet
LPoint* point = (LPoint*)malloc(sizeof(LPoint));
point->x = 1.0;
point->y = 1.0;
point->t = 0.1;
list_insert_next( &point_data, point_data.tail, point);
To use the recognizer system you should first create a recognizer struct.
LRecognizer recog
Say you have your point data saved in point_data
of type LPointData
.
Then you can make your recognizer use this data by using
recognizer_set_data(recog, point_data)
You will also need a listener struct ..
- Tom Bannink
- Jan-Willem Buurlage
- Erik Lumens