diff --git a/.DS_Store b/.DS_Store index c314f8e..aeb6051 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.gitignore b/.gitignore index 0d20b64..08334e3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.pyc +wGPS \ No newline at end of file diff --git a/mainGPS.py b/mainGPS.py new file mode 100644 index 0000000..dfbc952 --- /dev/null +++ b/mainGPS.py @@ -0,0 +1,33 @@ +import cv2 +from classes import frameAnalyzer +from config import * +from classes.capture import capture +from classes.gps import GPS +import time + +# # load image +# image = cv2.imread('training/set6/1.png') +# frameAnalyzer.analyze_frame(image, True, False, True) + + +# load video file +filename = '1464525240' + + +gps = GPS() +cap = cv2.VideoCapture(PARENT_DIR + "/training/wGPS/clip/"+filename+".avi") +capture = capture(int(cap.get(3)), int(cap.get(4))) +start = time.clock() +c = 0 +while True: + # if c >0: + # cv2.waitKey(0) + c +=1 + # # print c + if cap.grab(): + gps.updateSystemPositionData(int(time.clock() - start), filename) + + flag, frame = cap.retrieve() + + frameAnalyzer.analyze_frame(frame, True, True) + diff --git a/modules/.DS_Store b/modules/.DS_Store index 8df568f..1c9d148 100644 Binary files a/modules/.DS_Store and b/modules/.DS_Store differ diff --git a/modules/video/.DS_Store b/modules/video/.DS_Store index f73db63..18c66e7 100644 Binary files a/modules/video/.DS_Store and b/modules/video/.DS_Store differ diff --git a/training/.DS_Store b/training/.DS_Store index 7f25da7..fc1c225 100644 Binary files a/training/.DS_Store and b/training/.DS_Store differ