Yolo_mark icon indicating copy to clipboard operation
Yolo_mark copied to clipboard

error: ‘SparsePyrLKOpticalFlow’ is not a member of ‘cv’

Open filmnamu opened this issue 4 years ago • 9 comments

hello, I tried to compile using opencv 2.4.11 and i keep getting the Screenshot from 2019-09-11 18-22-48

filmnamu avatar Sep 11 '19 09:09 filmnamu

window 10, opencv 3.4.7 and faced same problem.

PlanNoa avatar Sep 17 '19 02:09 PlanNoa

hello, I tried to compile using opencv 2.4.11 and i keep getting the Screenshot from 2019-09-11 18-22-48

Have you sovled the problem yet?

yojayc avatar Oct 11 '19 08:10 yojayc

I got same error in opencv 3.4.7 but I could solve this problem in 2.4.13 on windows 10.

PlanNoa avatar Oct 11 '19 16:10 PlanNoa

The problem in ubuntu was not solved, but no error occurred in windows 10.

filmnamu avatar Oct 14 '19 00:10 filmnamu

It seems that in opencv 3.1.0 ‘SparsePyrLKOpticalFlow’ is a member of cv::cuda, which means that I need to compile opencv with the cuda option activated. Does recompiling opencv with cuda, modifying the main.cpp by adding #include "cudaoptflow.hpp" and replacing cv::SparsePyrLKOpticalFlow by cv::cuda::SparsePyrLKOpticalFlow solves the problem (at least if you have a gpu) ?

TidelyPom avatar Oct 15 '19 13:10 TidelyPom

I am with the same problem

isabelapt avatar Nov 13 '19 14:11 isabelapt

Me too!

ambr89 avatar Nov 18 '19 10:11 ambr89

Hi all, got the same problem, the last working commit for me is 1ecd253d4e2ef04fd11aee60338ed109eb1129bf "Added O - button to copy previous bboxes with object tracking"

scamianbas avatar Mar 03 '20 09:03 scamianbas

When I using opencv 3.1.x, same error. change to opencv 4.1.x, it's solved!

yangyoungLive avatar Apr 09 '20 13:04 yangyoungLive