Classify procedure

Official Content
This documentation is valid for:

Classifies an image in a set of categories.

Parameters

Configuration

The following table resumes the configuration properties (access credentials) you must set in order to use this AI task.

Property   Amazon WS Google Cloud AI IBM Watson  Microsoft Azure  SAP Leonardo Tencent AI
Id - - - - - 多标签识别
Key Rekognition Cloud Vision API  Visual Recognition  Computer Vision  Sandbox Environment  多标签识别
SecretKey Rekognition - - - - -

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
Amazon WS
[{
	"label": "Vacation",
	"confidence": 0.998
}, {
	"label": "Sunglasses",
	"confidence": 0.996
}, {
	"label": "Person",
	"confidence": 0.995
}, {
	"label": "Tourist",
	"confidence": 0.982
}, {
	"label": "Building",
	"confidence": 0.906
}, {
	"label": "Architecture",
	"confidence": 0.906
}, {
	"label": "Clothing",
	"confidence": 0.709
}, {
	"label": "Dome",
	"confidence": 0.693
}, {
	"label": "Monument",
	"confidence": 0.656
}, {
	"label": "People",
	"confidence": 0.644
}]

4135ms
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
Tencent AI
[{
	"label": "广场",
	"confidence": 0.41
}, {
	"label": "天空",
	"confidence": 0.4
}, {
	"label": "欧式建筑",
	"confidence": 0.24
}, {
	"label": "男孩",
	"confidence": 0.19
}, {
	"label": "树木",
	"confidence": 0.14
}, {
	"label": "合影",
	"confidence": 0.12
}]

18196ms

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.
  • Tencent AI returns labels as Chinese strings.

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.