Codeunit 2024 Image Analysis Wrapper V1.0

Base Application, System.AI

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): Booleannew in 22
IsMediaSupported(MediaID: Guid): Booleannew in 22
GetLastError(): Textnew in 22
InvokeAnalysis(var JSONManagement: Codeunit "JSON Management"; BaseUrl: Text; ImageAnalysisKey: SecretText; ImagePath: Text; ImageAnalysisTypes: List of [Enum "Image Analysis Type"]; LanguageId: Integer): Booleannew in 24
SetUseOAuth2(NewUseOAuth2: Boolean)new in 28

All 7 procedures in 22-29

Changes 1 in 28

List17181920212223242526272829
Procedures21
SetUseOAuth2(NewUseOAuth2: Boolean)new in 28
added

All 3 changes in 22-29