Skip to main content

使用OCR解决文字反爬

Project description

xi_font_spider_ocr

下载

pip install font_ocr

如何使用

from font_ocr import FontSpiderOCR

if __name__ == '__main__':
    font_spider_oce = FontSpiderOCR(r"font.woff")  # 文件路径
    print(font_spider_oce.get_mapping("cmap_name"))  # 字码点为键
    print(font_spider_oce.get_mapping("glyf_name"))  # 字形为键, 值都是OCR识别后的数据

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

font_ocr-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

font_ocr-1.0.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file font_ocr-1.0.0.tar.gz.

File metadata

  • Download URL: font_ocr-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for font_ocr-1.0.0.tar.gz
Algorithm Hash digest
SHA256 49118f1712070b8687db3a27c30976b9e379cd2ae06dc5fa7c9c0cb93a316295
MD5 61ce19e8614f0ff1936f5b29ab047adb
BLAKE2b-256 911d9e37272f208f6ed15e8bd7e26880e8582b7ce10032ae240db8891d736427

See more details on using hashes here.

File details

Details for the file font_ocr-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: font_ocr-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for font_ocr-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b408d2d2f07cfaaeef9be15213cff61ea7e75772d0da0be8c874b746521174c1
MD5 7bf0ba5d3788a5c9e611fd86ff4c26a9
BLAKE2b-256 353bc07b6017990b2d4bab5c3ac60db3b78e5e20e2bfad6cf825b41799fb05b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page