3 ms·
I would imagine it would be pretty slow, but you could have a video stream write to a canvas element at regular intervals. You could analyze the pixels in the
by byoung2 13y ago
I would imagine it would be pretty slow, but you could have a video stream write to a canvas element at regular intervals. You could analyze the pixels in the canvas to look for a pattern. This would be the hard part, since you'd have to write an engine to detect edges and create a hash of all detectable objects in the frame, then you'd have to match each hash to a known hash of the desired object. To get the known hash, you'd likely have to feed in many example images of your object and create hashes from these.