Unity接入优图、Face++、阿里云图像识别和人脸识别

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/MIYIshi/article/details/78058685

最近研究了下优图、Face++、阿里云图像识别和人脸识别还是蛮有意思,各平台都有自己的优势,为了方便使用我把它们给整合了一下方便使用。Face++的物体识别和手势识别目还是蛮有意思,阿里的门店识别也是不错,有兴趣的可以自己试试,(不过目前阿里云API只是整合了门店识别)先看看目前主要整合了哪些AP吧I:

优图API:


Face++API:


阿里云API:


如何使用:

例如使用阿里云的门店识别:(其他平台的调用方式都一样!  )

		//阿里云密钥对
		static string host = "https://dm-54.data.aliyun.com";
		static string path = "/rest/160601/ocr/ocr_shop_sign.json";
		static string method = "POST";
		static string appcode = "你自己的appcode";

		static void AliYuanInit()
		{
			//初始化平台
			ALiYunInit.Instance().SetAppInfo(host, path, method, appcode);
			//门店识别
			string result = ALiYunAPI.OCRShopSign(@"L:\TestImage\test.jpg");
			Console.WriteLine(result);
		}

		static void Main(string[] args)
		{
			Console.WriteLine("正在分析。。。。");
			Thread thread = new Thread(new ThreadStart(AliYuanInit));
			thread.Start();

			Console.ReadKey();
		}

后面我会把项目开源,里面会整合更多 技术进去,一切都是为了更好的开发!,有兴趣的可以一起维护。目前有需求的朋友可以加我QQ:1193978097获取dll,我不太喜欢百度云盘。



猜你喜欢

转载自blog.csdn.net/MIYIshi/article/details/78058685