public static void Antiporn() { var client = new Baidu.Aip.ImageCensor.AntiPorn("Api Key", "Secret Key"); var image = File.ReadAllBytes("图片文件路径"); var result = client.Detect(image); }
public static void AntipornGif() { var client = new Baidu.Aip.ImageCensor.AntiPorn(AiKeySecret.ApiKey, AiKeySecret.SecretKey); var image = File.ReadAllBytes("Gif图片文件路径"); var result = client.DetectGif(image); }