https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.7/StyleText/README_ch.md#style-text
# 新建conda环境
# python version
conda create -n paddle python==3.8
# 安装paddlepaddle
python -m pip install paddlepaddle-gpu==2.5.1.post120 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html
# paddleocr
git clone https://github.com/PaddlePaddle/PaddleOCR
cd PaddleOCR
pip3 install -r requirements.txt
anaconda环境version `GLIBCXX_3.4.30‘ not found
attributeerror: ‘FreeTypeFont‘ object has no attribute ‘getsize‘
pip uninstall Pillow
pip install Pillow==9.5
conda activate paddle
cd PaddleOCR/StyleText
# 单张
python3 tools/synth_image.py -c configs/config.yml --style_image examples/style_images/1_27RL.png --text_corpus PaddleOCR --language en
# 批量
python3 tools/synth_dataset.py -c configs/dataset_config.yml