Canopy-Vision API
Create a object detection annotation
1 min
code examples curl location globoff request patch '/api/annotation/objdet/{id}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'patch', headers myheaders, redirect 'follow' }; fetch("/api/annotation/objdet/{id}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("/api/annotation/objdet/{id}") http = net http new(url host, url port); request = net http patch new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = http request(request) puts response read body import requests import json url = "/api/annotation/objdet/{id}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("patch", url, headers=headers, data=payload) print(response text) responses // ok { "bounding boxes" \[ { "class label" "", "height" 0, "width" 0, "x" 0, "y" 0 } ], "class label" "", "dataset id" 0, "id" 0, "image id" 0 }// bad request { "message" "" }