(-215:Assertion failed) total(srcShape, srcRange.start, srcRange.end) == maskTotal in function 'cv::dnn::computeShapeByReshapeMask'

Hi,
I followed the steps on OpenCV’s Text Recognition webpage to do text recognition, but I keep getting an error shown as the image

Does anyone know what is going on?

Thanks

you are using OpenCV v4.6.

please upgrade.

[quote=“bwang0229, post:3, topic:18554, full:true”]
Hi,
Thanks for the quick reply.
I got the same error with OpenCV v4.10.

googling for “computeShapeByReshapeMask” gave me these results: