chen1880

腾讯云ocr识别

https://console.cloud.tencent.com/api/explorer?Product=ocr&Version=2018-11-19&Action=WaybillOCR&SignVersion=

 

 

 

 

using System;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Ocr.V20181119;
using TencentCloud.Ocr.V20181119.Models;

namespace TencentCloudExamples
{
    class WaybillOCR
    {
        static void Main(string[] args)
        {
            try
            {
                Credential cred = new Credential {
                    SecretId = "",
                    SecretKey = ""
                };

                ClientProfile clientProfile = new ClientProfile();
                HttpProfile httpProfile = new HttpProfile();
                httpProfile.Endpoint = ("ocr.tencentcloudapi.com");
                clientProfile.HttpProfile = httpProfile;

                OcrClient client = new OcrClient(cred, "ap-guangzhou", clientProfile);
                WaybillOCRRequest req = new WaybillOCRRequest();
                req.ImageBase64 = "图片base64";
                WaybillOCRResponse resp = client.WaybillOCRSync(req);
                Console.WriteLine(AbstractModel.ToJsonString(resp));
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
            }
            Console.Read();
        }
    }
}

 

分类:

技术点:

相关文章:

  • 2021-11-06
  • 2021-07-03
  • 2022-01-08
  • 2021-08-08
  • 2021-12-20
  • 2021-11-25
  • 2021-07-25
猜你喜欢
  • 2021-11-02
  • 2022-01-01
  • 2021-12-14
  • 2022-02-09
  • 2022-12-23
  • 2021-12-26
  • 2021-08-20
相关资源
相似解决方案