GithubHelp home page GithubHelp logo

tessdata_ssd's People

Contributors

shreeshrii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tessdata_ssd's Issues

Dear Shreeshrii, It doesn't work in JAVA.

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!

It is recognized only by putting a number in front of the 7-segment number.

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 :

  1. Works on tess4j-4.0.0.
  2. ssd.traineddata

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?

Better results with 7seg.traineddata

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

***** 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

***** 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

***** 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

***** 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

***** 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

***** 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

***** 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

***** 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

***** 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

***** 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

Not able to get the dots between the digits

Not able to get the dots between the digits

DigMeter6

text1 = pytesseract.image_to_string(slice, lang='7seg', config='--psm 6 --oem 3 -c tessedit_char_whitelist=.0123456789')

Request to check and let me know

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.