Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Turning .jpeg , .png and .mp4, .gif files to ASCII art

License

NotificationsYou must be signed in to change notification settings

Mirtia/ASCII-Art

Repository files navigation

Usage

"YOUR_PATH_HERE/ascii-art.exe" --input=input/osaka.jpg --font=fonts/Consolas.ttf --output=output/osaka.jpg --background=#edcaeb --color=#db6bbc"YOUR_PATH_HERE/ascii-art.exe" --input=input/707.gif --font=fonts/Consolas.ttf --output=output/707.mp4 --color=#e63959"YOUR_PATH_HERE/ascii-art.exe" --input=input/smile-pepe.gif --font=fonts/Consolas.ttf --output=output/smile-pepe.mp4"YOUR_PATH_HERE/ascii-art.exe" --input=input/lain.png --font=fonts/Consolas.ttf --output=output/lain.png --background=#ede6d1 --color=#3d1d38

Output

707pepe
osakalain

Notes

To use freetype you have to download the following libraries. I usedvcpkg for package management.

# VCPKG_DEFAULT_TRIPLETvckpg install harfbuzz vckpg install freetype

Then, when configuring the build files you have to enableWITH_FREETYPE option. I also had to modify theCMakeLists.txt in OpenCV contributions/modules/freetype/CMakeLists.txt to make it work.

Moreover, there were a ton of missing .dll files such aslibopenh264 and there was noGIF file support from the standard OpenCV library. So, I just usedffmpeg as a command line tool to convert resulting.mp4 to.gif.

About

Turning .jpeg , .png and .mp4, .gif files to ASCII art

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp