Text this: Implementation of the optical stack method