Skip to main content

make my own ASL clasifier on A , B , C , D , nothing latters using Pytorch and OpenCV

Project description

MY Simple ASL project with OpenCV

Installation - pip install assignment_bp_roma_cherniak_2026

Quick Start

Predict from image file

from asl_classifier import load_model, predict
from PIL import Image

model = load_model()
image = Image.open("hand.jpg")
label, confidence = predict(model, image)
print(f"Prediction: {label} ({confidence}%)")

Try it live with your webcam

from asl_classifier import load_model, run_webcam

model = load_model()
run_webcam(model)  # press Q to quit

API Reference

load_model(weights_path=None)

Loads the ASL classifier model with pretrained weights.

predict(model, image)

Runs inference on a single PIL image.

  • model — loaded model from load_model()
  • image — PIL Image object

run_webcam(model)

Opens webcam and runs live prediction in real time.

  • model — loaded model from load_model()
  • Press Q to quit

Net

PyTorch nn.Module class implementing a 4-layer CNN for ASL classification.

  • Input: RGB image of any size (resized to 128x128 internally)
  • Output: class probabilities for 5 signs

Evaluation Proposal

My primary metrics for evaluating the model's performance were validation accuracy during training, as well as the model's real-world ability to recognize these signs in practice. While the results demonstrated promising progress, the model is far from optimal and requires further refinement and improvement.

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

assignment_bp_roma_cherniak_2026-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file assignment_bp_roma_cherniak_2026-0.1.0.tar.gz.

File metadata

  • Download URL: assignment_bp_roma_cherniak_2026-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for assignment_bp_roma_cherniak_2026-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b83e936510f7909d3a8f4c2a67e9f553078a8d14b854494fbf84f2e638ba3ef2
MD5 42cd97ba8668bf51b747a55ce6d5f72e
BLAKE2b-256 e0df45b603a830db9b74bc1d6929da98c4101fcba956745a2c7aeb147a60137e

See more details on using hashes here.

File details

Details for the file assignment_bp_roma_cherniak_2026-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: assignment_bp_roma_cherniak_2026-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for assignment_bp_roma_cherniak_2026-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20350534d88838d8f6e72093da93c2dd39fc4821d5e05876afe55ccbc0269793
MD5 744b50eb88bad962d882f2a9cdc97b56
BLAKE2b-256 3df540dc187be427cf21a05a764766ec149d13c885d87fd976d2c9b397fd6352

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