Skip to content
Back to skills

Cpp Onnx Port

ASecurity

"Operate the optional 3DDFA C++ OpenCV DNN port, checkpoint-to-ONNX

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
developmentpythonrustc++expressbackend

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill cpp-onnx-port --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cpp Onnx Port?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cpp Onnx Port
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-cpp-onnx-port/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-cpp-onnx-port)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cpp-onnx-port
description: "Operate the optional 3DDFA C++ OpenCV DNN port, checkpoint-to-ONNX
  export, weight placement, build/run expectations, and C++ troubleshooting."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# cpp-onnx-port

Use this sub-skill when the task is about the optional 3DDFA C++ demo, OpenCV DNN execution, MobileNet checkpoint export to ONNX, C++ weight placement, CMake/OpenCV build behavior, or C++ output failures.

Do not use this sub-skill as the primary guide for Python inference, rendering internals, training, or benchmark evaluation. Route those tasks to sibling skills when available:

- Python image/video inference and checkpoint choice: `../python-inference/SKILL.md`
- Geometry, vertices, OBJ/PLY, PNCC, depth, and rendering internals: `../geometry-rendering/SKILL.md`
- Training recipes, losses, checkpoints, and benchmarks: `../training-evaluation/SKILL.md`

## Operating Map

1. For C++ build and demo behavior, read `references/cpp-build-and-runtime.md`.
2. For checkpoint export, read `references/onnx-export.md` and use `scripts/export_mobilenet_to_onnx.py` instead of relying on the original conversion helper.
3. For missing faces, missing weights, OpenCV DNN, ONNX, CMake, or output-image failures, read `references/troubleshooting.md`.

## Key Constraints

- The C++ port is optional and unoptimized; it relies on OpenCV DNN and was documented for OpenCV 4.2.0 or newer.
- The C++ demo uses CPU OpenCV DNN backends for both the YOLO face detector and MobileNet landmark predictor.
- The source distribution includes C++ matrix/config text files, but the MobileNet ONNX file and YOLO binary weights are external artifacts that must be supplied by the operator.
- The C++ demo is hard-coded around a single sample image and writes a landmark-overlay image under its result directory unless the C++ source is adapted.
- Keep `num_classes=62` for C++ landmark compatibility: 12 pose/projection values, 40 shape coefficients, and 10 expression coefficients.

## Safe Actions

- Build only after confirming OpenCV development headers/libraries are available and the required external model files are present.
- Export ONNX from a known 3DDFA MobileNet checkpoint with the bundled helper and inspect remapped checkpoint keys before trusting the file.
- Treat CMake, OpenCV, detector, predictor, and output-path problems as separate failure classes; do not debug them as one generic C++ failure.

Files in this skill

  • SKILL.md2.4 KB
  • references/cpp-build-and-runtime.md5 KB
  • references/onnx-export.md3.3 KB
  • references/troubleshooting.md5.3 KB
  • scripts/export_mobilenet_to_onnx.py9.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.