-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels