Infrared single-pixel sensing with the two most representative modes, bright-field imaging and edge-enhanced imaging, has great application potential in biomedical diagnosis and defect inspection. Building a multifunctional and miniature optical computing device for infrared single-pixel sensing is extremely intriguing. Here, we propose and validate a dual-modal device based on a well-designed metasurface, which enables near-infrared bright-field and edge-enhanced single-pixel imaging. By changing the polarization of the incident beam, these two different modes can be switched. Simulations validate that our device can achieve high-fidelity dual-modal single-pixel sensing at 0.9μmwith certain noise robustness. We also investigate the generalization of our metasurface-based device and validate that different illumination patterns are applied to our device. Moreover, these output images by our device can be efficiently utilized for biomedical image segmentation. We envision this novel device may open a vista in dual-modal infrared single-pixel sensing.