Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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");
 }
Esempio n. 4
0
 static CognitiveServiceEmotion()
 {
     cogService = new CognitiveService("CogEmotion");
 }
 static CognitiveServiceTextAnalytics()
 {
     cogService = new CognitiveService("CogTextAnalytics", queryParams: "/sentiment");
 }
Esempio n. 6
0
 static CognitiveServiceTextAnalytics()
 {
     cogService = new CognitiveService("CogTextAnalytics");
 }
Esempio n. 7
0
 static CognitiveServiceEntityLinking()
 {
     cogService = new CognitiveService("CogEntityLinking");
 }
Esempio n. 8
0
 static CognitiveServiceEmotion()
 {
     cogService = new CognitiveService("CogEmotion", queryParams: "/recognize");
 }
Esempio n. 9
0
 static VideoIndexer()
 {
     cogService = new CognitiveService("VideoIndexer");
 }