Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

log messages removed

  • Loading branch information...
commit 7882d9ee1804015b1be62665ed2f21186a9b5833 1 parent 66cc2c9
Borja authored
Showing with 0 additions and 5 deletions.
  1. +0 −4 lib/detectors/face_com.rb
  2. +0 −1  lib/face_crop.rb
View
4 lib/detectors/face_com.rb
@@ -4,16 +4,12 @@ class FaceCrop::Detector::FaceCom < FaceCrop::Detector::Base
URL = "http://api.face.com/faces/detect.json"
def detect_faces(file)
- puts "face.com"
query = @options.to_query
url = "#{URL}?#{query}"
-
response = RestClient.post url, :file => File.new(file)
response = JSON.parse(response)
-
-
photo = response['photos'].first
photo['tags'].map do |tag|
# values are returned as percentual values
View
1  lib/face_crop.rb
@@ -20,7 +20,6 @@ def initialize(options)
# detect
#
def detect(file)
- puts file
key = "#{self.class}:" + Digest::MD5.hexdigest(File.read(file))
regions = FaceCrop::Detector::Cache[key]
Please sign in to comment.
Something went wrong with that request. Please try again.