Your webcam as ASCII art (kaamkiya.github.io)
from kaamkiya@lemmy.ml to programming@programming.dev on 21 Jan 18:30
https://lemmy.ml/post/25043892

I wrote a program that turns the feed it receives from your webcam in ASCII art. It’s open source: you can find the code on Github.

#programming

threaded - newest

BradleyUffner@lemmy.world on 21 Jan 19:01 next collapse

It seems to be broken.

<img alt="" src="https://lemmy.world/pictrs/image/19ed04c9-5bfc-4019-9af3-239a4c2d9b39.png">

Update: it works on my desktop, but not on my phone or laptop.

When it does work, it’s pretty good, though it could use some control to tune in exposure to pick up darker areas.

<img alt="" src="https://lemmy.world/pictrs/image/c5fb21d1-6f04-4127-bfd6-165ae04b6f41.png">

sicjoke@lemmy.world on 21 Jan 19:09 next collapse

Works for me.

[deleted] on 21 Jan 20:39 collapse

.

tal@lemmy.today on 21 Jan 19:20 next collapse

I assume from that screenshot that there isn’t color support, but if you’re on Linux, you can do something similar locally with color support:

$ mpv -vo caca /dev/video0

At least on my Debian Trixie system, it looks like they aren’t building mpv with aalib support anymore, an older monochrome image-to-text library, just libcaca, but I know that in the past mpv and mplayer have supported that as well.

This will, among other things, permit viewing video on a plain text console.

kaamkiya@lemmy.ml on 21 Jan 19:39 collapse

Correct, it may not work on mobile because the font size is 6pt and the line may be too wide for a phone. That’s something I should fix. The exposure, however, probably just needs a slider to increase or decrease what is considered black.

Thanks for the honest feedback :)

DannyBoy@sh.itjust.works on 21 Jan 20:00 next collapse

As others have mentioned, the line width makes it not work so well on mobile, even when putting it into landscape mode.

On desktop though it works. Until I leaned forwards and the undefineds start flying outwards from me.

<img alt="" src="https://sh.itjust.works/pictrs/image/22c8bc04-d8ef-4da5-a5fa-9d84f8af861b.png">

Very neat project though!!

TokenEffort@sh.itjust.works on 21 Jan 20:02 collapse

That picture goes hard

Kolanaki@yiffit.net on 21 Jan 20:05 next collapse

I remember when YouTube had a filter option to watch videos in ASCII for April Fools one year. Now I can do it whenever I want :D

DiggyDiggyMole@lemmy.world on 21 Jan 21:47 collapse

You’ll love VLC’s caca support: wiki.videolan.org/Video_Output/

(fun fact: “Kaka” in German is child’s speech for “poop”. Seems to be the same in French , looking at libcaca’s page)

mac@lemm.ee on 21 Jan 20:07 next collapse

Edgecase no camera perms:

<img alt="" src="https://lemm.ee/pictrs/image/c850eacb-27cf-465d-bdb9-5eaec8612c7c.jpeg">

Lazycog@sopuli.xyz on 21 Jan 21:02 collapse

At a glance I thought it says “finedude”

medicationforall@sh.itjust.works on 21 Jan 20:41 next collapse

That is wicked cool!

ramble81@lemm.ee on 21 Jan 20:57 next collapse

Now how can i direct this into a Teams or Zoom call. Make it Matrix style and that’ll be even more fun

0x0@programming.dev on 22 Jan 16:32 next collapse

Ever heard of hasciicam?

ChairmanMeow@programming.dev on 22 Jan 23:23 collapse

If you’re on mobile, make sure to put the website in Desktop mode in your browser. That makes the picture show up properly.