This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start the server: | |
# python3 coral-app.py | |
# Submit a request via cURL: | |
# curl -X POST -F image=@face.jpg 'http://localhost:5000/v1/vision/detection' | |
from edgetpu.detection.engine import DetectionEngine | |
import tensorflow as tf | |
import argparse | |
from PIL import Image | |
import flask |