idevelop / ascii-camera

Real-time ASCII representation of your webcam video stream, using the getUserMedia API.
https://andrei.codes/ascii-camera/
MIT License
1.36k stars 236 forks source link

Background removal? #11

Open broswell opened 11 months ago

broswell commented 11 months ago

Thanks for writing this. Looking for a way to remove the background, so the subject stands out.

idevelop commented 11 months ago

hey @broswell! do you mean in general, or are you trying to record something specific?

the general case is harder, you'd probably need to put the camera frames through a background removal algorithm first before turning them into ascii. take a look at https://github.com/imgly/background-removal-js as one option (top google result for "background remover js").

if you just need to record a thing for yourself, you could do it in front of a white wall, that should do the trick.

broswell commented 11 months ago

This is what I was loooking for! https://museum.syssrc.com/asciicam2/