Skip to content

Commit

Permalink
trivial: add more comments for simple_gui.py code
Browse files Browse the repository at this point in the history
Signed-off-by: JoshWu <rainyfeeling@outlook.com>
  • Loading branch information
JoshWu committed Jan 5, 2021
1 parent 3ef08c1 commit f08d5a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion surround_view/simple_gui.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import cv2
import numpy as np


# return -1 if user press 'q'. return 1 if user press 'Enter'.
def display_image(window_title, image):
cv2.imshow(window_title, image)
while True:
Expand All @@ -13,6 +13,7 @@ def display_image(window_title, image):
if key == ord("q"):
return -1

# 'Enter' key is detected!
if key == 13:
return 1

Expand Down

0 comments on commit f08d5a7

Please sign in to comment.