Classify procedure

Official Content

Classifies an image in a set of categories.

Parameters

Configuration

The following table resumes the configuration properties that you must set before calling this AI task.

Property   Google Cloud AI IBM Watson  Microsoft Azure  SAP Leonardo
Key From Cloud Vision API  For Visual Recognition  For Computer Vision  For Sandbox Environment 

Sample

Taking the following image input, the table below shows the classification made for each provider and the time it takes for processing it.

GeneXusAI - Image module - Sample

 

Provider Output Benchmark
Google Cloud AI
[{
    "label": "landmark",
    "confidence": 0.9143682
}, {
    "label": "tourism",
    "confidence": 0.88936955
}, {
    "label": "tourist attraction",
    "confidence": 0.82744026
}, {
    "label": "historic site",
    "confidence": 0.8243023
}, {
    "label": "vacation",
    "confidence": 0.7921994
}, {
    "label": "travel",
    "confidence": 0.7658226
}, {
    "label": "temple",
    "confidence": 0.7339301
}, {
    "label": "sky",
    "confidence": 0.6887086
}, {
    "label": "fun",
    "confidence": 0.6320888
}, {
    "label": "place of worship",
    "confidence": 0.5606705
}]


8263ms
IBM Watson
[{
    "label": "Taj Mahal",
    "confidence": 0.777
}, {
    "label": "Seven Wonders of the Ancient World",
    "confidence": 0.753
}, {
    "label": "religious building",
    "confidence": 0.635
}, {
    "label": "building",
    "confidence": 0.635
}, {
    "label": "memorial",
    "confidence": 0.601
}, {
    "label": "alabaster color",
    "confidence": 0.927
}]

6160ms
Microsoft Azure 
[{
    "label": "outdoor",
    "confidence": 0.00390625
}, {
    "label": "people",
    "confidence": 0.64453125
}]

3489ms
SAP Leonardo
[{
    "label": "mosque",
    "confidence": 0.821220755577087
}, {
    "label": "palace",
    "confidence": 0.00871369056403637
}, {
    "label": "bell cote, bell cot",
    "confidence": 0.00335552403703332
}, {
    "label": "dome",
    "confidence": 0.00301632611081004
}, {
    "label": "gondola",
    "confidence": 0.00263869599439204
}]

4682ms

Notes

  • The classification is made with the default classifier of each provider. For such reason, the categories (or labels) returned are not predefined and they depend on the provider used.
  • Maximum image file size is 10MB.
  • SAP Leonardo allows images of 1.0 MP at most.

Scope

Platforms  Web(.NET,.NETCore,Java), SmartDevices(Android,iOS)
Connectivity  Online

Availability

This procedure is available as of GeneXus 16.

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