minor changes

This commit is contained in:
2019-08-05 10:17:40 +02:00
parent 13549bb594
commit 16c3efba13
2 changed files with 5 additions and 9 deletions
+5 -2
View File
@@ -16,8 +16,11 @@ sender = imagezmq.ImageSender(connect_to="tcp://{}:5555".format(
args["server_ip"]))
rpi_name = socket.gethostname() # send RPi hostname with each image
video_file = FileVideoStream("../run.mp4").start()
video_file = FileVideoStream("run.mp4").start()
time.sleep(2.0) # allow camera sensor to warm up
while video_file.more():
while True:
image = video_file.read()
if image is None:
break
sender.send_image(rpi_name, image)