Your Face in 10 minutes... with Macruby!
summary
Builds a macOS app in Ruby using MacRuby and Xcode templates that captures 640x480 video with AVFoundation AVCaptureSession, shows a live preview layer and samples frames on a GCD queue. Uses CIDetector face features (left eye, right eye, mouth) for detection, overlays graphics (bowler hat, glasses, mustache) in real time, and sends images to Face.com for recognition because local recognition isn’t feasible—Ruby lacks robust linear algebra libraries. Demo works but recognition fails under bright light.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 0:37Face recognition app with MacRuby
- 1:20What is MacRuby
- 2:22Setup MacRuby and Xcode
- 3:06Initialize camera capture
- 4:11Configure input and output
- 4:53Add preview layer and start
- 5:35Grand Central Dispatch for video
- 6:16Face detection with Core Image
- 7:20Face recognition challenges
- 8:01Integrate Face.com API
- 8:23Finalize and compile
- 8:45Live demo
- 9:30Key takeaways and closing thoughts
related talks
28mRubymotion - iOS and OSX development from a Ruby developer's perspective
55mCreating Desktop Applications with Ruby on Mac
35mUnfactoring From Patterns
08mAlasdair Allan interviewed at OSCON 2010
38mGui Programming with Mac Ruby
40mComputer Vision Using Ruby and libJIT
41mCreating AR Apps with RubyMotion
42mDynamic Generation of Images and Video with Ruby-Processing
