Home

Awesome

oxford-face-client: A client App for oxford-face Golang package

GitHub license Build Status

It is a simple client to help you to maniplate the Project Oxford Face API. No need to remember complicate Face ID anymore, just input URL or image path to add our local list and compare with index.

Feature

Install

go get -u -x github.com/kkdai/oxford-face-client

Usage

oxford-face-client   [OPTIONS]

Options

Interactive Command

It support command line interactive command as follow:

Examples

Command:( A:Add Face S:Check Similarity C:Check input two face  V:Verbose G:Read Q:exit)

// Add first image from URL
:>a https://oxfordportal.blob.core.windows.net/face/demov1/verification1-1.jpg
New Face: id= 157675c5-ca4c-4882-ab05-72b14b0d0194


// Add second image from URL
:>a https://oxfordportal.blob.core.windows.net/face/demov1/verification1-2.jpg
New Face: id= 5a236d4a-e07c-4f9b-aaca-c13e4b5c8fc0


// Check first image and second image if it is identical face.
:>c 0 1
Is identical? true  confidence: 0.66216


//Check similarity of index "0" to other
:>s 0
Most similar in index: 1  faceid:  5a236d4a-e07c-4f9b-aaca-c13e4b5c8fc0  confidence:  0.662164748


//Add face using file path
:>a test_data/verification1-1.jpg
New Face: id= f7eb6931-835d-4d68-8272-2e8c0064c870


// List all faces
:>l
Index 	| Face ID 		| From
===============================================================
0 	 157675c5-ca4c-4882-ab05-72b14b0d0194 	 https://oxfordportal.blob.core.windows.net/face/demov1/verification1-1.jpg
1 	 5a236d4a-e07c-4f9b-aaca-c13e4b5c8fc0 	 https://oxfordportal.blob.core.windows.net/face/demov1/verification1-2.jpg
2 	 f7eb6931-835d-4d68-8272-2e8c0064c870 	 test_data/verification1-1.jpg


Contribute

Please open up an issue on GitHub before you put a lot efforts on pull request. The code submitting to PR must be filtered with gofmt

Project52

It is one of my project 52.

License

This package is licensed under MIT license. See LICENSE for details.