Text this: Weighted aspect moment invariant in pattern recognition