From 1671d6872a0310cfbff470ce949c9828afd97055 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Sun, 2 May 2021 15:03:31 -0700 Subject: [PATCH] Add example --- radio.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 radio.py diff --git a/radio.py b/radio.py new file mode 100644 index 0000000..1a21dea --- /dev/null +++ b/radio.py @@ -0,0 +1,14 @@ +import cv2 + +camera = cv2.VideoCapture(0) + +while True: + ret, frame = camera.read() + cv2.imshow('Input', frame) + + c = cv2.waitKey(1) + if c == 27: + break + +camera.release() +cv2.destroyAllWindows()