systemd files, documentation and a bug fix
Change-Id: I66e34059e0c1d604b82fba558bfeadee2ace093c
diff --git a/camera/README.md b/camera/README.md
new file mode 100644
index 0000000..cbe481f
--- /dev/null
+++ b/camera/README.md
@@ -0,0 +1,4 @@
+sudo systemctl status openvino-camera@*
+sudo systemctl [status|start|stop|restart] openvino-mqtt.service
+sudo systemctl [status|start|stop|restart] openvino-camera@low.service
+sudo systemctl [status|start|stop|restart] openvino-camera@high.service
diff --git a/camera/openvino-camera.sh b/camera/openvino-camera.sh
index 08d8a79..f389406 100644
--- a/camera/openvino-camera.sh
+++ b/camera/openvino-camera.sh
@@ -13,8 +13,10 @@
width="320"
height="240"
else
- width="640"
- height="480"
+ width="1280"
+ height="960"
+# width="640"
+# height="480"
fi
host="$2"
port="$3"
diff --git a/camera/openvino-camera@.service b/camera/openvino-camera@.service
new file mode 100644
index 0000000..53d139e
--- /dev/null
+++ b/camera/openvino-camera@.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=OpenVINO application camera
+After=multi-user.target
+
+[Service]
+ExecStart=/home/pi/openvino-camera/openvino-camera.sh %I 10.92.2.22 5000
+#ExecStart=/home/pi/openvino-camera/openvino-camera.sh %I 10.128.99.49 5000
+User=root
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/camera/openvino-mqtt.service b/camera/openvino-mqtt.service
new file mode 100644
index 0000000..3225249
--- /dev/null
+++ b/camera/openvino-mqtt.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=OpenVINO application camera
+After=multi-user.target
+
+[Service]
+ExecStart=/usr/bin/python3 /home/pi/openvino-camera/openvino-mqtt.py 10.92.2.22 5000
+#ExecStart=/usr/bin/python3 /home/pi/openvino-camera/openvino-mqtt.py 10.128.99.49 5000
+User=root
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target