Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tantara/oxford-face-api
Ruby Gem: Microsoft Oxford Face API
https://github.com/tantara/oxford-face-api
Last synced: about 2 months ago
JSON representation
Ruby Gem: Microsoft Oxford Face API
- Host: GitHub
- URL: https://github.com/tantara/oxford-face-api
- Owner: tantara
- License: mit
- Created: 2017-01-03T10:00:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-03T11:52:47.000Z (about 8 years ago)
- Last Synced: 2024-11-16T17:19:50.502Z (about 2 months ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/oxford-face-api
- Size: 135 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# oxford-face-api
Ruby gem for Microsoft Oxford Face api### Usage
```ruby
require 'oxford/face/api'KEY="YOUR_API_KEY" # from Microsoft Oxford
OxfordFaceApi.init(KEY)f = OxfordFaceApi::Face.new
img_url = "https://raw.githubusercontent.com/tantara/oxford-face-api/master/test/example.jpg"
return_face_id = true
return_face_landmarks = false
return_face_attributes = "age,gender"res = f.detect(img_url, return_face_id, return_face_landmarks, return_face_attributes)
puts res.body # => https://gist.github.com/tantara/5d72786bd3c6acc285a29ec44c4a8d1e
```### License
MIT