A Pi 4 is too pricey today for such a undertaking but I however had a little Pi Zero W which might be perfect for this challenge – but is regrettably not formally supported with the software I am planning to use: https://albertofqw723832.blog2learn.com/76850107/the-definitive-guide-to-photo-booth