Ship Detection
Detect ships in satellite imagery
Quick Start
import { geoai } from "@geobase-js/geoai";
// Initialize pipeline
const pipeline = await geoai.pipeline(
[{ task: "ship-detection" }],
providerParams
);
// Run detection
const result = await pipeline.inference({
inputs: { polygon: myPolygon },
});
console.log(`Found ${result.detections.features.length} ships`);
Parameters
Map Source
mapSourceParams: {
zoomLevel: 20; // 20+ recommended for ship detection
}
Output
Returns GeoJSON with detected ships:
{
detections: {
type: "FeatureCollection",
features: [
{
geometry: { /* ship location */ },
properties: {}
}
]
}
}