Share your repls and programming experiences

← Back to all posts
A smart background removal tool 🎨
h
jajoosam (875)

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!

Comments
hotnewtop
[deleted]

This is amazing I have been looking for a tool like this!

jajoosam (875)

@IEATPYTHON Thanks - let me know if there's anything I can improve :)

amasad (3339)

From twitter for the curious:

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 📐

Zavexeon (1159)

This is the best background remover ever.

Butter_Cat (2)

Meow.... Meow, Meow, Meow....
(Yay..., it's not allowed on my domain, and google thinks its sketchy...)

https://storage.googleapis.com/replit/images/1547541128624_c62596658977e598b6e68c69d652d0d5.pn

jajoosam (875)

@Butter_Cat But newly observed domains are the coolest ones around 🙄

I love having https://4ty2.fun

AydenB (41)

@jajoosam fortiguard has unblocked it