yoloserv/sbin/test.sh

16 lines
298 B
Bash

HOST=localhost
PORT=8007
function test_camera(){
# get image from a simple camera
wget -O - http://$HOST:$PORT/acquire/camera
# write it to disk in file "a_file.png"
wget -O - http://$HOST:$PORT/write/a_file/png
# dump it to console
wget -O - http://$HOST:$PORT/dump
}