Skip to content
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

OpenCV 4 #568

Open
Piemontez opened this issue Apr 23, 2019 · 4 comments
Open

OpenCV 4 #568

Piemontez opened this issue Apr 23, 2019 · 4 comments

Comments

@Piemontez
Copy link

I have interest in convert this project to opencv4.
Do you also have this interest?
Add me as a contributor

@dnandha
Copy link

dnandha commented Jun 14, 2019

I've ported the project to opencv4, you can check it out here
https://github.com/dnandha/openbr/tree/opencv4-port

It compiles nicely with OpenCV 4.1.0, some SegFaults with newer QT5 versions are also fixed. However, the fork is not downwards compatible to CV2/CV3, and the boost components (boost, adaboost, forest, etc.) need to be rewritten from ground up to work with OpenCV4; so that's a TODO which is marked in the code as such.

If any of the maintainers is interested, please create an appropriate branch here so I would open a PR to merge the port into the branch.

@jklontz
Copy link
Member

jklontz commented Jun 18, 2019

Thank you for sharing this. We have in mind upgrading to OpenCV 4.x, but haven't made the time. We'll take a look at when we're ready to upgrade.

@canuysal
Copy link

@dnandha hey, I'm trying to build your port but it fails with the following error,
[ 2%] Building CXX object openbr/CMakeFiles/openbr.dir/plugins/imgproc/custom_sift.cpp.o
[ 2%] Linking CXX shared library libopenbr.so
/usr/bin/ld: cannot find -lopencv_contrib
/usr/bin/ld: cannot find -lopencv_nonfree
collect2: error: ld returned 1 exit status
openbr/CMakeFiles/openbr.dir/build.make:10388: recipe for target 'openbr/libopenbr.so.1.1.0' failed
make[2]: *** [openbr/libopenbr.so.1.1.0] Error 1
CMakeFiles/Makefile2:1021: recipe for target 'openbr/CMakeFiles/openbr.dir/all' failed
make[1]: *** [openbr/CMakeFiles/openbr.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

How did you solve this? opencv 4.1.0 doesn't export libopencv_config and nonfree. Is something missing?

@y9luiz
Copy link

y9luiz commented Jun 7, 2021

@canuysal you need to compile the opencv using the extra modules

you could find the extra module here: https://github.com/opencv/opencv_contrib

After download it please set the CMake variable at this way

cmake -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules <opencv_source_directory>

After that you may be able to use the openbr tool, have fun ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants