A black text on a white background

AI-generated content may be incorrect.

Photo Booth with Rpi5 2025-08-22

I have created a photo booth with a Raspberry Pi 5, Dell Webcam 7022, numpad and a display.

I made a program in python for it, and made it run on startup/boot with the following method:

In the home directory:

nano ~/.config/autostart/pb.desktop

create the file if it doesn’t exist

Add the following to the file:

[Desktop Entry]

Type=Application

Name=PB App

Exec=/usr/bin/python3 /home/manmakro/pb.py

StartupNotify=true

Terminal=false

CTRL+S, CTRL+X to save and exit

Make sure the script is executable:

chmod +x /home/manmakro/pb.py

This ensures that the python program starts with the GUI on startup, not just in the terminal.

You can download the code here as a .zip file. Put the contents in your home directory on your Raspberry Pi running Raspberry Pi OS Desktop (tested on Bookworm). You also need to install the following python packages:

pip install opencv-python numpy

 

Once it is all set up, plug in your peripherals and see the magic!

Press 9 to take a picture, after a 3-second countdown, it will be saved to the Captures/ directory.

If you connect a printer, you can also print the image after taking it.

 

Notes: you can modify the img1.png and img2.png to change the look of the program. You can also change the text on line55 of the python code from 256bits.com.au to any other watermarked text of your liking.

 

I hope you enjoyed this project! THE END