class Findface::Utility

Public Class Methods

detect(options) click to toggle source

Endpoint: api.findface.pro/v0/detect/ (POST) | Usage: FindFace::Utility.detect

Output: A list of rectangles (bounding boxes) for the detected faces.
# File lib/findface/utility.rb, line 8
def detect options
  API::request(:post, 'detect', options)
end
identify(options) click to toggle source

Endpoint: api.findface.pro/v0/identify/ (POST) | Usage: FindFace::Utility.identify

Output: A map with - Detected or provided face bounding boxes, as keys,
Arrays of matching Face objects along with match confidence, as values.
# File lib/findface/utility.rb, line 23
def identify options
  API::request(:post, 'identify', options)
end
verify(options) click to toggle source

Endpoint: api.findface.pro/v0/verify/ (POST) | Usage: FindFace::Utility.verify

Output: Binary verification result of two images provided.
# File lib/findface/utility.rb, line 15
def verify options
  API::request(:post, 'verify', options)
end