Source AL, 141 lines
src/Layers/W1/BaseApp/System/AI/ImageAnalysis/ImageAnalysisWrapperV10.Codeunit.allines 8 to 23 of 141, Copyright (c) Microsoft Corporation. MIT
codeunit 2024 "Image Analysis Wrapper V1.0" implements "Image Analysis Provider"{ Access = Internal; var 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'; OnlyOneAnalysisSupportedErr: Label 'The current implementation of Image Analysis supports only one analysis type at a time.'; ComputerVisionApiTxt: Label 'Computer Vision API'; CustomVisionServiceTxt: Label 'Custom Vision Service'; UrlPatternTxt: Label '?visualFeatures=%1', Locked = true; UseOAuth2: Boolean; LastError: Text; HttpMessageHandler: DotNet HttpMessageHandler; procedure InvokeAnalysis(var JSONManagement: Codeunit "JSON Management"; BaseUrl: Text; ImageAnalysisKey: SecretText; ImagePath: Text; ImageAnalysisTypes: List of [Enum "Image Analysis Type"]; LanguageId: Integer): Boolean begin
All 141 lines
Public procedures 5 in 29
| IsLanguageSupported(AnalysisTypes: List of [Enum "Image Analysis Type"]; LanguageId: Integer): Boolean | new in 22 |
| IsMediaSupported(MediaID: Guid): Boolean | new in 22 |
| GetLastError(): Text | 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 7 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