agethen / dense-flow Goto Github PK
View Code? Open in Web Editor NEWDense Optical Flow extraction rewritten from https://github.com/wanglimin/dense_flow
Dense Optical Flow extraction rewritten from https://github.com/wanglimin/dense_flow
Hi agethen,
I typed in the example command usage and obtained the flow_x_chk0.flow and flow_y_chk0.flow files. I noticed in the src code, "denseFlow_gpu_cv3.cc", that there are no args for "--imgFile".
Has this function been deprecated?
Thanks.
When I make, there is an error:
g++ -std=c++11 -Wfatal-errors -DSERIALIZE_BUFFER -I/home/phd/01/agethen/local/libopencv/include -Iinclude/ -c src/dense_flow_gpu.cc
g++ -std=c++11 -Wfatal-errors -DSERIALIZE_BUFFER -I/home/phd/01/agethen/local/libopencv/include -Iinclude/ -c src/toolbox.cc
g++ -o build/denseFlow_gpu dense_flow_gpu.o toolbox.o -L/home/phd/01/agethen/local/libopencv/lib -lopencv_core -lopencv_cudaoptflow -lopencv_imgcodecs -lopencv_highgui -lopencv_imgproc -lopencv_videoio -lboost_serialization
/usr/bin/ld: warning: libopencv_imgproc.so.3.2, needed by //usr/local/lib/libopencv_cudaoptflow.so, may conflict with libopencv_imgproc.so.2.4
/usr/bin/ld: warning: libopencv_core.so.3.2, needed by //usr/local/lib/libopencv_cudaoptflow.so, may conflict with libopencv_core.so.2.4
/usr/bin/ld: dense_flow_gpu.o: undefined reference to symbol '_ZN2cv4cuda9setDeviceEi'
//usr/local/lib/libopencv_core.so.3.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 1
Hi , the problem 'can't find libopencv_core.so.3.3' has been solved。
And now when I run './denseFlow_gpu --vidFile="video.mp4" --xFlowFile="flow_x" --yFlowFile="flow_y" --imgFile="im" --bound=16 --type=2 --device_id=0 --step=10'
I got :
(DEBUG) try_init_v4l2 VIDIOC_QUERYCAP "video.mp4": Function not implemented
Unable to stop the stream: Function not implemented
Could not open video video.mp4
Processing file: video.mp4 (0 frames)
I have OpenCV 3.3.1 and CentOS 7 . And when I compiled OpenCV 3.3.1 ,I didn't install FFMPEG and other expansion pack. Is that the problem?
Here is my result when I compile OpenCV after I run 'cmake':
-- cvconfig.h is in: /nfs/project/maao/codes/tools/opencv-3.3.1/build
Can you tell me what expansion packs I need to install ?
Hi,I really want to reappear your codes.
And now I have compiled OpenCV-3.3.1.After I run 'make simple',I got 'denseflow_gpu' in ./build and I put 'video.mp4' in it。
However,when I run './denseFlow_gpu --vidFile="video.mp4" --xFlowFile="flow_x" --yFlowFile="flow_y" --imgFile="im" --bound=16 --type=2 --device_id=0 --step=10' ,
I got './denseFlow_gpu: error while loading shared libraries: libopencv_core.so.3.3: cannot open shared object file: No such file or directory'。
I have modify your 'Makefile.config' like this :
FLAGS=-std=c++11 -Wfatal-errors
INCLUDE=-I/nfs/project/maao/codes/tools/opencv-3.3.1-install/include -Iinclude/
LIB=-L/nfs/project/maao/codes/tools/opencv-3.3.1-install/lib
OUT=build
And in the folder '/nfs/project/maao/codes/tools/opencv-3.3.1-install/lib' , I have these files:
lrwxrwxrwx 1 maao maao 24 Oct 22 10:08 libopencv_calib3d.so -> libopencv_calib3d.so.3.3
lrwxrwxrwx 1 maao maao 26 Oct 22 10:08 libopencv_calib3d.so.3.3 -> libopencv_calib3d.so.3.3.1
-rwxr-xr-x 1 maao maao 7063568 Oct 22 10:03 libopencv_calib3d.so.3.3.1
lrwxrwxrwx 1 maao maao 21 Oct 22 10:07 libopencv_core.so -> libopencv_core.so.3.3
lrwxrwxrwx 1 maao maao 23 Oct 22 10:07 libopencv_core.so.3.3 -> libopencv_core.so.3.3.1
-rwxr-xr-x 1 maao maao 37645640 Oct 22 09:56 libopencv_core.so.3.3.1
lrwxrwxrwx 1 maao maao 27 Oct 22 10:07 libopencv_cudaarithm.so -> libopencv_cudaarithm.so.3.3
lrwxrwxrwx 1 maao maao 29 Oct 22 10:07 libopencv_cudaarithm.so.3.3 -> libopencv_cudaarithm.so.3.3.1
-rwxr-xr-x 1 maao maao 204497040 Oct 22 09:58 libopencv_cudaarithm.so.3.3.1
lrwxrwxrwx 1 maao maao 27 Oct 22 10:07 libopencv_cudabgsegm.so -> libopencv_cudabgsegm.so.3.3
lrwxrwxrwx 1 maao maao 29 Oct 22 10:07 libopencv_cudabgsegm.so.3.3 -> libopencv_cudabgsegm.so.3.3.1
-rwxr-xr-x 1 maao maao 2101792 Oct 22 10:00 libopencv_cudabgsegm.so.3.3.1
lrwxrwxrwx 1 maao maao 26 Oct 22 10:08 libopencv_cudacodec.so -> libopencv_cudacodec.so.3.3
lrwxrwxrwx 1 maao maao 28 Oct 22 10:08 libopencv_cudacodec.so.3.3 -> libopencv_cudacodec.so.3.3.1
-rwxr-xr-x 1 maao maao 632528 Oct 22 10:03 libopencv_cudacodec.so.3.3.1
lrwxrwxrwx 1 maao maao 31 Oct 22 10:08 libopencv_cudafeatures2d.so -> libopencv_cudafeatures2d.so.3.3
lrwxrwxrwx 1 maao maao 33 Oct 22 10:08 libopencv_cudafeatures2d.so.3.3 -> libopencv_cudafeatures2d.so.3.3.1
-rwxr-xr-x 1 maao maao 32633288 Oct 22 10:04 libopencv_cudafeatures2d.so.3.3.1
lrwxrwxrwx 1 maao maao 28 Oct 22 10:07 libopencv_cudafilters.so -> libopencv_cudafilters.so.3.3
lrwxrwxrwx 1 maao maao 30 Oct 22 10:07 libopencv_cudafilters.so.3.3 -> libopencv_cudafilters.so.3.3.1
-rwxr-xr-x 1 maao maao 394519880 Oct 22 10:00 libopencv_cudafilters.so.3.3.1
lrwxrwxrwx 1 maao maao 28 Oct 22 10:07 libopencv_cudaimgproc.so -> libopencv_cudaimgproc.so.3.3
lrwxrwxrwx 1 maao maao 30 Oct 22 10:07 libopencv_cudaimgproc.so.3.3 -> libopencv_cudaimgproc.so.3.3.1
-rwxr-xr-x 1 maao maao 42444840 Oct 22 10:01 libopencv_cudaimgproc.so.3.3.1
lrwxrwxrwx 1 maao maao 27 Oct 22 10:08 libopencv_cudalegacy.so -> libopencv_cudalegacy.so.3.3
lrwxrwxrwx 1 maao maao 29 Oct 22 10:08 libopencv_cudalegacy.so.3.3 -> libopencv_cudalegacy.so.3.3.1
-rwxr-xr-x 1 maao maao 14489608 Oct 22 10:04 libopencv_cudalegacy.so.3.3.1
lrwxrwxrwx 1 maao maao 30 Oct 22 10:08 libopencv_cudaobjdetect.so -> libopencv_cudaobjdetect.so.3.3
lrwxrwxrwx 1 maao maao 32 Oct 22 10:08 libopencv_cudaobjdetect.so.3.3 -> libopencv_cudaobjdetect.so.3.3.1
-rwxr-xr-x 1 maao maao 2411672 Oct 22 10:04 libopencv_cudaobjdetect.so.3.3.1
lrwxrwxrwx 1 maao maao 28 Oct 22 10:08 libopencv_cudaoptflow.so -> libopencv_cudaoptflow.so.3.3
lrwxrwxrwx 1 maao maao 30 Oct 22 10:08 libopencv_cudaoptflow.so.3.3 -> libopencv_cudaoptflow.so.3.3.1
-rwxr-xr-x 1 maao maao 36048904 Oct 22 10:05 libopencv_cudaoptflow.so.3.3.1
lrwxrwxrwx 1 maao maao 27 Oct 22 10:08 libopencv_cudastereo.so -> libopencv_cudastereo.so.3.3
lrwxrwxrwx 1 maao maao 29 Oct 22 10:08 libopencv_cudastereo.so.3.3 -> libopencv_cudastereo.so.3.3.1
-rwxr-xr-x 1 maao maao 14834000 Oct 22 10:05 libopencv_cudastereo.so.3.3.1
lrwxrwxrwx 1 maao maao 28 Oct 22 10:07 libopencv_cudawarping.so -> libopencv_cudawarping.so.3.3
lrwxrwxrwx 1 maao maao 30 Oct 22 10:07 libopencv_cudawarping.so.3.3 -> libopencv_cudawarping.so.3.3.1
-rwxr-xr-x 1 maao maao 64280096 Oct 22 10:01 libopencv_cudawarping.so.3.3.1
lrwxrwxrwx 1 maao maao 22 Oct 22 10:07 libopencv_cudev.so -> libopencv_cudev.so.3.3
lrwxrwxrwx 1 maao maao 24 Oct 22 10:07 libopencv_cudev.so.3.3 -> libopencv_cudev.so.3.3.1
-rwxr-xr-x 1 maao maao 9392 Oct 21 19:40 libopencv_cudev.so.3.3.1
lrwxrwxrwx 1 maao maao 20 Oct 22 10:08 libopencv_dnn.so -> libopencv_dnn.so.3.3
lrwxrwxrwx 1 maao maao 22 Oct 22 10:08 libopencv_dnn.so.3.3 -> libopencv_dnn.so.3.3.1
-rwxr-xr-x 1 maao maao 31804384 Oct 22 10:02 libopencv_dnn.so.3.3.1
lrwxrwxrwx 1 maao maao 27 Oct 22 10:08 libopencv_features2d.so -> libopencv_features2d.so.3.3
lrwxrwxrwx 1 maao maao 29 Oct 22 10:08 libopencv_features2d.so.3.3 -> libopencv_features2d.so.3.3.1
-rwxr-xr-x 1 maao maao 5862000 Oct 22 10:03 libopencv_features2d.so.3.3.1
lrwxrwxrwx 1 maao maao 22 Oct 22 10:07 libopencv_flann.so -> libopencv_flann.so.3.3
lrwxrwxrwx 1 maao maao 24 Oct 22 10:07 libopencv_flann.so.3.3 -> libopencv_flann.so.3.3.1
-rwxr-xr-x 1 maao maao 2519296 Oct 22 09:58 libopencv_flann.so.3.3.1
lrwxrwxrwx 1 maao maao 24 Oct 22 10:08 libopencv_highgui.so -> libopencv_highgui.so.3.3
lrwxrwxrwx 1 maao maao 26 Oct 22 10:08 libopencv_highgui.so.3.3 -> libopencv_highgui.so.3.3.1
-rwxr-xr-x 1 maao maao 376184 Oct 22 09:57 libopencv_highgui.so.3.3.1
lrwxrwxrwx 1 maao maao 26 Oct 22 10:08 libopencv_imgcodecs.so -> libopencv_imgcodecs.so.3.3
lrwxrwxrwx 1 maao maao 28 Oct 22 10:08 libopencv_imgcodecs.so.3.3 -> libopencv_imgcodecs.so.3.3.1
-rwxr-xr-x 1 maao maao 13581208 Oct 22 09:57 libopencv_imgcodecs.so.3.3.1
lrwxrwxrwx 1 maao maao 24 Oct 22 10:07 libopencv_imgproc.so -> libopencv_imgproc.so.3.3
lrwxrwxrwx 1 maao maao 26 Oct 22 10:07 libopencv_imgproc.so.3.3 -> libopencv_imgproc.so.3.3.1
-rwxr-xr-x 1 maao maao 54563760 Oct 22 09:56 libopencv_imgproc.so.3.3.1
lrwxrwxrwx 1 maao maao 19 Oct 22 10:07 libopencv_ml.so -> libopencv_ml.so.3.3
lrwxrwxrwx 1 maao maao 21 Oct 22 10:07 libopencv_ml.so.3.3 -> libopencv_ml.so.3.3.1
-rwxr-xr-x 1 maao maao 4292152 Oct 22 09:59 libopencv_ml.so.3.3.1
lrwxrwxrwx 1 maao maao 26 Oct 22 10:07 libopencv_objdetect.so -> libopencv_objdetect.so.3.3
lrwxrwxrwx 1 maao maao 28 Oct 22 10:07 libopencv_objdetect.so.3.3 -> libopencv_objdetect.so.3.3.1
-rwxr-xr-x 1 maao maao 6730448 Oct 22 09:59 libopencv_objdetect.so.3.3.1
lrwxrwxrwx 1 maao maao 22 Oct 22 10:08 libopencv_photo.so -> libopencv_photo.so.3.3
lrwxrwxrwx 1 maao maao 24 Oct 22 10:08 libopencv_photo.so.3.3 -> libopencv_photo.so.3.3.1
-rwxr-xr-x 1 maao maao 5842616 Oct 22 10:02 libopencv_photo.so.3.3.1
lrwxrwxrwx 1 maao maao 22 Oct 22 10:08 libopencv_shape.so -> libopencv_shape.so.3.3
lrwxrwxrwx 1 maao maao 24 Oct 22 10:08 libopencv_shape.so.3.3 -> libopencv_shape.so.3.3.1
-rwxr-xr-x 1 maao maao 1716080 Oct 22 10:02 libopencv_shape.so.3.3.1
lrwxrwxrwx 1 maao maao 26 Oct 22 10:08 libopencv_stitching.so -> libopencv_stitching.so.3.3
lrwxrwxrwx 1 maao maao 28 Oct 22 10:08 libopencv_stitching.so.3.3 -> libopencv_stitching.so.3.3.1
-rwxr-xr-x 1 maao maao 5304632 Oct 22 10:05 libopencv_stitching.so.3.3.1
lrwxrwxrwx 1 maao maao 25 Oct 22 10:08 libopencv_superres.so -> libopencv_superres.so.3.3
lrwxrwxrwx 1 maao maao 27 Oct 22 10:08 libopencv_superres.so.3.3 -> libopencv_superres.so.3.3.1
-rwxr-xr-x 1 maao maao 2101216 Oct 22 10:06 libopencv_superres.so.3.3.1
lrwxrwxrwx 1 maao maao 24 Oct 22 10:08 libopencv_videoio.so -> libopencv_videoio.so.3.3
lrwxrwxrwx 1 maao maao 26 Oct 22 10:08 libopencv_videoio.so.3.3 -> libopencv_videoio.so.3.3.1
-rwxr-xr-x 1 maao maao 1221024 Oct 22 09:57 libopencv_videoio.so.3.3.1
lrwxrwxrwx 1 maao maao 22 Oct 22 10:07 libopencv_video.so -> libopencv_video.so.3.3
lrwxrwxrwx 1 maao maao 24 Oct 22 10:07 libopencv_video.so.3.3 -> libopencv_video.so.3.3.1
-rwxr-xr-x 1 maao maao 5690976 Oct 22 10:00 libopencv_video.so.3.3.1
lrwxrwxrwx 1 maao maao 26 Oct 22 10:08 libopencv_videostab.so -> libopencv_videostab.so.3.3
lrwxrwxrwx 1 maao maao 28 Oct 22 10:08 libopencv_videostab.so.3.3 -> libopencv_videostab.so.3.3.1
-rwxr-xr-x 1 maao maao 3176280 Oct 22 10:06 libopencv_videostab.so.3.3.1
Can you tell me why the program can't find 'libopencv_core.so.3.3' ?
Hi,
I am applying this code to a video of 164 frames and I get some full-black flow images. Is there a way to address this problem? I don't even know why it may be happening. I got the same results from the original code.
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.