All Projects → PrateekKumarSingh → PSCognitiveService

PrateekKumarSingh / PSCognitiveService

Licence: MIT license
Powershell module to access Microsoft Azure Machine learning RESTful API's or Microsoft cognitive services

Programming Languages

powershell
5483 projects

Projects that are alternatives of or similar to PSCognitiveService

ImageCropper
✂️ Detect and crop faces, barcodes, texts or rectangle in image with iOS 11 Vision (iOS 10 Core Image) api.(图片裁剪:支持人脸、二维码/条形码、文本、方框)
Stars: ✭ 17 (-63.04%)
Mutual labels:  vision, face
FacialEmotionRecognition
Using Extended Cohn-Kanade AU-Coded Facial Expression Database to classify basic human facial emotion expressions using ann
Stars: ✭ 28 (-39.13%)
Mutual labels:  emotion, face
Personal-Emotional-Stylized-Dialog
A Paper List for Personalized, Emotional, and stylized Dialog
Stars: ✭ 112 (+143.48%)
Mutual labels:  sentiment, emotion
Music player with Emotions recognition
This program can recognize your mood by detecting your face and play song according your mood
Stars: ✭ 79 (+71.74%)
Mutual labels:  emotion, face
intenseye-boun-workshop
Code for the workshop in BOUN Tech Summit (03.03.2019)
Stars: ✭ 32 (-30.43%)
Mutual labels:  emotion, gender
Emopy
A deep neural net toolkit for emotion analysis via Facial Expression Recognition (FER)
Stars: ✭ 744 (+1517.39%)
Mutual labels:  emotion, face
AffectiveTweets
A WEKA package for analyzing emotion and sentiment of tweets.
Stars: ✭ 74 (+60.87%)
Mutual labels:  sentiment, emotion
Imagedetect
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api.
Stars: ✭ 286 (+521.74%)
Mutual labels:  vision, face
Cognitive-Face-Xamarin
A client library that makes it easy to work with the Microsoft Cognitive Services Face API on Xamarin.iOS, Xamarin.Android, and Xamarin.Forms and/or Portable Class Libraries.
Stars: ✭ 18 (-60.87%)
Mutual labels:  face, microsoft-cognitive-services
face age gender
Can we predict the age and gender of someone given a picture of their face ?
Stars: ✭ 40 (-13.04%)
Mutual labels:  vision, face
Facelandmarksdetection
Finds facial features such as face contour, eyes, mouth and nose in an image.
Stars: ✭ 130 (+182.61%)
Mutual labels:  vision, face
Emotion and Polarity SO
An emotion classifier of text containing technical content from the SE domain
Stars: ✭ 74 (+60.87%)
Mutual labels:  sentiment, emotion
Photoassessment
Photo Assessment using Core ML and Metal.
Stars: ✭ 40 (-13.04%)
Mutual labels:  vision, image-analysis
Facifier
An emotion and gender detector based on facial features, built with Python and OpenCV
Stars: ✭ 52 (+13.04%)
Mutual labels:  emotion, face
Facecropper
✂️ Crop faces, inside of your image, with iOS 11 Vision api.
Stars: ✭ 479 (+941.3%)
Mutual labels:  vision, face
chronist
Long-term analysis of emotion, age, and sentiment using Lifeslice and text records.
Stars: ✭ 23 (-50%)
Mutual labels:  sentiment, emotion
Senti4SD
An emotion-polarity classifier specifically trained on developers' communication channels
Stars: ✭ 41 (-10.87%)
Mutual labels:  sentiment, emotion
emotion-recognition-GAN
This project is a semi-supervised approach to detect emotions on faces in-the-wild using GAN
Stars: ✭ 20 (-56.52%)
Mutual labels:  emotion, face
multi-task-learning
Multi-task learning smile detection, age and gender classification on GENKI4k, IMDB-Wiki dataset.
Stars: ✭ 154 (+234.78%)
Mutual labels:  face, gender
e-verest
EVEREST: e-Versatile Research Stick for peoples
Stars: ✭ 21 (-54.35%)
Mutual labels:  vision

Build status PowershellGallery

PowerShell Module for Microsoft Cognitive Services (aka, ProjectOxford)

Microsoft Cognitive Services are some machine learning Artificial intelligent REST API's to give Human-like cognition abilities to your applications.

What this module can do?

# install module
Install-Module PSCognitiveService -Force -Scope CurrentUser -Verbose

# import module
Import-Module PSCognitiveService -Force -Verbose

# get module
Get-Command -Module PSCognitiveService

# login and obtain subscription keys, local config
New-LocalConfiguration -FromAzure -AddKeysToProfile | Out-Null

# face features & emotion recognitionc
Get-Face -Path 'C:\tmp\Bill.jpg' |Format-List *

# image analysis
Get-ImageAnalysis -Path 'C:\tmp\Bill.jpg'

# image description
Get-ImageDescription -Path 'C:\tmp\Bill.jpg' | ForEach-Object Description | Format-List

# tag image and convert to hashtags
Get-ImageTag -URL https://goo.gl/Q73Qtw |
ForEach-Object{$_.tags.name} | ForEach-Object {'#'+$_ -join ' '}

# optical character recognition
Get-ImageText -URL https://goo.gl/XyP6LJ |
ForEach-Object {$_.regions.lines.words.text -join ' '}

# convert to thumbnail
ConvertTo-Thumbnail -URL https://goo.gl/XyP6LJ -SmartCropping

# bing search
Search-Web 'powershell 6.1' -c 3 |
ForEach-Object {$_.webpages.value} | Format-List name, url, snippet
Search-Entity -Text 'brad pitt' |
ForEach-Object {$_.entities.value} | Format-List name, description, image, webSearchUrl

# text analytics
Get-Sentiment -Text "Hey good morning!","Such a wonderful day","I feel sad about you" |  ForEach-Object documents
Get-KeyPhrase -Text "Hey good morning!","Such a wonderful day","I feel sad about these poor people" | ForEach-Object documents
Trace-Language -Text "Hey good morning!", "Bonjour tout le monde", "La carretera estaba atascada" | ForEach-Object {$_.documents.detectedlanguages}

# moderate content - text, image (path/url)
Test-AdultRacyContent -Text "Hello World" | ForEach-Object Classification # clean
Test-AdultRacyContent -Text "go eff yourself" | ForEach-Object Classification # not good/review required
Test-AdultRacyContent -Path 'C:\Tmp\test.png'
Test-AdultRacyContent -URL https://goo.gl/uY2PS6

Pre-Requisites

You need to do one-time registration for each Microsoft Cognitive Services API from HERE, before start using the module, because it won’t work without an API Key.

1. Installation

PowerShell v5 and Later

You can install the PSCognitiveService module directly from the PowerShell Gallery

  • [Recommended] Install to your personal PowerShell Modules folder
Install-Module PSCognitiveService -scope CurrentUser
  • [Requires Elevation] Install for Everyone (computer PowerShell Modules folder)
Install-Module PSCognitiveService

PowerShell v4 and Earlier

To install to your personal modules folder run:

iex (new-object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/PrateekKumarSingh/PSCognitiveService/master/Install.ps1')

2. Subscribe

Microsoft Cognitive services are offered and subscribed through the Azure Portal to achieve that -

  • Create cognitive service accounts in azure portal.
  • Obtain subscription keys
  • Set $Env variables locally, which would consumed by the module cmdlets to make REST API call's.

Personally, going to azure portal and obtaining subscription keys is a turn down for me.

But, New-CognitiveServiceAccountcmdlet that is included in this module to create Azure cognitive service accounts/subscription from your console.

Example, if you want to use the Search-Web cmdlet that utlizes Bing Search capabilities, you need to subscribe to Cognitive Service account of type: Bing.Search.v7, just run the below cmdlet.

New-CognitiveServiceAccount -AccountType Bing.Search.v7

# alternatively, specify ResourceGroup, Location and SKU
New-CognitiveServiceAccount -AccountType ComputerVision -ResourceGroupName ResourceGroup1 -Location centralindia -SKUName S1

3. Configure Locally

Alright, you are now subscribed, but how to obtain the subscription key(s) and set-up $ENV variable(s) in the session to run these cmdlets.

It is as simple as a below cmdlet and Kaboom! you are subscribed and local configuration is complete!

New-LocalConfiguration -FromAzure -AddKeysToProfile -Verbose

NOTE - Please add the subscription keys to your $Profile using -AddKeysToProfile switch for future use and to avoid above configuration step.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].