Awesome
Nude
Port of nude.js to Ruby.
Requirements
- ImageMagick
Installation
Add this line to your application's Gemfile:
gem 'nude'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nude
Usage
require 'nude'
puts Nude.nude?('/path/to/image1.jpg')
# => true
n = Nude.parse('/path/to/image2.jpg')
puts n.nude?
# => false
puts n.inspect
# => #<Nude @result=false, @message="Total skin parcentage lower than 15 (10%)", @image=/path/to/image2.jpg JPEG 500x375 500x375+0+0 DirectClass 8-bit 108kb>
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright
Copyright (c) 2012 Kazuya Takeshima. See LICENSE for details.