{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n# Working with the LabelRowV2\n\nThe :class:`encord.objects.LabelRowV2` class is a wrapper around the Encord label row data format. It\nprovides a convenient way to read, create, and manipulate labels.\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Imports and authentication\nFirst, import dependencies and authenticate a project manager.\n\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from pathlib import Path\nfrom typing import List\n\nfrom encord import EncordUserClient, Project\nfrom encord.objects import (\n AnswerForFrames,\n Classification,\n LabelRowV2,\n Object,\n ObjectInstance,\n OntologyStructure,\n RadioAttribute,\n)\nfrom encord.objects.common import Option\nfrom encord.objects.coordinates import BoundingBoxCoordinates\nfrom encord.objects.frames import Range\nfrom encord.orm.project import Project as OrmProject" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "
To interact with Encord, you need to authenticate a client. You can find more details\n `here
When working with attributes, you will see that the first thing to do is often to grab the ontology object.\n Usually, when calling the `get_child_by_title` the `type_` is recommended, but still optional. However, for\n classifications this is often required.\n\n The reason is that the classification title is always equal to the title of the top level attribute of this\n classification. Therefore, it is important to distinguish what exactly you're trying to search for.