-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yossi
committed
May 31, 2016
1 parent
52d846c
commit 8eea878
Showing
6 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.pyc | ||
wGPS |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.