Set up super basic face detection
This commit is contained in:
parent
7e37ce499b
commit
09d2d3b92d
5 changed files with 117 additions and 4 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue