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 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
    static GMAFXml AnalyzeLocalImageWithObjects​(com.microsoft.azure.cognitiveservices.vision.computervision.ComputerVisionClient compVisClient, java.io.File _rawImage)
    method to analyse single file
    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
    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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 account
      endpoint - 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