Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest improvement to geojson-to-kili-labels docs #1742

Open
robmarkcole opened this issue Jul 17, 2024 · 0 comments
Open

Suggest improvement to geojson-to-kili-labels docs #1742

robmarkcole opened this issue Jul 17, 2024 · 0 comments

Comments

@robmarkcole
Copy link

Docs at https://python-sdk-docs.kili-technology.com/latest/sdk/tutorials/geojson/#geojson-to-kili-labels are missing the from kili.utils.labels.geojson import geojson_polygon_feature_to_kili_bbox_annotation import and example, i.e.

json_response = {}

for feature in geojson_label["features"]:
    geometry_type = feature["geometry"]["type"]
    ....

    elif geometry_type == "Polygon":
        job_name = "OBJECT_DETECTION_JOB"
        category = "B_BOX_A"
        converter = geojson_polygon_feature_to_kili_bbox_annotation

    else:
        raise ValueError(f"Geometry type {geometry_type} not supported")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant