Skip to main content

Extract sid from ANSWER SHEET.

Project description

Introduction

Recognize the student ID on the answer sheet and maximize recognition accuracy.

Usage

Install

require python >= 3.10

pip install id-recognizer
from id_recognizer.composition_id_recognizer import CompositionIdRecognizer

# Read key and secret from environment variable YD_OCR_KEY\YD_OCR_SECRET if 
# not provide key secret
recognizer = CompositionIdRecognizer(key='', secret='')

# Maybe MatLike \ base64 str(with header or not) \ bytes
im = ...
b64_im_str = ""
ret = recognizer.recognize(b64_im_str)
if ret.status == StatusCode.OK:
    sid = ret.sid
    # DO STUFF

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

id_recognizer-1.0.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for id_recognizer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d763b8ef8da9b9b34766cb1c25e1c3b388398c875201fde1d3b82dcb8d60a00b
MD5 7ff0116898f1a55fd1346b79513965cf
BLAKE2b-256 6d196826ad34c7a5c212d5b0162f62d3c4d0b36862825645724df179150072ca

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