From f36eaaf91c4728e8d541357fc377492b02b965c0 Mon Sep 17 00:00:00 2001 From: Shoumik Sharar Chowdhury Date: Fri, 27 Jun 2025 02:05:41 -0400 Subject: [PATCH] docs: add usage examples for drawing bounding boxes and labels in bbox-visualizer --- docs/usage.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/usage.rst b/docs/usage.rst index b44c592..6a42afa 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -15,6 +15,13 @@ To use bbox-visualizer in a project: # Load an image image = cv2.imread('image.jpg') + # Draw a bounding box + bbox = (100, 100, 200, 200) # (x1, y1, x2, y2) format + image = bbv.draw_rectangle(image, bbox) + + # Add a label + image = bbv.add_label(image, "Object", bbox) + Warning Control -------------