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

Uploaded Source

File details

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

File metadata

  • Download URL: ODToolkit-0.0.2.tar.gz
  • Upload date:
  • Size: 4.3 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.2.tar.gz
Algorithm Hash digest
SHA256 620883afdd73f107693d92d0616f33be1cd58aa81774f2a40f8634d2feb73275
MD5 3b46c3bbb588bf31e6aeeb1dba52ca1f
BLAKE2b-256 89c950af6a4450d391048a774e3a45f33b8b9b78af45021609e407b48df2b77c

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