Voltage-controlled electrochromic transitions in polymer-based photodetectors encode task-relevant hyperspectral projections directly at the pixel level, enabling compact, low-power imaging sensors that compress data in situ while preserving classification and segmentation performance.