bounding-boxes
यह क्या करती है
यह स्किल सिमुलेटर के दृश्य से लेबल वाले बाउंडिंग बॉक्स बनाती है। यह उन लोगों के लिए है जो कंप्यूटर विज़न के लिए इमेज डेटासेट बना रहे हैं।
कब इस्तेमाल करें
- ✓जब आपको सिमुलेटर में गाड़ियों या दूसरे एक्टर्स के बाउंडिंग बॉक्स चाहिए।
- ✓जब आप दुनिया में बने बॉक्स देखकर उन्हें जाँचना चाहते हैं।
- ✓जब आपको एनोटेट की गई कैमरा इमेज और उसकी 2D बॉक्स वाली JSON फ़ाइल चाहिए।
Skill का लिंक
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/bounding-boxes/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे सामने वाले कैमरे पर गाड़ियों के बाउंडिंग बॉक्स प्रोजेक्ट कीजिए, और एनोटेट की गई PNG व JSON फ़ाइल सेव कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट हर एक्टर का 3D बॉक्स पढ़ता है, जाँच के लिए उसे दुनिया में बना सकता है, और फिर कैमरे के ज़रिए उसे 2D बॉक्स में प्रोजेक्ट करता है। वह एनोटेट की गई इमेज और बॉक्स वाली JSON फ़ाइल सेव करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Bounding boxes
Paths.
scripts/…andreferences/…below are relative to the directory holding this SKILL.md. Your working directory is the user's project, not that directory, so prefix them with its absolute path or the command is not found.
Three things: read actors' 3D boxes, draw them in the world, or project them
into a camera image as 2D boxes with a JSON sidecar — the standard CARLA
dataset-annotation pipeline (client_bounding_boxes.py).
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: For `project`, have a camera on the ego (create-sensor) + actors around
- [ ] Step 3: list / draw / project
Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh.
Step 1: Check prerequisites
bash scripts/check_env.sh
Step 3: Boxes
source scripts/env.sh
# 3D box geometry of every vehicle
python3 scripts/bounding_boxes.py list --filter vehicle.*
# draw 3D boxes around vehicles — they track moving cars, stay 30 s (default)
python3 scripts/bounding_boxes.py draw --filter vehicle.*
python3 scripts/bounding_boxes.py draw --filter vehicle.* --seconds 60
# project vehicle boxes into a camera frame -> annotated PNG + JSON
python3 scripts/bounding_boxes.py project --camera <camera_id> --filter vehicle.* --out boxes.png
How the projection works (brief)
Capture one frame → build the camera intrinsics K from its fov + resolution →
for each actor, take its 3D box's 8 world vertices (get_world_vertices),
transform to camera space with the camera's inverse matrix, keep those in front,
apply K → 2D points → the min/max is the 2D box. Off-frame and too-far
(--max-dist) actors are skipped. Full math in the reference.
Examples
Example 1: annotate the ego camera
User says: "put boxes on the cars in the camera view"
Spawn a camera on the ego (create-sensor), then project --camera <id> --filter vehicle.* → boxes.png with green 2D boxes + boxes.json.
Example 2: how big is that actor
User says: "what are the dimensions of vehicle 137?"
list --filter vehicle.* (find 137) → its LxWxH from the extent.
Example 3: visualise in 3D
User says: "outline all the vehicles in the world"
draw --filter vehicle.* — green 3D boxes on a rendered server.
Troubleshooting
Problem: project finds no boxes
Cause: no actors in front of / within --max-dist of the camera, or wrong filter.
Solution: raise --max-dist, widen --filter, ensure vehicles are in view.
Problem: boxes misaligned Cause: the frame and the actor poses drifted (fast motion, async). Solution: capture in synchronous mode (set-world-settings) so the frame and poses are from the same tick.
Problem: draw shows nothing
Cause: headless -nullrhi server.
Solution: use a rendered server (see debug-draw).
Note: boxes always track moving actors
draw re-stamps each frame for --seconds (default 30), so boxes ride moving
cars automatically — the command blocks for that duration.
Outputs
list: box dimensions per actor.draw: 3D box overlay (rendered view).project:<out>.png(annotated) +<out>.json(2D boxes: id, type, xyxy).
Detail (intrinsics, world→camera transform, level boxes, lidar-to-camera) in references/bounding-boxes.md.
अक्सर पूछे जाने वाले सवाल
क्या कैमरे के बिना बॉक्स बन सकते हैं?
हाँ। यह बॉक्स की ज्यामिति सूचीबद्ध कर सकता है या दुनिया में 3D बॉक्स बना सकता है। प्रोजेक्शन के लिए कैमरा चाहिए।
बनाए गए बॉक्स स्क्रीन पर कितनी देर रहेंगे?
डिफ़ॉल्ट रूप से 30 सेकंड, और आप इसे लंबा कर सकते हैं।
प्रोजेक्शन के लिए क्या चाहिए?
ego वाहन से जुड़ा कैमरा, जिसे सेंसर स्किल लगाती है, और आसपास के एक्टर।
जानकारी
लेखक का मूल विवरण
Gets actor and level 3D bounding boxes and projects them into a camera image as 2D boxes — the dataset-annotation workflow. Lists box geometry, draws 3D boxes in the world via debug, or captures one camera frame and writes an annotated PNG plus a JSON of 2D boxes for matching actors. Use when the user asks to "get bounding boxes", "draw boxes around the cars", "project boxes onto the camera", or "generate a detection dataset / annotations".
repo: carla-simulator/carla
लोकप्रियता
- GitHub स्टार
- 15k
- रैंकिंग में स्थान
- #11084
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
create-leaderboard-route
15kयह आपके एजेंट को CARLA Leaderboard की रूट फ़ाइल बनाने में मदद करती है, जिसमें वेपॉइंट और सीन ट्रिगर कैमरे से लगाए जाते हैं।
package-leaderboard-agent
15kयह आपके एजेंट को CARLA Leaderboard के लिए Docker इमेज बनाने में मदद करती है, और जाँचती है कि इमेज में एजेंट सही लोड होता है।
read-leaderboard-results
15kयह आपके एजेंट को CARLA Leaderboard की नतीजा फ़ाइल पढ़कर हर रूट का स्कोर समझाने और दूसरे नियम संस्करण में फिर से स्कोर करने में मदद करती है।
run-leaderboard-evaluation
15kयह आपके एजेंट को रूट के सेट पर CARLA Leaderboard मूल्यांकन चलाने में मदद करती है, शुरू करने से पहले सेटअप जाँचकर और चेकपॉइंट सेव करके।
मिलती-जुलती skills
pytorch-patterns
280kआपके एजेंट को machine learning models के लिए PyTorch इस्तेमाल करने में मदद करता है। कुशल model training के best practices लागू करता है और नतीजों को दोहराने लायक रखता है।
evm-token-decimals
280kयह आपके एजेंट को अलग-अलग blockchain networks पर decimal numbers की गलतियों से बचने में मदद करता है। यह transactions और calculations में token values सही रखने का ध्यान रखता है।
ito-inference
280kआपके एजेंट को AI models की उपलब्धता जाँचने देता है। यह compute request को तैयार model service से जोड़ता है।