C ASCII webcam

In this article we’ll see how to code an ASCII webcam in C using Open CV, prompting the output in a terminal. Here you also can find a sibling article to code the ASCII webcam in javascript in a web page.

The previous article already address the problem of how to transform colors in characters, so here we are only see how to read the camera and output the character in terminal instead of webpages.

I did this program ten years ago, so I hope that OpenCV still support the methods I used. I’ll check if it and possibly I’ll update this article if something is changed.

The source code of my program is here: C webcam