Skip to content

Instantly share code, notes, and snippets.

Avatar

Blake Lieber runninbear5

View GitHub Profile
@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,