redbrick.export.Export(org_id: str, label_set_name: str, target_dir: str)
Your organization id, can be found in the url
The name of the labelset that you want to export
Directory where you want to store your data and labels.
export(download_data: bool,single_json: bool,use_name: bool,export_format: str)
Boolean flag to download image/video data to local folder. Default: False.
Boolean flag to store all datapoint labels in a single json file. Default: False
Boolean flag to use datapoint name instead of datapoint id as filename for json and image data. Default: False
String to indicate which format should be used at export time. If task is image segmentation and want to output masks, you should use "png"; all other cases must be "redbrick". Default: "redbrick"
Creating an Export reference
To create an Export object, you need to do the following.
import redbrickfrom redbrick.export import Exportredbrick.init(api_key="<your_api_key>")export_rb = Export(org_id="<org_id>",label_set_name="<label_set_name>",target_dir="<target_dir>")
The organization id is available from the URL when you're logged into the platform -
Exporting your data and labels
To export your data and labels, you can do the following: