//图像去雾 -- 对浓雾天气下拍摄,导致细节无法辨认的图像进行去雾处理,还原更清晰真实的图像。 None public static void DehazeDemo(string pic) { client.Timeout = 60000; // 修改超时时间 var image = File.ReadAllBytes(pic); // 调用图像去雾,可能会抛出网络等异常,请使用try/catch捕获 var result = client.Dehaze(image); FileInfo fileInfo = new FileInfo(pic); string newfilename = fileInfo.DirectoryName + @"\" + fileInfo.Name.Substring(0, fileInfo.Name.Length - fileInfo.Extension.Length) + "_Dehaze" + fileInfo.Extension; SaveBase64Image(result["image"].ToString(), newfilename); }