jadarve / optical-flow-filter Goto Github PK
View Code? Open in Web Editor NEWA real time optical flow algorithm implemented on GPU
License: BSD 3-Clause "New" or "Revised" License
A real time optical flow algorithm implemented on GPU
License: BSD 3-Clause "New" or "Revised" License
Modify the code and CMakeLists.txt files so that a .dll can be created and used on Windows applications.
Check https://msdn.microsoft.com/en-AU/library/ms235636.aspx for reference on dll export/import.
Assign to branch windows_dll
How do I get the "flow magnitude(pixel)" as I could see in this following video?
300 Hz Real-time Optical Flow. ANU campus
1.The error which is occurring again and again in the command sudo python setup.py install
is
Traceback (most recent call last):
File "setup.py", line 17, in <module>
from Cython.Build import cythonize
ImportError: No module named Cython.Build
2.Also the python setup.py build
command is not installing or building actually. The command just gets executed within 2-3 seconds. So i guess it's not doing anything in actual. When the command was executed for the first time two warnings were printed several times ,
warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
and after executing that command again
It is printing following lines
running build
running build_py
running build_ext
The cuda version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:03_CDT_2017
Cuda compilation tools, release 9.0, V9.0.176
and the os is
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
So how to fix this ?
And is there any other method to achieve the same results for optical-flow-filter?
Hi Juan,
Sorry, can I ask some question about the paper here?
Why Equation (17) uses ^h\Delta\Phi
rather than ^h\Phi
?
I have not traced your code yet but this has already perplexed me for a long time.
Your paper is great, and code work fine to me! Thanks for your help!
when I run ./flowWebCam, errors occured.
./flowWebCam: error while loading shared libraries: libflowfilter_gpu.so: cannot open shared object file: No such file or directory
Any help?
Best,
Joy Yang
Hi Juan,
Thanks for sharing your code. I'm trying to incorporate your optical flow calculations in my project and have followed your webcam demo to calculate flow using OpenCV. I'm acquiring camera image frames from a pre-recorded video for my processing and always get a flow vector of zero magnitude. I also get the following message on my console:
DeltaFlowFilter::compute(): fisrt load
FlowFilter::compute(): fisrt load
DeltaFlowFilter::compute(): fisrt load
DeltaFlowFilter::compute(): fisrt load
FlowFilter::compute(): fisrt load
This message repeats itself throughout video processing. Do you have any advice? I get the feeling that only a single optical flow is being calculated for the initial frame and state propagation isn't taking place. Thanks for your help!
Can I run this code on laptop using core i7 CPU?
I am sorry if my question is trivial, but is the code implementation has something special to work on GPU only?
Hi,
Really appreciate your sharing. I am now implementing this algorithm to calculate both the forward optical flow ((t-1)->t) and the backward optical flow (t->(t-1)). However, the code
"###filter.loadImage(hostImageGray);
###filter.compute();
###filter.downloadFlow(flowHostWrapper);"
I use can only calculate the forward optical flow ((t-1)->t). May I wonder how to calculate the backward optical flow based on your shared code?
Best,
Jiangtian
Given some optical flow w and camera intrinsic parameters, generate the rotational optical flow and use it for predicting the image at some point in time.
Use Lax-Wendroff scheme for numerical solution of the prediction.
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.