hybridgroup/gocv
Go package for computer vision using OpenCV 4 and beyond. Includes support for DNN, CUDA, OpenCV Contrib, and OpenVINO.
What it solves
GoCV 为 OpenCV 4 提供 Go 语言绑定,允许开发者在 Go 生态系统中使用强大的计算机视觉库。它解决了旧版或停滞的绑定无法支持更新的 OpenCV 版本的问题,使 Go 程序员能够访问现代计算机视觉算法和硬件加速。
How it works
该项目使用 C 风格的包装器封装 OpenCV 4 C++ 类。此方法避免了使用 SWIG 的复杂性,并确保映射紧密遵循原始 OpenCV 项目结构,使得定位和实现新特性更加容易。
Who it’s for
需要在应用程序中实现计算机视觉任务(如人脸检测、目标计数和视频流)的 Go 开发者。
Highlights
- Hardware Acceleration: Supports CUDA for Nvidia GPUs and Intel OpenVINO for optimized performance.
- Cross-Platform: Compatible with Linux, Docker, macOS, and Windows.
- Memory Profiling: Includes a custom
Matprofiler to help developers detect and repair memory leaks caused by C-based image allocations. - Broad Functionality: Supports a wide range of utilities, including DNNs for face tracking and MJPEG streaming.