GithubHelp home page GithubHelp logo

OpenCV3 Make about gpu_flow HOT 19 OPEN

blgnksy avatar blgnksy commented on July 22, 2024
OpenCV3 Make

from gpu_flow.

Comments (19)

blgnksy avatar blgnksy commented on July 22, 2024 5

@Pedro-Abreu @jkuh626 You should change the source code and adapt to new OpenCv versions.

from gpu_flow.

KT27-A avatar KT27-A commented on July 22, 2024 4

@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.

from gpu_flow.

KT27-A avatar KT27-A commented on July 22, 2024 1

@blgnksy Hah, it pushes us to fully understand what their code expresses. Not bad.

from gpu_flow.

pfabreu avatar pfabreu commented on July 22, 2024

I have the same issue and it's a bit annoying.

from gpu_flow.

jkuh626 avatar jkuh626 commented on July 22, 2024

+1

from gpu_flow.

KT27-A avatar KT27-A commented on July 22, 2024

@blgnksy But how to adapt this to a new version, man?

from gpu_flow.

blgnksy avatar blgnksy commented on July 22, 2024

@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.

from gpu_flow.

KT27-A avatar KT27-A commented on July 22, 2024

@blgnksy Ok, Thanks a lot, man.

from gpu_flow.

KT27-A avatar KT27-A commented on July 22, 2024

@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 main': /home/katou2/github-home/gpu_flow/compute_flow.cpp:171: undefined reference to cv::gpu::setDevice(int)'
/home/katou2/github-home/gpu_flow/compute_flow.cpp:175: undefined reference to cv::gpu::getDevice()' /home/katou2/github-home/gpu_flow/compute_flow.cpp:175: undefined reference to cv::gpu::printShortCudaDeviceInfo(int)'
/home/katou2/github-home/gpu_flow/compute_flow.cpp:179: undefined reference to cv::gpu::OpticalFlowDual_TVL1_GPU::OpticalFlowDual_TVL1_GPU()' /home/katou2/github-home/gpu_flow/compute_flow.cpp:354: undefined reference to cv::gpu::GpuMat::upload(cv::Mat const&)'
/home/katou2/github-home/gpu_flow/compute_flow.cpp:355: undefined reference to cv::gpu::GpuMat::upload(cv::Mat const&)' /home/katou2/github-home/gpu_flow/compute_flow.cpp:356: undefined reference to cv::gpu::OpticalFlowDual_TVL1_GPU::operator()(cv::gpu::GpuMat const&, cv::gpu::GpuMat const&, cv::gpu::GpuMat&, cv::gpu::GpuMat&)'
/home/katou2/github-home/gpu_flow/compute_flow.cpp:359: undefined reference to cv::gpu::GpuMat::download(cv::Mat&) const' /home/katou2/github-home/gpu_flow/compute_flow.cpp:360: undefined reference to cv::gpu::GpuMat::download(cv::Mat&) const'
/home/katou2/github-home/gpu_flow/compute_flow.cpp:350: undefined reference to cv::gpu::GpuMat::upload(cv::Mat const&)' /home/katou2/github-home/gpu_flow/compute_flow.cpp:351: undefined reference to cv::gpu::GpuMat::upload(cv::Mat const&)'
CMakeFiles/compute_flow.dir/compute_flow.o: In function main': /usr/include/opencv2/gpu/gpu.hpp:1742: undefined reference to cv::gpu::Stream::Null()'
CMakeFiles/compute_flow.dir/compute_flow.o: In function main': /home/katou2/github-home/gpu_flow/compute_flow.cpp:352: undefined reference to cv::gpu::BroxOpticalFlow::operator()(cv::gpu::GpuMat const&, cv::gpu::GpuMat const&, cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::Stream&)'
CMakeFiles/compute_flow.dir/compute_flow.o: In function cv::gpu::GpuMat::~GpuMat()': /usr/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()'
/usr/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()' /usr/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()'
/usr/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()' /usr/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()'
CMakeFiles/compute_flow.dir/compute_flow.o:/usr/include/opencv2/core/gpumat.hpp:374: more undefined references to `cv::gpu::GpuMat::release()' follow
collect2: error: ld returned 1 exit status
CMakeFiles/compute_flow.dir/build.make:140: recipe for target 'compute_flow' failed
make[2]: *** [compute_flow] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/compute_flow.dir/all' failed
make[1]: *** [CMakeFiles/compute_flow.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Are these you said prototypes changes? But I cannot find them in opencv documents. Have you met such problems? Thank you very much.

from gpu_flow.

blgnksy avatar blgnksy commented on July 22, 2024

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?

from gpu_flow.

blgnksy avatar blgnksy commented on July 22, 2024

from gpu_flow.

KT27-A avatar KT27-A commented on July 22, 2024

@blgnksy Thank you very much, man. Everything has been settled.

from gpu_flow.

blgnksy avatar blgnksy commented on July 22, 2024

@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.

from gpu_flow.

blgnksy avatar blgnksy commented on July 22, 2024

@Katou2 How can you overcome that error?

from gpu_flow.

KT27-A avatar KT27-A commented on July 22, 2024

@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.

from gpu_flow.

blgnksy avatar blgnksy commented on July 22, 2024

@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.

from gpu_flow.

KT27-A avatar KT27-A commented on July 22, 2024

@blgnksy Yeah, that's it. Thank you very much for your help indeed.

from gpu_flow.

blgnksy avatar blgnksy commented on July 22, 2024

@Katou2 No problem. Unfortunately original developers doesn't answer any issue.

from gpu_flow.

1803643593 avatar 1803643593 commented on July 22, 2024

Hi,
sorry to bother you,i've got same problem,
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadRGBAStrip@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFWriteScanline@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFScanlineSize@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadRGBATile@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFClose@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFRGBAImageOK@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFOpen@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadEncodedStrip@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetWarningHandler@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetErrorHandler@LIBTIFF_4.0'
could you help me ?Thank you very much.

from gpu_flow.

Related Issues (20)

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.