|
|
@ -135,8 +135,8 @@ if __name__ == '__main__': |
|
|
|
distanceSensor.start() |
|
|
|
|
|
|
|
fourcc = cv2.VideoWriter_fourcc(*'XVID') |
|
|
|
videoWriter = cv2.VideoWriter('output.avi', fourcc, 10.0, (SIZE*2,SIZE*2)) |
|
|
|
cv2.imshow('sample', np.zeros((SIZE*2,SIZE*2), np.uint8)) |
|
|
|
videoWriter = cv2.VideoWriter('output.avi', fourcc, 10.0, (SIZE*2,SIZE*3)) |
|
|
|
cv2.imshow('sample', np.zeros((SIZE*3,SIZE*2), np.uint8)) |
|
|
|
aver1 = np.zeros((SIZE,SIZE), np.uint16) |
|
|
|
aver2 = np.zeros((SIZE,SIZE), np.uint16) |
|
|
|
cnt = 0 |
|
|
@ -236,4 +236,6 @@ if __name__ == '__main__': |
|
|
|
time.sleep(0.001) |
|
|
|
grideye.stop() |
|
|
|
grideye2.stop() |
|
|
|
videoWriter.release() |
|
|
|
cv2.destroyAllWindows() |
|
|
|
|