DetectScene procedure

Official Content

Determines the scenario that image is about (a city, a beach, a desert, etc.).

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 For Cloud Vision API - For Computer Vision  -

Sample

Taking the following image input, the table below shows the scenarios are identified for each provider (as a JSON structure) and the time it takes for processing it.

GeneXusAI - Image module - Sample

 

Provider Output Benchmark
Google Cloud AI
[{
    "label": "Taj Mahal",
    "confidence": 0.72149533
}]
10426ms
IBM Watson N/A N/A
Microsoft Azure 
[{
    "label": "outdoor, Taj Mahal",
    "confidence": 0.985146582126618
}, {
    "label": "people",
    "confidence": 0.64453125
}]

4125ms
SAP Leonardo N/A N/A

Notes

  • The label assigned for an object depends on the provider used.
  • Maximum image file size is 10MB.

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.