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 Mat profiler 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.