Skip to main content

An object detection toolkit for data mining and visualization

Project description

Object_Detection_Toolkit

A tool kit for checking boxes in a dataset and visualize predictions' distribution

PyPI

Project is listed under: https://pypi.org/project/ODToolkit/

Install

To install this tool, simply

pip install ODToolkit

Functions

Component Description
Analysis() Module for False-Positive and False-Negative analysis
Transformation() Module for transformation between image xy plane and homography plane
Visualization() Module for False-Positive and False-Negative visualization
Dataset.DatasetMaker() Module for train/test split and sort into folders for training

Usage

To use, simply follow belows snippet:

# ===================================
# demo for Analysis and Visualization
# ===================================
from ODToolkit import Analysis, Visualization

# get FP, FN, correct
FP, FN, correct = Analysis.get_fpfn(gt_lbl=gt_lbl,       # 假定已经准备好了
                                    pred_lbl=pred_lbl,   # 假定已经准备好了
                                    img_w=640,
                                    img_h=480,
                                    iou_thresh=0.25)

# visualize FP, FN, correct
visualizer = Visualization.BoxVisualizer(img_w=640, img_h=480)
visualizer.show_fpfn(FP, FN, correct, figsize=[15,10])

sample

Unit-test

For unit-test, we use Behave, which provides a very flexible environment for all kinds of tests

To view a sample, go to unit_tests folder and check *.feature and steps/*.py files

To run tests, simply:

behave unit_tests/               # run all tests
behave unit_tests/xxx.feature    # run particular test you want

To contribute

If you want to contribute to this project, please submit a pull request with unit tests.

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

ODToolkit-0.0.10.tar.gz (9.7 kB view details)

Uploaded Source

File details

Details for the file ODToolkit-0.0.10.tar.gz.

File metadata

  • Download URL: ODToolkit-0.0.10.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/3.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for ODToolkit-0.0.10.tar.gz
Algorithm Hash digest
SHA256 3566525e77231f37130af50c9be303380ef2f7aeae05e1014860563f1603340d
MD5 08b96e68beebad20f3f35daeb724152c
BLAKE2b-256 b8f9a4f9e227b18fc67bcda8377b7e2866922b6bbabebb8b40bfbe381eb7351d

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