Package de.swa.fuh.microsoft.control
Class ImageAnalyzer
java.lang.Object
de.swa.fuh.microsoft.control.ImageAnalyzer
public class ImageAnalyzer
extends java.lang.Object
object, to analyse object with ms azure library
-
Constructor Summary
Constructors Constructor Description ImageAnalyzer() -
Method Summary
Modifier and Type Method Description static voidAnalyzeLocalImageTest(com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVisionClient compVisClient, java.lang.String _pathToLocalImage)example implementation to analyse an image and print results to consolestatic GMAFXmlAnalyzeLocalImageWithObjects(com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVisionClient compVisClient, java.io.File _rawImage)method to analyse single filestatic java.util.List<GMAFXml>AnalyzeLocalImageWithObjects(java.lang.String _pathToImageDir, java.lang.String _outputPath, java.lang.String _azureSubsKey, java.lang.String _azureSubsEndpoint)method, to analyze list o files in directory and put GMAF XML files to given directorystatic com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVisionClientAuthenticate(java.lang.String subscriptionKey, java.lang.String endpoint)authentication method, to authenticate agains ms computer Vision Webservice
-
Constructor Details
-
ImageAnalyzer
public ImageAnalyzer()
-
-
Method Details
-
Authenticate
public static com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVisionClient Authenticate(java.lang.String subscriptionKey, java.lang.String endpoint)authentication method, to authenticate agains ms computer Vision Webservice- Parameters:
subscriptionKey- key from ms accountendpoint- endpoint from ms account- Returns:
- client, to work against computer vision services
-
AnalyzeLocalImageWithObjects
public static java.util.List<GMAFXml> AnalyzeLocalImageWithObjects(java.lang.String _pathToImageDir, java.lang.String _outputPath, java.lang.String _azureSubsKey, java.lang.String _azureSubsEndpoint)method, to analyze list o files in directory and put GMAF XML files to given directory- Parameters:
_pathToImageDir- directory with images included_outputPath- directory to put GMAF XML files in_azureSubsKey- Azure Subsciption Key_azureSubsEndpoint- Azure Subscription Endpoint- Returns:
- List of GMAf XML objects
-
AnalyzeLocalImageWithObjects
public static GMAFXml AnalyzeLocalImageWithObjects(com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVisionClient compVisClient, java.io.File _rawImage)method to analyse single file- Parameters:
compVisClient- client, to work against computer vision services_rawImage- file, which should be analysed- Returns:
- GNAF Xml file
-
AnalyzeLocalImageTest
public static void AnalyzeLocalImageTest(com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVisionClient compVisClient, java.lang.String _pathToLocalImage)example implementation to analyse an image and print results to console- Parameters:
compVisClient- client, to work against computer vision services_pathToLocalImage- image directory
-