Augmented reality (AR) is a direct or indirect live view of a physical, real-world environment whose elements are "augmented" by computer-generated perceptual information, ideally across multiple sensory modalities, including visual, auditory, haptic, somatosensory, and olfactory.
The tracking.js library brings different computer vision algorithms and techniques into the browser environment. By using modern HTML5 specifications, we enable you to do real-time color tracking, face detection and much more — all that with a lightweight core (~7 KB) and intuitive interface.
I saw a couple articles about facial recognition in Python and I wanted to see if this data-science-y technology could be easily adapted to the front-end of a project. I'm also interested in the intersection of art and code, and augmented reality seems like a really interesting medium for that.
The algorithm adds up the pixel values in a rectangle and compares them to the sum of the pixels in another rectangle in the image. Light rectangles are positive and dark ones are negative. It uses those differences to classify whether or not a rectangle contains a face.