Skip to content

Instantly share code, notes, and snippets.

@ruze00
ruze00 / ncs2_realtime_objectdetection.py
Created Sep 9, 2018 — forked from chad-green/ncs2_realtime_objectdetection.py
Update for NCSDK 2.0 based on code from Adrian Rosebrock's tutorial on pyimagesearch.com (see link in comments)
View ncs2_realtime_objectdetection.py
# 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
@ruze00
ruze00 / ubuntu.sh
Created Jan 7, 2018 — forked from jarutis/ubuntu.sh
Theano and Keras setup on ubuntu with OpenCL on AMD card
View ubuntu.sh
## install Catalyst proprietary
sudo ntfsfix /dev/sda2
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK
sudo apt-get remove --purge fglrx*
sudo apt-get install linux-headers-generic
sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo
sudo amdconfig --initial
## install build essentials
sudo apt-get install cmake
@ruze00
ruze00 / TestJWTS.cs
Created Sep 29, 2016
JWTS Token encoding using .NET for Jersey
View TestJWTS.cs
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace TestAuth
You can’t perform that action at this time.