Skip to main content

带带弟弟OCR

Project description

header.png

带带弟弟OCR通用验证码识别SDK免费开源版

环境要求

python >= 3.6

Windows/Linux..

调用方法

pip install ddddocr

import ddddocr

ocr = ddddocr.DdddOcr()

with open('test.png', 'rb') as f:

    img_bytes = f.read()

res = ocr.classification(img_bytes)

print(res)

参数说明

DdddOcr 接受两个参数

参数名 默认值 说明
use_gpu False Bool 是否使用gpu进行推理,如果该值为False则device_id不生效
device_id 0 int cuda设备号,目前仅支持单张显卡

classification

参数名 默认值 说明
img 0 bytes 图片的bytes格式

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

ddddocr-1.0.8.tar.gz (50.2 MB view details)

Uploaded Source

Built Distribution

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

ddddocr-1.0.8-py3-none-any.whl (50.2 MB view details)

Uploaded Python 3

File details

Details for the file ddddocr-1.0.8.tar.gz.

File metadata

  • Download URL: ddddocr-1.0.8.tar.gz
  • Upload date:
  • Size: 50.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for ddddocr-1.0.8.tar.gz
Algorithm Hash digest
SHA256 a0166a2a792892582a884625c9fdb1fc17510181d618710f61c54961d7843264
MD5 2abbbfa895f78cace98fd6105e0ec0e9
BLAKE2b-256 402232ba952c5a5eb36a97aeec4ba47d229c338f675588bbfbd123a3b2b48b72

See more details on using hashes here.

File details

Details for the file ddddocr-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: ddddocr-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 50.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for ddddocr-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 cd2c35df2c49b0d5e4280e6a3bbf905a406412721e6f7951523e218b7d0e5d67
MD5 d1b1e23c08d6653b228d5dddc9b19b63
BLAKE2b-256 4e46a50603415bdf9fd4ac93c8b776a7ec1928ec974cdd8d1cb47f75dc8c2627

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