Skip to main content

The iteach toolkit package includes the dhyolo model, designed to detect doors and handles in images.

Project description

iTeach Toolkit Package 🛠️

Overview 🔍

The iTeach_package is a toolkit designed for running object detection using the DH-YOLO model, specifically for identifying doors and handles in images. This package provides easy-to-use command-line tools for performing inference with a pre-trained DH-YOLO model.

Model Checkpoints 📥

Pretrained model checkpoints can be downloaded from this link.

Installation ⚙️

To install the package, use pip:

pip install iteach_toolkit

Usage 🖥️

Below is an example of how to use the package for running inference on an image.

import os
from PIL import Image as PILImg
from iteach_toolkit.DHYOLO import DHYOLODetector

# Set up paths
os.system("wget https://huggingface.co/spaces/IRVLUTD/DH-YOLO/resolve/main/test_imgs/jpad-irvl-test.jpg")
image_path = "./jpad-irvl-test.jpg"

model_path = "/path/to/yolov5_model.pt"

# Initialize the DHYOLODetector class
dhyolo = DHYOLODetector(model_path)

# Perform prediction on the image
orig_image, detections = dhyolo.predict(image_path, conf_thres=0.7, iou_thres=0.7, max_det=1000)

# Plot the bounding boxes on the original image
orig_image, image_with_bboxes = dhyolo.plot_bboxes(attach_watermark=True)

# Convert the image (with bounding boxes) from a NumPy array to a PIL Image for display.
pil_img_with_bboxes = PILImg.fromarray(image_with_bboxes)

# Plot the image
pil_img_with_bboxes.show()

License 📜

This project is licensed under the MIT License.

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

iteach_toolkit-0.0.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

iteach_toolkit-0.0.2-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file iteach_toolkit-0.0.2.tar.gz.

File metadata

  • Download URL: iteach_toolkit-0.0.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for iteach_toolkit-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a4213377a29ba293bf76df307c0f2f5819e6b7dce06bdf4a88cc21447c2d5e04
MD5 3232ce2dac592e460366b1b0678b3b45
BLAKE2b-256 2ee11aec0410e1ccbe5218fc72d1a95f21e8b86e689462bcc8a136bc762a6617

See more details on using hashes here.

File details

Details for the file iteach_toolkit-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: iteach_toolkit-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for iteach_toolkit-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fe9aca9df63d60403c41a3823d7c49e9083a305492544f26a15bb99559adeaa8
MD5 fc3768ee4e5fc534fb1733417a7fd4d3
BLAKE2b-256 06ce25eb1568d8ab6f6be82135848081462f62417e71be8258a59fb8476706da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page