Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,63 @@ Example when the project type is Image - Pose Estimation
}
```

#### Integrate Task

This function is alpha version. It is subject to major changes in the future.

Integration is possible only when tasks are registered from the objects divided by the dataset.
Only bbox and polygon annotation types are supported.

In the case of a task divided under the following conditions.

dataset slug: image
object name: cat.jpg
split count: 3×3

Objects are registered in the data set in the following form.

- image/cat/1.jpg
- image/cat/2.jpg
- image/cat/3.jpg
(omit)
- image/cat/9.jpg


The annotations at the edges of the image are combined. However, annotations with a maximum length of 300px may not work.

In this case, SPLIT_IMAGE_TASK_NAME_PREFIX specifies `image/cat`.

```python
task = client.find_integrated_image_task_by_prefix(
project="YOUR_PROJECT_SLUG",
prefix="SPLIT_IMAGE_TASK_NAME_PREFIX",
)
```

##### Response

Example of a integrated image task object

```python
{
'groupId': 'eda3ba5b-082c-4813-ad6c-0479b72a27d5',
'name': 'image/cat.jpg',
"annotations": [
{
"attributes": [],
"color": "#b36d18",
"confidenceScore"; -1,
"keypoints": [],
"points": [200,200,300,400],
"rotation": 0,
"title": "Bird",
"type": "polygon",
"value": "bird"
}
],
}
```

### Image Classification

Supported following project types:
Expand Down Expand Up @@ -1110,6 +1167,8 @@ Example of a single audio task object

#### Integrate Task

This function is alpha version. It is subject to major changes in the future.

Integration is possible only when tasks are registered from the objects divided by the dataset.

In the case of a task divided under the following conditions.
Expand Down
16 changes: 16 additions & 0 deletions fastlabel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,22 @@ def delete_task(self, task_id: str) -> None:

# Integrate Task

def find_integrated_image_task_by_prefix(
self,
project: str,
prefix: str,
) -> dict:
"""
Returns a integrate image task.
project is slug of your project (Required).
prefix is a prefix of task name (Required).
"""
endpoint = "tasks/integrate/images"
params = {"project": project, "prefix": prefix}

return self.api.get_request(endpoint, params=params)


def find_integrated_audio_task_by_prefix(
self,
project: str,
Expand Down