Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Microsoft Cognitive Services: Playground App

DZone's Guide to

Microsoft Cognitive Services: Playground App

The Microsoft Cognitive Services Playground App supports associating faces with persons, training person groups, detecting faces on photos, and more. Learn how to use it!

· AI Zone ·
Free Resource

Did you know that 50- 80% of your enterprise business processes can be automated with AssistEdge?  Identify processes, deploy bots and scale effortlessly with AssistEdge.

I've just published my Cognitive Services sample app to GitHub. Currently, it's limited to Face API services, but I'll work on expanding it to cover other services, as well.

The Microsoft Cognitive Services Playground App aims to support:

  • Managing persons and person groups.
  • Associating faces with persons.
  • Training person groups.
  • Detecting faces on photos.
  • Identifying faces.

Basic Tutorial

1. Download/clone the solution, open it in Visual Studio 2017, and run.

2. Enter the key in the Enter Face API Key text box. If you don't already have a Face API access key, read this blog post on how to get it.

image

3. Click the Apply button.

4. If the key is correct, you will be asked to persist the key for future use. Click Yes if you want it to be stored in application local data folder. It will be read back every time application is started (Note: The key is stored in plain text, not encrypted).

image

5. Click the Add group button.

image

6. Enter the group name and click Add.

image

7. Select the newly created group and start adding persons.

8. Click the Add person button.

image

9. Enter person's name and click Add. The person will be added to the selected group.

image

10. Repeat steps 8 and 9 to add more persons in the same group.

11. Click the Open image button and pick an image with one or more faces on it.

image

12. The photo should be displayed and if any faces were detected, they should appear framed in rectangles. If not, try with a different photo.

image

13. Select a person from the list and click on the rectangle around the face that belongs to that person. A context menu should appear.

image

14. Select the Add this face to selected person option. The face is now associated with selected person.

15. Repeat steps 13 and 14 for different photos and different persons. Try associating multiple faces to every single person.

16. Click the Train group button. The training status should appear. Wait for the status to change to Succeeded. Your group is trained!

image

17. Open a new photo — preferably one you haven't used before for training — but featuring a face that belongs to one of the persons in the group. Ensure the face is detected (the rectangle is drawn around it).

image

18. Click on the rectangle and select Identify this face.

image

19. With any luck (and the power of AI), the rectangle will get the proper name tag. The previously unknown face has just got a name attached to it!

image

20. Enjoy experimenting with different photos and different faces!

21. Revisit my older blog posts on the subject (here and here).

Best of luck!

Consuming AI in byte sized applications is the best way to transform digitally. #BuiltOnAI, EdgeVerve’s business application, provides you with everything you need to plug & play AI into your enterprise.  Learn more.

Topics:
ai ,tutorial ,microsoft cognitive services ,face api ,playground app

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}