GeneXus SDK for SAP Leonardo: Image Classification

Official Content

The Image Classification service allows you to classify images into a pre-defined set of categories or, in case of a customized model, your own set of categories.

How to use the Image Classification API

To use the image classification API you have to use the POSTInferenceSync procedure

GXSAPLeonardo.ImageClassification.POSTInferenceSync(&ImageClassificationFile, &options, &Oauth2_ClientCredentials,&ResponseOk,&ResponseError,&ErrorOut, &Message, &IsSuccess)

Where:

  • &ImageClassificationFile: is the file to be analyzed.
    • Image files: jpg, jpe, jpeg, png, gif, bmp, tif, tiff.
    • Archive files: zip, tar, gz, tgz.
  • &options
  • &Oauth2_ClientCredentials
  • &ResponseOk: is a Structured Data Type(SDT) that contains the result if no errors are found.
  • &ResponseError:  is a SDT that contains the error code, the error message, and some details if an error was found.
  • &ErrorOut
  • &Message: is a Message that contains information about the request.
  • &IsSuccess: is a Boolean that is true if no errors were encountered.

&ResponseOk SDT Composition

responseOkSDT_2018122695537_1_png

&ResponseError SDT composition

responseErrorSDT_2018122695544_1_png

 

Read more about the Image Classification API.

 

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.