2 ms·
How did the author do the actual zoom detection? (or rather, what is any method that can work for automating this?) I'm sure it's not rocket science, but I don
by metadat 4y ago
How did the author do the actual zoom detection? (or rather, what is any method that can work for automating this?)
I'm sure it's not rocket science, but I don't know how to do this offhand.
- tourist2d 4y agoThis was the only thing I was curious about, since the article was just leaping to conclusions and speculation.
- saaaam 4y agothere's a link at the bottom to the code (https://github.com/antiboredom/camera-motion-detector/ https://github.com/antiboredom/camera-motion-detector/). I use optical flow and then just count the percentage of pixels that appear to be moving away from the center. If that's bigger than ARBITRARY_THRESHOLD it's a zoom-in.