Logo: Yolov11 Depth Distance

Yolov11 Depth Distance

Organisatioun
Seeed-Projects
yolov11-depth-distance

Deploy YOLOv11 with an Orbbec Gemini 2 depth camera on reComputer J4012 (Jetson Orin NX 16GB) for real-time object detection and 3D distance measurement between detected objects. Uses TensorRT for accelerated inference and pyorbbecsdk for depth data. Requires JetPack 5.1.3.

Iwwersiicht

EditeurSeeed-Projects
RepositorySeeed-Jetson-DevelopTool
Skill-Nummyolov11-depth-distance
Stären
58
Forks
9
Matgeliwwert Dateien
2
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Seeed-Projects huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Yolov11 Depth Distance an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/yolov11-depth-distance
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool.git /tmp/Seeed-Jetson-DevelopTool
mkdir -p .claude/skills
cp -r /tmp/Seeed-Jetson-DevelopTool/seeed_jetson_develop/skills/openclaw/yolov11-depth-distance .claude/skills/yolov11-depth-distance
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Yolov11 Depth Distance an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Yolov11 Depth Distance automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Yolov11 Depth Distance net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

YOLOv11 + Depth Camera Distance Measurement on Jetson Orin

Combine YOLOv11 object detection with Orbbec Gemini 2 depth camera on reComputer J4012 to detect objects and measure real-world 3D distances between them in real time using TensorRT acceleration.


Execution model

Run one phase at a time. After each phase:

  • Relay all output to the user.
  • If output contains [STOP] → stop immediately, consult the failure decision tree.
  • If output ends with [OK] → tell the user "Phase N complete" and proceed to the next phase.

Prerequisites

RequirementDetail
Jetson devicereComputer J4012 (Orin NX 16GB) or similar reComputer
JetPack5.1.3 pre-installed
CameraOrbbec Gemini 2 Depth Camera + USB Type-C cable
TensorRT8.x (included with JetPack 5.x)
Python3.8

Phase 1 — Install Orbbec Gemini 2 Python SDK (~10 min)

Clone and install dependencies:

bash
git clone https://github.com/orbbec/pyorbbecsdk.git
sudo apt-get install python3-dev python3-venv python3-pip python3-opencv cmake g++ gcc
pip install pybind11

Install Python requirements:

bash
cd pyorbbecsdk
pip install -r requirements.txt

Build the SDK:

bash
mkdir build
cd build
cmake \
  -Dpybind11_DIR=`pybind11-config --cmakedir` \
  -DPython3_EXECUTABLE=/usr/bin/python3.8 \
  -DPython3_INCLUDE_DIR=/usr/include/python3.8 \
  -DPython3_LIBRARY=/usr/lib/aarch64-linux-gnu/libpython3.8.so \
  ..
make -j4
make install

Install the Python wheel:

bash
cd /path/to/pyorbbecsdk
pip install wheel
python setup.py bdist_wheel
pip install dist/*.whl

[OK] when import pyorbbecsdk works in Python. [STOP] if cmake or make fails.


Phase 2 — Test depth camera (~2 min)

Create a test script or use the SDK examples to verify the camera outputs both RGB and depth frames. Connect the Gemini 2 via USB-C and run:

bash
python test.py

Expected: A window showing RGB image on the left and depth colormap on the right.

[OK] when both streams display correctly. [STOP] if camera is not detected or frames are empty.


Phase 3 — Deploy YOLOv11 with TensorRT (~15 min)

Clone the TensorRT implementation:

bash
git clone https://github.com/wang-xinyu/tensorrtx.git
cd tensorrtx/yolo11

Download the YOLOv11n model:

bash
wget -O yolo11n.pt https://github.com/ultralytics/assets/releases/download/v8.3.0/yolo11n.pt

Generate the .wts file:

bash
python gen_wts.py -w yolo11n.pt -o yolo11n.wts -t detect

Build the TensorRT engine:

bash
mkdir build
cd build
cmake ..
make -j4
./yolo11_det -s yolo11n.wts yolo11n.engine n

Install pycuda for Python inference:

bash
pip install pycuda

[OK] when yolo11n.engine file is generated in the build directory. [STOP] if cmake/make fails or engine serialization errors.


Phase 4 — Run distance measurement

Run the combined detection + distance measurement script (see source.body.md for the full distance_measurement.py script):

bash
python distance_measurement.py

The script detects objects (e.g., cup and mouse) and calculates 3D Euclidean distance between them using depth camera intrinsics:

  • fx=616.707275, fy=616.707275, cx=648.300171, cy=404.478149

Expected: Real-time video with bounding boxes and distance overlay.

[OK] when distance measurements appear on screen. [STOP] if engine loading fails or camera errors.


Failure decision tree

SymptomAction
cmake fails — pybind11 not foundVerify pip install pybind11 and check pybind11-config --cmakedir output.
make fails — Python headers missingInstall python3-dev: sudo apt-get install python3-dev.
Camera not detectedCheck USB-C connection. Run lsusb to verify Orbbec device. Try different USB port.
import pyorbbecsdk failsEnsure the .whl was installed. Re-run pip install dist/*.whl.
TensorRT engine build failsConfirm TensorRT 8.x is installed: dpkg -l | grep tensorrt. JetPack 6+ requires code modifications.
pycuda import errorInstall: pip install pycuda. Ensure CUDA toolkit is in PATH.
OOM during engine serializationClose other GPU processes. Orin NX 16GB should be sufficient for yolo11n.
Distance values seem wrongVerify camera intrinsics with get_camera_parameters.py. Ensure HW D2C alignment is enabled.

Reference files

  • references/source.body.md — Full Seeed Wiki tutorial with hardware connection photo, SDK build details, test scripts, distance calculation math, and complete distance_measurement.py source code (reference only)

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Yolov11 Depth Distance?

Deploy YOLOv11 with an Orbbec Gemini 2 depth camera on reComputer J4012 (Jetson Orin NX 16GB) for real-time object detection and 3D distance measurement between detected objects. Uses TensorRT for accelerated inference and pyorbbecsdk for depth data. Requires JetPack 5.1.3.

Firwat Yolov11 Depth Distance op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Yolov11 Depth Distance besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Yolov11 Depth Distance an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/yolov11-depth-distance an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Yolov11 Depth Distance benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Yolov11 Depth Distance benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Yolov11 Depth Distance domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Yolov11 Depth Distance gratis?

Jo. Seeed-Projects huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇