Dovyski / cvui

A (very) simple UI lib built on top of OpenCV drawing primitives
https://dovyski.github.io/cvui/
MIT License
832 stars 213 forks source link

Increase font parameters to support custom fonts and Unicode characters. #112

Closed waitxxxx closed 3 years ago

waitxxxx commented 3 years ago

Increase font parameters to support custom fonts and to solve the problem of cv2.putText displaying Chinese fonts garbled.

Use case:

cvui.text(frame, 110, 160, 'cvui 你好!', 0.4, 0xCECECE, 'NotoSansCJK-Regular.ttc')