Source AL, 252 lines
src/Layers/W1/BaseApp/System/AI/ImageAnalysis/ImageAnalysisWrapperV32.Codeunit.allines 10 to 25 of 252, Copyright (c) Microsoft Corporation. MIT
codeunit 2023 "Image Analysis Wrapper V3.2" implements "Image Analysis Provider"{ Access = Internal; // https://westus.dev.cognitive.microsoft.com/docs/services/computer-vision-v3-2/operations/56f91f2e778daf14a499f21b var RequestIdTelemetryMsg: Label 'Call to Image Analysis succeeded. ID present: %1; Request ID: %2.', Locked = true; CognitiveServicesErr: Label 'Could not contact the %1. %2 Status code: %3.', Comment = '%1: Error returned from called API. %2: the error message. %3: HTTP status code of error'; MediaTooLargeErr: Label 'The media file is too large. Only images up to 4 MB are supported.'; MediaTooSmallErr: Label 'The media file is too small. It must be at least 50x50 pixels.'; MediaWrongFormatErr: Label 'The media file is not supported. Only images of the following types are supported: JPEG, PNG, GIF, BMP.'; UnsupportedLanguageErr: Label 'You are trying to run image analysis in a language (%1) that is not supported.', Comment = '%1: a language code, for example 1033'; CheckingImageSupportedTelemetryMsg: Label 'Checking image supported. Bytes: %1, Size: %2, Format: %3.', Locked = true; ComputerVisionApiTxt: Label 'Computer Vision API'; AnalyzePathTxt: Label '/vision/v3.2/analyze', Locked = true;
All 252 lines
Public procedures 5 in 29
| GetLastError(): Text | new in 22 |
| IsMediaSupported(MediaID: Guid): Boolean | new in 22 |
| IsLanguageSupported(AnalysisTypes: List of [Enum "Image Analysis Type"]; LanguageId: Integer): Boolean | new in 22 |
| InvokeAnalysis(var JSONManagement: Codeunit "JSON Management"; BaseUrl: Text; ImageAnalysisKey: SecretText; ImagePath: Text; ImageAnalysisTypes: List of [Enum "Image Analysis Type"]; LanguageId: Integer): Boolean | new in 24 |
| SetUseOAuth2(NewUseOAuth2: Boolean) | new in 28 |
All 6 procedures in 22-29
Changes 1 in 28
| List | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
|---|
| Procedures | | | | | | | | 2 | | | | 1 | |
|---|
All 3 changes in 22-29