跳到正文
cccskills
免费在 GitHub 公开

yolo-detection-2026-coral-tpu-macos

Google Coral Edge TPU — real-time object detection natively (macOS / Linux)

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(53)

  • SKILL.md5.3 KB
  • _config.yml26 B
  • .gitignore1.3 KB
  • .travis.yml1.5 KB
  • CODE_OF_CONDUCT.md1.9 KB
  • config.yaml2.2 KB
  • CONTRIBUTING.md1.6 KB
  • Contributions.md1.0 KB
  • deploy-linux.sh7.5 KB
  • deploy-macos.sh7.1 KB
  • deploy.sh1.6 KB
  • docker_out.log8.7 KB
  • docker-compose.yml1.3 KB
  • docker/compile.sh2.7 KB
  • docker/docker-compose.yml1.4 KB
  • docker/Dockerfile3.2 KB
  • docker/README.md2.3 KB
  • driver/edgetpu.dll848.5 KB
  • driver/libusb-1.0.dll157.5 KB
  • driver/UsbDk_1.0.22_x64.msi6.1 MB
  • ext/lib/udev/rules.d/60-libedgetpu1-max.rules164 B
  • ext/usr/lib/x86_64-linux-gnu/libedgetpu.so.11.1 MB
  • ext/usr/lib/x86_64-linux-gnu/libedgetpu.so.1.01.1 MB
  • ext/usr/share/doc/libedgetpu1-max/changelog.gz484 B
  • ext/usr/share/doc/libedgetpu1-max/copyright220 B
  • ext/usr/share/lintian/overrides/libedgetpu1-max276 B
  • input.json100 B
  • lib/edgetpu.dll848.5 KB
  • lib/libedgetpu.so.11.1 MB
  • lib/libedgetpu1-max_16.0_amd64_0ac21f1924dd4b125d5cfc5f6d0e4a5e.deb378.9 KB
  • lib/libusb-1.0.dll155.0 KB
  • lib/local_deb/lib/udev/rules.d/60-libedgetpu1-max.rules164 B
  • lib/local_deb/usr/lib/x86_64-linux-gnu/libedgetpu.so.11.1 MB
  • lib/local_deb/usr/lib/x86_64-linux-gnu/libedgetpu.so.1.01.1 MB
  • lib/local_deb/usr/share/doc/libedgetpu1-max/changelog.gz484 B
  • lib/local_deb/usr/share/doc/libedgetpu1-max/copyright220 B
  • lib/local_deb/usr/share/lintian/overrides/libedgetpu1-max276 B
  • libedgetpu.deb378.9 KB
  • libedgetpu.so.11.1 MB
  • LICENSE1.0 KB
  • models/README.md1.2 KB
  • output.txt694 B
  • README.md4.2 KB
  • requirements.txt701 B
  • scripts/compile_model_colab.py3.1 KB
  • scripts/compile_model.py5.2 KB
  • scripts/detect.py19.6 KB
  • scripts/detect.py.bak24.4 KB
  • scripts/install_pycoral.py2.3 KB
  • scripts/tpu_probe.py3.6 KB
  • skills.json8.4 KB
  • test2.jpg97.3 KB
  • wsl_test.py560 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Coral TPU Object Detection

Real-time object detection natively utilizing the Google Coral Edge TPU accelerator on your local hardware. Detects 80 COCO classes (person, car, dog, cat, etc.) with ~4ms inference on 320x320 input.

Requirements

  • Python 3.9–3.13

How It Works

┌─────────────────────────────────────────────────────┐
│ Host (Aegis-AI)                                     │
│   frame.jpg → /tmp/aegis_detection/                 │
│   stdin  ──→ ┌──────────────────────────────┐       │
│              │ Native Python Environment     │       │
│              │   detect.py                   │       │
│              │   ├─ loads _edgetpu.tflite     │       │
│              │   ├─ reads frame from disk     │       │
│              │   └─ runs inference on TPU    │       │
│   stdout ←── │   → JSONL detections          │       │
│              └──────────────────────────────┘       │
│   USB ──→ Native System USB / edgetpu drivers       │
└─────────────────────────────────────────────────────┘
  1. Aegis writes camera frame JPEG to shared /tmp/aegis_detection/ workspace
  2. Sends frame event via stdin JSONL to the local Python instance
  3. detect.py invokes PyCoral and executes natively on the mapped USB Edge TPU
  4. Returns detections event via stdout JSONL

Platform Setup

Linux

# Uses the official apt-get google-coral packages natively
./deploy.sh

macOS

# Downloads and installs the libedgetpu OS payload framework inline
./deploy.sh

Important Deployment Notice: The updated deploy.sh script will natively halt execution and prompt you securely for your OS sudo password to securely register the USB drivers (libedgetpu) system-wide. If you refuse the prompt, it gracefully outputs the exact terminal instructions for you to configure it manually.

Performance

Input SizeInferenceOn-chipNotes
320x320~4ms100%Fully on TPU, best for real-time
640x640~20msPartialSome layers on CPU (model segmented)

Cooling: The USB Accelerator aluminum case acts as a heatsink. If too hot to touch during continuous inference, it will thermal-throttle. Consider active cooling or clock_speed: standard.

Protocol

Same JSONL as yolo-detection-2026:

Skill → Aegis (stdout)

{"event": "ready", "model": "yolo26n_edgetpu", "device": "coral", "format": "edgetpu_tflite", "tpu_count": 1, "classes": 80}
{"event": "detections", "frame_id": 42, "camera_id": "front_door", "objects": [{"class": "person", "confidence": 0.85, "bbox": [100, 50, 300, 400]}]}
{"event": "perf_stats", "total_frames": 50, "timings_ms": {"inference": {"avg": 4.1, "p50": 3.9, "p95": 5.2}}}

Bounding Box Format

[x_min, y_min, x_max, y_max] — pixel coordinates (xyxy).

Installation

Linux / macOS

./deploy.sh

The deployer builds the local Python virtual environment and installs the Edge TPU runtime. No Docker required.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Dataset annotation management — COCO labels, sequences, export, and Kaggle upload

中文简介正在准备中。当前显示原文说明。

SharpAI/DeepCamera31082026年9月17日 更新

Eufy camera integration — local RTSP streaming and event clips

中文简介正在准备中。当前显示原文说明。

SharpAI/DeepCamera31082026年9月17日 更新

Reolink camera integration — RTSP and HTTP API

中文简介正在准备中。当前显示原文说明。

SharpAI/DeepCamera31082026年9月17日 更新

TP-Link Tapo camera integration — RTSP streaming and ONVIF

中文简介正在准备中。当前显示原文说明。

SharpAI/DeepCamera31082026年9月17日 更新

LINE messaging channel for Clawdbot agent

中文简介正在准备中。当前显示原文说明。

SharpAI/DeepCamera31082026年9月17日 更新

Matrix/Element messaging channel for Clawdbot agent

中文简介正在准备中。当前显示原文说明。

SharpAI/DeepCamera31082026年9月17日 更新

查看 SharpAI 的全部技能

报告此技能的问题