Ask Your Question

Revision history [back]

Python (-211) The total matrix size does not fit to "size_t" type in function cv::setSize

Hi I am tring to detect something on a tif image.

my code is image = cv2.imread('.tif',0) faceRect = cascade.detectMultiScale(image, scaleFactor=1.1, minNeighbors=1, minSize=(1,1))

But I got this error. error: (-211) The total matrix size does not fit to "size_t" type in function cv::setSize I am wondering if it's because this tif image is too large?

Does anybody have some suggestions?

Thanks!