Skip to content

This is a simple test using OpenCv DNN module load SSD model running in different language, compare their running speed.

Notifications You must be signed in to change notification settings

died/OpenCvDnnSpeedCompare

Repository files navigation

OpenCV DNN Speed Test in Python / C# / C++

This is a simple test using OpenCv DNN module load SSD model running in different language, compare their running speed.

Test environment

Python
C#
  • .NET Framework 4.7
  • EmguCV 3.3.0.2824
  • OpenCvSharp 3.3.1.20171117 🆕
C++
  • VC14
  • OpenCv 3.3.1

System

  • Windows 10 Pro 64bit

Hardware

  • Intel Core i7-7820HQ @ 2.90GHz
    GPU didn't list because OpenCV DNN module can't enable GPU right now

Model

  • SSD / PASCAL VOC models : 07++12+COCO: SSD512 from here

Result

result chart

RunTime

  • Python with OpenCV: 1510 ms
  • C# with OpenCvSharp: 1917 ms 🆕
  • C# with EmguCV: 4041 ms
  • C++ with OpenCV: 9306 ms

Source Code

  • Python : OpenCvSSD.py
  • C++ : OpenCvSsdCplus.cpp
  • C# EmguCV : emguCvSsd.cs
  • C# OpenCvSharp : OpenCvSharpDnn\

More detail please check blog article: OpenCV DNN speed compare in Python, C#, C++.
2017/12/15 add OpenCvSharp Dnn Test.


About

This is a simple test using OpenCv DNN module load SSD model running in different language, compare their running speed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published