Skip to content

Commit

Permalink
训练模型,预测模型控制小车
Browse files Browse the repository at this point in the history
  • Loading branch information
Timthony committed Oct 2, 2018
1 parent 08a4cb4 commit 0c80d15
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zth_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ def main():
with picamera.Picamera(resolution=(160, 120)) as camera:
time.sleep(2)
output = ProcessOutput()
camera.start_recording(output, format='mjpeg')
while not output.done:
camera.wait_recording(1)
camera.stop_recording()
finally:
zth_car_control.clean_GPIO()



Expand Down

0 comments on commit 0c80d15

Please sign in to comment.