App crashing when stitching photos from video capture

asked 2018-10-05 18:35:02 -0500

mister_man gravatar image

updated 2018-10-10 12:54:20 -0500

I am working on a planar image stitching feature, and I am using the CvVideoCamera to collect all of the frames as Mats. When finished with collecting the frames, the photos are stitched together, but I keep getting this error:

libc++abi.dylib: terminating with uncaught exception of type cv::Exception: OpenCV(3.4.2) /Volumes/build-storage/build/3_4_iOS-mac/opencv/modules/core/src/umatrix.cpp:297: error: (-215:Assertion failed) s >= 0 in function 'setSize'

Is there anything extra I need to do with the Mats before sending them to the stitcher? has anyone else experienced this issue?

Update

The app is crashing when I use certain properties. The properties I am trying to use are OrbFeaturesFinder and PlaneWarper. Using either of these causes a crash. Is there any reason anyone knows that is specific to iOS?

edit retag flag offensive close merge delete