opencv报错:Error: Assertion failed (std::fabs(vecs[0].ddot(vecs[1])) * a <= FLT_EPSILON * 9 * x * (norm(vecs[0]) * norm(vecs[1]))) in cv::RotatedRect::RotatedRect
RotatedRect构造函数
RotatedRect其中一个构造函数如下:
/**
Any 3 end points of the RotatedRect. They must be given in order (either clockwise or
anticlockwise).
*/
RotatedRect(const Point2f& point1, const Point2f& point2, const Point2f& point3);
RotatedRect 的任意 3 个端点。它们必须按顺序(顺时针或逆时针)。
报错原因
构造函数三个端点未垂直,重新设置三个端点使其垂直即可
浙公网安备 33010602011771号