Skip to content

使用part7的程序会在运行过程中中断 #8

Description

@LIUMeng0823

在工程编译成功后,运行到第225、242等图片的时候会程序中断:
This is a new keyframe
Reading files 241
Too close, not a keyframe
Reading files 242
OpenCV Error: Assertion failed (npoints >= 4 && npoints == std::max(ipoints.checkVector(2, 5), ipoints.checkVector(2, 6))) in solvePnPRansac, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/calib3d/src/solvepnp.cpp, line 253
terminate called after throwing an instance of 'cv::Exception'
what(): /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/calib3d/src/solvepnp.cpp:253: error: (-215) npoints >= 4 && npoints == std::max(ipoints.checkVector(2, 5), ipoints.checkVector(2, 6)) in function solvePnPRansac
不知道是不是参数设置的不对,但parameters.txt文件中的设置和给出的一样。
我用的是Ubuntu 16.04, opencv是3.3.1,请问是什么问题啊?求解答!谢谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions