Raspividyuv stereo
Posted: Tue Jan 21, 2020 3:04 pm
Hello.
I am using your tutorial for using high framerate. Video stream there is captured using raspividyuv.
(w,h) = (640,480)
bytesPerFrame = w * h
fps = 250
videoCmd = "raspividyuv --stereo tb -ex off -w "+str(w)+" -h "+str(h)+" --output - --timeout 0 --framerate "+str(fps)+" --luma --nopreview"
videoCmd = videoCmd.split()
cameraProcess = sp.Popen(videoCmd, stdout=sp.PIPE, bufsize=0)
while True:
cameraProcess.stdout.flush()
frame = np.fromfile(cameraProcess.stdout, count=bytesPerFrame, dtype=np.uint8)
if frame.size != bytesPerFrame:
print("Error: Camera stream closed unexpectedly")
break
frame.shape = (h,w)
cv2.imshow("Frame", frame)
In my project, I need to gather frames from both cameras. Is there the possibility to do it using raspividyuv (this requirement is duo faster image capturing)?
I am using your tutorial for using high framerate. Video stream there is captured using raspividyuv.
(w,h) = (640,480)
bytesPerFrame = w * h
fps = 250
videoCmd = "raspividyuv --stereo tb -ex off -w "+str(w)+" -h "+str(h)+" --output - --timeout 0 --framerate "+str(fps)+" --luma --nopreview"
videoCmd = videoCmd.split()
cameraProcess = sp.Popen(videoCmd, stdout=sp.PIPE, bufsize=0)
while True:
cameraProcess.stdout.flush()
frame = np.fromfile(cameraProcess.stdout, count=bytesPerFrame, dtype=np.uint8)
if frame.size != bytesPerFrame:
print("Error: Camera stream closed unexpectedly")
break
frame.shape = (h,w)
cv2.imshow("Frame", frame)
In my project, I need to gather frames from both cameras. Is there the possibility to do it using raspividyuv (this requirement is duo faster image capturing)?