You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I've been trying to use video streaming with 2 camera(A,C) in opencv project, but the camera stop working after a couple of second
following is my code and error
any help really appreciated
#code
importRPi.GPIOasgp# initialize the camera and grab a reference to the raw camera capturegp.setwarnings(False)
gp.setmode(gp.BOARD)
gp.setup(7, gp.OUT)
gp.setup(11, gp.OUT)
gp.setup(12, gp.OUT)
gp.output(7, False)
gp.output(11, False);gp.output(12, True)
##################################################################################frompicamera.arrayimportPiRGBArrayfrompicameraimportPiCameraimportcv2importtimecamera=PiCamera()
camera.resolution= (320, 240)
camera.framerate=30rawCapture=PiRGBArray(camera, size=(320, 240))
display_window=cv2.namedWindow("Faces")
time.sleep(1)
i=0forframeincamera.capture_continuous(rawCapture, format="bgr", use_video_port=True):
image=frame.array#DISPLAY TO WINDOWcv2.imshow("Faces", image)
print("image num=",i);i+=1key=cv2.waitKey(1)
rawCapture.truncate(0)
time.sleep(1)
ifkey==27:
camera.close()
cv2.destroyAllWindows()
break
Hi
I've been trying to use video streaming with 2 camera(A,C) in opencv project, but the camera stop working after a couple of second
following is my code and error
any help really appreciated
#code
#error
The text was updated successfully, but these errors were encountered: