Commit 02b7b072 authored by Ivan Tyagov's avatar Ivan Tyagov

No need of user interactions in both modes.

parent c3278004
...@@ -189,10 +189,6 @@ async def main(): ...@@ -189,10 +189,6 @@ async def main():
if not headless: if not headless:
cv2.imshow("Frame", frame) cv2.imshow("Frame", frame)
cv2.imshow("Mask", mask) cv2.imshow("Mask", mask)
# stop iteration if key pressed in a non headless mode
key = cv2.waitKey(1)
if key == 27:
break
if __name__ == "__main__": if __name__ == "__main__":
logging.basicConfig(level=logging.INFO) logging.basicConfig(level=logging.INFO)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment