modified scripts for presentation
This commit is contained in:
@@ -4,6 +4,7 @@ from __future__ import division
|
||||
import argparse
|
||||
|
||||
import cv2
|
||||
import numpy as np
|
||||
|
||||
from .utils import read_config, imresize
|
||||
from .imagereaders import NaoImageReader, VideoReader, PictureReader
|
||||
@@ -118,9 +119,10 @@ if __name__ == '__main__':
|
||||
|
||||
ball_frame = ball_finder.draw(ball_frame, ball)
|
||||
goal_frame = goal_finder.draw(goal_frame, goal)
|
||||
combined = np.concatenate((ball_frame, goal_frame), axis=1)
|
||||
|
||||
cv2.imshow(ball_window, ball_frame)
|
||||
cv2.imshow(goal_window, goal_frame)
|
||||
cv2.imshow(ball_window, combined)
|
||||
# cv2.imshow(goal_window, goal_frame)
|
||||
|
||||
key = cv2.waitKey(0 if args.manual else 1)
|
||||
if key == ord('q') or key == 27:
|
||||
|
||||
Reference in New Issue
Block a user