public class OcrUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BARCODE_PSEUDO_FONT |
Constructor and Description |
---|
OcrUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
createFontSelectionList(java.lang.String selectedFont,
boolean addEmpty)
Compose a font list of the system.
|
static java.lang.String |
getConsolidatedPartsAlphabet(java.util.function.Function<Part,java.lang.Boolean> partFilter,
java.lang.String stockAlphabet)
From all the optionally filtered parts in the system, create the alphabet for OCR operation.
|
static Part |
identifyDetectedPart(SimpleOcr.OcrModel detectedOcrModel,
Feeder feeder)
Identify an OCR detected part.
|
public static final java.lang.String BARCODE_PSEUDO_FONT
public static java.util.List<java.lang.String> createFontSelectionList(java.lang.String selectedFont, boolean addEmpty)
selectedFont
- addEmpty
- public static java.lang.String getConsolidatedPartsAlphabet(java.util.function.Function<Part,java.lang.Boolean> partFilter, java.lang.String stockAlphabet)
partFilter
- optional part filtering Function.stockAlphabet
- TODOpublic static Part identifyDetectedPart(SimpleOcr.OcrModel detectedOcrModel, Feeder feeder) throws java.lang.Exception
detectedOcrModel
- feeder
- java.lang.Exception