-
- All Implemented Interfaces:
-
java.io.Serializable
public class OCRPeripheral extends Peripheral
The OCRPeripheral class represents OCR peripheral models that can be scanned using com.validic.mobile.ocr.ValidicOCRController
-
-
Field Summary
Fields Modifier and Type Field Description private int
ocrPeripheralType
private float
overlayScaleFactor
-
Constructor Summary
Constructors Constructor Description OCRPeripheral()
-
Method Summary
Modifier and Type Method Description int
getOcrPeripheralType()
An integer value that indicates to the OCR engine the type of peripheral that the instance represents. float
getOverlayScaleFactor()
Used internally to scale the aiming overlay. static List<OCRPeripheral>
getSupportedPeripherals()
List of supported OCR objects. static OCRPeripheral
getPeripheralForID(int id)
Returns the peripheral give the getSupportedPeripherals id static OCRPeripheral
getPeripheralForOCRPeripheralType(int ocrPeripheralType)
Returns the peripheral give the getSupportedPeripherals ocrPeripheralType static List<OCRPeripheral>
getPeripheralsForType(Peripheral.PeripheralType peripheralType)
Returns the list of supported peripherals for a given PeripheralType. boolean
equals(Object o)
Array<String>
getRecordMap()
Used to map results to a record. String
getOverlayImagePath()
Get the path to the asset that should be provided as an OCR aiming overlay -
Methods inherited from class com.validic.mobile.Peripheral
getConnectionType, getImageUrl, getManufacturer, getModel, getName, getPeripheralForConnectionTypeAndId, getPeripheralID, getPeripheralType, getType, isDisabled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getOcrPeripheralType
int getOcrPeripheralType()
An integer value that indicates to the OCR engine the type of peripheral that the instance represents.
-
getOverlayScaleFactor
float getOverlayScaleFactor()
Used internally to scale the aiming overlay.
-
getSupportedPeripherals
static List<OCRPeripheral> getSupportedPeripherals()
List of supported OCR objects. These devices can be passed to ValidicOCRFragment
-
getPeripheralForID
static OCRPeripheral getPeripheralForID(int id)
Returns the peripheral give the getSupportedPeripherals id
- Parameters:
id
- for peripheral
-
getPeripheralForOCRPeripheralType
static OCRPeripheral getPeripheralForOCRPeripheralType(int ocrPeripheralType)
Returns the peripheral give the getSupportedPeripherals ocrPeripheralType
- Parameters:
ocrPeripheralType
- for peripheral
-
getPeripheralsForType
static List<OCRPeripheral> getPeripheralsForType(Peripheral.PeripheralType peripheralType)
Returns the list of supported peripherals for a given PeripheralType.
-
getRecordMap
Array<String> getRecordMap()
Used to map results to a record.
-
getOverlayImagePath
String getOverlayImagePath()
Get the path to the asset that should be provided as an OCR aiming overlay
-
-
-
-