opencv/opencv_zoo

Model Zoo For OpenCV DNN and Benchmarks.

What it solves

OpenCV Zoo provides a central place to find pre-trained models that are specifically tuned to work with OpenCV's deep neural network (DNN) module. It saves developers the effort of hunting for compatible models and gives them ready-to-run demo scripts plus performance benchmarks across many different hardware platforms, so they can quickly choose a model that fits their device and speed requirements.

How it works

This repository hosts a set of model directories, each containing model files, demo scripts, and example outputs. You install the latest opencv-python package, clone the repo with Git LFS to pull the large model files, and then run the demos. Benchmarks are provided as a color-coded table that shows inference time (preprocess + forward + postprocess) for each model on various hardware setups, including x86-64 CPUs, ARM boards, and RISC-V devices. The benchmark configuration lets you reproduce results on your own hardware.

Who it's for

Developers and engineers who want to deploy computer vision models using OpenCV's DNN module on edge devices, embedded systems, or regular PCs. It's especially useful for those who need quick, pre-tuned models for common tasks like face detection, face recognition, human segmentation, object detection, pose estimation, text detection, and more, and who care about performance on specific hardware.

Highlights

  • Models tuned for OpenCV DNN, covering face detection, face recognition, facial expression, human/object/person detection, segmentation, pose estimation, QR code, and text detection/recognition.
  • Benchmarks on a wide range of hardware: Intel Core i7, Khadas VIM3/VIM4, Rockchip boards, Huawei Atlas, NVIDIA Jetson, Raspberry Pi, RISC-V boards, and more.
  • Each model comes with demo scripts and example outputs, so you can see the results immediately.
  • The project is now hosted on Hugging Face for easy access to models and online demos.
  • Licensed under Apache 2.0 (individual models may have their own licenses).

Related

  • Project
  • Project
  • Project
  • Project