Getting Camera Feed from the Raspberry Pi.

Python code:

import cv2
import numpy as np
cap1 = cv2.VideoCapture(0)
while True:
ret1,img1 = cap1.read()
cv2.imshow(‘video output1’, img1)
k=cv2.waitKey(10)& 0xff
if k==27:
break
cap1. release()
cv2.destroyAllWindows()

Subscribe to my YouTube channel to help me promote technology – it’s one click for you, and a huge encouragement for me to keep going with this goal in my free time.
Twitter: https://twitter.com/irenegironacci
ArtStation: https://www.artstation.com/bitstyle/profile
Website: https://www.imgportal.net
LinkedIn: https://www.linkedin.com/in/irenegironacci/
Facebook: https://www.facebook.com/BitstylePortal
ResearchGate: https://www.researchgate.net/profile/Irene_Gironacci
Read more about myself: http://xr4all.eu/member/irene-gironacci/

source

Leave a Reply

Your email address will not be published. Required fields are marked *