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.1.0.tar.gz (6.8 MB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: ddddocr-1.1.0.tar.gz
  • Upload date:
  • Size: 6.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for ddddocr-1.1.0.tar.gz
Algorithm Hash digest
SHA256 67b751fab0a74d105acf364c59834f8c2ab14a4bd0a48cde12a3260dbb8ed99c
MD5 6154edeca7d5c26ef0125c641d694d3c
BLAKE2b-256 297596e14c01d461828d5a541f7e2efdfd1f17dc7d948c7ce29a7bb5f677dc30

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