[MacRuby-devel] Face detection sample

2011-12-01 Thread Matt Aimonetti
The other day @seanlilmateus wrote a quick face detection script using
MacRuby: https://gist.github.com/1386468
I cleaned up his script and made it more Ruby-like:
https://gist.github.com/1417463 as well as added support to pass your own
image.

You can try the script your self easily:
$ macruby -e "$(curl -fsSL
https://raw.github.com/gist/1417463/8cd0150bf5de962468897b3da093c870a5fb53da/face_detector.rb)
;"

While the script is far from perfect, I was thinking that it would be
interesting to see the "MacRubyficiation" of a code written by someone who
probably knows Objective-C/Cocoa but is new to Ruby.

- Matt
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] MacRuby challenge

2011-12-01 Thread Matt Aimonetti
Hey guys,

In case you missed the tweet
http://twitter.com/macruby/status/142271489058672640 here is a quick
MacRuby challenge:

   - modify this face detection script http://gist.github.com/1417463 to
   make it "mustachify" passed images.

The exercise is interesting since it makes you work outside of Xcode and
with some low level APIs to create something hopefully cool.
Bonus points for creative changes of the challenge (use glasses instead of
a mustache or both or whatever you come up with).

- Matt
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel