Oriented Object Detection
Detect objects with rotational awareness in aerial imagery
Quick Start
import { geoai } from "@geobase-js/geoai";
// Initialize pipeline
const pipeline = await geoai.pipeline(
[{ task: "oriented-object-detection" }],
providerParams
);
// Run detection
const result = await pipeline.inference({
inputs: { polygon: myPolygon },
postProcessingParams: {
conf_thres: 0.5,
iou_thres: 0.45,
},
});
console.log(`Found ${result.detections.features.length} oriented objects`);
🔄
Detects objects with their actual orientation using rotated bounding boxes instead of standard rectangles
Parameters
Post-Processing
postProcessingParams: {
conf_thres: 0.5, // Confidence threshold (0.0-1.0)
iou_thres: 0.45, // Non-Maximum Suppression threshold
multi_label: true // Allow multiple labels per detection
}
Map Source
mapSourceParams: {
zoomLevel: 22;
}
Detected Objects
Object |
---|
plane |
ship |
small-vehicle |
large-vehicle |
baseball-diamond |
tennis-court |
basketball-court |
swimming-pool |
bridge |
storage-tank |
harbor |
roundabout |
Output
Returns GeoJSON with oriented bounding boxes:
{
detections: {
type: "FeatureCollection",
features: [
{
geometry: { /* oriented polygon */ },
properties: {
class_name: "plane",
score: 0.89
}
}
]
}
}