public class MSTOCR
extends java.lang.Object
Constructor and Description |
---|
MSTOCR() |
Modifier and Type | Method and Description |
---|---|
void |
copyTextToClipBoard(java.awt.image.BufferedImage bufferedImage,
java.awt.Rectangle rectangle)
This method takes the BufferedImage object and the specified area
In the form of rectangle object.then crop the image and extract the text From croped image and paste that text onto system clipboard. |
java.lang.String |
extractText(java.awt.image.BufferedImage bufferedImage)
this method takes the BufferedImage object.and extract
all text from bufferedImage object and return a text of String.
|
java.lang.String |
extractText(java.awt.image.BufferedImage bufferedImage,
java.awt.Rectangle rectangle)
This method takes the BufferedImage object and the specified area
In the form of rectangle object.then crop the image and extract The text From croped image and return text in form of String object. |
java.awt.Rectangle[] |
find(java.awt.image.BufferedImage bufferedImage,
java.lang.String text)
This method takes the BufferedImage object and the Text to be find.
|
public void copyTextToClipBoard(java.awt.image.BufferedImage bufferedImage, java.awt.Rectangle rectangle) throws MSTException
This method takes the BufferedImage object and the specified area
In the form of rectangle object.then crop the image and extract the text
From croped image and paste that text onto system clipboard.
bufferedImage
- It Takes BufferedImage Objectrectangle
- The X,Y,width,height in form of rectangle objectMSTException
BufferedImage
,
Rectangle
public java.lang.String extractText(java.awt.image.BufferedImage bufferedImage) throws MSTException
this method takes the BufferedImage object.and extract all text from bufferedImage object and return a text of String.
bufferedImage
- It Takes BufferedImage ObjectMSTException
BufferedImage
public java.lang.String extractText(java.awt.image.BufferedImage bufferedImage, java.awt.Rectangle rectangle) throws MSTException
This method takes the BufferedImage object and the specified area
In the form of rectangle object.then crop the image and extract
The text From croped image and return text in form of String object.
bufferedImage
- It Takes BufferedImage Object.rectangle
- The X,Y,width,height in form of rectangle object.MSTException
BufferedImage
,
Rectangle
public java.awt.Rectangle[] find(java.awt.image.BufferedImage bufferedImage, java.lang.String text) throws MSTException
This method takes the BufferedImage object and the Text to be find.
And return the set of rectangle array of text in image at all
Positions that found in the image.
bufferedImage
- It Takes BufferedImage Object.text
- String to be find into BufferedImageMSTException
BufferedImage
,
String