|
32 | 32 | "metadata": {},
|
33 | 33 | "outputs": [],
|
34 | 34 | "source": [
|
35 |
| - "# !pip install -r ../../requirements.txt\n", |
36 |
| - "# !pip install -e ../..\n", |
37 |
| - "# !pip install -q 'git+https://github.com/Labelbox/labelbox-python.git@geospatial-dev#egg=labelbox[data]'\n", |
| 35 | + "!pip install \"labelbox[data]\"\n", |
38 | 36 | "\n",
|
39 | 37 | "from labelbox.data.annotation_types.data.tiled_image import TiledBounds, TiledImageData, TileLayer, EPSG, EPSGTransformer\n",
|
40 | 38 | "from labelbox.data.annotation_types import Point, Polygon, Mask, MaskData, Label\n",
|
41 | 39 | "from PIL import Image\n",
|
42 | 40 | "import cv2\n",
|
43 |
| - "import numpy as np\n", |
44 |
| - "# from labelbox.data.annotation_types.geometry.polygon import Polygon\n", |
45 |
| - "# from labelbox.data.annotation_types.geometry.line import Line\n", |
46 |
| - "# from labelbox.data.annotation_types.geometry.point import Point\n", |
47 |
| - "# from labelbox.data.annotation_types.geometry.rectangle import Rectangle" |
| 41 | + "import numpy as np" |
48 | 42 | ]
|
49 | 43 | },
|
50 | 44 | {
|
|
138 | 132 | "\n",
|
139 | 133 | "We will need the min and max zoom levels, which are set as a list of integers.\n",
|
140 | 134 | "\n",
|
141 |
| - "The default tile size is 256." |
| 135 | + "The default tile size is 256, but we can manually set it." |
142 | 136 | ]
|
143 | 137 | },
|
144 | 138 | {
|
|
250 | 244 | }
|
251 | 245 | ],
|
252 | 246 | "source": [
|
| 247 | + "#our bounds in EPSG4326\n", |
253 | 248 | "[point for point in bounds.bounds]"
|
254 | 249 | ]
|
255 | 250 | },
|
|
0 commit comments