tesseract error - Image too large

安稳与你 提交于 2019-12-04 10:10:09

It's not the file size but rather the image size (dimension) that exceeds Tesseract limits. I have no problems with Tesseract recognizing 16MB image. Try resize or rescale your image and try again.

The maximum width and height are 32767.

From the source code (file baseapi.cpp):

    if (tesseract_->ImageWidth() > MAX_INT16 ||
        tesseract_->ImageHeight() > MAX_INT16) {
      tprintf("Image too large: (%d, %d)\n",
              tesseract_->ImageWidth(), tesseract_->ImageHeight());
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!