DetectObjects procedure

Official Content
This documentation is valid for:

Detects objects that appear in an image.

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 how objects 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": "Person",
    "confidence": 0.9494681,
    "top": 0,
    "left": 0,
    "width": 0,
    "height": 0
}, {
    "label": "Person",
    "confidence": 0.51105684,
    "top": 0,
    "left": 0,
    "width": 0,
    "height": 0
}]
8218ms
IBM Watson N/A N/A
Microsoft Azure 
[{
    "label": "outdoor",
    "confidence": 0.996472358703613,
    "top": 0,
    "left": 0,
    "width": 0,
    "height": 0
}, {
    "label": "sky",
    "confidence": 0.980476856231689,
    "top": 0,
    "left": 0,
    "width": 0,
    "height": 0
}, {
    "label": "person",
    "confidence": 0.974854707717896,
    "top": 0,
    "left": 0,
    "width": 0,
    "height": 0
}, {
    "label": "man",
    "confidence": 0.922227799892426,
    "top": 0,
    "left": 0,
    "width": 0,
    "height": 0
}, {
    "label": "building",
    "confidence": 0.8099485039711,
    "top": 0,
    "left": 0,
    "width": 0,
    "height": 0
}]
4896ms
SAP Leonardo N/A N/A

Notes

  • The label assigned for an object depends on the provider used. Additional information can be found on the OutputRegion.Info field if it is given by the provider.
  • Maximum image file size is 10MB.
  • Rectangle area has zero values when the provider is not allowed to identify the region.
  • GeneXusAI does not provide support for drawing a rectangle over an image. This action is the responsibility of the developer.
    TIP: A good alternative can be combining HTML5 Canvas control with JavaScript with User Control object .

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.