Menu

Java and GOCR

Help
rob_tmaz
2005-10-22
2013-04-15
  • rob_tmaz

    rob_tmaz - 2005-10-22

    Hello All,

    I try to use your ORC lib in java to provide an OCR Applet and I have some questions :
    - Is someone have done the JNI bridge with your lib ?
    - Is there a brigde between Java BufferedImage and your own image structure ?
    - what is the method to export in the interface ?

    Best regards
    David

     
    • rob_tmaz

      rob_tmaz - 2005-10-22

      to provide something like

      import java.awt.image.BufferedImage;
      import java.io.File;
      import java.io.IOException;
      import javax.imageio.ImageIO;

      import net.gorc.OCR;

      public class Demo {
          public static void main(String[] args) throws IOException {
              BufferedImage image = ImageIO.read(new File("C:/ocr.jpg));
              String s = new OCR().recognizeEverything(image);
              System.out.println("\n---- RESULTS: ------- \n" + s);
          }
      }

       
    • Alexey Titov

      Alexey Titov - 2007-02-21

      I think, that java bindings would be very useful. I don't think that it is very hard to create them.  Maybe GOCR developers could do this? Can we ask them somehow? :-)

       
      • Joerg Schulenburg

        I dont have time to think about java.
        But I am looking foward to get such bindings from you. :)

        Joerg

         

Log in to post a comment.