Shreeshrii/tessdata_ssd

Dear Shreeshrii, It doesn't work in JAVA.

Opened this issue · 2 comments

Shreeshrii

It doesn't work in JAVA.
please check. It says there is no file name. Any reason?

import net.sourceforge.tess4j.*;
import java.awt.image.BufferedImage;
 
Tesseract ocr;
BufferedImage img;
PImage pimg;
String res, show;
int idx;

void setup() {
  ocr = new Tesseract();
  ocr.setDatapath(dataPath(""));
  ocr.setLanguage("ssd");
  pimg = loadImage("a4.jpg");
  img = (BufferedImage) pimg.getNative();
  show = "";
  idx = 0;
  try {
    res = ocr.doOCR(img);
    //   println(res);
  } 
  catch (TesseractException e) {
    println(e.getMessage());
  }
  frameRate(25);
}

error message

Failed loading language 'ssd'
Tesseract couldn't load any languages!

The version I’m using: tess4j-3.4.8.jar

Works on tess4j-4.0.0.

thank you