baidu-aip / dotnet-sdk Goto Github PK
View Code? Open in Web Editor NEW百度AI开放平台 .Net SDK
Home Page: https://ai.baidu.com/
License: Apache License 2.0
百度AI开放平台 .Net SDK
Home Page: https://ai.baidu.com/
License: Apache License 2.0
如题,希望能尽快增加新的接口支持
考虑一下xamarin的离线识别啊
现在这个AIP功能是不是被paddle取代了。
如题,如果你们愿意审核的话。我可以抽空给你们升个级。很多接口跟现在的平台接口对不上了
现在的方法不支持异步,麻烦支持一下
从 .NET Core 3.0 开始有内置的 Json 序列化类 System.Text.Json.JsonSerializer
并且性能比 Newtonsoft.Json
更好。目前 Baidu.AI 依赖于 Newtonsoft.Json 造成使用者在 .NET Core 3.0 项目中也要依赖于它。请问是否考虑发布一份面向 .NET Core 3.0 的、不依赖于 Newtonsoft.Json 的版本?
最好如下方式书写:
var stream = ret.GetRequestStream();
stream.Write(body, 0, body.Length);
stream.Close();
源代码中未发现设置proxy的地方,也未发现允许进行设置的Action,建议在AipServiceBase添加个可设置HttpWebRequest的virtual方法,或者Action属性
因为程序调用时,如果没有强名称,不能把dll放到其他文件夹内使用,致使clikconce模式下的更新程序,每次都要复制一份dll到用户机上,造成大量重复冗余,希望,在nuget上能够对程序集进行强名称签名。
netstandard2.0版本的sdk中有 Encoding.GetEncoding("GBK")的代码,但.net core项目使用的时候会报错。是否考虑引入System.Text.Encoding.CodePages?
Baidu.Aip.AipException: The underlying connection was closed: An unexpected error occurred on a send.
at Baidu.Aip.AipServiceBase.SendRequetRaw(AipHttpRequest aipRequest)
at Baidu.Aip.AipServiceBase.SendRequet(AipHttpRequest aipRequest)
at Baidu.Aip.AipServiceBase.PostAction(AipHttpRequest aipReq)
Maybe : ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
Baidu.Ai与Baidu-Ai有啥区别?
官网历史记录的版本我怎么都找不到呢
.net core 2.0已经发布半年时间,sdk 可以兼容.net core了吧
将AipSdk.dll文件随着我的文件,一起发布,会出现
找不到方法:“Newtonsoft.Json.Linq.JObject Baidu.Aip.Ocr.Ocr.VehicleLicense(Byte[], System.Collections.Generic.Dictionary`2<System.String,System.Object>)”。
程序调试时,没有问题
在 linux(ubuntu) .net core 2.2 版本下,Face接口调用操作超时。
代码在window下正常。
网络访问正常,token能正常获得并输出。
单独wget api 地址,正常。
猜测,设置的某些入参会导致在linux下被卡到超时。
Token:24.2bea30dc9420de9075bfb5203d0f7615.2592000.1566562949.282335-16797556
System.Net.WebException: The operation has timed out.
at System.Net.HttpWebRequest.GetResponse()
at Baidu.Aip.AipServiceBase.SendRequetRaw(AipHttpRequest aipRequest) in /home/ubuntu/apps/code-server1.939-vsc1.33.1-linux-x64/dotnet/BilibiliAI/AipSdk/Baidu/Aip/AipServiceBase.cs:line 148
Baidu.Aip.AipException: The operation has timed out.
at Baidu.Aip.AipServiceBase.SendRequetRaw(AipHttpRequest aipRequest) in /home/ubuntu/apps/code-server1.939-vsc1.33.1-linux-x64/dotnet/BilibiliAI/AipSdk/Baidu/Aip/AipServiceBase.cs:line 154
at Baidu.Aip.AipServiceBase.SendRequet(AipHttpRequest aipRequest) in /home/ubuntu/apps/code-server1.939-vsc1.33.1-linux-x64/dotnet/BilibiliAI/AipSdk/Baidu/Aip/AipServiceBase.cs:line 137
at Baidu.Aip.AipServiceBase.PostAction(AipHttpRequest aipReq) in /home/ubuntu/apps/code-server1.939-vsc1.33.1-linux-x64/dotnet/BilibiliAI/AipSdk/Baidu/Aip/AipServiceBase.cs:line 102
at Baidu.Aip.Face.Face.Search(String image, String imageType, String groupIdList, Dictionary`2 options) in /home/ubuntu/apps/code-server1.939-vsc1.33.1-linux-x64/dotnet/BilibiliAI/AipSdk/Baidu/Aip/Face/Face.cs:line 193
https://aip.baidubce.com/rest/2.0/ocr/v1/vat_invoice
增值税发票的OCR识别怎么没有?
是不是往更新了。nuget 上的包和你的代码包完全不一样,工程+demo完全不能编译。蛋疼。。
protected string SendRequet(AipHttpRequest aipRequest)
{
return Utils.StreamToString(SendRequetRaw(aipRequest).ReadAsStreamAsync().Result, aipRequest.ContentEncoding);
}
这可能会引起死锁
基本就一个请求地址不同,没考虑过重构么……就算有差异也可以考虑传递委托吧
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.