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

Uploaded Source

File details

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

File metadata

  • Download URL: ODToolkit-0.0.6.tar.gz
  • Upload date:
  • Size: 8.4 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.6.tar.gz
Algorithm Hash digest
SHA256 ef80a18c89892be232a2994a29dbbe84d908f428af45ef569e7df1c88a8bbd50
MD5 f75f47e877c429183e1d9fa3d2233c7e
BLAKE2b-256 63a5765a4a69f9fd5ca348e1bdde46d4bec527258fd096609b9643e57297348a

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