ocrGetText
Get the text on an image.
#
Usage#
OptionsName | Type | Default | Details |
---|---|---|---|
options (optional) | GetTextOptions | {} | command options |
options.reuseOcr (optional) | boolean | false | Re-use a previous OCR scan if it is available |
options.androidRectangles (optional) | Rectangles | Rectangles for Android to crop the search area for OCR | |
options.androidRectangles.top | number | Start position from the top of the screen to start cropping the search area for OCR | |
options.androidRectangles.left | number | Start position from the left of the screen to start cropping the search area for OCR | |
options.androidRectangles.right | number | Start position from the right of the screen to start cropping the search area for OCR | |
options.androidRectangles.bottom | number | Start position from the bottom of the screen to start cropping the search area for OCR | |
options.iOSRectangles (optional) | Rectangles | Rectangles for Android to crop the search area for OCR | |
options.iOSRectangles.top | number | Start position from the top of the screen to start cropping the search area for OCR | |
options.iOSRectangles.left | number | Start position from the left of the screen to start cropping the search area for OCR | |
options.iOSRectangles.right | number | Start position from the right of the screen to start cropping the search area for OCR | |
options.iOSRectangles.bottom | number | Start position from the bottom of the screen to start cropping the search area for OCR |
#
ReturnsReturns the text on the screen