OpenCV Lucas-Kanade object tracking: slow down in Windows

asked 2020-05-26 05:03:31 -0500

Bach gravatar image

Hi, with some of my collegues I'm developing a program for the university. The probles is that in my Windows PC the program run very slower (3-4 times) than in my group mate PCs on Linux and MacOS. It's obviously the same source code. I tried on my notebook and also on the desktop PC, but the performance are the same. I'm developing and compiling with Visual Studio.

We are basically implementing an object tracking using OpenCV, in particular buildOpticalFlowPyramid() and calcOpticalFlowPyrLK() functions. I also detected that the principal slow down is due to buildOpticalFlowPyramid().

Has anyone some explanation about this?

PC specs:

  • My notebook: Intel i5 10210U 4C/8T 1.6-4.2 GHz, 8 GB RAM, Intel UHD 620
  • My desktop: Intel i5 6600 4C/4T 3,3-3,9 GHz, 16 GB RAM, AMD FirePro W2100
  • PC mate 1: Intel i7-7700HQ 4C/8T 2.80 - 3.41 GHz, 16 GB RAM, NVIDIA GeForce GTX 1050
  • PC mate 2: 2,9 GHz Intel Core i5 dual-core, 8 GB, Intel Iris Graphics 6100
edit retag flag offensive close merge delete