OpenCVSwiftStitch icon indicating copy to clipboard operation
OpenCVSwiftStitch copied to clipboard

Foundry crashes

Open leo1988joseph opened this issue 3 years ago • 5 comments

Hi, I cloned your project and have tried running it and it worked fine. I then added my images in the extension JPG and it stitched perfectly too. So I copied the pod file, the classes and all the necessary files to my project which takes the image from the camera and saves it in gallery. I temporarily save the images taken in an array of UIImage and feed it instead of the asset images and then I get a crash in the line, Stitcher::Status status = stitcher->stitch(imgs, pano);

I thought the problem may be in the camera images extension or orientations. But I guess it has been corrected already in the latest PR in GIT. So I copied the images that was present already in the OpenCVSwiftStitch Assets and which was working fine into my project and still I got the same crash. I could run any images in your example code and it works fine but when I do the same in mine, it fails. Is there anything that I have to add in my project to make it work?

Thanks in advance.

leo1988joseph avatar Apr 06 '22 00:04 leo1988joseph

I have exactly the same issue. My error is:

terminating with uncaught exception of type cvflann::anyimpl::bad_any_cast

I've tried using the images in the demo project and they fail too. I've tried running in development and release mode but it crashes every time.

kallipigous avatar Aug 17 '22 18:08 kallipigous

Though it does work in the simulator. Is there a conflict with the camera, which is already using the GPU?

kallipigous avatar Aug 17 '22 18:08 kallipigous

I had same problems. I can fix the problem by adding Custom compiler Flags. After I added "Other C Flags", I can run the app in my device. photo I attached images too. Hope this solve your problem.

rock1215 avatar Oct 06 '22 09:10 rock1215

Note: Other C Flags. (Not Other C++ Flags)

rock1215 avatar Oct 06 '22 09:10 rock1215

I am still facing the issue. Can anyone help me to run this app

rasika-punde avatar Nov 29 '23 22:11 rasika-punde