It gets colors in an image through the HTML canvas, converts them to the Lab colorspace (makes difference measures intuitive to human vision) - and measures the euclidian difference between colors, and purges them from an image based on the threshold.
Why smart? 🧠 It measures the actual euclidian distance between colors - possible since they're represented in a 3 axis system! It was a super cool application of the Pythagoras theorem I learnt in school a couple of years ago 📐
A smart background removal tool 🎨
colorSpace is a smart background removal tool based completely on the front end, so your pictures never leave your computer.
https://storage.googleapis.com/replit/images/1547265356292_3848cfe46c9f10fb81ef0a1e7e97417d.gi
It gets colors in an image through the HTML canvas, converts them to the Lab colorspace (makes difference measures intuitive to human vision) - and measures the euclidian difference between colors, and purges them from an image based on the threshold.
More in this tweet!
From twitter for the curious: