diff --git a/VoIP.py b/VoIP.py deleted file mode 100644 index ca23bd5..0000000 --- a/VoIP.py +++ /dev/null @@ -1,25 +0,0 @@ -import cv2 -import urllib.request as urllib2 -import numpy as np -import sys - -# Input the URL shown by IP Webcam -url = "35.3.71.126:8080" -tream = 'http://' + url + '/video' -print('Streaming from: ' + tream) - -# Open ByteStram -stream = urllib2.urlopen(tream) - -bytes = bytes() -while True: - bytes += stream.read(1024) - a = bytes.find(b'\xff\xd8') - b = bytes.find(b'\xff\xd9') - if a != -1 and b != -1: - jpg = bytes[a:b+2] - bytes = bytes[b+2:] - i = cv2.imdecode(np.fromstring(jpg, dtype=np.uint8), cv2.IMREAD_COLOR) - cv2.imshow('i', i) - if cv2.waitKey(1) == 27: - exit(0) diff --git a/preprocess.pyc b/preprocess.pyc deleted file mode 100644 index 299b18f..0000000 Binary files a/preprocess.pyc and /dev/null differ diff --git a/run_train.bash b/run_train.bash deleted file mode 100644 index d563ff9..0000000 --- a/run_train.bash +++ /dev/null @@ -1,3 +0,0 @@ -#/bin/bash -source activate tf27 -python train.py > train_log.txt 2>&1 & diff --git a/test.py b/test.py deleted file mode 100644 index c8e0498..0000000 --- a/test.py +++ /dev/null @@ -1,44 +0,0 @@ -import data_handler as DH -import numpy as np -import cv2 -''' -Usage: -location : enter location of main directory -generateData(num) = selects a random set of 'num' images from the listed images -fetch(num) = selects a random set of 'num' samples from the produced samples using process() -reset() = resets the counters when you have used up all the images -numimages() = prints total number of images in the directory -numsamples() = prints total number of samples generated from selected images -remimages() = prints total number of images that remain in the directory -remsamples() = prints total number of samples that remain from the selected lot of images -''' - -# location = "./2013-01-10/" -# file = 'groundtruth_2013-01-10.csv' - -location = "/home/eecs568/eecs568/Mobile-Robotics/nclt/" -file = 'groundtruth_2012-03-17.csv' - -dh = DH.Process(location, file, True) - -# pick number of images to pick samples from -<<<<<<< HEAD -numImages = 1000 -======= -numImages = 900 ->>>>>>> 89c2a3c4254e9f9f5ecc51e48220543cefeb3fd6 -dh.generateData(numImages) -dh.remimages() - -dh.numsamples() -flag, images, labels = dh.fetch(6) -print(images.shape, len(labels), flag) -dh.remsamples() - -# Trick to pick samples from selected images -numSamples = 10 -flag = True -while flag==True: - flag, images, labels = dh.fetch(numSamples) - dh.remsamples() -