Created
May 13, 2020 14:16
-
-
Save HemaZ/fe3df237b97d00a3d9e3b904857be1ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
from pycarmaker import VDS | |
# initalize VDS | |
vds = VDS() | |
# Connect | |
vds.connect() | |
# Read Images | |
while(True): | |
# Capture frame-by-frame | |
frame = vds.read() | |
frame = cv2.cvtColor(frame, cv2.COLOR_RGB2BGR) | |
# Display the resulting frame | |
cv2.imshow('Frame', frame) | |
# Press Q on keyboard to exit | |
if cv2.waitKey(25) & 0xFF == ord('q'): | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment