public class AiBcrOcrDataPart extends Object
Constructor and Description |
---|
AiBcrOcrDataPart() |
AiBcrOcrDataPart(Double x,
Double y,
Double width,
Double height,
String text,
Map<String,String> details)
Initializes a new instance of the AiBcrOcrDataPart
|
Modifier and Type | Method and Description |
---|---|
AiBcrOcrDataPart |
details(Map<String,String> details)
Set details and return this.
|
boolean |
equals(Object o) |
Map<String,String> |
getDetails()
Additional recognition result details
|
Double |
getHeight()
Height of text block
|
String |
getText()
Recognized text
|
Double |
getWidth()
Width of text block
|
Double |
getX()
X position of text block
|
Double |
getY()
Y position of text block
|
int |
hashCode() |
AiBcrOcrDataPart |
height(Double height)
Set height and return this.
|
AiBcrOcrDataPart |
putDetailsItem(String key,
String detailsItem)
Add an item to details and return this.
|
void |
setDetails(Map<String,String> details)
Set details.
|
void |
setHeight(Double height)
Set height.
|
void |
setText(String text)
Set text.
|
void |
setWidth(Double width)
Set width.
|
void |
setX(Double x)
Set x.
|
void |
setY(Double y)
Set y.
|
AiBcrOcrDataPart |
text(String text)
Set text and return this.
|
String |
toString() |
AiBcrOcrDataPart |
width(Double width)
Set width and return this.
|
AiBcrOcrDataPart |
x(Double x)
Set x and return this.
|
AiBcrOcrDataPart |
y(Double y)
Set y and return this.
|
public AiBcrOcrDataPart()
public AiBcrOcrDataPart(Double x, Double y, Double width, Double height, String text, Map<String,String> details)
x
- X position of text blocky
- Y position of text blockwidth
- Width of text blockheight
- Height of text blocktext
- Recognized textdetails
- Additional recognition result detailspublic AiBcrOcrDataPart x(Double x)
x
- X position of text blockpublic Double getX()
public void setX(Double x)
x
- X position of text blockpublic AiBcrOcrDataPart y(Double y)
y
- Y position of text blockpublic Double getY()
public void setY(Double y)
y
- Y position of text blockpublic AiBcrOcrDataPart width(Double width)
width
- Width of text blockpublic Double getWidth()
public void setWidth(Double width)
width
- Width of text blockpublic AiBcrOcrDataPart height(Double height)
height
- Height of text blockpublic Double getHeight()
public void setHeight(Double height)
height
- Height of text blockpublic AiBcrOcrDataPart text(String text)
text
- Recognized textpublic String getText()
public void setText(String text)
text
- Recognized textpublic AiBcrOcrDataPart details(Map<String,String> details)
details
- Additional recognition result detailspublic AiBcrOcrDataPart putDetailsItem(String key, String detailsItem)
key
- An item keydetailsItem
- An item valuepublic Map<String,String> getDetails()
public void setDetails(Map<String,String> details)
details
- Additional recognition result detailsCopyright © 2020. All rights reserved.