BasicAI CE Open & Plugin API
  1. Model
BasicAI CE Open & Plugin API
  • Open API
    • Dataset
      • Create Dataset
      • Edit Dataset
      • Delete Dataset
      • Query a single dataset
      • Query the list of datasets
      • Upload the dataset compressed package
      • Query the processing progress of the compressed dataset
      • Query the data under the dataset
      • Delete multiple data
      • Query a single data
      • Query multiple data
      • Generate presigned file upload url
      • Upload file through presigned url
    • Annotation
      • Get data and result information
      • Download dataset annotation results
    • Model
      • Image object detection
      • Point cloud object detection
  • Plugin API
    • Model
      • Point cloud object detection
        POST
      • Image object detection
        POST
  1. Model

Image object detection

Developing
Docker Compose
http://localhost:8292
Docker Compose
http://localhost:8292
POST
http://localhost:8292
/image/objectDetection
Object detection on image data.
In the response result, the top-level error code indicates whether the request was successful, such as invalid parameters. Regardless of whether each data is successfully processed, the error code on each data in the lower layer indicates whether the data is successfully processed.

Request

Body Params application/json
datas
array [object {2}] 
required
List of data to recognize
id
integer 
required
ID
url
string 
required
Image download address
Example
{
  "datas": [
    {
      "id": 1,
      "url": "https://basicai-alidev-app-dataset.oss-cn-shanghai.aliyuncs.com/1651739094707-30022/case-padaset/3d_img1/01.jpg"
    }
  ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8292/image/objectDetection' \
--header 'Content-Type: application/json' \
--data-raw '{
    "datas": [
        {
            "id": 1,
            "url": "https://basicai-alidev-app-dataset.oss-cn-shanghai.aliyuncs.com/1651739094707-30022/case-padaset/3d_img1/01.jpg"
        }
    ]
}'

Responses

🟢200Successful
application/json
Body
code
string 
Error code
required
Error code. OK means success, the rest are failures
message
string 
Error description
required
Error description. It can be empty
data
array [object {5}] 
Data
required
Data
id
integer 
required
Data ID
code
string 
required
Error code (single data). OK means success, the rest means failure.
message
string 
required
Error description. It can be empty.
objects
array[object (ImageObject) {10}] 
required
A list of objects identified in the current data.
confidence
number 
optional
Overall data confidence
Example
{
  "code": "OK",
  "message": "",
  "data": [
    {
      "id": 1,
      "code": "OK",
      "message": "",
      "objects": [
        {
          "left": 0.924,
          "right": 0.999,
          "top": 0.3365650969529086,
          "bottom": 0.7326869806094183,
          "leftTopX": 1234,
          "leftTopY": 200,
          "rightBottomX": 1333,
          "rightBottomY": 478,
          "confidence": 0.52197265625,
          "label": "car"
        }
      ],
      "confidence": 0.52197265625
    }
  ]
}
Previous
Point cloud object detection
Built with