this post was submitted on 21 Jan 2025
36 points (97.4% liked)

Programming

17870 readers
196 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] BradleyUffner 5 points 2 days ago* (last edited 2 days ago) (3 children)

It seems to be broken.

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.

[–] [email protected] 6 points 2 days ago

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 :)

[–] [email protected] 2 points 2 days ago* (last edited 2 days ago)

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.

[–] sicjoke 2 points 2 days ago (1 children)