|
|
|
|
|
|
|
|
args["server_ip"])) |
|
|
args["server_ip"])) |
|
|
|
|
|
|
|
|
rpi_name = socket.gethostname() # send RPi hostname with each image |
|
|
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 |
|
|
time.sleep(2.0) # allow camera sensor to warm up |
|
|
while video_file.more(): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while True: |
|
|
image = video_file.read() |
|
|
image = video_file.read() |
|
|
|
|
|
if image is None: |
|
|
|
|
|
break |
|
|
sender.send_image(rpi_name, image) |
|
|
sender.send_image(rpi_name, image) |