-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenCV3 Make #1
Comments
I have the same issue and it's a bit annoying. |
+1 |
@Pedro-Abreu @jkuh626 You should change the source code and adapt to new OpenCv versions. |
@blgnksy But how to adapt this to a new version, man? |
@Katou2 First install the opencv. If you install a newer version than the original gpu_flow used, than search the opencv api documentation and change the includes and method names. You will see class and method prototypes have been changed. |
@blgnksy Ok, Thanks a lot, man. |
@blgnksy Hi, man, sorry to bother you again. I've installed opencv 3.4.3 and remake the repository again. I got such problems:CMakeFiles/compute_flow.dir/compute_flow.o: In function
|
Yes, those are the prototypes changes. OpenCv programmers transferred some methods to another class. Whenever I have spare time, I can check and try to inform you. Can you push your codes to github repo? |
Hi,
You have some not installed dependencies. https://www.learnopencv.com/install-opencv-3-4-4-on-ubuntu-16-04/ <https://www.learnopencv.com/install-opencv-3-4-4-on-ubuntu-16-04/> read the page and install the dependencies.
… On 23 Jan 2019, at 17:16, Katou2 ***@***.*** ***@***.***>> wrote:
@blgnksy <https://github.com/blgnksy> Thank you very much. That's so kind of you. Now I nearly find all of changes and I found that the two optical flow extraction methods are in the opencv_contrib, but I got stuck by compiling it. Do you know what happens? I searched a long time for the solution.
***@***.***:~/Downloads/opencv-3.4.3/build$ cmake -DOPENCV_EXTRA_MODULES_PATH=/home/katou2/Downloads/opencv_contrib/modules /home/katou2/Downloads/opencv-3.4.3/
-- Looking for ccache - not found
-- Found ZLIB: /home/katou2/anaconda3/lib/libz.so (found suitable version "1.2.11", minimum required is "1.2.3")
-- Found ZLIB: /home/katou2/anaconda3/lib/libz.so (found version "1.2.11")
-- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so
-- Checking for module 'gstreamer-base-1.0'
-- No package 'gstreamer-base-1.0' found
-- Checking for module 'gstreamer-video-1.0'
-- No package 'gstreamer-video-1.0' found
-- Checking for module 'gstreamer-app-1.0'
-- No package 'gstreamer-app-1.0' found
-- Checking for module 'gstreamer-riff-1.0'
-- No package 'gstreamer-riff-1.0' found
-- Checking for module 'gstreamer-pbutils-1.0'
-- No package 'gstreamer-pbutils-1.0' found
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- Checking for module 'libavresample'
-- No package 'libavresample' found
-- found Intel IPP (ICV version): 2017.0.3 [2017.0.3]
-- at: /home/katou2/Downloads/opencv-3.4.3/build/3rdparty/ippicv/ippicv_lnx
-- found Intel IPP IW sources: 2017.0.3
-- at: /home/katou2/Downloads/opencv-3.4.3/build/3rdparty/ippicv/ippiw_lnx
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR)
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
features2d
cudafeatures2d
flann
shape
highgui
ml
videoio
cudaarithm
cudabgsegm
js
cudastereo
dnn
videostab
python
imgcodecs
stitching
cudawarping
core
photo
cudacodec
viz
cudaobjdetect
ts
cudaimgproc
cudafilters
objdetect
cudaoptflow
video
world
calib3d
cudev
superres
java
cudalegacy
imgproc
cudafeatures2d
shape
stereo
img_hash
ccalib
bgsegm
bioinspired
reg
sfm
face
dpm
fuzzy
cvv
datasets
cudaarithm
optflow
cudabgsegm
line_descriptor
cudastereo
rgbd
videostab
cudawarping
ovis
xobjdetect
cudacodec
viz
cudaobjdetect
cudaimgproc
cudafilters
structured_light
cudaoptflow
saliency
tracking
xphoto
plot
ximgproc
freetype
aruco
cudev
phase_unwrapping
superres
hfs
dnn_objdetect
matlab
cudalegacy
surface_matching
cnn_3dobj
xfeatures2d
hdf
text
CMake Error at cmake/OpenCVModule.cmake:352 (message):
Duplicated modules NAMES has been found
Call Stack (most recent call first):
cmake/OpenCVModule.cmake:370 (_assert_uniqueness)
modules/CMakeLists.txt:7 (ocv_glob_modules)
-- Configuring incomplete, errors occurred!
See also "/home/katou2/Downloads/opencv-3.4.3/build/CMakeFiles/CMakeOutput.log".
See also "/home/katou2/Downloads/opencv-3.4.3/build/CMakeFiles/CMakeError.log".
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#1 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ALcPkbRwjqEwPxxkL2NJmvBMlx6KGFQeks5vGG6kgaJpZM4M_iy_>.
|
@blgnksy Thank you very much, man. Everything has been settled. |
@Katou2 I didn't meet that problem. But it seems at least of the command line arguments that you passed is wrong. Since the error indicates the 158th line in command_line_parser of the opencv core module. Try to debug the before 136th line in compute_flow.cpp that all of the arguments are in correctly passed. Or remove that part and handle the arguments as declaring variables in compute_flow.cpp to pass that part. |
@Katou2 How can you overcome that error? |
@blgnksy I checked the document of Opencv detailedly, I found the keys form in the code is different from the form in the document. When I adapted it to the document, it worked. |
@Katou2 Good job. I also think that the problem is about the command_line_parser of OpenCV. And I think you should push your new working codes to your repo. So If anyone meets same problem, will use your codes. |
@blgnksy Yeah, that's it. Thank you very much for your help indeed. |
@Katou2 No problem. Unfortunately original developers doesn't answer any issue. |
@blgnksy Hah, it pushes us to fully understand what their code expresses. Not bad. |
Hi, |
@1803643593 Hello, the prototypes changed a lot between opencv2 and opencv3. I have updated this code to opencv3, if you have interest, just go to https://github.com/Katou2/Optical_Flow_GPU_Opencv3. Hope this can help you. |
Hi,
My computer's setup is Ubuntu 14.04, Cuda 8, CuDNN 5 and OpenCV 3.2.0. I faced a problem while compiling compute_flow.cpp. I think after OpenCv 2.4 the gpu module had been changed to cuda module. Is there any way to compensate this issue?
Thanks.
The text was updated successfully, but these errors were encountered: