Supported TasksBuilding Detection

Building Detection

Specialized detection of buildings in satellite imagery

Quick Start

import { geoai } from "@geobase-js/geoai";
 
// Initialize pipeline
const pipeline = await geoai.pipeline(
  [{ task: "building-detection" }],
  providerParams
);
 
// Run detection
const result = await pipeline.inference({
  inputs: { polygon: myPolygon },
});
 
console.log(`Found ${result.detections.features.length} buildings`);

Parameters

Map Source

mapSourceParams: {
  zoomLevel: 20; // 19-22 recommended
}

Output

Returns GeoJSON with detected buildings:

{
  detections: {
    type: "FeatureCollection",
    features: [
      {
        geometry: { /* building polygon */ },
        properties: {}
      }
    ]
  }
}