Skip to content

Commit f08d5a7

Browse files
committed
trivial: add more comments for simple_gui.py code
Signed-off-by: JoshWu <[email protected]>
1 parent 3ef08c1 commit f08d5a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

surround_view/simple_gui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import cv2
22
import numpy as np
33

4-
4+
# return -1 if user press 'q'. return 1 if user press 'Enter'.
55
def display_image(window_title, image):
66
cv2.imshow(window_title, image)
77
while True:
@@ -13,6 +13,7 @@ def display_image(window_title, image):
1313
if key == ord("q"):
1414
return -1
1515

16+
# 'Enter' key is detected!
1617
if key == 13:
1718
return 1
1819

0 commit comments

Comments
 (0)