private static CognitiveService GetCognitiveService(VideoIndexerSettings settings) { var localCogService = cogService; var videoIndexerKey = settings?.VideoIndexerKey; if (!string.IsNullOrEmpty(videoIndexerKey)) { localCogService = new CognitiveService("VideoIndexer", apiKey: videoIndexerKey); } return(localCogService); }
static CognitiveServiceVision() { cogService = new CognitiveService("CogVision", queryParams: "/analyze?visualFeatures=Categories,Tags,Adult,Faces&details=Celebrities&language=en"); }
static CognitiveServiceEntityLinking() { cogService = new CognitiveService("CogEntityLinking", queryParams: "/link"); }
static CognitiveServiceEmotion() { cogService = new CognitiveService("CogEmotion"); }
static CognitiveServiceTextAnalytics() { cogService = new CognitiveService("CogTextAnalytics", queryParams: "/sentiment"); }
static CognitiveServiceTextAnalytics() { cogService = new CognitiveService("CogTextAnalytics"); }
static CognitiveServiceEntityLinking() { cogService = new CognitiveService("CogEntityLinking"); }
static CognitiveServiceEmotion() { cogService = new CognitiveService("CogEmotion", queryParams: "/recognize"); }
static VideoIndexer() { cogService = new CognitiveService("VideoIndexer"); }