Skip to content

Instantly share code, notes, and snippets.

@ibraEssam
Created May 13, 2020 14:16
Show Gist options
  • Select an option

  • Save ibraEssam/fe3df237b97d00a3d9e3b904857be1ee to your computer and use it in GitHub Desktop.

Select an option

Save ibraEssam/fe3df237b97d00a3d9e3b904857be1ee to your computer and use it in GitHub Desktop.
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