a1f4e65d03
objectPoints and imagePoints are not checked whether they're empty and cause checkVector() to fail, thus result in a wrong error message. Fixes: https://github.com/opencv/opencv/issues/6002