Browse Source

git-svn-id: http://newslabx.csie.ntu.edu.tw/svn/Ginger@23 5747cdd2-2146-426f-b2b0-0570f90b98ed

master
Hobe 5 years ago
parent
commit
6ddb570508
2 changed files with 4 additions and 2 deletions
  1. BIN
      trunk/code/distanceSensor.avi
  2. +4
    -2
      trunk/code/readGridEye.py

BIN
trunk/code/distanceSensor.avi View File


+ 4
- 2
trunk/code/readGridEye.py View File

@ -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()

Loading…
Cancel
Save