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
# On Git Bash | |
cd path-to-tensorflow | |
git checkout 00cb358ab2e67d0b06a21901ded13c57fd47e673 | |
./tensorflow/lite/tools/make/download_dependencies.sh | |
nano tensorflow/lite/build_def.bzl | |
### | |
# --- a/tensorflow/lite/build_def.bzl | |
# +++ b/tensorflow/lite/build_def.bzl | |
# @@ -159,6 +159,7 @@ def tflite_cc_shared_object( |
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
# -*- coding: utf-8 -*- | |
import cv2 | |
import tensorflow as tf | |
import numpy as np | |
# https://www.tensorflow.org/lite/guide/hosted_models | |
# http://storage.googleapis.com/download.tensorflow.org/models/tflite/coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip | |
def detect_from_camera(): |
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
""" | |
Python implementation of the color map function for the PASCAL VOC data set. | |
Official Matlab version can be found in the PASCAL VOC devkit | |
http://host.robots.ox.ac.uk/pascal/VOC/voc2012/index.html#devkit | |
""" | |
import numpy as np | |
from skimage.io import imshow | |
import matplotlib.pyplot as plt | |
def color_map(N=256, normalized=False): |