Sharing my custom component for the Microsoft Vision API
microsoft_vision component
I prefer my approach since it calls the API using a service you can trigger yourself, it is not calling the API frequently, it is easier to stay under the free tier
You will need the Azure API as describe in Microsoft Face Component
To configure it, add lines to your configuration.yaml
image_processing: - platform: microsoft_vision api_key: YOUR_AZURE_API _KEY azure_region: YOUR_AZURE_REGION services: - describe
It requires the camera component
To call the service from a script:
sequence:
- service: image_processing.call_api
data:
entity_id: image_processing.describe
camera_entity: camera.cam120- service: notify.notifyme
data_template:
message: I see ā{{ states.image_processing.describe.attributes.description }}ā
Under services, you can add more option, each option will add a new entity
- analyze
- describe
- detect
- recognizeText