Smart-Home am Beispiel der Präsenzerkennung im Raum
Projektarbeit Lennart Heimbs, Johannes Krug, Sebastian Dohle und Kevin Holzschuh bei Prof. Oliver Hofmann
SS2019
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1234567891011121314 |
- # run this program on each RPi to send a labelled image stream
- import socket
- import time
- from imutils.video import VideoStream
- import imagezmq
-
- sender = imagezmq.ImageSender(connect_to='tcp://jeff-macbook:5555')
-
- rpi_name = socket.gethostname() # send RPi hostname with each image
- picam = VideoStream(usePiCamera=True).start()
- time.sleep(2.0) # allow camera sensor to warm up
- while True: # send images as stream until Ctrl-C
- image = picam.read()
- sender.send_image(rpi_name, image)
|