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.4.0

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

Source distribution (sdist)

Source distribution for cvglue 1.4.0
File Size Uploaded Provenance Actions
cvglue-1.4.0.tar.gz 20.8 MB With provenance Details for cvglue-1.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 39.2 MB

Release files / cvglue-1.4.0.tar.gz

Download URL cvglue-1.4.0.tar.gz
Size 20.8 MB
Tags Source
SHA-256 checksum
How to use checksums
5d9f067844aa7fc31b8587851e8806df9e5c1cbff38b3c9a3ae818ea3fc3faba
BLAKE2b-256 checksum
How to use checksums
6b4875dab1cfe69ff78ca89428902efbb3260cb5f1dc70a013a5b9115613982c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Aug 1, 2026.

Transparency log

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

Download URL cvglue-1.4.0-py3-none-any.whl
Size 18.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
fd0af485d30959fdaeac69b10d40330d06781977435c911317c50d809f035432
BLAKE2b-256 checksum
How to use checksums
ba4dbaa5df3e6d85cec1af4fbcc8400a6e792325f90d3254a644bcfb14ed0bb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Aug 1, 2026.

Transparency log

Security for cvglue 1.4.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cvglue-1.4.0.tar.gz

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 Aug 1, 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