joelst / Gate-status

PowerShell script to use Microsoft Azure Custom Vision to identify the status of a gate using a webcamera.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gate-status

PowerShell script that uses a HTTPS accessible camera and Azure Custom Vision to determine if a gate is opened or closed. It will activate a Microsoft Teams webhook to post any status changes to a Teams channel using an adaptive card.

Get-GateStatus requires an Azure custom vision resource to be setup and trained prior to use. See https://learn.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/get-started-build-detector for more information.

You will create a new project with these intial settings:
- Project type: Classification
- Domains: Can be General [A1], General, and others

You will want to have at least 100 training images (preferrably 100 for each status)

Once you have the project setup you can test by running this script from the command line with the correct parameters. If you schedule this script you may want to hardcode the values for your project to make it more simple.

About

PowerShell script to use Microsoft Azure Custom Vision to identify the status of a gate using a webcamera.

License:GNU Affero General Public License v3.0


Languages

Language:PowerShell 100.0%