Skip to content

Sample iOS app that takes a picture, sends it to Microsoft's Face API and draws emoji on screen to reflect detected emotion.

License

Notifications You must be signed in to change notification settings

AnthonyArzola/Emotion

Repository files navigation

CircleCI Build Status: CircleCI

Emotion Sample

Emotion app icon

Sample Swift app that takes a picture, sends it to Microsoft's Face API to detect emotion and draws emoji to match.

Getting Started

  1. Get Cognitive Services API key from Microsoft

  2. Clone repo

  3. Open workspace, replace COGNATIVE_SERVICE_API_KEY constant value in AnnotatedPictureViewController.swift with your API key

  4. Open project file and set Team under Signing

  5. That's it! Run the app, snap away and start detecting emotions!

CocoaPod referenced

Features

  • Uses Microsoft's Face API to detect emotions.

    • This app previously used Emotion API, which is now being deprecated. Emotion API features have been integrated into Face API.
  • Takes picture and detects immediately - no need to access user's Photo Library.

  • Supports multiple faces.

  • Once picture is analyzed, it is annotated with rectangle and emoji.

  • Quickly dismiss annotated picture by swiping down.

Leverages

  • AVFoundation
    • AVCaptureSession
    • AVCaptureVideoPreviewLayer
    • AVCapturePhotoOutput
  • UIKit
    • UITapGestureRecognizer
    • UIVisualEffectView
    • UIPresentationController / UIViewControllerTransitioningDelegate

App Screenshots

PiedPiper CEO

About

Sample iOS app that takes a picture, sends it to Microsoft's Face API and draws emoji on screen to reflect detected emotion.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published