Unverified Commit e5cba8a5 authored by narugo1992's avatar narugo1992 Committed by GitHub
Browse files

Merge pull request #51 from deepghs/dev/ocr

dev(narugo): add ocr based on paddle ocr
parents b46a5779 a091fbb4
Loading
Loading
Loading
Loading
+9.58 MiB

File added.

No diff preview for this file type.

+8 −0
Original line number Diff line number Diff line
import os.path

import matplotlib.font_manager as fm


def get_cn_fp() -> fm.FontProperties:
    ttf_file = os.path.join(os.path.dirname(__file__), 'SimHei.ttf')
    return fm.FontProperties(fname=ttf_file)
+9.58 MiB

File added.

No diff preview for this file type.

+9.58 MiB

File added.

No diff preview for this file type.

+87.4 KiB
Loading image diff...
Loading