Skip to content

Commit

Permalink
minor things
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Zotti authored and Ryan Zotti committed Sep 19, 2016
1 parent 0b4c9aa commit cee1d65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dataprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,5 @@ def video_to_rgb_npz(session_path,predictors,targets):

if __name__ == '__main__':
data_path = '/Users/ryanzotti/Documents/repos/Self_Driving_RC_Car/data'
data_prep(data_path,rgb=False)
data_prep(data_path,rgb=True)
print("Finished.")
2 changes: 1 addition & 1 deletion haar_cascades/haar_cascade_webcam.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
def detect(img):
cascade = cv2.CascadeClassifier("/Users/ryanzotti/Documents/repos/Self-Driving-Car/haar_cascades/classifier/cascade.xml")
rects = cascade.detectMultiScale(img, 1.3, 4, 0, (20,20))
print(rects)
#print(rects)
if len(rects) == 0:
return [], img
rects[:, 2:] += rects[:, :2]
Expand Down

0 comments on commit cee1d65

Please sign in to comment.