Hello.
Summary
I am currently trying to export annotated data in JSON format, but although the JSON file itself is exported, the annotated object information is not reflected.
So, when I step on the URL listed in the “frames” line, the following error message is displayed.
{"status":"error","message":"An authentication token is required to complete this operation. The Authorization header must contain your API key."}
Do you know the cause and solution for these?
Implementation Procedure
I did the following before I got the error message
1. Creating an API Key
I created an API key from the labelbox UI account setup form.
2. Annotation
Bounding boxes have been added for videos. The following image shows the Labelbox labeling edit page.
3. Annotation
I ran the script for exporting for video as described in the documentation.
from labelbox import Client, Project
from matplotlib import pyplot as plt
from IPython.display import clear_output
import numpy as np
import json
import ndjson
import requests
import cv2
from typing import Dict, Any
import os
PROJECT_ID = "<My project ID>"
API_KEY = "<My API Key>"
client = Client(api_key=API_KEY)
export_url = project.export_labels()
print(exports[0])
If the behavior is as described in the documentation, this output should show the annotation object information in JSON format. However, the “label” entry in my output is as follows:
'Label': {'classifications': [],
'frames': '<frame_link>',
'objects': [],
'relationships': []},
Then, when I clicked on the <frame_link>, I received the following error message