This is a Node Red node that takes an image input, sends it to the Google Vision API and returns a list of objects from the image along with the confidence of each object and the bounding verticies for drawing a box around the image.
Please follow the Node-RED documentation to install
Google Cloud Credentials
The node created in this package requires Google Cloud Service Credentials to run.
In your Google Cloud Project please add Billing to your account and then add the Vision API.
The credentials for a service account can be acquired from the Google Cloud APIs & Services menu. After you finish creating a service account key, it will be downloaded in JSON format and saved to a local file.
In the node configuration you have to supply the path to the JSON credentials file.
How to use
This package creates a new node in your Node Red instance called
google vision object detection under the
Vision category in your node list.
Drag this node into your flow.
Double click on the node to set the path to your Google Cloud services credentials JSON file.
msg object with either of the following:
msg.filenamea relative path to the image file you wish to process (on your local filesystem)
msg.payloada Buffer representation of the image
See the below example for more information.
Copy the below JSON and use "import" in node red to import this flow.