Skip to content

Module compares your level of your sadness with "Sad Joey"

Notifications You must be signed in to change notification settings

iricigor/SadJoey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sad Joey PowerShell module

Info

Module compares your level of your sadness with "Sad Joey" using Azure Cognitive Services. #SadJoey is a meme created during PS Conf 2018. See more info about #SadJoey on Twitter.

Module publishes only one function, Test-SadJoey with four parameters:

  • [string] Name (optional) - your name
  • [string] URL (mandatory) - public URL to your photo
  • [switch] Full (optional) - if specified, it will return comparison for all basic emotions, except just for sadness
  • [string] Response - specify response type, which can be String (default value), HTML or InvokeHTML (opens default browser)

If you do not have your photo with public URL, you may want to temporary upload your photo online. For that, you can use one the many quick photo sharing online services. You just need to get a direct link to your photo which you can test in your browser.

In Action

Module is also published as Azure PowerShell function. You can see live in action at this URL: https://sadjoey.azurewebsites.net/api/SJ.

Or, just click a link with my photo here, check sad Keanu, or happy Joey!

You can try and learn Microsoft Azure Face API on your own here - scroll to Face detection.

Application key

The PowerShell module needs Cognitive services application key. It will prompt you to enter one during import. It can be obtained from module owner.

The Azure Functions example has no such limitation.

Examples

Test-SadJoey -Name 'Igor' -URL 'http://bit.ly/SJ-SadIgor'
Test-SadJoey -Name 'Keanu' -URL 'http://i0.kym-cdn.com/entries/icons/original/000/002/862/SadKeanu.jpg'
Test-SadJoey -Name 'Igor' -URL 'http://bit.ly/SJ-HappyIgor' -Full
Hi Igor, you are 127 times less sad than Joey.

Hi Keanu, you are 7 times less sad than Joey.

Hi Igor, here is your emotions report:
not neutral at all
not surprised at all
not afraid at all
not sad at all
not disgusted at all
not angry at all
not despised at all
40117 times more happy than Joey

About

Module compares your level of your sadness with "Sad Joey"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published