Wetland Segmentation
Identify wetland areas in satellite imagery
Quick Start
import { geoai } from "@geobase-js/geoai";
// Initialize pipeline
const pipeline = await geoai.pipeline(
[{ task: "wetland-segmentation" }],
providerParams
);
// Run segmentation
const result = await pipeline.inference({
inputs: { polygon: myPolygon },
mapSourceParams: {
zoomLevel: 16,
bands: [1, 2, 3, 4], // RGB + NIR required
},
});
console.log(`Identified ${result.detections.features.length} wetland areas`);
🌊
Requires 4-band imagery: This model needs RGB + NIR bands and will not work with standard 3-band RGB imagery
Parameters
Map Source
mapSourceParams: {
zoomLevel: 16, // 15-17 recommended for wetlands
bands: [1, 2, 3, 4] // Red, Green, Blue, NIR (all required)
}
Output
Returns GeoJSON with identified wetland polygons:
{
detections: {
type: "FeatureCollection",
features: [
{
geometry: { /* wetland boundary polygon */ },
properties: {}
}
]
}
}