API Reference
Object detection
POST
/
v1
/
images
/
object-detection
Object detection
curl --request POST \
--url https://api.synapsai.cloud/v1/images/object-detection \
--header 'Content-Type: application/json' \
--data '
{
"inputs": "<string>",
"threshold": 0.5,
"timeout": 123
}
'import requests
url = "https://api.synapsai.cloud/v1/images/object-detection"
payload = {
"inputs": "<string>",
"threshold": 0.5,
"timeout": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)[
{
"label": "<string>",
"score": 123,
"box": [
{
"xmin": 123,
"ymin": 123,
"xmax": 123,
"ymax": 123
}
]
}
]Body
application/json
Request to detect objects in one or more images.
⌘I
Object detection
curl --request POST \
--url https://api.synapsai.cloud/v1/images/object-detection \
--header 'Content-Type: application/json' \
--data '
{
"inputs": "<string>",
"threshold": 0.5,
"timeout": 123
}
'import requests
url = "https://api.synapsai.cloud/v1/images/object-detection"
payload = {
"inputs": "<string>",
"threshold": 0.5,
"timeout": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)[
{
"label": "<string>",
"score": 123,
"box": [
{
"xmin": 123,
"ymin": 123,
"xmax": 123,
"ymax": 123
}
]
}
]