Skip to content

zeck00/sunmi-photobooth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Έ Photo Booth πŸ–¨οΈ

Tap. Snap. Print. ✨
Instant thermal receipt photos from a repurposed POS terminal


πŸŽ‰ What is this?

A tiny app that turns a Sunmi V2 POS terminal into a fun photo booth! Take a photo and it prints instantly on the built-in thermal receipt printer as a gorgeous dithered black-and-white print. πŸ–€πŸ€

Think retro polaroid vibes, but on a receipt. 🧾✨


πŸ•ΉοΈ How to use

  1. πŸ‘€ Look at the screen β€” full camera preview
  2. πŸ‘† Tap anywhere β€” countdown starts: 3... 2... 1...
  3. πŸ“Έ Flash! β€” photo captured
  4. 🎨 Magic happens β€” your photo gets dithered into beautiful black & white dots
  5. πŸ–¨οΈ Brrrrr β€” out comes your photo on thermal paper!
  6. πŸ”„ Ready for the next one!

🀏 How small is it?

2.9 MB. That's it. Smaller than a single selfie.

  • πŸ“· Camera? Built-in Android API. Zero libraries.
  • 🎨 Dithering? Pure math. ~80 lines of Kotlin.
  • πŸ–¨οΈ Printer? One tiny Sunmi library.
  • πŸ“ Files on disk? None. Everything lives in memory.

πŸ› οΈ Build & Run

cd photo-booth
./gradlew assembleDebug
adb install app/build/outputs/apk/debug/app-debug.apk

Or over WiFi! πŸ“‘

adb connect 192.168.1.85:5555
adb -s 192.168.1.85:5555 install -r app/build/outputs/apk/debug/app-debug.apk

πŸ–ΌοΈ The Science of Receipt Art

Your photo goes through Floyd-Steinberg error diffusion β€” the same algorithm used in newspaper printing since the 1970s. It spreads the "error" of turning a gray pixel into pure black or white across its neighbors, creating an illusion of smooth gradients using only dots. πŸ”¬

The result? Surprisingly detailed portraits on a 58mm receipt. 🀯


πŸ’‘ Fun Ideas

  • 🎊 Party photo booth β€” set it up at a gathering, everyone gets a receipt-sized souvenir
  • 🎁 Gift tags β€” snap a photo of a friend, instant personalized gift label
  • πŸ–ΌοΈ Receipt art gallery β€” collect prints, tape them to a wall
  • πŸ“ Visual notes β€” snap a whiteboard, get a pocket-sized printout

πŸ”— Related

New to the Sunmi V2? Check out sunmi-v2-rescue β€” our complete guide to debloating, optimizing, and repurposing the device. Covers specs, printer API, performance tweaks, and more.


Built with 🀍 on a repurposed Deliveroo POS terminal
by Ziad

About

πŸ“Έ Tap. Snap. Print. β€” Thermal receipt photo booth for the Sunmi V2 POS terminal

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages