qq456cvb / RealTimeTrack

A fast algorithm tracking real time deformable planers
19 stars 6 forks source link

Demo not working with iOS/Xcode #2

Open roscopecoltran opened 7 years ago

roscopecoltran commented 7 years ago

Hi,

Hope you are all well !

I tried to build the project on iOS but several files are missing for PointMatching and several conflicts happens with accelerate framework with OpenCV/Armadillo.

Do you have any guidance to fix them ? Would be really cool.

Cheers, Richard

qq456cvb commented 7 years ago

Could you paste out some error info so that I can identify what happened to you?

roscopecoltran commented 7 years ago

screen shot 2016-12-10 at 10 39 49 am

Hi,

Thanks for your reply !

Here is a screenshot of the error on Xcode. Looks like that some dependencies are missing and being picked from a folder under the project path: graduation-design/deformabletracker/src/MatchTracker/InlierMatchTracker.cpp

Cheers, R.

qq456cvb commented 7 years ago

I have some separated files in other folders. Sorry about that. I've uploaded the missing files.

ghost commented 7 years ago

Hi,

Thanks for the update but I still have an error message. Please see below:

screen shot 2016-12-10 at 8 28 46 pm

Are you using a version of OpenCV for iOS lower than 2.4.13 ? ( I downloaded v2.4.13 from sourceforge.net)

Maybe Xcode is mixing files and versions... I do not see ORB-SLAM being include in the project for eg.

Cheers, R.

qq456cvb commented 7 years ago

I use opencv 3.0.0, there are some differences between 2.4 and 3.0 in KeyPoint computation.

roscopecoltran commented 7 years ago

I tried with 3.0 but still have a conflict with LAPACK and OpenCV

screen shot 2016-12-10 at 9 16 55 pm

Are you building a universal (arm64/armv7) app or only for armv7 ? Any specific compilation flags or bash script to execute during the building phases ?

qq456cvb commented 7 years ago

There is some conflict with armadillo and accelerate. You can manually fix this by hacking opencv2.framework.

Delete #import <Accelerate/Accelerate.h> in both <opencv2/imgcodecs/ios.h> and <opencv2/videoio/cap_ios.h>.

ningduyanghe commented 7 years ago

我运行的unity版本,运行起来之后就挂了

1487758470232

qq456cvb commented 7 years ago

请问你用的是哪个版本的iPhone,哪个版本的opencv,前阵子比较忙,没来的及回,我最近看一下你这个崩溃的情况

match08 commented 4 years ago

traceManager->feed(image) 闪退

qq456cvb commented 4 years ago

这个问题好像之前碰到过,是栈内存爆了,应该是descriptor flann match的时候有某个变量是在栈上初始化的,导致栈内存不够(iOS默认栈内存好像是4K?),要在堆上new一个,我之后push一下。

match08 commented 4 years ago

我找到问题了,是opencv的问题,ios只要 include <opencv2/opencv.hpp> 就会出问题,不使用这个方式,单独引用opencv类句可以了。

yunshangyue71 commented 4 years ago

那这个怎么办呢?

qq456cvb commented 4 years ago

@yunshangyue71 match08的解决方案你试过了吗,可以work吗