示例#1
0
        public void GeneralEnhanced(string filePath)
        {
            var image = File.ReadAllBytes(filePath);

            // 带生僻字版
            var result = client.GeneralEnhanced(image);
        }
示例#2
0
        public static void GeneralEnhanced()
        {
            var client = new Ocr.Ocr(Config.clientId, Config.clientSecret);
            var image  = File.ReadAllBytes("图片文件路径");

            // 带生僻字版
            var result = client.GeneralEnhanced(image);
        }
示例#3
0
        public static void GeneralEnhanced()
        {
            var client = new Ocr.Ocr("Api Key", "Secret Key");
            var image  = File.ReadAllBytes("图片文件路径");

            // 带生僻字版
            var result = client.GeneralEnhanced(image);
        }
示例#4
0
        public static void GeneralEnhanced(string path)
        {
            var client = new Ocr.Ocr(api, key);
            var image  = File.ReadAllBytes(path);

            // 带生僻字版
            var result = client.GeneralEnhanced(image);
        }
示例#5
0
        public static string GeneralEnhanced(Image tempImage)
        {
            var client = new Ocr.Ocr(Config.clientId, Config.clientSecret);
            var image  = ImageHelper.ImageToBytes(tempImage, System.Drawing.Imaging.ImageFormat.Png);

            // 带生僻字版
            var result = client.GeneralEnhanced(image);

            return(result.ToJson());
        }