Giter Club home page Giter Club logo

bbox-visualizer's Introduction

Bbox-Visualizer

This is a simple script which has different functions that lets users draw different types of visualizations. Useful for instances when visualizing objects after object detection.

Photo by Joshua Earle on Unsplash

image function
bbox with label on top draw_rectangle(img, bbox, ...)
add_label_to_rectangle(img, label, bbox, top=True, ...)
bbox with label inside draw_rectangle(img, bbox, ...)
add_label_to_rectangle(img, label, bbox, top=False, ...)
bbox with T label draw_rectangle(img, bbox, ...)
add_T_label_to_rectangle(img, label, bbox, ...)
label with flag draw_flag_with_label(img, label, bbox)
label with opaque overlay draw_rectangle(image, bbox, is_opaque=True, ...)
add_label_to_rectangle(img, label, bbox, draw_bg=False, top=False, ...)

There are optional functions that can draw multiple bounding boxes and/or write multiple labels on the same image, but it is advisable to use the above functions in a loop in order to have full control over your visualizations. Nonetheless, the optional functions are as follows:

  • draw_rectangles(..., bboxes, ...)
  • add_labels_to_rectangles(..., labels, bboxes, ...)
  • add_T_labels_to_rectangles(..., labels, bboxes, ...)
  • draw_flags_with_labels(..., labels, bboxes, ...)

bboxes and labels are lists in the above examples.

bbox-visualizer's People

Contributors

shoumikchow avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.