Ask Your Question

mihaicl's profile - activity

2017-04-04 13:20:04 -0600 commented answer Where to place the pretrained data for GOTURN tracker

It's still not clear to me which in what directory should the caffemodel and the goturn.prototxt be placed? Should be the same directory as the generated executable or should be the source directory of opencv_contrib and then rebuild the opencv library?

2016-11-15 06:05:27 -0600 commented question OpenCV Error: Assertion failed (prevPyr[level * lvlStep1].size() == nextPyr[level * lvlStep2].size()) in void cv::calcOpticalFlowPyrLK

I encountered the same error. It was because the the images didn't had the same size, width and height. The pyramid images are just a series of scaled down images of the original images, and if the original images didn't had the same size, any two corresponding pyramid images will also be of different size.

2016-11-15 06:05:08 -0600 answered a question OpenCV Error: Assertion failed (prevPyr[level * lvlStep1].size() == nextPyr[level * lvlStep2].size()) in void cv::calcOpticalFlowPyrLK

I encountered the same error. It was because the the images didn't had the same size, width and height. The pyramid images are just a series of scaled down images of the original images, and if the original images didn't had the same size, any two corresponding pyramid images will also be of different size.