Skip to content

Instantly share code, notes, and snippets.

@JerryKurata
JerryKurata / object_detection_with_labels.py
Created April 30, 2020 00:59 — forked from aallan/object_detection_with_labels.py
Object detection python demonstration code for use with Google's Edge TPU (now with labelling)
import argparse
import platform
import subprocess
from edgetpu.detection.engine import DetectionEngine
from PIL import Image
from PIL import ImageFont, ImageDraw
# Function to draw a rectangle with width > 1
def draw_rectangle(draw, coordinates, color, width=1):
for i in range(width):