Skip to content

Commit de9a3b9

Browse files
Updated notebook per PR comments
1 parent b82fd66 commit de9a3b9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/prediction_upload/geospatial_predictions.ipynb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@
120120
"from PIL import Image\n",
121121
"import cv2\n",
122122
"import ndjson\n",
123-
"import gdal\n",
124123
"\n",
125124
"import labelbox as lb\n",
126125
"import labelbox.data.annotation_types as lb_types\n",
@@ -770,9 +769,6 @@
770769
"source": [
771770
" ## Lets create another polygon annotation with python annotation tools that draws the image using cv2 and PIL python libraries\n",
772771
"\n",
773-
"from PIL import Image\n",
774-
"import cv2\n",
775-
"\n",
776772
"hsv = cv2.cvtColor(tiled_image_data.value, cv2.COLOR_RGB2HSV)\n",
777773
"mask = cv2.inRange(hsv, (10, 25, 25), (100, 150, 255))\n",
778774
"kernel = np.ones((15, 20), np.uint8)\n",
@@ -796,7 +792,7 @@
796792
"\n",
797793
"# Here is the NDJSON representation of the resulting polygon:\n",
798794
"polygon_prediction_two_ndjson = {\n",
799-
" \"name\": \"polygon_geo\",\n",
795+
" \"name\": \"polygon_geo_2\",\n",
800796
" \"confidence\": 0.5,\n",
801797
" \"polygon\": [\n",
802798
" {'x': -122.31703039689702, 'y': 37.87397804081582},\n",

0 commit comments

Comments
 (0)