Text this: Photonic integrated processor for structured light detection and distinction.