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

Install

To install this tool, simply

pip install Object_Detection_Toolkit

Functions

There are few functions in the Visualizer object.

  1. BoxVisualizer.show_boxes(**kargs): show all the boxes in a dataset, including there actual positions, histogram and heatmaps

  2. BoxVisualizer.get_fpfn(**kargs): calculate FP, FN and correct predictions giving GT and Pred

  3. BoxVisualizer.show_fpfn(**kargs): show FP, FN and correct boxes obtained from step 2

Usage

To use, simply follow belows snippet:

from Object_Detection_Toolkit.Visualizer import BoxVisualizer

bv = BoxVisualizer(img_w=640, img_h=480)    # image size of your dataset

train_lbl = [...]                           # list of your train label txt
test_lbl = [...]                            # list of your test label txt
bv.show_boxes(labels=[train_lbl, test_lbl], 
              mode=['train', 'test'])       # show the boxes in a dataset

FP, FN, correct = bv.get_fpfn(**kargs)      # calculate FP, FN and Correct boxes
bv.show_fpfn(FP, FN, correct)               # show FP, FN and Correct boxes calculated just now

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.7.tar.gz (9.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: ODToolkit-0.0.7.tar.gz
  • Upload date:
  • Size: 9.2 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.7.tar.gz
Algorithm Hash digest
SHA256 43a718c9af854473582cfd8c92391772f89267a13680c022b8a749d4b103daeb
MD5 d3538ecf9e803241515578f0ba342c84
BLAKE2b-256 7a281b1da2ee8b56060fa5a4965557ca53b5c0e14f84587425a197807c3c47a0

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