Package de.elo.ix.client
Class OcrInfoRecognizeFile
java.lang.Object
byps.BValueClass
de.elo.ix.client.ValueClass
de.elo.ix.client.OcrInfoRecognizeFile
- All Implemented Interfaces:
Serializable
This class describes an OCR analysis request.
- Since:
- 8.00.020.001
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Recognition accuracy.protected int
OcrInfoC.ENCODING_UTF8 / _UTF16 / _UTF16LEprotected FileData
Image file content.protected int
Minimum confidence of character recognition in percent.protected String
Object ID of an archived document to be analyzed.protected String
Original Filename.protected int
Output format.protected int
Page number.protected int[]
Array of page numbers which should be analysed by the OCR.protected int
Recognition timeout for a single page.protected int
OcrInfoC.COMPLIANCE_PDFA_3U / _3A / _2U / _2A / _1B / _1A / _NONEprotected int
OcrInfoC.PDF_QUALITY_MAXQUALITY / _BALANCED / _MINSIZE / _MAXSPEEDprotected String[]
The image data is of this language(s).protected OcrRect[]
Constrain recognition to this rectangles.protected int
Rectangle coordinates are based on this unit.protected int
Replacement for characters.protected boolean
Disable table recognition.protected int
OcrInfoC.NORMAL/TWOSPACES/EXACTprotected int
Recognition timeout.protected int
OCR returns whitespace characters.Fields inherited from class byps.BValueClass
bypsClient, changedMembers, dbHelper, FLAG_SEALED, flags
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
getObjId()
int
int
int[]
int
int
int
String[]
OcrRect[]
int
int
int
int
int
boolean
void
setAccuracy
(int accuracy) void
setEncoding
(int encoding) void
setImageData
(FileData imageData) void
setMinCharConfidence
(int minCharConfidence) void
void
setOriginalFileName
(String originalFileName) void
setOutputFormat
(int outputFormat) void
setPageNo
(int pageNo) void
setPageNumbers
(int[] pageNumbers) void
setPageTimeout
(int pageTimeout) void
setPdfCompliance
(int pdfCompliance) void
setPdfQuality
(int pdfQuality) void
setRecognizeLangs
(String[] recognizeLangs) void
setRecognizeRects
(OcrRect[] recognizeRects) void
setRectUnit
(int rectUnit) void
setReplaceChar
(int replaceChar) void
setSingleColumnMode
(boolean singleColumnMode) void
setSpaces
(int spaces) void
setTimeoutSeconds
(int timeoutSeconds) void
setWhitespace
(int whitespace) toString()
Methods inherited from class byps.BValueClass
getBypsClient, getChangedMembers, getDbHelper, isChangedMember, isSealed, seal, seal, setBypsClient, setChangedMember, setChangedMembers, setDbHelper
-
Field Details
-
imageData
Image file content. Either imageData or objId must be set. -
objId
Object ID of an archived document to be analyzed. Either imageData or objId must be set. -
originalFileName
Original Filename. allows tracking through the log files of the different modules.- Since:
- 11.00.000.058
-
pageNo
protected int pageNoPage number. The first page number is 0. If all pages should be analyzed, set pageNo = -1. -
pageNumbers
protected int[] pageNumbersArray of page numbers which should be analysed by the OCR. The first page number is 0. The following constants can be used:OcrInfoC.ALL_PAGES
,OcrInfoC.EVEN_PAGES
,OcrInfoC.ODD_PAGES
- Since:
- 9.00.030.027
-
recognizeLangs
The image data is of this language(s). The supported languages can be requested by a call toIXServicePortIF.processOcr(ClientInfo, OcrInfo)
. The OcrInfo parameter must have memberOcrInfo.queryLanguages
set. Use the internal languages returned inOcrResult.queryLanguages
for this member. At least one language must be set. The String is case sensitive. -
recognizeRects
Constrain recognition to this rectangles. Optional. -
rectUnit
protected int rectUnitRectangle coordinates are based on this unit. Use on of the constants OcrInfoC.UNIT_*. Optional.- See Also:
-
timeoutSeconds
protected int timeoutSecondsRecognition timeout. Cancel recognition if it least longer than this number of seconds. Optional. -
pageTimeout
protected int pageTimeoutRecognition timeout for a single page. Cancel recognition if it least longer than this number of seconds. Optional.- Since:
- 9.00.030.028
-
minCharConfidence
protected int minCharConfidenceMinimum confidence of character recognition in percent. Characters that are recognized with a lower confidence are replaced byreplaceChar
. Optional. -
replaceChar
protected int replaceCharReplacement for characters. Characters that are recognized with a lower confidence thanminCharConfidence
are replaced this character. Optional. -
accuracy
protected int accuracyRecognition accuracy. A value of 0 activates the fast mode, a value of 1 activates the exact mode. -
singleColumnMode
protected boolean singleColumnModeDisable table recognition. Set this member to true, if the OCR should not try to recognized columns and rows of tables. Optional. -
spaces
protected int spacesOcrInfoC.NORMAL/TWOSPACES/EXACT- Since:
- 10.17.069.001
-
encoding
protected int encodingOcrInfoC.ENCODING_UTF8 / _UTF16 / _UTF16LE- Since:
- 10.17.080.003
-
pdfQuality
protected int pdfQualityOcrInfoC.PDF_QUALITY_MAXQUALITY / _BALANCED / _MINSIZE / _MAXSPEED- Since:
- 11.00.000.057
-
pdfCompliance
protected int pdfComplianceOcrInfoC.COMPLIANCE_PDFA_3U / _3A / _2U / _2A / _1B / _1A / _NONE- Since:
- 11.00.000.057
-
whitespace
protected int whitespaceOCR returns whitespace characters. Must be one of the following:OcrInfoC.WHITESPACE_DEFAULT
,OcrInfoC.WHITESPACE_REPLACE
- Since:
- 12.00.000.041
-
outputFormat
protected int outputFormatOutput format. Must be one of the following:OcrInfoC.TEXT
,OcrInfoC.CHAR_AND_RECT
,OcrInfoC.CHAR_AND_RECT_EX
OcrInfoC.PDF
,OcrInfoC.XML
-
-
Constructor Details
-
OcrInfoRecognizeFile
public OcrInfoRecognizeFile()
-
-
Method Details
-
toString
-
getImageData
-
setImageData
-
setPageNumbers
public void setPageNumbers(int[] pageNumbers) -
getPageNumbers
public int[] getPageNumbers() -
getPageNo
public int getPageNo() -
setPageNo
public void setPageNo(int pageNo) -
getRecognizeLangs
-
setRecognizeLangs
-
getRecognizeRects
-
setRecognizeRects
-
getRectUnit
public int getRectUnit() -
setRectUnit
public void setRectUnit(int rectUnit) -
setPageTimeout
public void setPageTimeout(int pageTimeout) -
getPageTimeout
public int getPageTimeout() -
getTimeoutSeconds
public int getTimeoutSeconds() -
setTimeoutSeconds
public void setTimeoutSeconds(int timeoutSeconds) -
getMinCharConfidence
public int getMinCharConfidence() -
setMinCharConfidence
public void setMinCharConfidence(int minCharConfidence) -
getReplaceChar
public int getReplaceChar() -
setReplaceChar
public void setReplaceChar(int replaceChar) -
getAccuracy
public int getAccuracy() -
setAccuracy
public void setAccuracy(int accuracy) -
isSingleColumnMode
public boolean isSingleColumnMode() -
setSingleColumnMode
public void setSingleColumnMode(boolean singleColumnMode) -
getOutputFormat
public int getOutputFormat() -
setOutputFormat
public void setOutputFormat(int outputFormat) -
getObjId
-
setObjId
-
setSpaces
public void setSpaces(int spaces) -
getSpaces
public int getSpaces() -
setEncoding
public void setEncoding(int encoding) -
getEncoding
public int getEncoding() -
getPdfQuality
public int getPdfQuality() -
setPdfQuality
public void setPdfQuality(int pdfQuality) -
getPdfCompliance
public int getPdfCompliance() -
setPdfCompliance
public void setPdfCompliance(int pdfCompliance) -
getWhitespace
public int getWhitespace() -
setWhitespace
public void setWhitespace(int whitespace) -
getOriginalFileName
-
setOriginalFileName
-