Run with: g++ optical_flow.cpp -o opencv pkg-config --cflags --libs opencv
deshanadesai / opticalflow Goto Github PK
View Code? Open in Web Editor NEWOptical Flow C++ code for GPU
Optical Flow C++ code for GPU
Run with: g++ optical_flow.cpp -o opencv pkg-config --cflags --libs opencv
Hi, I encountered an error while running your code. The compile was good. The full log is
(py35) ddeng@ddeng-System-Product-Name:/newdisk/OpticalFlow$ ./opencv
Usage : ./opencv <frame0> <frame1>
OpenCV Error: Gpu API call (no kernel image is available for execution on the device) in call, file /newdisk/opencv-3.1.0/modules/cudev/include/opencv2/cudev/grid/detail/transform.hpp, line 318
terminate called after throwing an instance of 'cv::Exception'
what(): /newdisk/opencv-3.1.0/modules/cudev/include/opencv2/cudev/grid/detail/transform.hpp:318: error: (-217) no kernel image is available for execution on the device in function call
Aborted (core dumped)
My PC info:
OS: Ubuntu 16.04
GPU: NVIDIA GTX1080TI
CUDA: 10.0
OpenCV: 3.1.0, which is installed in this directory: /newdisk/opencv-3.1.0/
Do you think this problem is caused by the compilation of OpenCV with CUDA? Hope I can get some hints from you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.