What kinda thing are you thinking of? An actual photobooth kinda box?
You could usr an Android tablet, install Open Camera (from F-Droid) and that has the ability to take (for example) 4 photos with a 10 sec delay... videos too...
Then use syncthing to copy those photos to something else (your phone, a NAS, etc) before it gets trashed / accidentally wiped, etc...