"examples/vscode:/vscode.git/clone" did not exist on "b581b2250474a4277459426b05aeeacee8b1f0d8"
Commit cc492d46 authored by luopl's avatar luopl
Browse files

Update demo.py

parent 359e1bde
......@@ -134,10 +134,7 @@ if __name__ == "__main__":
out_filename = args.output
visualized_output.save(out_filename)
else:
cv2.namedWindow(WINDOW_NAME, cv2.WINDOW_NORMAL)
cv2.imshow(WINDOW_NAME, visualized_output.get_image()[:, :, ::-1])
if cv2.waitKey(0) == 27:
break # esc to quit
cv2.imwrite('output_image.png', visualized_output.get_image()[:, :, ::-1])
elif args.webcam:
assert args.input is None, "Cannot have both --input and --webcam!"
assert args.output is None, "output not yet supported with --webcam!"
......
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