项目作者: Harshmakadia

项目描述 :
Microsoft FACE API
高级语言: HTML
项目地址: git://github.com/Harshmakadia/microsoft-face-api.git
创建时间: 2018-03-11T17:13:01Z
项目社区:https://github.com/Harshmakadia/microsoft-face-api

开源协议:

下载


Microsoft Face API

  • Detect human faces and compare similar ones
  • Organise images into groups based on similarity
  • Identify previously tagged people in images

Detect one or more human faces in an image and get back face rectangles for where in the image the faces are, along with face attributes which contain machine learning-based predictions of facial features. The face attribute features available are: Age, Emotion, Gender, Pose, Smile and Facial Hair along with 27 landmarks for each face in the image.

Sample Face Detection API Response

  1. [
  2. {
  3. "faceId": "7c29f0ca-629a-4026-86d6-2d9faee9bbd7",
  4. "faceRectangle": {
  5. "top": 128,
  6. "left": 459,
  7. "width": 224,
  8. "height": 224
  9. },
  10. "faceAttributes": {
  11. "hair": {
  12. "bald": 0.0,
  13. "invisible": false,
  14. "hairColor": [
  15. {
  16. "color": "brown",
  17. "confidence": 1.0
  18. },
  19. {
  20. "color": "blond",
  21. "confidence": 0.69
  22. },
  23. {
  24. "color": "black",
  25. "confidence": 0.54
  26. },
  27. {
  28. "color": "other",
  29. "confidence": 0.31
  30. },
  31. {
  32. "color": "gray",
  33. "confidence": 0.05
  34. },
  35. {
  36. "color": "red",
  37. "confidence": 0.04
  38. }
  39. ]
  40. },
  41. "smile": 0.939,
  42. "headPose": {
  43. "pitch": 0.0,
  44. "roll": -16.9,
  45. "yaw": 16.7
  46. },
  47. "gender": "female",
  48. "age": 23.4,
  49. "facialHair": {
  50. "moustache": 0.0,
  51. "beard": 0.0,
  52. "sideburns": 0.0
  53. },
  54. "glasses": "ReadingGlasses",
  55. "makeup": {
  56. "eyeMakeup": true,
  57. "lipMakeup": true
  58. },
  59. "emotion": {
  60. "anger": 0.037,
  61. "contempt": 0.001,
  62. "disgust": 0.015,
  63. "fear": 0.001,
  64. "happiness": 0.939,
  65. "neutral": 0.001,
  66. "sadness": 0.0,
  67. "surprise": 0.007
  68. },
  69. "occlusion": {
  70. "foreheadOccluded": false,
  71. "eyeOccluded": false,
  72. "mouthOccluded": false
  73. },
  74. "accessories": [
  75. {
  76. "type": "glasses",
  77. "confidence": 0.99
  78. }
  79. ],
  80. "blur": {
  81. "blurLevel": "low",
  82. "value": 0.0
  83. },
  84. "exposure": {
  85. "exposureLevel": "goodExposure",
  86. "value": 0.48
  87. },
  88. "noise": {
  89. "noiseLevel": "low",
  90. "value": 0.0
  91. }
  92. },
  93. "faceLandmarks": {
  94. "pupilLeft": {
  95. "x": 504.8,
  96. "y": 206.8
  97. },
  98. "pupilRight": {
  99. "x": 602.5,
  100. "y": 178.4
  101. },
  102. "noseTip": {
  103. "x": 593.5,
  104. "y": 247.3
  105. },
  106. "mouthLeft": {
  107. "x": 529.8,
  108. "y": 300.5
  109. },
  110. "mouthRight": {
  111. "x": 626.0,
  112. "y": 277.3
  113. },
  114. "eyebrowLeftOuter": {
  115. "x": 461.0,
  116. "y": 186.8
  117. },
  118. "eyebrowLeftInner": {
  119. "x": 541.9,
  120. "y": 178.9
  121. },
  122. "eyeLeftOuter": {
  123. "x": 490.9,
  124. "y": 209.0
  125. },
  126. "eyeLeftTop": {
  127. "x": 509.1,
  128. "y": 199.5
  129. },
  130. "eyeLeftBottom": {
  131. "x": 509.3,
  132. "y": 213.9
  133. },
  134. "eyeLeftInner": {
  135. "x": 529.0,
  136. "y": 205.0
  137. },
  138. "eyebrowRightInner": {
  139. "x": 579.2,
  140. "y": 169.2
  141. },
  142. "eyebrowRightOuter": {
  143. "x": 633.0,
  144. "y": 136.4
  145. },
  146. "eyeRightInner": {
  147. "x": 590.5,
  148. "y": 184.5
  149. },
  150. "eyeRightTop": {
  151. "x": 604.2,
  152. "y": 171.5
  153. },
  154. "eyeRightBottom": {
  155. "x": 608.4,
  156. "y": 184.0
  157. },
  158. "eyeRightOuter": {
  159. "x": 623.8,
  160. "y": 173.7
  161. },
  162. "noseRootLeft": {
  163. "x": 549.8,
  164. "y": 200.3
  165. },
  166. "noseRootRight": {
  167. "x": 580.7,
  168. "y": 192.3
  169. },
  170. "noseLeftAlarTop": {
  171. "x": 557.2,
  172. "y": 234.6
  173. },
  174. "noseRightAlarTop": {
  175. "x": 603.2,
  176. "y": 225.1
  177. },
  178. "noseLeftAlarOutTip": {
  179. "x": 545.4,
  180. "y": 255.5
  181. },
  182. "noseRightAlarOutTip": {
  183. "x": 615.9,
  184. "y": 239.5
  185. },
  186. "upperLipTop": {
  187. "x": 591.1,
  188. "y": 278.4
  189. },
  190. "upperLipBottom": {
  191. "x": 593.2,
  192. "y": 288.7
  193. },
  194. "underLipTop": {
  195. "x": 597.1,
  196. "y": 308.0
  197. },
  198. "underLipBottom": {
  199. "x": 600.3,
  200. "y": 324.8
  201. }
  202. }
  203. }
  204. ]

Please note I’ve not added the subscription key here.Though you can generate if from here.