private static void ClarityDetect(String token, String endpoint) { // The obs url of file String dataUrl = ""; // The clarity confidence interval,default 0.8f float threshold = 0.8f; // post data by native file String data = utils.ConvertFileToBase64("../../data/moderation-clarity-detect.jpg"); String reslut = ModerationService.ClarityDetectToken(token, data, dataUrl, threshold, endpoint); Console.WriteLine(reslut); // The OBS link must match the region, and the OBS resources of different regions are not shared dataUrl = "https://sdk-obs-source-save.obs.cn-north-4.myhuaweicloud.com/moderation-clarity-detect.jpg"; // post data by obs url reslut = ModerationService.ClarityDetectToken(token, "", dataUrl, threshold, endpoint); Console.WriteLine(reslut); Console.ReadKey(); }