Coder Social home page Coder Social logo

dense-flow's People

Contributors

agethen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dense-flow's Issues

imgFile?

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.

Errors when making

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

(DEBUG) try_init_v4l2 VIDIOC_QUERYCAP "video.mp4": Function not implemented

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':

-- Linker flags (Release):
-- Linker flags (Debug):
-- ccache: NO
-- Precompiled headers: YES
-- Extra dependencies: dl m pthread rt cudart nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda/lib64
-- 3rdparty dependencies:

-- OpenCV modules:
-- To be built: cudev core cudaarithm flann imgproc ml objdetect video cudabgsegm cudafilters cudaimgproc cudawarping dnn imgcodecs photo shape videoio cudacodec highgui ts features2d calib3d cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo stitching superres videostab python2
-- Disabled: js world
-- Disabled by dependency: -
-- Unavailable: java python3 viz

-- GUI:
-- QT: NO
-- GTK+: NO
-- GThread : NO
-- GtkGlExt: NO
-- OpenGL support: NO
-- VTK support: NO

-- Media I/O:
-- ZLib: /lib64/libz.so (ver 1.2.7)
-- JPEG: /lib64/libjpeg.so (ver )
-- WEBP: build (ver encoder: 0x020e)
-- PNG: /lib64/libpng.so (ver 1.5.13)
-- TIFF: build (ver 42 - 4.0.2)
-- JPEG 2000: build (ver 1.900.1)
-- OpenEXR: build (ver 1.7.1)
-- GDAL: NO
-- GDCM: NO

-- Video I/O:
-- DC1394 1.x: NO
-- DC1394 2.x: NO
-- FFMPEG: NO
-- avcodec: NO
-- avformat: NO
-- avutil: NO
-- swscale: NO
-- avresample: NO
-- GStreamer: NO
-- OpenNI: NO
-- OpenNI PrimeSensor Modules: NO
-- OpenNI2: NO
-- PvAPI: NO
-- GigEVisionSDK: NO
-- Aravis SDK: NO
-- UniCap: NO
-- UniCap ucil: NO
-- V4L/V4L2: NO/YES
-- XIMEA: NO
-- Xine: NO
-- Intel Media SDK: NO
-- gPhoto2: NO

-- Parallel framework: pthreads

-- Trace: YES (with Intel ITT)

-- Other third-party libraries:
-- Use Intel IPP: 2017.0.3 [2017.0.3]
-- at: /nfs/project/maao/codes/tools/opencv-3.3.1/build/3rdparty/ippicv/ippicv_lnx
-- Use Intel IPP IW: sources (2017.0.3)
-- at: /nfs/project/maao/codes/tools/opencv-3.3.1/build/3rdparty/ippicv/ippiw_lnx
-- Use VA: NO
-- Use Intel VA-API/OpenCL: NO
-- Use Lapack: YES (/usr/local/lib/libopenblas.so)
-- Use Eigen: NO
-- Use Cuda: YES (ver 9.0)
-- Use OpenCL: YES
-- Use OpenVX: NO
-- Use custom HAL: NO

-- NVIDIA CUDA
-- Use CUFFT: YES
-- Use CUBLAS: YES
-- USE NVCUVID: NO
-- NVIDIA GPU arch: 30 35 37 50 52 60 61 70
-- NVIDIA PTX archs:
-- Use fast math: NO

-- OpenCL:
-- Include path: /nfs/project/maao/codes/tools/opencv-3.3.1/3rdparty/include/opencl/1.2
-- Use AMDFFT: NO
-- Use AMDBLAS: NO

-- Python 2:
-- Interpreter: /usr/bin/python2.7 (ver 2.7.5)
-- Libraries: /lib64/libpython2.7.so (ver 2.7.5)
-- numpy: /usr/lib64/python2.7/site-packages/numpy/core/include (ver 1.14.1)
-- packages path: lib/python2.7/site-packages

-- Python 3:
-- Interpreter: NO

-- Python (for build): /usr/bin/python2.7

-- Java:
-- ant: NO
-- JNI: /usr/lib/jvm/java/include /usr/lib/jvm/java/include/linux /usr/lib/jvm/java/include
-- Java wrappers: NO
-- Java tests: NO

-- Matlab: Matlab not found or implicitly disabled

-- Documentation:
-- Doxygen: NO

-- Tests and samples:
-- Tests: YES
-- Performance tests: YES
-- C/C++ Examples: NO

-- Install path: /nfs/project/maao/codes/tools/opencv-3.3.1-install

-- 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 ?

./denseFlow_gpu: error while loading shared libraries: libopencv_core.so.3.3: cannot open shared object file: No such file or directory

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' ?

Generating black frames

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.