lib/songster/image.rb
def detect!
      faces = [ ]
      results = @client.faces_detect(file: File.new(@image_path, "rb"))
      photo = results["photos"][0]

      photo["tags"].each do |face_tags|
        faces << Face.new(face_tags, photo)
      end

      faces
    end
# Make the API call to the face.com and return a list of faces found.
#
# @return [Array -> Face]
Make the API call to the face.com and return a list of faces found.
Make the API call to the face . com and return a list of faces found .
def detect!
      faces = [ ]
      results = @client.faces_detect(file: File.new(@image_path, "rb"))
      photo = results["photos"][0]
      photo["tags"].each do |face_tags|
        faces << Face.new(face_tags, photo)
      end
      faces
    end
def detect! faces = [ ] results = @client . faces_detect ( file : File . new ( @image_path , "rb" ) ) photo = results [ "photos" ] [ 0 ] photo [ "tags" ] . each do | face_tags | faces << Face . new ( face_tags , photo ) end faces end
Make the API call to the face.com and return a list of faces found.
Make the API call to the face . com and return a list of faces found .
None
Array -> Face