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
# Updated for NCSDK 2.0. Original code by Adrian Rosebrock | |
# https://www.pyimagesearch.com/2018/02/19/real-time-object-detection-on-the-raspberry-pi-with-the-movidius-ncs/ | |
# USAGE | |
# python ncs2_realtime_objectdetection.py --graph graphs/mobilenetgraph --display 1 | |
# python ncs2_realtime_objectdetection.py --graph graphs/mobilenetgraph --confidence 0.5 --display 1 | |
# import the necessary packages | |
from mvnc import mvncapi as mvnc | |
from imutils.video import VideoStream | |
from imutils.video import FPS |