GeneXus SDK for SAP Leonardo: Face Detection

Official Content

The Face Detection service(API) detects faces in images and, if any, returns bounding box per face for every image.

How to use the Face Detection API

To use the Face Detection API you have to use POSTInferenceSync procedure

GeneXusSAPLeonardo.FaceDetection.POSTInferenceSync(&File,&Oauth2_ClientCredentials, &ResponseOK, &ResponseError,&Message,&IsSuccess)

Where

  • &File: is the file containing the image/images to analyze in order to search for faces.
    • Archive file: zip, tar, gz, tgz.
    • Image file: jpg, jpe, jpeg, png, gif, bmp.
  • &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.
  • &Messages: 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_2018122695419_1_png

&ResponseError SDT composition

responseErrorSDT_2018122695430_1_png

 

Read more about the Face Detection API.

 

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