Skip to content

Commit

Permalink
perf(predict_plate.py): update chinese font usage
Browse files Browse the repository at this point in the history
  • Loading branch information
zjykzj committed Oct 11, 2023
1 parent 007c0bf commit 560df93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions predict_plate.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
from utils.model.crnn_gru import CRNN
from utils.dataset.plate import PLATE_CHARS

# cp assets/fonts/simhei.ttf /usr/share/fonts/truetype/noto/
# rm -rf ~/.cache/matplotlib/*
plt.rcParams["font.sans-serif"] = ["SimHei"] # 设置字体
plt.rcParams["axes.unicode_minus"] = False # 该语句解决图像中的“-”负号的乱码问题

Expand Down

0 comments on commit 560df93

Please sign in to comment.