Class TesseractService

java.lang.Object
org.imageconverter.domain.conversion.TesseractService

@Service @Loggable public class TesseractService extends Object
A Java class to access tesseract application
Author:
Fernando Romulo da Silva
  • Constructor Details

    • TesseractService

      public TesseractService()
  • Method Details

    • convert

      public String convert(String fileName, byte[] fileBytes)
      Convert a file image to text.
      Parameters:
      fileName - The file's name
      fileBytes - A file that will be convert
      Returns:
      A String object with the conversion
    • convert

      public String convert(String fileName, byte[] fileBytes, int xAxis, int yAxis, int width, int height)
      Convert a file image to text.
      Parameters:
      fileName - The file's name
      fileBytes - A file that will be convert
      xAxis - The image's x coordinate
      yAxis - The image's y coordinate
      width - The image's width in pixels
      height - The image's height in pixels
      Returns:
      A String object with the conversion