Text this: Precise positioning based on pixel differential in linear optical sensor array