| | |
| | | /// <param name="url"></param> |
| | | /// <param name="scene"></param> |
| | | /// <param name="isOssUrl"></param> |
| | | public static async Task<BaiduOcrBusinessLicenseResult> OcrBusinessLicense(this string url, string scene, bool isOssUrl = true) |
| | | public static async Task<BaiduOcrBusinessLicenseResult> OcrBusinessLicense(this string url, string scene = null, bool isOssUrl = true) |
| | | { |
| | | var options = App.GetOptions<BaiduOptions>(); |
| | | var ocr = new Ocr(options.Ocr.Key, options.Ocr.Secret); |
| | |
| | | RegisteredCapital = result.WordsResult["注册资本"].Words, |
| | | EstablishmentDate = result.WordsResult["成立日期"].Words, |
| | | Address = result.WordsResult["地址"].Words, |
| | | BusinessScope = result.WordsResult["经营范围"].Words, |
| | | MainBusiness = result.WordsResult["经营范围"].Words, |
| | | }; |
| | | return result; |
| | | } |