构建支持中文字符的OpenCV Python包 freetype支持得python whl包

需求就是把opencv-python编译成whl包,能让opencv支持freetype utf-8字符显示:
https://github.com/opencv/opencv-python/tree/3.4

参考的大佬博客,但是得自己改一些东西,后面细说:
https://yinguobing.com/build-opencv-python-package-with-freetype-support/

基础环境参照官网安装:
https://docs.opencv.org/4.x/d2/de6/tutorial_py_setup_in_ubuntu.html

过程:

(1)得到代码:

git clone  --single-branch  -b 3.4 --recursive https://github.com/opencv/opencv-python.git

(2)得到支持:

你可能感兴趣的:(C/C++,python,opencv,开发语言)