A vision system and proximity detector is provided in the form of an occluding mask with multiple high aspect light pathways positioned over a light detecting surface. Pixel-based images can be generated to provide a vision system utilizing a variety of illumination modes. Proximity can be measured with a triangulating beam.