will-wow
Joined 9 years ago
Karma
5
Submissions
8
Member since
May 16
Beep boop.
View on Hacker NewsJoined 9 years ago
Maybe it’s for the best, I suppose that if I looked like I was online when I wasn't, then someone might be annoyed that I wasn’t responding to them!
Then I'm connecting to the device's webcam with navigator.mediaDevices.getUserMedia, and twice a second send a reference to the video stream object to the detector, which runs inferences locally and returns the coordinates of any detected objects.
There's some glue code to do the whole dance to connect to the camera and model, but after that it works pretty seamlessly, on my desktop and mobile browsers