Package com.sarxos.ocr.sikulix.util

Examples of com.sarxos.ocr.sikulix.util.ImageFrame


    ocr = OCR.getSpec("test");
  }

  @Test
  public void test_read1() {
    ImageFrame f = new ImageFrame("src/main/resources/images/test.png");
    String text = ocr.read(f.getBounds());
    System.out.println(text);
    Assert.assertEquals("TEST1234", text);
    f.close();
  }
View Full Code Here


    f.close();
  }

  @Test
  public void test_read2() {
    ImageFrame f = new ImageFrame("src/main/resources/images/test2.png");
    String text = ocr.read(f.getBounds());
    System.out.println(text);
    Assert.assertEquals("ABCDEFGHIJKL", text);
    f.close();
  }
View Full Code Here

    f.close();
  }

  @Test
  public void test_read3() {
    ImageFrame f = new ImageFrame("src/main/resources/images/test3.png");
    String text = ocr.read(f.getBounds());
    System.out.println(text);
    Assert.assertEquals("0123456789", text);
    f.close();
  }
View Full Code Here

    f.close();
  }

  @Test
  public void test_read4() {
    ImageFrame f = new ImageFrame("src/main/resources/images/test4.png");
    String text = ocr.read(f.getBounds());
    System.out.println(text);
    Assert.assertEquals("MNOPRSTUVWXYZ", text);
    f.close();
  }
View Full Code Here

    f.close();
  }

  @Test
  public void test_read5() {
    ImageFrame f = new ImageFrame("src/main/resources/images/test5.png");
    String text = ocr.read(f.getBounds());
    System.out.println(text);
    Assert.assertEquals("ABCD1234", text);
  }
View Full Code Here

TOP

Related Classes of com.sarxos.ocr.sikulix.util.ImageFrame

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.