|
57 | 57 | "metadata": {}, |
58 | 58 | "outputs": [], |
59 | 59 | "source": [ |
60 | | - "m = leafmap.Map(center=[34.040984, -118.491668], zoom=19, height=\"800px\")\n", |
| 60 | + "m = leafmap.Map(center=[34.040984, -118.491668], zoom=19, height=\"600px\")\n", |
61 | 61 | "m.add_basemap(\"SATELLITE\")\n", |
62 | 62 | "m" |
63 | 63 | ] |
|
79 | 79 | "source": [ |
80 | 80 | "bbox = m.user_roi_bounds()\n", |
81 | 81 | "if bbox is None:\n", |
82 | | - " bbox = [-51.2565, -22.1777, -51.2512, -22.175]" |
| 82 | + " bbox = [-118.4932, 34.0404, -118.4903, 34.0417]" |
83 | 83 | ] |
84 | 84 | }, |
85 | 85 | { |
|
200 | 200 | "outputs": [], |
201 | 201 | "source": [ |
202 | 202 | "sam.show_anns(\n", |
203 | | - " cmap='Greens',\n", |
| 203 | + " cmap='Blues',\n", |
204 | 204 | " box_color='red',\n", |
205 | | - " title='Automatic Segmentation of Trees',\n", |
| 205 | + " title='Automatic Segmentation of Swimming Pools',\n", |
206 | 206 | " blend=True,\n", |
207 | 207 | ")" |
208 | 208 | ] |
|
211 | 211 | "cell_type": "markdown", |
212 | 212 | "metadata": {}, |
213 | 213 | "source": [ |
214 | | - "" |
| 214 | + "" |
215 | 215 | ] |
216 | 216 | }, |
217 | 217 | { |
|
228 | 228 | "outputs": [], |
229 | 229 | "source": [ |
230 | 230 | "sam.show_anns(\n", |
231 | | - " cmap='Greens',\n", |
| 231 | + " cmap='Blues',\n", |
232 | 232 | " add_boxes=False,\n", |
233 | 233 | " alpha=0.5,\n", |
234 | | - " title='Automatic Segmentation of Trees',\n", |
| 234 | + " title='Automatic Segmentation of Swimming Pools',\n", |
235 | 235 | ")" |
236 | 236 | ] |
237 | 237 | }, |
238 | 238 | { |
239 | 239 | "cell_type": "markdown", |
240 | 240 | "metadata": {}, |
241 | 241 | "source": [ |
242 | | - "" |
| 242 | + "" |
243 | 243 | ] |
244 | 244 | }, |
245 | 245 | { |
|
259 | 259 | " cmap='Greys_r',\n", |
260 | 260 | " add_boxes=False,\n", |
261 | 261 | " alpha=1,\n", |
262 | | - " title='Automatic Segmentation of Trees',\n", |
| 262 | + " title='Automatic Segmentation of Swimming Pools',\n", |
263 | 263 | " blend=False,\n", |
264 | | - " output='trees.tif',\n", |
| 264 | + " output='pools.tif',\n", |
265 | 265 | ")" |
266 | 266 | ] |
267 | 267 | }, |
268 | 268 | { |
269 | 269 | "cell_type": "markdown", |
270 | 270 | "metadata": {}, |
271 | 271 | "source": [ |
272 | | - "" |
| 272 | + "" |
273 | 273 | ] |
274 | 274 | }, |
275 | 275 | { |
|
285 | 285 | "metadata": {}, |
286 | 286 | "outputs": [], |
287 | 287 | "source": [ |
288 | | - "sam.raster_to_vector(\"trees.tif\", \"trees.shp\")" |
| 288 | + "sam.raster_to_vector(\"pools.tif\", \"pools.shp\")" |
289 | 289 | ] |
290 | 290 | }, |
291 | 291 | { |
|
301 | 301 | "metadata": {}, |
302 | 302 | "outputs": [], |
303 | 303 | "source": [ |
304 | | - "m.add_raster(\"trees.tif\", layer_name=\"Trees\", palette=\"Greens\", opacity=0.5, nodata=0)\n", |
| 304 | + "m.add_raster(\"pools.tif\", layer_name=\"Pools\", palette=\"Blues\", opacity=0.5, nodata=0)\n", |
305 | 305 | "style = {\n", |
306 | 306 | " \"color\": \"#3388ff\",\n", |
307 | 307 | " \"weight\": 2,\n", |
308 | 308 | " \"fillColor\": \"#7c4185\",\n", |
309 | 309 | " \"fillOpacity\": 0.5,\n", |
310 | 310 | "}\n", |
311 | | - "m.add_vector(\"trees.shp\", layer_name=\"Vector\", style=style)\n", |
| 311 | + "m.add_vector(\"pools.shp\", layer_name=\"Vector\", style=style)\n", |
312 | 312 | "m" |
313 | 313 | ] |
314 | 314 | }, |
| 315 | + { |
| 316 | + "cell_type": "markdown", |
| 317 | + "metadata": {}, |
| 318 | + "source": [ |
| 319 | + "" |
| 320 | + ] |
| 321 | + }, |
315 | 322 | { |
316 | 323 | "cell_type": "markdown", |
317 | 324 | "metadata": {}, |
|
332 | 339 | "cell_type": "markdown", |
333 | 340 | "metadata": {}, |
334 | 341 | "source": [ |
335 | | - "" |
| 342 | + "" |
336 | 343 | ] |
337 | 344 | } |
338 | 345 | ], |
|
0 commit comments