| services | cognitive-services, computer-vision |
|---|---|
| platforms | java |
| author | wiazur |
This quickstart uses image classification and object detection on an image with the Computer Vision Cognitive Service. It will retrieve and print information (including text) from the image. Maven is used.
- If you don't have a Microsoft Azure subscription, you can visit the Microsoft Cognitive Services Web site, create a new Azure account, and try Cognitive Services for free.
- Get an Azure Computer Vision account to get your key and endpoint.
- Add COMPUTER_VISION_KEY and COMPUTER_VISION_ENDPOINT to your environment variables with your key and endpoint as values.
- After cloning this repo (see below), create a 'resources' folder in your 'src/main/' folder.
- Add images landmark.jpg and printed_text.jpg to it, downloaded locally from here: https://github.com/Azure-Samples/cognitive-services-sample-data-files/tree/master/ComputerVision/Images
Execute from the command line:
git clone https://github.com/Azure-Samples/cognitive-services-quickstart-code.gitcd cognitive-services-quickstart-code/java/ComputerVisionmvn compile exec:java -Dexec.cleanupDaemonThreads=false
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.