OpenCV VS opencv_contrib

Compare OpenCV vs opencv_contrib and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
OpenCV opencv_contrib
196 19
75,566 9,067
1.6% 1.1%
9.9 8.3
1 day ago 6 days ago
C++ C++
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

OpenCV

Posts with mentions or reviews of OpenCV. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-13.

opencv_contrib

Posts with mentions or reviews of opencv_contrib. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-17.
  • [Question] How to find affine transformation between contours?
    1 project | /r/opencv | 15 Jul 2023
    I managed to use the cv2.ximgproc.ContourFitting in cpp instead of python with the help of the demo: https://github.com/opencv/opencv_contrib/blob/3.4.0/modules/ximgproc/samples/fourier_descriptors_demo.cpp
  • I was Trying to install Opencv with Cuda in my TX2 NX- but facing this issue....., also i tried to install it through Nvidia SDK but got multimedia error.
    2 projects | /r/robotics | 17 May 2023
  • how to fix failed to fetch error when installing OpenCV on raspberry pi?
    2 projects | /r/rasberrypi | 10 May 2023
    wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.1.0.zip
  • Fix(WeChat_qrcode): Init nBytes after the count value is determined
    1 project | news.ycombinator.com | 24 Apr 2023
  • [Bug] Can't compile OpenCV on Ubuntu 22.04 Nvidia 525.60.13 Cuda 12
    1 project | /r/opencv | 15 Dec 2022
  • [Bug] Problem compiling OpenCV with CUDA support on Ubuntu
    1 project | /r/opencv | 13 Dec 2022
    The issue has been reported here: https://github.com/opencv/opencv_contrib/issues/3390
  • TrackerCSRT source code
    2 projects | /r/computervision | 21 Nov 2022
  • Docker multi-architecture, .NET 6.0 and OpenCVSharp
    6 projects | dev.to | 17 May 2022
    FROM debian:bullseye-slim AS build-native-env ARG TARGETPLATFORM ENV DEBIAN_FRONTEND=noninteractive # 4.5.5: released 25 Dec 2021 ENV OPENCV_VERSION=4.5.5 # 4.5.3.20211228: released 28 Dec 2021 ENV OPENCVSHARP_VERSION=4.5.3.20211228 WORKDIR / # install dependencies required for building OpenCV and OpenCvSharpExtern RUN apt-get update && apt-get -y install --no-install-recommends \ # details omitted \ libgdiplus # Get OpenCV and opencv-contrib sources using the specified release. RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \ unzip ${OPENCV_VERSION}.zip && \ rm ${OPENCV_VERSION}.zip && \ mv opencv-${OPENCV_VERSION} opencv RUN wget https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip && \ unzip ${OPENCV_VERSION}.zip && \ rm ${OPENCV_VERSION}.zip && \ mv opencv_contrib-${OPENCV_VERSION} opencv_contrib # configure and build OpenCV optionally specifying architecture related cmake options. RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ ADDITIONAL_FLAGS='' ; \ elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \ ADDITIONAL_FLAGS='-D ENABLE_NEON=ON -D CPU_BASELINE=NEON ' ; \ elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \ ADDITIONAL_FLAGS='-D CPU_BASELINE=NEON -D ENABLE_NEON=ON ' ; \ fi && cd opencv && mkdir build && cd build && \ cmake $ADDITIONAL_FLAGS \ # additional flags omitted for clarity \ && make -j$(nproc) \ && make install \ && ldconfig # Download OpenCvSharp to build OpenCvSharpExtern native library RUN git clone https://github.com/shimat/opencvsharp.git RUN cd opencvsharp && git fetch --all --tags --prune && git checkout ${OPENCVSHARP_VERSION} WORKDIR /opencvsharp/src RUN mkdir /opencvsharp/make \ && cd /opencvsharp/make \ && cmake -D CMAKE_INSTALL_PREFIX=/opencvsharp/make /opencvsharp/src \ && make -j$(nproc) \ && make install \ && cp /opencvsharp/make/OpenCvSharpExtern/libOpenCvSharpExtern.so /usr/lib/ \ && ldconfig # Copy the library and dependencies to /artifacts (to be used by images consuming this build) # cpld.sh will copy the library we specify (./libOpenCvSharpExtern.so) and any dependencies # to the /artifacts directory. This is useful for sharing the library with other images # consuming this build. # credits: Hemanth.HM -> https://h3manth.com/content/copying-shared-library-dependencies WORKDIR /opencvsharp/make/OpenCvSharpExtern COPY cpld.sh . RUN chmod +x cpld.sh && \ mkdir /artifacts && \ ./cpld.sh ./libOpenCvSharpExtern.so /artifacts/ RUN cp ./libOpenCvSharpExtern.so /artifacts/ # Publish the artefacts using a clean image FROM debian:bullseye-slim AS final RUN mkdir /artifacts COPY --from=build-native-env /artifacts/ /artifacts WORKDIR /artifacts
  • [Question] Easiest way to detect ethnicity using OpenCV & C++?
    1 project | /r/opencv | 16 Jan 2022
    As the title implies, I'm looking for the simplest way to detect race/ethnicity in a photo (or a frame by frame video, shouldn't big a big difference) using OpenCV (I'm using the opencv-contrib build) and C++. I'm a complete beginner.
  • HOWTO: Install OpenCV in Raspberry Pi OS (Buster)
    3 projects | /r/raspberry_pi | 21 Oct 2021
    git clone https://github.com/opencv/opencv.git git clone https://github.com/opencv/opencv_contrib.git mkdir ~/opencv/build cd ~/opencv/build

What are some alternatives?

When comparing OpenCV and opencv_contrib you can also consider the following projects:

libvips - A fast image processing library with low memory needs.

zephyr - Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.

VTK - Mirror of Visualization Toolkit repository

openpose - OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation

yolov5 - YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite

OpenCvSharp - OpenCV wrapper for .NET

CImg - The CImg Library is a small and open-source C++ toolkit for image processing

dotnet-docker - Docker images for .NET and the .NET Tools.

EasyOCR - Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.

OpenFrameworks - openFrameworks is a community-developed cross platform toolkit for creative coding in C++.

Boost.GIL - Boost.GIL - Generic Image Library | Requires C++14 since Boost 1.80

docker-multi-arch-opencvsharp - A demonstration of Docker multi architecture build for native dependencies for amd64, amrm64 and arm32 architecture