Skip to content

Instantly share code, notes, and snippets.


Blake Lieber runninbear5

View GitHub Profile
runninbear5 /
Created April 10, 2020 19:31
Inference code for running Tensorflow lite model on google coral edge tpu using pi camera
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,