Supported TasksCar Detection

Car Detection

Detect vehicles in high-resolution imagery

Quick Start

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

Specialized for detecting cars, SUVs, and light trucks in urban environments

Parameters

Map Source

mapSourceParams: {
  zoomLevel: 20; // 20+ recommended for vehicle detection
}

Output

Returns GeoJSON with detected vehicles:

{
  detections: {
    type: "FeatureCollection",
    features: [
      {
        geometry: { /* vehicle location */ },
        properties: {}
      }
    ]
  }
}