Class TesseractService
java.lang.Object
org.imageconverter.domain.conversion.TesseractService
A Java class to access tesseract application
- Author:
- Fernando Romulo da Silva
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TesseractService
public TesseractService()
-
-
Method Details
-
convert
Convert a file image to text.- Parameters:
fileName
- The file's namefileBytes
- 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 namefileBytes
- A file that will be convertxAxis
- The image's x coordinateyAxis
- The image's y coordinatewidth
- The image's width in pixelsheight
- The image's height in pixels- Returns:
- A
String
object with the conversion
-