create_issue
imerit_ango.sdk.SDK.
create_issue(task_id, content, position)
Open an issue for the specified task, with the given content on the given position.
Parameters
task_id: string
ID of the task to be assigned. Task IDs can be obtained from the UI and from get_tasks.
Example:
'0000000aa0a00a0000aaaa0a'
content: string
The text content of the issue.
Example:
'The bounding box here should reach the edges.'
position: List[int]
Position, in pixels, of where the issue should be placed on the image asset.
Example:
[25, 15]
Returns:
output: dict
A dictionary containing the result of the operation.
Example
import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK
load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
project_id = os.getenv('PROJECT_ID')
ango_sdk = SDK(api_key)
task_id = '<YOUR TASK ID>'
content = 'Hey! Check this annotation.'
position = [25, 15]
ango_sdk.create_issue(task_id, content, position)curl -X POST "https://imeritapi.ango.ai/v2/issues" \
-H "Content-Type: application/json" \
-H "apikey: $ANGO_API_KEY" \
-d '{
"content": "Hey! Check this annotation.",
"labelTask": "$TASK_ID",
"position": "[25, 15]"
}'Last updated