private static void ModerationVideo(String token, String endpoint) { JArray categories = new JArray(); // The scene of detect categories.Add("terrorism"); categories.Add("p**n"); categories.Add("politics"); String url = "https://obs-test-llg.obs.cn-north-1.myhuaweicloud.com/bgm_recognition"; // OBS URL of the video int frame_interval = 5; // Frame time interval String reslut = Moderation.VideoToken(token, url, frame_interval, categories, endpoint); Console.WriteLine(reslut); Console.ReadKey(); }
private static void ModerationVideo(String token, String endpoint) { JArray categories = new JArray(); categories.Add("terrorism"); categories.Add("p**n"); categories.Add("politics"); // The OBS link must match the region, and the OBS resources of different regions are not shared String url = "https://obs-test-llg.obs.cn-north-1.myhuaweicloud.com/bgm_recognition"; // Frame time interval int frame_interval = 5; String reslut = Moderation.VideoToken(token, url, frame_interval, categories, endpoint); Console.WriteLine(reslut); Console.ReadKey(); }