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