graviti
产品应用市场解决方案知识库公开数据集关于我们
4.6K
6
79
Neolix OD
概要
讨论
代码
活动
非数据集成员无法通过开发者工具直接使用该数据集,您可通过Fork后获取和使用数据。
Fork数据集
1from tensorbay import GAS
2from tensorbay.dataset import Dataset
3
4# Authorize a GAS client.
5gas = GAS('<YOUR_ACCESS_KEY>')
6
7# Get a dataset.
8dataset = Dataset("NeolixOD", gas)
9
10# List dataset segments.
11segments = dataset.keys()
12
13# Get a segment by name
14segment = dataset["default"]
15for data in segment:
16    with data.open() as fp:
17        # Use the data as you like.
18        for label_box3d in data.label.box3d:
19            size = label_box3d.size
20            translation = label_box3d.translation
21            rotation = label_box3d.rotation
22            box3d_category = label_box3d.category
23            box3d_attributes = label_box3d.attributes
24