Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Webcam API w/ Filters and Adjustments
#23
(03-05-2025, 04:39 AM)vince Wrote: tranny kpop matrix mod

I did give this a try, nice! Video to ASCII in realtime! That was on my "to do" list!

Question - did you assign a brightness value to the different ASCII characters, or are they just arbitrarily selected?

I have been meaning to write a simple prog to go through the printable ASCII characters and for each, _PRINTSTRING it to the screen and count the pixels, the # being its "brightness", and save that score, then at the end sort them by score. Then the picture-to-ascii matches the brightness of each pixel (or a given block of pixels) to be approximated by an ASCII char, and does a lookup in the array to find a character with the corresponding brightness.

In the time it took me to write that explanation I could have finished the code, LOL, but it did help clarify it in my mind.
Reply


Messages In This Thread
RE: Webcam API w/ Filters and Adjustments - by madscijr - 3 hours ago



Users browsing this thread: 3 Guest(s)