Skip to content

Commit 941e4c8

Browse files
committed
use the draw_bounding_boxes method of the brick
1 parent 4048ab0 commit 941e4c8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

examples/object-detection/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ Here is a brief explanation of the application script (main.py):
7474
from arduino.app_utils import *
7575
from arduino.app_bricks.web_ui import WebUI
7676
from arduino.app_bricks.objectdetection import ObjectDetection
77-
from arduino.app_utils import draw_bounding_boxes
7877
from PIL import Image
7978
import io
8079
import base64

examples/object-detection/python/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from arduino.app_utils import *
66
from arduino.app_bricks.web_ui import WebUI
77
from arduino.app_bricks.object_detection import ObjectDetection
8-
from arduino.app_utils import draw_bounding_boxes
98
from PIL import Image
109
import io
1110
import base64
@@ -33,7 +32,7 @@ def on_detect_objects(client_id, data):
3332
ui.send_message('detection_error', {'error': 'No results returned'})
3433
return
3534

36-
img_with_boxes = draw_bounding_boxes(pil_image, results)
35+
img_with_boxes = object_detection.draw_bounding_boxes(pil_image, results)
3736

3837
if img_with_boxes is not None:
3938
img_buffer = io.BytesIO()

0 commit comments

Comments
 (0)