Nature, Published online: 17 June 2026; doi:10.1038/s41586-026-10635-z By embedding core computer vision principles into a large-scale optical metasurface, an efficient vision processing system using far fewer parameters is demonstrated to outperform many digital models and enables deployment on edge devices.