I'm trying to use opencv to do some automatization but I need the camera's feed. The problem is now that everything works, i can't have an image that has a meaning...
I tried with a simple program using picamera to check if it was from my camera, it's not..
import cv2
import numpy as np
cap = cv2.VideoCapture(-1)
if (cap.isOpened() == False):
print("Unable to read camera feed")
frame_width = int(cap.get(3))
frame_height = int(cap.get(4))
while(True):
ret, frame = cap.read()
if ret == True:
cv2.imshow('frame',frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
else:
break
cap.release()
cv2.destroyAllWindows()
(taken from : learn opencv)
Like this is my room : screen of the output and I don't think it actually looks like that... Well, if you have an idea, feel free to help me, i'll be very gratefull. Cordially, Louis.