Issue with cv2.fiseye.calibrate :fisheye.cpp:742: error: (-215:Assertion failed) objectPoints.type() == CV_32FC3 || objectPoints.type() == CV_64FC3 in function 'calibrate'

I encountered a similar problem, and found this page helpful.

it says:

objpoints has to be resized in python from (<num points in set>, 3) to (<num points in set>, 1, 3) to pass the objectPoints.type() == CV_64FC3 check