The Pi Pico is great, but your project might be easier with an alternative.
Building an automated attendance system using ESP32-CAM is a practical, affordable way to solve this problem for classrooms, ...