# go-opencv/go-opencv

Go bindings for OpenCV / 2.x API in gocv / 1.x API in opencv

Repository: https://github.com/go-opencv/go-opencv
Canonical: https://ross.abutalabs.com/products/go-opencv
Language: Go
License: BSD-3-Clause
License Family: permissive
Last push: 2023-03-30T20:19:32+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4650, "days_push": 1252, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1324, forks 191 (observed 2026-08-28T04:04:22.432705+00:00)

## What it is
Go bindings for the OpenCV computer vision library, exposing the OpenCV 1.x C API via CGO and an experimental OpenCV 2.x C++ API (the gocv subpackage) via SWIG. It allows Go programs to perform image and video processing by linking against a native OpenCV installation on Linux, macOS, or Windows.

## Use cases
- use opencv from go
- process images in golang
- face detection in a go program
- read video frames with go
- go bindings for opencv 2 c++ api
- computer vision library for go
- convert cv::Mat to a go matrix

## When to choose
- You need to call the legacy OpenCV 1.x C API from Go through CGO
- You are maintaining an existing codebase already built on this binding
- You want to experiment with partial OpenCV 2 API access via the SWIG-based gocv subpackage

## When to avoid
- You want an actively maintained, well-documented Go OpenCV binding - hybridgroup/gocv is the modern standard
- You need comprehensive OpenCV 2+ or OpenCV 4 coverage, since the gocv wrapper here is incomplete and under-documented
- You want cross-platform builds without manually installing and configuring native OpenCV and MinGW

## Facets
- artifact type: library
- maturity: maintenance
- function: computer-vision, image-processing, video-processing
- domain: computer-vision, image-processing, cross-platform
- platform: go, windows, cross-platform
- tags: opencv-bindings, cgo, swig, golang, opencv1, opencv2, legacy, fork, linux, macos

## Member repositories
- go-opencv/go-opencv (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:22.432705+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:47:00.590596+00:00, confidence not recorded.
  - readme: https://github.com/go-opencv/go-opencv (fetched 2026-08-28T04:04:22.432705+00:00, sha 63b6fbd7bfc9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
