Text this: Visual-based fingertip detection for hand rehabilitation