Closed esimov closed 6 years ago
Thanks @esimov
Can you please open a PR?
Could you also compare the results by time/accuracy with https://github.com/openfaas/store/blob/master/store.json#L44 ? We may keep both or if yours is faster, remove the other one.
Ivana
Hey @ivanayov I just sent a PR https://github.com/openfaas/store/pull/38, however i just committed without to Signed-off. If you cannot accept it, i can make another PR.
Thank you, Endre
Derek close
For future reference there is no need to create a new PR. You can amend commits using the links in the contribution guide.
Thanks Alex, i'll do so.
Very nice @esimov, I just tested the function and it worked well 👍 🎉
Do you also have the JSON mode available which gives back the co-ordinates of the faces detected?
@alexellis yes, the response should return the coordinates of the detected faces, however the function handler does not show the json result in the response body.
j, err := json.Marshal(resp)
if err != nil {
return fmt.Sprintf("Error encoding output: %s", err)
}
// Return face rectangle coordinates
return string(j)
Here is an OpenFaaS function to detect faces using the Pigo face detection library. https://github.com/esimov/pigo-openfaas