O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

How to create a smart Photobooth

162 visualizações

Publicada em

This is a talk I gave at November 2017 on how I created a photobooth with DSLR and a photo printer, and added facial recognition to it.

Publicada em: Tecnologia
  • Seja o primeiro a comentar

  • Seja a primeira pessoa a gostar disto

How to create a smart Photobooth

  1. 1. Impress Your friends: Create a Smart Photobooth Hao Luo Sr Technical Evangelist – Microsoft @howlowck
  2. 2. Outline • Overview of the Project • First Demo! • Deep dive on the photobooth • Facial Recognition • Second Demo!
  3. 3. Why did I build a Photobooth? • Married this year • $$$$ • I like a challenge
  4. 4. Requirements • High Quality Photos (DSLR) • Intuitive, User Friendly (touch interface) • Customized Print • As much NodeJS as possible
  5. 5. It was fun!
  6. 6. The Hardware
  7. 7. The Camera Canon 6D 50mm Prime Lens Any Canon Camera
  8. 8. The Printer Canon Selphy CR1200 Printer (10 seconds per print) Any Wifi connected Printer
  9. 9. The Hotspot Netgear Jetpack (Verizon) Any Mobile hotspot
  10. 10. The Computer Surface Book Touch enabled Laptop
  11. 11. The Trigger Device
  12. 12. (first) Demo Time!
  13. 13. Challenges (Unknowns) • Triggering the DSLR • Getting the captured image back from the DSLR • Capturing the streaming image from the DSLR • Programmatically call a printer to print a photo Webcam
  14. 14. Triggering the DSLR • Triggertrap • 😢 • https://www.diyphotography.net/building-diy-trigger-trap/ • https://github.com/Triggertrap/mobile-dongle (open sourced HW)
  15. 15. Mimicking the Mobile App
  16. 16. Getting the photos back from DSLR • Canon EOS Utility (Windows, Mac, Linux Supported) • Saved to an import folder • chokidar package • Save a copy to the working directory • Notifies the frontend to show up on the screen
  17. 17. The Printer • Internet Printer Protocol (IETF Spec) • `npm install ipp`
  18. 18. Photobooth Architecture Diagram chokidar ippsocket.io
  19. 19. Facial Recognition • Microsoft Cognitive Services Face API • Features: • Verify • Detect • Identify • Group • To use Identify Endpoint 1. Train the API with known persons 2. Call the identify endpoint in your app
  20. 20. Training a Face Train Train the PersonGroup Add (get a picture) Add a Face to the Person Create Create a Person List List everyone in your PersonGroup Create Create/Get a PersonGroup
  21. 21. Two Tools • Face Trainer (serverless/static web app) • https://face.lifeishao.com • Mobile Web App for Users • http://aka.ms/nodevemberphoto
  22. 22. Demo! (with Facial Recognition)
  23. 23. Lessons Learned from this setup • Two cameras can be confusing (people don’t read) • DSLR focus should be automatic • Still needs someone to monitor the photobooth
  24. 24. Summary • Cost $300 new cost • $100 photo printer, • $50 camera accessories, • $150 ink and photo paper • Next Step Ideas: • Electron App • Smaller Form Factor (Raspberry Pi) • Getting the feed from Camera. • https://github.com/howlowck/haos-photobooth • I Learned a ton
  25. 25. Questions? • https://www.diyphotography.net/building-diy-trigger-trap/ (Simplified Circuit for TriggerTrap) • https://github.com/Triggertrap/mobile-dongle (open sourced HW) • https://face.lifeishao.com (static web app for Face API management) • http://aka.ms/nodevemberphoto (for adding yourself to this photobooth) • https://github.com/howlowck/haos-photobooth (repo for this photobooth)

×