Downloads · 30 days
62
8% of all-time downloads
geobase/gghl-oriented-object-detection
gghl-oriented-object-detection is a object detection model from geobase. Use it when you need objects located in an image. The card lists the license as gpl-3.0.
Downloads · 30 days
62
8% of all-time downloads
All-time downloads
754
Public
Repo size
352 MB
Likes
1
Public
Click a slice to open those files.
.onnx352 MB · 100%
From the Hugging Face model README
| <img src="https://upload.wikimedia.org/wikipedia/commons/6/6a/JavaScript-logo.png" width="28" height="28"> | GeoAi |
|---|
task = oriented-object-detection
This model is part of the GeoAi javascript library.
GeoAi enables geospatial AI inference directly in the browser or Node.js without requiring a heavy backend.
GeoAi pipeline accepts geospatial polygons as input (in GeoJSON format) and outputs results as a GeoJSON FeatureCollection, ready for use with libraries like Leaflet and Mapbox GL.
<video controls autoplay loop width="1024" height="720" src="https://geobase-docs.s3.amazonaws.com/geobase-ai-assets/oriented-object-detection.mp4"></video>
Explore the model in action with the interactive Demo.
import { geoai } from "geoai";
export const ESRI_CONFIG = {
provider: "esri" as const,
serviceUrl: "https://server.arcgisonline.com/ArcGIS/rest/services",
serviceName: "World_Imagery",
tileSize: 256,
attribution: "ESRI World Imagery",
};
// Example polygon (GeoJSON)
const polygon = {
type: "Feature",
properties: {},
geometry: {
coordinates: [
[
[114.9750523641963, -3.4852698831433315],
[114.97650060618412, -3.4852559566003265],
[114.97644200679741, -3.487269732522151],
[114.97511654447737, -3.4871973146522492],
[114.9750523641963, -3.4852698831433315]
],
],
type: "Polygon",
},
} as GeoJSON.Feature;
// Initialize pipeline
const pipeline = await geoai.pipeline(
[{ task: "oriented-object-detection" }],
providerParams : ESRI_CONFIG
);
// Run detection
const result = await pipeline.inference({
inputs: { polygon }
});
// Sample output format
// {
// "detections": {
// "type": "FeatureCollection",
// "features": [
// {
// "type": "Feature",
// "properties": {
// "class_name": "bridge"
// "score": 0.6177883799306727
// },
// "geometry": {
// "type": "Polygon",
// "coordinates": [
// [
// [114.97610299609376, -3.4866272343749998],
// [114.97612444921876, -3.4866915],
// [114.97552912500001, -3.48678254296875],
// [114.97550767187501, -3.486712921875],
// [114.97610299609376, -3.4866272343749998]
// ]
// ]
// }
// },
// {"type": 'Feature', "properties": {…}, "geometry": {…}},
// {"type": 'Feature', "properties": {…}, "geometry": {…}},
// ]
// },
// "geoRawImage": GeoRawImage {data: Uint8ClampedArray(1048576), width: 512, height: 512, channels: 4, bounds: {…}, …}
// }