Ask Your Question
0

How to use cudaoptflow in python [closed]

asked 2019-10-23 22:07:00 -0500

I have build opencv4.1.0 with opencv-contrib, python2.7, cuda9.0 in centos7 successfully.And I want to use GPU to speed up TVL1 calculate. But when I use cv.cuda.OpticalFlowDual_TVL1 or cv.cudaoptflow it will retrun error 'module' object has no attribute.But in C++, we can find cv::cuda::OpticalFlowDual_TVL1. How can I do the same work in python ?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dagongji09
close date 2019-10-24 07:55:06.086685

Comments

Can you provide the code you are using to call OpticalFlowDual_TVL1 from python?

cudawarped gravatar imagecudawarped ( 2019-10-24 04:23:55 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-10-24 04:27:04 -0500

updated 2019-10-24 04:27:42 -0500

In fact, I have solved this problem.Now I can use GPU like that cv.cuda_OpticalFlowDual_TVL1.create() just as C++ do but not the same. Thks.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-10-23 22:07:00 -0500

Seen: 138 times

Last updated: Oct 23 '19