Pyautopainter
A Python script to paint a copy of a reference image on a blank canvas using brushstrokes
Install / Use
/learn @Spyduck/PyautopainterREADME
pyautopainter
A Python script to paint a copy of a reference image on a blank canvas using brushstrokes.

Runs a Flask app on port 8001.
Installation:
pip install -r requirements.txt
Running:
python pyautopainter.py
Then open your browser to http://localhost:8001/
Put new images in the "input" directory and refresh the browser window to load them in.
The color_distance_threshold setting is the distance between the color on the image and the color to paint a brush stroke at that spot. If lower, the brush stroke will be skipped. I recommend experimenting with this but 10-40 can get good results.

Put extra brushes in "brushes" -- they will load the next run or iteration. Brushes can be any size, but need some space at the edge of the image to be rotated correctly when running.
Put extra palettes as .png in "palette"
The canvas will be saved to output/out.png when it finishes, or you can save the JPEG version from your browser.
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
