DATASET EXPLORATION
Understand what your dataset contains
2min
this page will help you comprehend the contents of your dataset understand which scenes you have annotations for in your dataset to be able to know which scenes you can provide predictions for you need to understand which scenes you've annotations for in your dataset this can be done by using an endpoint for listing annotations in your dataset you're currently only able to add scenes indirectly to your dataset by adding annotations to the dataset please contact us if this is something you want help with or if you want to connect scenes to your dataset the following code snippet by utilizing an endpoint for will do this and save it to a csv file from kognic auth requests auth session import requestsauthsession import csv base url = "https //dataset app kognic com" client = requestsauthsession() dataset uuid = your dataset uuid done = false offset = 0 annotations = \[] while not done print(f"fetched {offset} annotations") res = client session get( f"{base url}/v1/datasets/{dataset uuid}/annotations?offset={offset}" ) res annotations = res json()\['data'] annotations += res annotations offset += len(res annotations) if len(res annotations) == 0 done = true print(f"fetched {len(annotations)} annotations") \# save to csv called dataset {dataset uuid} annotations csv with open(f'dataset {dataset uuid} annotations csv', 'w', newline='') as csvfile writer = csv writer(csvfile) writer writerow(annotations\[0] keys()) for annotation in annotations writer writerow(annotation values())