azure-computer-vision
Introduction
azure-computer-vision is a collection of nodes that perform computer vision services from Microsoft Azure Computer Vision Services.
Features:
These features are currently supported:
- Analyze images with multiple features(Tags, Color... etc.)
- Describe image.
- Detect objects.
- Get area of interest.
- Image optical character recognition(OCR).
- Get thumbnail.
- Read complex image/pdf file.
Most of the parameters of these nodes are supported. For more information about all the settings and output format, please refer to the individual tab of the service in official API document.
Installation
npm install @intres/azure-computer-vision
Example usage
The example flow is as follows:
In this example, The node will output the corresponding objects of the chosen service. The chosen service here is "analyze image", and the features we want to include
is "Tags,Colors". Features should be comma separated if more than one is provided.
The output format is exactly from the official API document and is passed to the next node for further usage.
Example usage of read/get-read-result
The example flow is as follows:
The config of the read node is as follows:
In this example, read node accepts an image url and will output another URL for further query as its msg.payload.
This url should be recorded and passed to get-read-result node as input. The reason why the returned url should be kept instead of being passed to get-read-result node directly is that
the reading process is usually not completed when the url is returned, and thus the result is not available. The url should be recorded and be used later. The time one should wait depends on the input file.