Set up super basic face detection

This commit is contained in:
heyarne 2020-05-02 14:43:49 +02:00
commit 09d2d3b92d
5 changed files with 117 additions and 4 deletions

View file

@ -1,2 +1,13 @@
(ns heyarne.all-my-friends.core)
(println "hello world")
(ns heyarne.all-my-friends.core
(:require ["@tensorflow-models/facemesh" :as facemesh]))
(defn detect-faces [model]
(println "Facemesh loaded")
(.. model
(estimateFaces (js/document.querySelector "img"))
(then (fn [predictions]
(println "Predictions" predictions)))))
(.. facemesh
(load)
(then detect-faces))