Skip to content

api: show compatible models in the brick list/details #87

@dido18

Description

@dido18

Motivaition

The Applab show the list of the bricks (with minimal information)
When the user clicks on a single brick, the details of the brick are shown.

Only in the brick details we see the compatible model

Changes

  • remove the models from the v1/bricks endpoint. It is not currenlty used; it should be safe to remove.
 curl 127.0.0.1:8800/v1/bricks 

{
  "bricks": [
     "id": "arduino:object_detection",
      "name": "Object Detection",
      "author": "Arduino",
      "description": "",
      "category": "video",
      "status": "installed",
      "models": [
        "face-detection",
        "yolox-object-detection"
      ]
    },
  • add the models into the brick details
GET /v1/bricks/{brickID}"
{
 "id": "arduino:object_detection",
  "name": "Object Detection",
  "author": "Arduino",
  "description": "",
  "category": "video",
  "status": "installed",
   ...other

  // the list of compatible models for the brick with minimal info.
 "models":[
     {
      "id": "yolox-object-detection",
      "name": "General purpose object detection - YoloX",
      "description": "",

       // TODO: what to show in the  "more info" button? Maybe only the "url"? 
    },
    {
      "id": "face-detection",
      "name": "Lightweight-Face-Detection",
      "description": "Face bounding box detection. This model is trained on the WIDER FACE dataset and can detect faces in images.",
    },
]
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions