how to add calib3d
Hi,
How can I add calib3d (I need ~SIFT + BFF FeatureMatcher~ flann + orb , ECCTransform is not enough - yes I'm doing some kind of AR. And no, the AR Core is no viable alternative
Can I just manually compile calib3d from openCV and include it, without adding the other libs, which are dependencies? I tried that already, though it did not work. I'm by no means an expert, so I wanted to ask whether this is even possible.
Use case: Android & iOS (windows preferably also, as testing on pc is far faster). version: openCV 4.8.0
I also tried manually building this repository here, as you described, but setting calib3d=ON did not work for me. I assume it's entirely discarded?
Thank you very much for this project anyways.
Kind regards, Kevin
(edit 1: changed from sift + bff to flann + orb)
Hi - for everyone looking into this issue:
-
I did not find an answer until now, though I have compiled the official openCV with mobile support manually for now. Yes, it's bigger, but if I'm not mistaken, then this project here is not the answer, if you need SIFT etc.
-
There might be a possibility to just provide the missing libraries, I did test it, but stopped early, because the libs have different names and I'm by no means a C++ / CMake expert. Actually, this is my first real encounter with this.
Thanks again for this project, though!
updated guide https://github.com/nihui/opencv-mobile#how-to-build-your-custom-package
One can refer to opencv-4.8.1/modules/calib3d/CMakeLists.txt , this module depends on opencv_imgproc opencv_features2d opencv_flann and you also need to enable debug_modules opencv_highgui if your build type is DEBUG.
According to my knowledge, all the supported modules are declared in opencv4_cmake_options.txt, good luck.
I'm trying to add opencv-mobile with calib3d to an osx project. Using the very useful updated guide, I'm able to build a library but have not been able to successfully build the desired framework. The error I get is as follows:
CMake Error: Target opencv_core Info.plist template "/Users/mblong/opencv-mobile-4.9.0/build/osx/Info.plist" could not be found. (with similar errors for opencv_flann, opencv_imgproc, etc.)
I have modified options.txt as follows: added: -DAPPLE=ON -DAPPLE_FRAMEWORK=ON -DAPPLE_CATALTST=ON (I've also tried without this) modified: -DBUILD_SHARED_LIBS=ON -DBUILD_OBJC=ON -DBUILD_opencv_objc=ON -DBUILD_opencv_calib3d=ON -DBUILD_opencv_flann=ON
Any suggestions would be welcome.
https://github.com/nihui/opencv-mobile/blob/976cd0ddc9b6a59565106276af8c2153cab52832/.github/workflows/release.yml#L561
check this for macos build