These samples are quickstarts that show how to use various Vision APIs, such as Face.
- Create an Azure resource for the service you'd like to try, for example a Face resource.
- Add your key and endpoint from your resource to your environment variables with the variable names suggested in the sample.
- Add these jar libraries to your project or create a
libfolder in your working directory and add them there:
- commons-logging-4.0.6+
- httpclient-4.5.3+
- httpcore-4.4.13+
- json-20190722+
- commons-logging-4.0.6+
Build/run in your IDE or from the command line, for example:
javac Main.java -cp .;lib\*
java -cp .;lib\* Main
- Computer Vision documentation:
https://docs.microsoft.com/en-us/azure/cognitive-services/computer-vision/home - Computer Vision 2.1 API:
https://westus.dev.cognitive.microsoft.com/docs/services/5cd27ec07268f6c679a3e641/operations/56f91f2e778daf14a499f21b - Face documentation:
https://docs.microsoft.com/en-us/azure/cognitive-services/face/index - Face 1.0 API:
https://docs.microsoft.com/en-us/azure/cognitive-services/face/apireference