idevelop / ascii-camera

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

Background removal? #11

Open broswell opened 6 months ago

broswell commented 6 months ago

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

idevelop commented 6 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 6 months ago

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