Oh, and curl --location -g --request POST 'http://localhost:8001/api/v1/recognition/recognize?limit=2&det_prob_threshold=0.9' --header 'Content-Type: multipart/form-data' --header 'x-api-key: fe899886-9d0f-4fd0-860a-406c5b1623de' --form 'file=@/openhab/video/domofon/ipcamera.jpg' -o '/openhab/video/domofon/face.txt'
does work from console, while exactly the same line doesn’t work from rule executeCommandLine(Duration.ofSeconds(3), "bash","curl --location -g --request POST 'http://localhost:8001/api/v1/recognition/recognize?limit=2&det_prob_threshold=0.9' --header 'Content-Type: multipart/form-data' --header 'x-api-key: fe899886-9d0f-4fd0-860a-406c5b1623de' --form 'file=@/openhab/video/domofon/ipcamera.jpg' -o '/openhab/video/domofon/face.txt'")
That’s a solution in my case, cause I only want to recognize faces when doorphone secondary button is pressed, but for others, who will try to recognize faces when their ip cameras will trigger motion alarm of human presence alarm, that won’t work, so Openhab-based solution is still wanted.