Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Latest commit

 

History

History
64 lines (49 loc) · 1.74 KB

README.md

File metadata and controls

64 lines (49 loc) · 1.74 KB

Install

Requirements

Installation

Embed icons

Icon size should be around 50x50 pixels

  • download/install Packr (v2)
  • replace the icons in assetsdirectory (keep the names)
# packr2

Build faces

# cd <project>
# go build -a -o <target directory>/faces[.exe]

Build Windows App

Write a "GUI binary" instead of a "console binary"

# cd <project>
# go build -a -ldflags "-H windowsgui" -o <target directory>/faces.exe

Build macOS App

To build you App on your Desktop enter:

# scripts/macos.app.sh ${HOME}/Desktop

The app icon may not be displayed properly. Be patient or restart. You can also try this.

Edit faces configuration

Here you will find an example configuration

The config file faces.yaml | faces.yml | .faces.yaml | .faces.yml should be in your ${HOME} directory. Otherwise you have to enter it as an argument.

---
cameraId: 0
subscriptionKey: [check here: https://azure.microsoft.com/en-us/services/cognitive-services/face/]
uriBase: [check here: https://azure.microsoft.com/en-us/services/cognitive-services/face/]
uriPath: 
uriParams: ?returnFaceAttributes=age,gender,headPose,smile,facialHair,glasses,emotion,hair,makeup,occlusion,accessories,blur,exposure,noise
...

Run faces

# dist/faces[.exe] [faces.yaml]

Links