Provide a REST Api to front end applications that allows to invoke image recognition and retrieve all recognized images from previous session with their associated recognition results.
Invoke with this command: (echo -n '{"data": "'; base64 pill_bottle.jpg; echo '"}') | curl -X POST -H "Content-Type: application/json" --insecure -d @- http://aml-image-recognition-aml.apps.crp.allianz
Result: "predictions": [ { "description": "cliff", "label": "n09246464", "probability": 99.72506165504456 }, { "description": "alp", "label": "n09193705", "probability": 0.14329797122627497 }, { "description": "valley", "label": "n09468604", "probability": 0.05048720631748438 } ] }
- Download and install
- Configure STS to use JDK instead of JRE