OpenCV VS yolov5

Compare OpenCV vs yolov5 and see what are their differences.

Our great sponsors
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Mergify - Updating dependencies is time-consuming.
  • SonarCloud - Analyze your C and C++ projects with just one click.
OpenCV yolov5
187 127
71,271 41,711
1.4% 3.2%
9.6 9.0
3 days ago 4 days ago
C++ Python
Apache License 2.0 GNU Affero General Public License v3.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.


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-08-20.
  • VidCutter: A program for lossless video cutting
    5 projects | | 20 Aug 2023
  • Looking to recreate a cool AI assistant project with free tools
    3 projects | /r/selfhosted | 2 Aug 2023
    - [ OpenCV]( instead of YoloV8 for computer vision and object detection
    3 projects | /r/techsupport | 2 Aug 2023
    I came across a very interesting [project]( (4) Mckay Wrigley on Twitter: "My goal is to (hopefully!) add my house to the dataset over time so that I have an indoor assistant with knowledge of my surroundings. It’s basically just a slow process of building a good enough dataset. I hacked this together for 2 reasons: 1) It was fun, and I wanted to…" / X ) made by Mckay Wrigley and I was wondering what's the easiest way to implement it using free, open-source software. Here's what he used originally, followed by some open source candidates I'm considering but would love feedback and advice before starting: Original Tools: - YoloV8 does the heavy lifting with the object detection - OpenAI Whisper handles voice - GPT-4 handles the “AI” - Google Custom Search Engine handles web browsing - MacOS/iOS handles streaming the video from my iPhone to my Mac - Python for the rest Open Source Alternatives: - [ OpenCV]( instead of YoloV8 for computer vision and object detection - Replacing GPT-4 is still a challenge as I know there are some good open-source LLms like Llama 2, but I don't know how to apply this in the code perhaps in the form of api - [DeepSpeech]( rather than Whisper for offline speech-to-text - [Coqui TTS]( instead of Whisper for text-to-speech - Browser automation with [Selenium]( instead of Google Custom Search - Stream video from phone via RTSP instead of iOS integration - Python for rest of code I'm new to working with tools like OpenCV, DeepSpeech, etc so would love any advice on the best way to replicate the original project in an open source way before I dive in. Are there any good guides or better resources out there? What are some pitfalls to avoid? Any help is much appreciated!
  • [Question] I'd like to find out about how the x, y, w, h values retrieved by detectMultiScale() (for the rectangle boundary during face detection) and how it is calculated in the Haar Cascade OpenCV library. Does anyone know where I can find the code?
    2 projects | /r/computervision | 10 Jul 2023
    Glancing at the code, I think it's detectMultiScaleNoGrouping and then the operator() of CascadeClassifierInvoker gets called. It will probably help you to put a breakpoint and step through that bit of the code.
    2 projects | /r/computervision | 10 Jul 2023
    On GitHub
  • OpenCV VS ppmpp - a user suggested alternative
    2 projects | 22 Jun 2023
  • Analyze defects and errors in the created images
    4 projects | /r/StableDiffusionInfo | 21 Jun 2023
  • What are the limits of blueprints?
    4 projects | /r/unrealengine | 25 May 2023
    You also need C++ if you're going to do things which aren't built in as part of the engine. As an example if you're looking at using compute shaders, inbuilt native APIs such as a mobile phone's location services, or a third-party library such as OpenCV, then you're going to need C++.
  • how to fix failed to fetch error when installing OpenCV on raspberry pi?
    2 projects | /r/rasberrypi | 10 May 2023
    wget -O
  • Interesting problem trying to solve.
    2 projects | /r/node | 5 May 2023
    Another option is using the OpenCV library with Python to extract features from images and compare them using feature matching algorithms like SIFT, SURF, or ORB. This approach is more computationally intensive but might be more accurate in identifying near-duplicates. You can find more information about OpenCV here:


Posts with mentions or reviews of yolov5. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-12.
  • Changing labels of default YOLOv5 model
    2 projects | /r/learnmachinelearning | 12 Jul 2023
    I am using the default YOLOv5m6 model here with sahi/yolov5 library for my object detection project. I want to change just some of labels - for example when YOLO detects a human, I want it to label the human as "threat", not "person". Is there any way I can do it just changing some code, or I should train the model from scratch by just changing labels?
  • SS: Events triggered no matter the detection zone specified
    2 projects | /r/synology | 3 May 2023
    What I did is hand off my detections to an Nvidia GPU running Yolov5 which does the triggering if it's an object class I'm interested in. Since Synology is always caching at least 5 seconds of camera video the 50-100mS delay of grabbing a frame and analyzing before triggering recording is fine. Wish they'd implement something like this.
  • AMD ROCm 5.5 In The Process Of Being Released
    4 projects | /r/Amd | 2 May 2023
    this is about all I could find, maybe you've been getting different degrees of optimized python libs that do the image resizes.
  • good computer vision or deep learning projects in github
    9 projects | /r/deeplearning | 22 Apr 2023
    YOLOv5 (GitHub: is a fast, accurate object detection model with code for training, testing, deployment, and pre-trained weights.
  • [D] Extracting the class labels and bounding boxes for objects, from a YOLO7 model after converting to an ONNX model
    4 projects | /r/MachineLearning | 18 Apr 2023
    Those dimensions suggest you need to apply (i.e. roll your own) non-max suppresion to the outputs: relevant link
  • Thought Dump About Recent AI Advancements And Palantir
    2 projects | /r/PLTR | 29 Mar 2023
    - YOLOv5 (open source, so not Palantir's)
  • How to build computer vision dataset labeling team in-house
    4 projects | | 28 Mar 2023
    A team of annotators and the infrastructure described in this article I needed to label my dataset, which was collected from cameras on the road (30k+ photos). This dataset was necessary to train an object detection model on six classes: [person, car, bus, bicycle, motorcycle, truck]. I released the dataset, created in this manner, as open source, and it can be downloaded here (link) together with trained YOLOv5s and YOLOv5x models from a popular repository (link) using this dataset. The license is simple: "Use it well"!
  • Flutter Object Detection App + YOLOV5 Model.
    3 projects | | 15 Feb 2023
    Before you can use YOLOv5 in your Flutter application, you'll need to train the model on your specific dataset. You can use an existing dataset or create your own dataset to train the model. For this post I am using the pretrained model of yolov5 available on as we are performing object detection we need to converts the pretrained model weights to torchscript format.
  • NotImplementedError (YOLOv5)
    3 projects | /r/pytorch | 12 Feb 2023
    Thank you Link to the codefor taking the time to reply. I have modified the code as you suggested. And now I see the GPU being utilized. But the precision, recall, mAP is all zero. At least it displays as zero.
  • NVIDIA Jetson AGX Orin is now compatible with balena
    4 projects | | 9 Feb 2023
    Read more here about how Theia Scientific is currently using the newest NVIDIA Jetson AGX Orin on their fleet of microscopes. Theia Scientific and Volkov Labs, improved the Jetson AGX Orin inference speeds up to 30FPS. The Jetson AGX Orin running YOLOv5 tripled the Frames-per-Second (FPS) compared with the latest Jetson AGX Xavier.

What are some alternatives?

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

detectron2 - Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.

mmdetection - OpenMMLab Detection Toolbox and Benchmark

darknet - YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )

Deep-SORT-YOLOv4 - People detection and optional tracking with Tensorflow backend.

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

yolor - implementation of paper - You Only Learn One Representation: Unified Network for Multiple Tasks (

VTK - Mirror of Visualization Toolkit repository

yolov5-crowdhuman - Head and Person detection using yolov5. Detection from crowd.

yolov3 - YOLOv3 in PyTorch > ONNX > CoreML > TFLite

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

CenterNet - Object detection, 3D detection, and pose estimation using center point detection:

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