Yolov11 Depth Distanceのロゴ

Yolov11 Depth Distance

組織
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.

概要

公開者Seeed-Projects
リポジトリSeeed-Jetson-DevelopTool
スキル名yolov11-depth-distance
スター
58
フォーク
9
同梱ファイル
2
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Seeed-ProjectsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Yolov11 Depth Distance」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/yolov11-depth-distance
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでYolov11 Depth Distanceを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にYolov11 Depth Distanceを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Yolov11 Depth Distanceは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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)

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでYolov11 Depth Distanceを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Yolov11 Depth Distanceはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにYolov11 Depth Distanceをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/yolov11-depth-distanceを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Yolov11 Depth Distanceを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Yolov11 Depth Distanceで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもYolov11 Depth Distanceを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Yolov11 Depth Distance」は無料ですか?

はい。Seeed-ProjectsがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇