I’m building openCV with either this script: https://github.com/BloodAxe/OpenCV-iOS-build-script, or this one: https://github.com/aptogo/OpenCVForiPhone.
Compared to their previous already built versions mine is really slow. The only thing I can see different is that in my case opencv is getting compiled with -O0.
Edit: I’ve tested it with phase correlation and lk and it’s 5 times as slow.
Why don’t you use cmake as the official documentation suggests?
Edit: make sure you’re passing
-DCMAKE_BUILD_TYPE=RELEASEto cmake.