cognitive-services系列 -- 使用微软cognitive-services中的人脸识别模块


1.注册Cognitive Services账号,获取一个APIkey。





2.打开在线调试console
https://dev.projectxford.ai/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236/console


api地址:
https://api.projectoxford.ai/face/v1.0/detect?returnFaceId=true&returnFaceLandmarks=false




请求:
POST https://api.projectoxford.ai/face/v1.0/detect?returnFaceId=true&returnFaceLandmarks=false HTTP/1.1
Content-Type: application/json
Host: api.projectoxford.ai
Ocp-Apim-Subscription-Key: ••••••••••••••••••••••••••••••••


{
    "url":"https://news.usc.edu/files/2016/03/Sample_Steven-1-824x549.jpg"
}





返回:
Pragma: no-cache
apim-request-id: 292aa39c-4ffd-41bd-87fe-b947af1ae71d
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Cache-Control: no-cache
Date: Sun, 15 Jan 2017 10:38:34 GMT
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 115
Content-Type: application/json; charset=utf-8
Expires: -1


[
  {
    "faceId": "99cfe413-6410-4305-a460-8b50c748d35f",
    "faceRectangle": {
      "top": 149,
      "left": 298,
      "width": 228,
      "height": 228
    }
  }
]








返回值默认只包含人脸的矩形坐标以及长宽。可以添加更多参数。





4. copy faceid (用于其他相关API)







人脸识别模块中的其他相关 api:
创建Person
删除Person
创建Group
添加Person到Group
获取Group
获取Group列表
创建FaceList
删除FaceList
获取FaceList的列表
创建Face
添加Face到FaceList
找到相似的Face
验证Face(参数:FaceId,PersonId,personGroupId)


可以说是一个完整的module,并且所有服务是Cloud based,扩展性和HA都是有保障的,API也都是restful的。
Learning Microsoft Cognitive Services by Leif Larsen English | 20 Mar. 2017 | ASIN: B01M112FFP | 397 Pages | AZW3 | 7.35 MB Key Features Explore the capabilities of all 21 APIs released as part of the Cognitive Services platform Build intelligent apps that combine the power of computer vision, speech recognition, and language processing Give your apps human-like cognitive intelligence with this hands-on guide Book Description Microsoft has revamped its Project Oxford to launch the all new Cognitive Services platform—a set of 21 APIs to add speech, vision, language, and knowledge capabilities to apps. This book will introduce you to all 21 APIs released as part of Cognitive Services platform and show you how to leverage their capabilities. More importantly, you'll see how the power of these APIs can be combined to build real-world apps that have cognitive capabilities. The book is split into three sections: computer vision, speech recognition and language processing, and knowledge and search. You will be taken through the vision APIs at first as this is very visual, and not too complex. The next part revolves around speech and language, which are somewhat connected. The last part is about adding real-world intelligence to apps by connecting them to Knowledge and Search APIs. By the end of this book, you will be in a position to understand what Microsoft Cognitive Service can offer and how to use the different APIs. What you will learn Identify a person through visual inspection and audio Reduce user effort by utilizing AI-like capabilities Understand how to analyze images and text in different manners Find out how to analyze images using Vision APIs Add video analysis to applications using Vision APIs Utilize Search to find anything you want Analyze text to extract information and explore the structure of the text About the Author Leif Henning Larsen is a software engineer based in Norway. After earning a degree in computer engineering, he went on to work with the design and configuration of industrial control systems, for the most part, in the oil and gas industry. Over the last few years, he has worked as a developer, developing and maintaining geographical information systems, working with .NET technology. In his spare time, he develops mobile apps and explores new technologies to keep up with a high-paced tech world. You can find out more about him by checking his blog (http://blog.leiflarsen.org/) and following him on Twitter (https://twitter.com/leif_larsen) and LinkedIn (https://www.linkedin.com/in/lhlarsen). Table of Contents Getting Started with Microsoft Cognitive Services Analyzing Images to Recognize a Face Analyzing Videos Letting Applications Understand Commands Speak with Your Application Understanding Text Extending Knowledge Based on Context Querying Structured Data in a Natural Way Adding Specialized Searches Connecting the Pieces LUIS Entities and Intents Additional Information on Linguistic Analysis License Information
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值