使用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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49118f1712070b8687db3a27c30976b9e379cd2ae06dc5fa7c9c0cb93a316295
|
|
| MD5 |
61ce19e8614f0ff1936f5b29ab047adb
|
|
| BLAKE2b-256 |
911d9e37272f208f6ed15e8bd7e26880e8582b7ce10032ae240db8891d736427
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b408d2d2f07cfaaeef9be15213cff61ea7e75772d0da0be8c874b746521174c1
|
|
| MD5 |
7bf0ba5d3788a5c9e611fd86ff4c26a9
|
|
| BLAKE2b-256 |
353bc07b6017990b2d4bab5c3ac60db3b78e5e20e2bfad6cf825b41799fb05b2
|