-
Notifications
You must be signed in to change notification settings - Fork 0
ASCII Art
Several days ago O-SNAP observed an incident in the town of [DATA EXPUNGED]. At first, we thought it is an alien attack, but later on SCP Foundation provided us some documents which clarified that it is a containment breach of the Shy Guy. As our associate organization, SCP Foundation asked us to help them finding a safe way to figure out whether the Shy Guy is in a given picture or not. After reviewing the incident report, Dr. Ebwje from our Nationwide Incident Classification department believes that it is worthwhile trying convert the picture into ASCII Art before checking it with human eyes.
Considering the simpleness and the █████ of this work, you, as our most valuable intern, are asked to implement an ASCII Art Converter, apply the converter to the given picture, then check the ASCII art you get.
NOTE: for your own safety, please DO NOT read the original picture before you see the Shy Guy is not in the ASCII art.
Here is the suggestions from Dr. Ebwje:
- OpenCV is a very convenient library to help you to manipulate the original picture, but you are free to use any other libraries you like
- Grayscale picture is enough to recognize the Shy Guy, so you may want to convert the original picture into grayscale first
- One of the most simplest ASCII Art algorithm is called "greyscale algorithm": you just convert a pixel or a block of pixel into an ascii character according to the greyscale level of the original pixel block. The set of ascii character you are using is called "greyscale gradient". One of the most common used greyscale gradient is the following 7 characters: " .:oO8@" (space, period, colon, small O, big O, eight, at). You can choose to use this algorithm, and you are free to try or use the others.
- Your submission should contain an Makefile, and we should be able to type "make" to compile your source code and type "make run" to run your converter on the given picture. We will test your submission on MIST.
Good luck!
- telnet towel.blinkenlights.nl
- YES, O-SNAP DOESN'T HAVE D-CLASS PERSONNEL!