Skip to content

Add support for sublabel attributes as frame filter criteria in annotation view #9165

@zhiltsov-max

Description

@zhiltsov-max

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Is your feature request related to a problem? Please describe.

  1. Create a task with a skeleton label having several points, define an attribute for some points
  2. Open a job
  3. Try to create a frame filter with skeleton point attributes in the condition

Image

Details

Label definitions from the task

[
  {
    "name": "test",
    "id": 79,
    "color": "#fb117d",
    "type": "skeleton",
    "sublabels": [
      {
        "name": "1",
        "attributes": [
          {
            "name": "1.a1",
            "mutable": false,
            "input_type": "select",
            "default_value": "a",
            "values": [
              "a",
              "b"
            ],
            "id": 65
          }
        ],
        "type": "points",
        "color": "#d12345",
        "id": 80
      },
      {
        "name": "2",
        "attributes": [
          {
            "name": "2.a1",
            "mutable": true,
            "input_type": "checkbox",
            "default_value": "false",
            "values": [
              "false"
            ],
            "id": 66
          }
        ],
        "type": "points",
        "color": "#350dea",
        "id": 81
      }
    ],
    "svg": "<line x1=&quot;35.7943229675293&quot; y1=&quot;25.3843994140625&quot; x2=&quot;45.1568717956543&quot; y2=&quot;35.145355224609375&quot; data-type=&quot;edge&quot; data-node-from=&quot;1&quot; data-node-to=&quot;2&quot;></line>\n<circle r=&quot;0.75&quot; cx=&quot;35.7943229675293&quot; cy=&quot;25.3843994140625&quot; data-type=&quot;element node&quot; data-element-id=&quot;1&quot; data-node-id=&quot;1&quot; data-label-id=&quot;80&quot;></circle>\n<circle r=&quot;0.75&quot; cx=&quot;45.1568717956543&quot; cy=&quot;35.145355224609375&quot; data-type=&quot;element node&quot; data-element-id=&quot;2&quot; data-node-id=&quot;2&quot; data-label-id=&quot;81&quot;></circle>",
    "attributes": []
  }
]

Describe the solution you'd like

There is already a filter for root label attributes. Sub-labels should also have an option to be used as a filter criteria.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions