Text this: Constraints and invariance in target detection