shreeshrii / tessdata_ssd Goto Github PK
View Code? Open in Web Editor NEWTesseract 4 traineddata for recognizing Seven Segment Display
License: Apache License 2.0
Tesseract 4 traineddata for recognizing Seven Segment Display
License: Apache License 2.0
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!
https://global.discourse-cdn.com/standard10/uploads/processingfoundation1/optimized/3X/7/5/75d3e6920e519eaf1379a6da4b20a5d64474e17f_2_690x266.jpeg
https://discourse.processing.org/t/i-have-a-question-regarding-ocr/39466/2
It is recognized only by putting a number in front of the 7-segment number.
Environment :
The problem is that the number must be entered arbitrarily in front of it to be interpreted.
It is not immediately recognized as a 7-segment number.
Why?
Test of a small sample of real life images gives better results with the older 7seg.traineddata. Unfortunately I have deleted the source training_text for the same. Customizing the training text and fonts based on the requirements as well as preprocessing the images to reduce the gaps will lead to better recognition.
***** ssd202 LANG 7seg TESSDATA tessdata_ssd OEM 1 PSM 6 ****
Failed to load any lstm-specific dictionaries for lang 7seg!!
2.02
***** ssd202 LANG ssd TESSDATA tessdata_ssd OEM 1 PSM 6 ****
1
2.02
***** ssd1 LANG 7seg TESSDATA tessdata_ssd OEM 1 PSM 6 ****
Failed to load any lstm-specific dictionaries for lang 7seg!!
22.0
***** ssd1 LANG ssd TESSDATA tessdata_ssd OEM 1 PSM 6 ****
22.12
***** ssd2 LANG 7seg TESSDATA tessdata_ssd OEM 1 PSM 6 ****
Failed to load any lstm-specific dictionaries for lang 7seg!!
29:
L. I1.0
***** ssd2 LANG ssd TESSDATA tessdata_ssd OEM 1 PSM 6 ****
29
11.0
***** ssd3 LANG 7seg TESSDATA tessdata_ssd OEM 1 PSM 6 ****
Failed to load any lstm-specific dictionaries for lang 7seg!!
4:05:30
***** ssd3 LANG ssd TESSDATA tessdata_ssd OEM 1 PSM 6 ****
801
***** ssd4 LANG 7seg TESSDATA tessdata_ssd OEM 1 PSM 6 ****
Failed to load any lstm-specific dictionaries for lang 7seg!!
10.5°
***** ssd4 LANG ssd TESSDATA tessdata_ssd OEM 1 PSM 6 ****
10.5°
***** ssd5 LANG 7seg TESSDATA tessdata_ssd OEM 1 PSM 6 ****
Failed to load any lstm-specific dictionaries for lang 7seg!!
4:05:30
***** ssd5 LANG ssd TESSDATA tessdata_ssd OEM 1 PSM 6 ****
4:05:30
***** ssd6 LANG 7seg TESSDATA tessdata_ssd OEM 1 PSM 6 ****
Failed to load any lstm-specific dictionaries for lang 7seg!!
10.5°
***** ssd6 LANG ssd TESSDATA tessdata_ssd OEM 1 PSM 6 ****
10.5°
***** ssd7 LANG 7seg TESSDATA tessdata_ssd OEM 1 PSM 6 ****
Failed to load any lstm-specific dictionaries for lang 7seg!!
29:
***** ssd7 LANG ssd TESSDATA tessdata_ssd OEM 1 PSM 6 ****
11
***** ssd8 LANG 7seg TESSDATA tessdata_ssd OEM 1 PSM 6 ****
Failed to load any lstm-specific dictionaries for lang 7seg!!
05:54:09
***** ssd8 LANG ssd TESSDATA tessdata_ssd OEM 1 PSM 6 ****
05:54:09
***** ssd9 LANG 7seg TESSDATA tessdata_ssd OEM 1 PSM 6 ****
Failed to load any lstm-specific dictionaries for lang 7seg!!
7:45
***** ssd9 LANG ssd TESSDATA tessdata_ssd OEM 1 PSM 6 ****
7:45
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.