Merge branch 'main' of https://github.com/AraComITServicesGmbH/emotionale-robotik
This commit is contained in:
commit
2396c023d3
3
hackathon/README.MD
Normal file
3
hackathon/README.MD
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Hackathon emotionale Robotik
|
||||||
|
|
||||||
|
Wir haben einen Server entwickelt, welcher Emotionen anhand von Bildaufnahmen auswertet. Die IP-Adresse des Servers müsst ihr in der Config-Datei hinterlegen. Eure Aufgabe ist im Client in der Klasse OwnRobot passende Gesichtsausdrücke mit Pygame zu generieren. Hierzu könnt ihr euren Code in der Update-Funktion platzieren. Dort stehen euch das aktuelle Foto sowie die dazugehörigen erkannten Emotionen zur Verfügung. Ihr könnte den Parameter update_interval überschreiben, um die Geschwindigkeit der Aktualisierungen zu verändern. Der Client selbst lässt sich durch Ausführen der start_client.sh/.bat im root-Verzeichnis ausführen. Viel Spaß beim Coden.
|
@ -1,3 +1,4 @@
|
|||||||
opencv-python-headless
|
opencv-python-headless
|
||||||
facenet-pytorch
|
facenet-pytorch
|
||||||
hsemotion
|
hsemotion
|
||||||
|
pygame
|
5
hackathon/scripts/install.bat
Normal file
5
hackathon/scripts/install.bat
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
python -m venv env
|
||||||
|
call env\Scripts\activate.bat
|
||||||
|
pip install -r requirements.txt
|
4
hackathon/scripts/start_client.bat
Normal file
4
hackathon/scripts/start_client.bat
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
call env\Scripts\activate.bat
|
||||||
|
python client.py
|
4
hackathon/scripts/start_server.bat
Normal file
4
hackathon/scripts/start_server.bat
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
call env\Scripts\activate.bat
|
||||||
|
python server.py
|
@ -47,7 +47,7 @@ def update_values(queue: Queue):
|
|||||||
else:
|
else:
|
||||||
queue.put((frame_bgr, emotions))
|
queue.put((frame_bgr, emotions))
|
||||||
finally:
|
finally:
|
||||||
capture.close()
|
capture.release()
|
||||||
|
|
||||||
|
|
||||||
def update_to_clients(queue: Queue):
|
def update_to_clients(queue: Queue):
|
||||||
|
Loading…
Reference in New Issue
Block a user