I am attempting to run opencv through docker container. I have built the image and while running the container directly
docker run -v /home/ganaraj/nndetect:/detect -ti opecv3 bash
and accessing the bash
$>cd /detect/prediction
$>prediction 1.jpg
0
I do get the output I am expecting ( the final 0 ).
But I would actually wish to run this as a command line program.
I have tried both
docker run -v /home/ganaraj/nndetect:/detect -ti opecv3 /detect/prediction/prediction 1.png
docker run -v /home/ganaraj/nndetect:/detect -ti opecv3 /detect/prediction/prediction /detect/prediction/1.png
But both of these dont provide me the output I am expecting from this.
What would be the right way to do this, so that I can run this app easily like a command line tool ( through docker ) and get the output back ?
I have also tried
docker run -v /home/ganaraj/nndetect:/detect -it -d opecv3 bin/bash
and then :
docker exec -it 3d618d63316c /detect/prediction/prediction /detect/prediction/1.png
but still I get the same blank response.
Client:
Version: 1.8.3
API version: 1.20
Go version: go1.4.2
Git commit: f4bf5c7
Built: Mon Oct 12 05:37:18 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.8.3
API version: 1.20
Go version: go1.4.2
Git commit: f4bf5c7
Built: Mon Oct 12 05:37:18 UTC 2015
OS/Arch: linux/amd64