Object Detection
Introduction
Object Detection is part of Machine Learning , in which we use different algorithm to detect object in Image, Or Video files. Our algorithm can detect around 10K+ different objects.
Endpoint
Post
  https://api.oyyi.xyz/v1/ml/object-detectionContent-Type: multipart/form-data
Parameters
file Required
File containing object need to pass to request- Type:
File
Maximum allowed sized for file is100MB
- Type:
mode
Mode define how output result should be return to user regarding the detected object.- Type:
string
- Allowed:
xywh
,xywhn
,xyxy
,xyxyn
- Default:
xyxyn
- Type:
threshold
Threshold is number which defines confidence of object inside the image. Object with less confidence than threshold will get ignored in results- Type:
number
- Allowed: number between
1
to100
- Default:
40
- Type:
Example
Sample Image used
Python
import requestsurl = $BASE_URL/ml/object-detectiontoken = 'your_bearer_token_here'headers = {'Authorization': f'Bearer {token}'}files = {'file': open('person.jpg', 'rb')}response = requests.post(url, headers=headers, files=files)print(response.text)
Response
xyxyn
{ "data": [ { "class": 0, "confidence": 0.9367442131, "name": "person", "xmax": 0.7731372118, "xmin": 0.1024992168, "ymax": 0.7416218519, "ymin": 0.1403899938 }, { "class": 16, "confidence": 0.9351310134, "name": "dog", "xmax": 1, "xmin": 0.0016319321, "ymax": 1, "ymin": 0.6291618943 }, { "class": 2, "confidence": 0.7377066612, "name": "car", "xmax": 0.9993353486, "xmin": 0.7337724566, "ymax": 0.6310616732, "ymin": 0.4480176568 } ],}
Table of Contents