Skip to main content

Glue tools of computer vision

Project description

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
SegmentAnything 通用分割 https://github.com/facebookresearch/segment-anything
InsightFace faceid 提取/人脸属性 https://github.com/TreB1eN/InsightFace_Pytorch
AttributeDetector 人脸属性 https://github.com/ageitgey/face_recognition

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cvglue-1.0.0.tar.gz (20.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cvglue-1.0.0-py3-none-any.whl (18.4 MB view details)

Uploaded Python 3

File details

Details for the file cvglue-1.0.0.tar.gz.

File metadata

  • Download URL: cvglue-1.0.0.tar.gz
  • Upload date:
  • Size: 20.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for cvglue-1.0.0.tar.gz
Algorithm Hash digest
SHA256 38900ce4f231d2152354586db5d5dd0564d774a2b1ebf4b1221423f6ce152f7b
MD5 fa24d9c9436e1aa32394ed05ac0cb379
BLAKE2b-256 5b5a44a05486dd64978b42895e49658a90dc2a0600db45a0a3479915ae684511

See more details on using hashes here.

File details

Details for the file cvglue-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cvglue-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for cvglue-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53246be20123bf06ae3db75d02db34fd3dec578aae07963c2c770aad113fea0d
MD5 e42f7ca5232117405f6cdaf025a7d003
BLAKE2b-256 cd2917a3d5501ec4e33f816b7a3f619fd466b0d2c848746381bf8c3edaab3c68

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page