Skip to content

Instantly share code, notes, and snippets.

@runninbear5
runninbear5 / inference.py
Created Apr 10, 2020
Inference code for running Tensorflow lite model on google coral edge tpu using pi camera
View inference.py
from edgetpu.detection.engine import DetectionEngine
from PIL import Image
from picamera.array import PiRGBArray
from picamera import PiCamera
import argparse
import time
import cv2
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-m", "--model", required=True,
You can’t perform that action at this time.