Training Tesseract 3 to recognize numbers from real images of gas meters

后端 未结 4 657
有刺的猬
有刺的猬 2021-02-08 18:39

I\'m trying to train tesseract to recognize numbers from real images of gas meters.

The images that I use for training are made with a camera, for this reason there are

4条回答
  •  故里飘歌
    2021-02-08 19:30

    I suggest you to:

    • use a tool to edit the boxes, such jTessBoxEditor, it's so helpful and let you winning a time. You can install it easily from here
    • it's good idea to train the letters of actual situation (noisy, blurred). Your training set is still limited, you can add more training samples.
    • I recommend you to use Tesseract's API themselves to enhance the image (denoise, normalize, sharpen...) for example : Boxa * tesseract::TessBaseAPI::GetConnectedComponents(Pixa** pixa) (it allows you to get to the bounding boxes of each character)

      Pix* pimg = tess_api->GetThresholdedImage();

    Here you find few examples

提交回复
热议问题