This simple demo shows how to use MT Canvus Web API in the streaming mode and do something useful with it. The code listens for the new images on a given canvas and annotate every new image with labels received from the Google Vision API.
- Configure MT Canvus server and client
- Change these values in the main.go to your own:
const (
serverURL = "http://localhost:8090/api/v1"
authToken = "8W5zQ8nrSHe4NdBG"
canvasId = "e90af7cf-2164-4ce3-b831-3fbb7d1449ae"
gvisionKeyFile = "/home/igor/gvision_keys.json"
)
- Build and run main.go
- In the Canvus open the specified canvas and drop a new image.