Skip to main content

PyPI Version License

中文简体 | English


CVGlue 是一个计算机视觉工具包。集成了人脸检测、姿态估计、质量评估等任务,提供统一的 OpenCV/PyTorch 数据处理接口,支持数据集自动化标注。

✨ 核心功能

开箱即用:统一接口调用多算法
高效可视化:Jupyter 单行代码多格式图像显示(OpenCV/PIL/Tensor/文件路径)
数据集支持:衔接 IAP 数据集 标注流程

类别 能力 支持算法
人脸分析 人脸检测/关键点/姿态估计 RetinaFace, AdaptiveWingLoss, FSA-Net
质量评估 人脸质量评分 TFace FIQA
数据工具 图像预处理/可视化/标注 OpenCV & PyTorch 封装
扩展模块 图像修复/通用分割 LaMa, SegmentAnything (开发中)

🚀 快速示例

创建一个 jupyter-notebook

import cv2
import cvglue
from cvglue import displayer as display

parser = cvglue.parser.get_parser('lamply-faceid')
img = cv2.imread('tests/data/images/single_face_img.jpg')

anno = parser.parse_img(img)
iap_data = (img, anno)
img_disp = display.render_lamply(iap_data)
display.show([img, img_disp])

得到

⚙️ 安装

pip install cvglue

一些较大的模型需要自行下载放置到 TORCH_HOME 路径下:

🔌 第三方集成表

第三方代码 状态 用处 原项目链接
FaceDetector ✅ 人脸检测 https://github.com/biubug6/Face-Detector-1MB-with-landmark
AdaptiveWing ✅ 人脸关键点检测 https://github.com/protossw512/AdaptiveWingLoss
HeadPoseDetector ✅ 头部姿态检测 https://github.com/shamangary/FSA-Net
TFace ✅ 人脸质量评价 https://github.com/Tencent/TFace
LaMa ⏳ 图像修复 https://github.com/advimman/lama
FBCNN ✅ JPEG压缩修复 https://github.com/jiaxi-jiang/FBCNN
SegmentAnything ⏳ 通用分割 https://github.com/facebookresearch/segment-anything
InsightFace ✅ faceid 提取/人脸属性 https://github.com/TreB1eN/InsightFace_Pytorch
AttributeDetector ✅ 人脸属性 https://github.com/ageitgey/face_recognition

Metadata

Release files for cvglue 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for cvglue 1.3.0
File Interpreter ABI Platform Actions
cvglue-1.3.0-py3-none-any.whl Python 3 none any Details for cvglue-1.3.0-py3-none-any.whl

Release files / cvglue-1.3.0-py3-none-any.whl

Download URL cvglue-1.3.0-py3-none-any.whl
Size 18.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4f0cf3a636e6c2c47864d95f6bf485aeb9fad67856bfa56b40c8cabcf3b497dc
BLAKE2b-256 checksum
How to use checksums
b0b22333bcb861945483e2417fa09a34f19754c54b745cb3f39935742518ab61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 23, 2026.

Transparency log

Security for cvglue 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for cvglue-1.3.0-py3-none-any.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page