A high-performance γ-In2Se3/GaAs heterostructure-based photodetector linear array shows potential in optoelectronic applications such as real-time light trajectory tracking and image sensing.