A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- a - com.uddernetworks.newocr.recognition.similarity.Letter
- A - com.uddernetworks.newocr.recognition.similarity.Letter
- Actions - Interface in com.uddernetworks.newocr.recognition
-
A class to provide general actions for the OCR.
- addAveragedData(String, double[]) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Adds a piece of data in the database (Never overrides existing data) to be averaged and fetched later.
- addAveragedData(String, double[]) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- addAveragedData(String, DoubleList) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Adds a piece of data in the database (Never overrides existing data) to be averaged and fetched later.
- addAveragedData(String, DoubleList) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- addCustomSpace(char, double) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Adds a custom between-character space amount for after a character, as some fonts have different padding after certain character.
- addCustomSpace(char, double) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- addDataPoint(int, double) - Method in class com.uddernetworks.newocr.character.DatabaseCharacter
-
Sets a percentage value to the data.
- addLetter(Letter) - Method in class com.uddernetworks.newocr.recognition.similarity.rules.BasicSimilarityRule
- addLetterSegments(char, double[]) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Adds segments (Percentage data points) to the database for a certain character, with a modifier of 0.
- addLetterSegments(char, double[]) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- addLetterSegments(char, int, double[]) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Adds segments (Percentage data points) to the database for a certain character.
- addLetterSegments(char, int, double[]) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- addLine(int, List<ImageLetter>) - Method in class com.uddernetworks.newocr.recognition.DefaultScannedImage
- addLine(int, List<ImageLetter>) - Method in interface com.uddernetworks.newocr.recognition.ScannedImage
-
Adds a line containing
ImageLetter
s. - addRatioWeight(Letter, double) - Method in class com.uddernetworks.newocr.train.OCROptions
-
Adds a custom width/height ratio for the given
Letter
. - addRatioWeightFromRule(SimilarRule, double) - Method in class com.uddernetworks.newocr.train.OCROptions
-
Adds a custom width/height ratio for all
Letter
s matching the givenSimilarRule
. - addRatioWeights(List<Letter>, double) - Method in class com.uddernetworks.newocr.train.OCROptions
-
Adds a custom width/height ratio for the each
Letter
i nthe given list. - addRatioWeightsFromRules(List<SimilarRule>, double) - Method in class com.uddernetworks.newocr.train.OCROptions
-
Adds a custom width/height ratio for all
Letter
s matching all the givenSimilarRule
s. - addRule(BiFunction<DatabaseManager, SimilarityManager, MergeRule>) - Method in class com.uddernetworks.newocr.recognition.mergence.DefaultMergenceManager
- addRule(BiFunction<DatabaseManager, SimilarityManager, MergeRule>) - Method in interface com.uddernetworks.newocr.recognition.mergence.MergenceManager
-
Adds a mergence rule to be ran using the given
DatabaseManager
andSimilarityManager
from the constructor. - addSegment(IntPair) - Method in class com.uddernetworks.newocr.character.SearchCharacter
-
Adds a data segment to be calculated in the future.
- addSimilarity(SimilarRule) - Method in class com.uddernetworks.newocr.recognition.similarity.DefaultSimilarityManager
- addSimilarity(SimilarRule) - Method in interface com.uddernetworks.newocr.recognition.similarity.SimilarityManager
-
Adds a
SimilarRule
to the internal list. - AMPERSAND - com.uddernetworks.newocr.recognition.similarity.Letter
- analyzeSlices() - Method in class com.uddernetworks.newocr.character.SearchCharacter
-
Performs calculations for the sections added by
SearchCharacter.addSegment(IntPair)
, getting their <= 1 percentages accessible fromSearchCharacter.getSegmentPercentages()
. - APOSTROPHE - com.uddernetworks.newocr.recognition.similarity.Letter
- ApostropheMergeRule - Class in com.uddernetworks.newocr.recognition.mergence.rules
-
Merges pieces of apostrophes.
- ApostropheMergeRule(DatabaseManager, SimilarityManager) - Constructor for class com.uddernetworks.newocr.recognition.mergence.rules.ApostropheMergeRule
- applySections() - Method in class com.uddernetworks.newocr.character.SearchCharacter
-
Creates sections and invokes
SearchCharacter.addSegment(IntPair)
for each one. - ASTERISK - com.uddernetworks.newocr.recognition.similarity.Letter
- AT - com.uddernetworks.newocr.recognition.similarity.Letter
B
- b - com.uddernetworks.newocr.recognition.similarity.Letter
- B - com.uddernetworks.newocr.recognition.similarity.Letter
- BACKSLASH - com.uddernetworks.newocr.recognition.similarity.Letter
- BasicSimilarityRule - Class in com.uddernetworks.newocr.recognition.similarity.rules
- BasicSimilarityRule(String, Letter...) - Constructor for class com.uddernetworks.newocr.recognition.similarity.rules.BasicSimilarityRule
- BasicSimilarityRule(String, Set<Letter>) - Constructor for class com.uddernetworks.newocr.recognition.similarity.rules.BasicSimilarityRule
- beginMergence(Int2ObjectLinkedOpenHashMap<List<ImageLetter>>, SimilarityManager) - Method in class com.uddernetworks.newocr.recognition.mergence.DefaultMergenceManager
- beginMergence(Int2ObjectLinkedOpenHashMap<List<ImageLetter>>, SimilarityManager) - Method in interface com.uddernetworks.newocr.recognition.mergence.MergenceManager
-
Orders and invokes all merge rules'
MergeRule.mergeCharacters(ImageLetter, List)
method with appropriate data. - bottomY() - Method in interface com.uddernetworks.newocr.recognition.CharacterLine
-
Gets the top Y coordinate of the line.
- bottomY() - Method in class com.uddernetworks.newocr.recognition.TrainLine
C
- c - com.uddernetworks.newocr.recognition.similarity.Letter
- C - com.uddernetworks.newocr.recognition.similarity.Letter
- CARROT - com.uddernetworks.newocr.recognition.similarity.Letter
- Character - Class in com.uddernetworks.newocr.character
-
The superclass of all characters.
- CharacterLine - Interface in com.uddernetworks.newocr.recognition
-
An object to store
SearchCharacter
data for a scanned line. - clearData() - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Clears all data in the database, primarily used for before training.
- clearData() - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- clearLetterSegments(char) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Clears all data revolving around a character from both the `letters` and `sectionData` table.
- clearLetterSegments(char) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- COLON_BOTTOM - com.uddernetworks.newocr.recognition.similarity.Letter
- COLON_TOP - com.uddernetworks.newocr.recognition.similarity.Letter
- colorColumn(BufferedImage, Color, int, int, int) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
Colors in a vertical line of an image.
- colorRow(BufferedImage, Color, int, int, int) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
Colors in a horizontal line of an image.
- com.uddernetworks.newocr.character - package com.uddernetworks.newocr.character
- com.uddernetworks.newocr.configuration - package com.uddernetworks.newocr.configuration
- com.uddernetworks.newocr.database - package com.uddernetworks.newocr.database
- com.uddernetworks.newocr.detection - package com.uddernetworks.newocr.detection
- com.uddernetworks.newocr.recognition - package com.uddernetworks.newocr.recognition
- com.uddernetworks.newocr.recognition.mergence - package com.uddernetworks.newocr.recognition.mergence
- com.uddernetworks.newocr.recognition.mergence.rules - package com.uddernetworks.newocr.recognition.mergence.rules
- com.uddernetworks.newocr.recognition.similarity - package com.uddernetworks.newocr.recognition.similarity
- com.uddernetworks.newocr.recognition.similarity.rules - package com.uddernetworks.newocr.recognition.similarity.rules
- com.uddernetworks.newocr.train - package com.uddernetworks.newocr.train
- com.uddernetworks.newocr.utils - package com.uddernetworks.newocr.utils
- COMMA - com.uddernetworks.newocr.recognition.similarity.Letter
- compareTo(Character) - Method in class com.uddernetworks.newocr.character.Character
- ComputerTrainGenerator - Class in com.uddernetworks.newocr.train
-
Creates a simple image to train on from a given font.
- ComputerTrainGenerator() - Constructor for class com.uddernetworks.newocr.train.ComputerTrainGenerator
- ComputerTrainGenerator(TrainGeneratorOptions) - Constructor for class com.uddernetworks.newocr.train.ComputerTrainGenerator
- ConfigReflectionCacher - Class in com.uddernetworks.newocr.configuration
-
A class to cache constructors from the
HOCONFontConfiguration
. - ConfigReflectionCacher() - Constructor for class com.uddernetworks.newocr.configuration.ConfigReflectionCacher
- ConversionUtils - Class in com.uddernetworks.newocr.utils
-
Provides simple conversions of units used by the OCR and programs using the library.
- ConversionUtils() - Constructor for class com.uddernetworks.newocr.utils.ConversionUtils
- CoordinateCharacter - Class in com.uddernetworks.newocr.character
-
The superclass for characters containing data from the input image.
- CoordinateCharacter() - Constructor for class com.uddernetworks.newocr.character.CoordinateCharacter
- copyProperties(ImageLetter) - Method in class com.uddernetworks.newocr.character.ImageLetter
-
Copies the properties from the given
ImageLetter
to the current one. - createGrid(BufferedImage) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
Creates a grid of booleans from a
BufferedImage
with the same dimensions as the image. - createLetterEntry(char, double, double, double, double, boolean) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Inserts into the `letters` table with a modifier of 0.
- createLetterEntry(char, double, double, double, double, boolean) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- createLetterEntry(char, int, double, double, double, double, boolean) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Inserts into the `letters` table.
- createLetterEntry(char, int, double, double, double, double, boolean) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
D
- d - com.uddernetworks.newocr.recognition.similarity.Letter
- D - com.uddernetworks.newocr.recognition.similarity.Letter
- DatabaseCharacter - Class in com.uddernetworks.newocr.character
-
Used for storage of data to go into our from the database.
- DatabaseCharacter(char) - Constructor for class com.uddernetworks.newocr.character.DatabaseCharacter
-
Creates a DatabaseCharacter from the given character with a modifier of 0.
- DatabaseCharacter(char, int) - Constructor for class com.uddernetworks.newocr.character.DatabaseCharacter
-
Creates a DatabaseCharacter from the given character.
- databaseManager - Variable in class com.uddernetworks.newocr.recognition.mergence.MergeRule
- DatabaseManager - Interface in com.uddernetworks.newocr.database
-
The manager that provides methods to connect and interact with the database.
- DefaultMergenceManager - Class in com.uddernetworks.newocr.recognition.mergence
-
Merges character pieces together.
- DefaultMergenceManager(DatabaseManager, SimilarityManager) - Constructor for class com.uddernetworks.newocr.recognition.mergence.DefaultMergenceManager
-
Creates a new
DefaultMergenceManager
. - DefaultScannedImage - Class in com.uddernetworks.newocr.recognition
-
An object to store line data for
ImageLetter
s on a scanned image. - DefaultScannedImage(File, BufferedImage, BufferedImage) - Constructor for class com.uddernetworks.newocr.recognition.DefaultScannedImage
- DefaultSimilarityManager - Class in com.uddernetworks.newocr.recognition.similarity
-
Uses methods from
SimilarRule
s and checks if characters are similar. - DefaultSimilarityManager() - Constructor for class com.uddernetworks.newocr.recognition.similarity.DefaultSimilarityManager
- diff(double, double) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
Gets the difference between two doubles.
- diff(int, int) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
Gets the difference between two ints
- DOLLAR - com.uddernetworks.newocr.recognition.similarity.Letter
- DotSimilarityRule - Class in com.uddernetworks.newocr.recognition.similarity.rules
-
Similarity rule for dot-like characters.
- DotSimilarityRule() - Constructor for class com.uddernetworks.newocr.recognition.similarity.rules.DotSimilarityRule
E
- e - com.uddernetworks.newocr.recognition.similarity.Letter
- E - com.uddernetworks.newocr.recognition.similarity.Letter
- EIGHT - com.uddernetworks.newocr.recognition.similarity.Letter
- equals(Object) - Method in class com.uddernetworks.newocr.character.Character
- equals(Object) - Method in class com.uddernetworks.newocr.character.CoordinateCharacter
- equals(Object) - Method in class com.uddernetworks.newocr.character.DatabaseCharacter
- equals(Object) - Method in class com.uddernetworks.newocr.character.ImageLetter
- equals(Object) - Method in class com.uddernetworks.newocr.character.SearchCharacter
- equals(Object) - Method in class com.uddernetworks.newocr.character.TrainedCharacterData
- equals(Object) - Method in class com.uddernetworks.newocr.utils.IntPair
- EQUALS_BOTTOM - com.uddernetworks.newocr.recognition.similarity.Letter
- EQUALS_TOP - com.uddernetworks.newocr.recognition.similarity.Letter
- EqualVerticalMergeRule - Class in com.uddernetworks.newocr.recognition.mergence.rules
-
Merges : and = pieces.
- EqualVerticalMergeRule(DatabaseManager, SimilarityManager) - Constructor for class com.uddernetworks.newocr.recognition.mergence.rules.EqualVerticalMergeRule
- EXCLAMATION - com.uddernetworks.newocr.recognition.similarity.Letter
- EXCLAMATION_DOT - com.uddernetworks.newocr.recognition.similarity.Letter
F
- f - com.uddernetworks.newocr.recognition.similarity.Letter
- F - com.uddernetworks.newocr.recognition.similarity.Letter
- fetchAndApplyMergeRules(MergenceManager) - Method in interface com.uddernetworks.newocr.configuration.FontConfiguration
-
Fetches the mergence rules' settings from the configuration and applies them to the given
MergenceManager
. - fetchAndApplyMergeRules(MergenceManager) - Method in class com.uddernetworks.newocr.configuration.HOCONFontConfiguration
- fetchAndApplySimilarities() - Method in interface com.uddernetworks.newocr.configuration.FontConfiguration
-
Fetches the similarities' settings from the configuration and applies them to the given
SimilarityManager
. - fetchAndApplySimilarities() - Method in class com.uddernetworks.newocr.configuration.HOCONFontConfiguration
- fetchOptions() - Method in interface com.uddernetworks.newocr.configuration.FontConfiguration
-
Generates and returns the
OCROptions
from the file configuration. - fetchOptions() - Method in class com.uddernetworks.newocr.configuration.HOCONFontConfiguration
- filter(BufferedImage) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
Binarizes the input image, making all pixels wither black or white with an alpha of 255
- finishRecalculations() - Method in class com.uddernetworks.newocr.character.TrainedCharacterData
-
Calculates everything based on the data inserted by
TrainedCharacterData.recalculateTo(double, double)
andTrainedCharacterData.recalculateTo(SearchCharacter)
by averaging the width and heights provided, and averaging the percentages retrieved fromSearchCharacter
s. - FIVE - com.uddernetworks.newocr.recognition.similarity.Letter
- FontConfiguration - Interface in com.uddernetworks.newocr.configuration
-
The configuration to read a file to populate managers and options.
- FORWARD_SLASH - com.uddernetworks.newocr.recognition.similarity.Letter
- FOUR - com.uddernetworks.newocr.recognition.similarity.Letter
G
- g - com.uddernetworks.newocr.recognition.similarity.Letter
- G - com.uddernetworks.newocr.recognition.similarity.Letter
- generateTrainingImage(File) - Method in class com.uddernetworks.newocr.train.ComputerTrainGenerator
- generateTrainingImage(File) - Method in interface com.uddernetworks.newocr.train.TrainGenerator
-
Generates an image that can be used while training the OCR using default options of font bounds 90-30, and a font family of Comic Sans MS.
- generateTrainingImage(File, TrainGeneratorOptions) - Method in class com.uddernetworks.newocr.train.ComputerTrainGenerator
- generateTrainingImage(File, TrainGeneratorOptions) - Method in interface com.uddernetworks.newocr.train.TrainGenerator
-
Generates an image that can be used while training the OCR using the given options.
- get() - Method in interface com.uddernetworks.newocr.configuration.ReflexiveSupplier
- getAllCharacterSegments() - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Gets all the
DatabaseCharacter
s in the database - getAllCharacterSegments() - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- getAmountOfMerges() - Method in class com.uddernetworks.newocr.character.CoordinateCharacter
-
Gets how many times the current
ImageLetter
has been merged viaCoordinateCharacter.merge(CoordinateCharacter)
with anotherImageLetter
. - getAveragedData(String) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Gets the average value of the given data name, added from
DatabaseManager.addAveragedData(String, double[])
. - getAveragedData(String) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- getAverageHeight() - Method in class com.uddernetworks.newocr.character.ImageLetter
-
Gets the average height of this character's trained data.
- getAverageWidth() - Method in class com.uddernetworks.newocr.character.ImageLetter
-
Gets the average width of this character's trained data.
- getAvgHeight() - Method in class com.uddernetworks.newocr.character.DatabaseCharacter
-
Gets the average height of the character.
- getAvgWidth() - Method in class com.uddernetworks.newocr.character.DatabaseCharacter
-
Gets the average width of the character.
- getBinarizedImage() - Method in class com.uddernetworks.newocr.recognition.DefaultScannedImage
- getBinarizedImage() - Method in interface com.uddernetworks.newocr.recognition.ScannedImage
-
Gets the binarized image before any preprocessing
- getCenterOffset() - Method in class com.uddernetworks.newocr.character.SearchCharacter
-
Gets the amount away a character is from the center of the line.
- getCharacterFor(SearchCharacter) - Method in interface com.uddernetworks.newocr.recognition.Actions
-
Actually matches the
SearchCharacter
object to a real character from the database. - getCharacterFor(SearchCharacter) - Method in class com.uddernetworks.newocr.recognition.OCRActions
- getCharacterFor(SearchCharacter, IntPair) - Method in interface com.uddernetworks.newocr.recognition.Actions
-
Actually matches the
SearchCharacter
object to a real character from the database with line bounds for improved accuracy. - getCharacterFor(SearchCharacter, IntPair) - Method in class com.uddernetworks.newocr.recognition.OCRActions
- getCharacterFor(SearchCharacter, Object2DoubleMap<ImageLetter>) - Method in interface com.uddernetworks.newocr.recognition.Actions
-
Actually matches the
SearchCharacter
object to a real character from the database. - getCharacterFor(SearchCharacter, Object2DoubleMap<ImageLetter>) - Method in class com.uddernetworks.newocr.recognition.OCRActions
- getCharacterFor(SearchCharacter, Object2DoubleMap<ImageLetter>, IntPair) - Method in interface com.uddernetworks.newocr.recognition.Actions
-
Actually matches the
SearchCharacter
object to a real character from the database with line bounds for improved accuracy. - getCharacterFor(SearchCharacter, Object2DoubleMap<ImageLetter>, IntPair) - Method in class com.uddernetworks.newocr.recognition.OCRActions
- getCharacterFor(SearchCharacter, List<TrainedCharacterData>) - Method in interface com.uddernetworks.newocr.recognition.Actions
-
Actually matches the
SearchCharacter
object to a real character from the database. - getCharacterFor(SearchCharacter, List<TrainedCharacterData>) - Method in class com.uddernetworks.newocr.recognition.OCRActions
- getCharacterFor(SearchCharacter, List<TrainedCharacterData>, IntPair) - Method in interface com.uddernetworks.newocr.recognition.Actions
-
Actually matches the
SearchCharacter
object to a real character from the database with line bounds for improved accuracy. - getCharacterFor(SearchCharacter, List<TrainedCharacterData>, IntPair) - Method in class com.uddernetworks.newocr.recognition.OCRActions
- getClosestMatches() - Method in class com.uddernetworks.newocr.character.ImageLetter
- getCoordinates() - Method in class com.uddernetworks.newocr.character.CoordinateCharacter
-
Gets the coordinates of the character.
- getCustomSpace(char) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Gets the custom between-character space associated with the character, to appear after the character.
- getCustomSpace(char) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- getData() - Method in class com.uddernetworks.newocr.character.DatabaseCharacter
-
Gets the 16 sectioned percentages for the stored character.
- getData() - Method in class com.uddernetworks.newocr.character.ImageLetter
-
Gets the raw data Object set to the
ImageLetter
object, useful for storing any needed data about the character to be used in the future. - getData(Class<T>) - Method in class com.uddernetworks.newocr.character.ImageLetter
-
Gets any data set to the
ImageLetter
object, useful for storing any needed data about the character to be used in the future. - getDataSource() - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Gets the
DataSource
used by the DatabaseManager - getDataSource() - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- getDiagonal(boolean[][], boolean) - Static method in class com.uddernetworks.newocr.utils.SegmentationUtils
-
Splits a grid of values in half diagonally.
- getDifferencesFrom(double[], double[]) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
Gets the difference of two arrays' values.
- getFileName() - Method in interface com.uddernetworks.newocr.configuration.FontConfiguration
-
Gets the file name the
HOCONFontConfiguration
was generated from. - getFileName() - Method in class com.uddernetworks.newocr.configuration.HOCONFontConfiguration
- getFontFamily() - Method in class com.uddernetworks.newocr.train.TrainGeneratorOptions
-
Gets the system font family used during training image generation.
- getFontSize(char, int) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Gets the font size ratio from the given character and modifier.
- getFontSize(char, int) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- getFontSize(ImageLetter) - Method in interface com.uddernetworks.newocr.recognition.Actions
-
Gets the estimated font size for the given
ImageLetter
. - getFontSize(ImageLetter) - Method in class com.uddernetworks.newocr.recognition.OCRActions
- getFriendlyName() - Method in interface com.uddernetworks.newocr.configuration.FontConfiguration
-
The friendly version of the font name that should be displayed in messages/options.
- getFriendlyName() - Method in class com.uddernetworks.newocr.configuration.HOCONFontConfiguration
- getGrid() - Method in class com.uddernetworks.newocr.recognition.DefaultScannedImage
- getGrid() - Method in interface com.uddernetworks.newocr.recognition.ScannedImage
-
Returns the raw, mutable grid of
ImageLetter
s internally used with the key of the mpa being the exact Y position of the line. - getGridLineAtIndex(int) - Method in class com.uddernetworks.newocr.recognition.DefaultScannedImage
- getGridLineAtIndex(int) - Method in interface com.uddernetworks.newocr.recognition.ScannedImage
-
Gets the line at the stored index.
- getHeight() - Method in class com.uddernetworks.newocr.character.Character
-
Gets the height of the current
Character
. - getHeight() - Method in class com.uddernetworks.newocr.detection.SearchImage
-
Gets the height computed from the internal value 2D array.
- getHeightAverage() - Method in class com.uddernetworks.newocr.character.TrainedCharacterData
-
Gets the average height for everything trained with this object.
- getHorizontalHalf(boolean[][]) - Static method in class com.uddernetworks.newocr.utils.SegmentationUtils
-
Splits a grid of values in half horizontally
- getHorizontalThird(boolean[][]) - Static method in class com.uddernetworks.newocr.utils.SegmentationUtils
-
Splits a grid of values in thirds horizontally
- getImageReadMethod() - Method in class com.uddernetworks.newocr.train.OCROptions
-
Gets the method that will be used to read the image for both training and scanning.
- getKey() - Method in class com.uddernetworks.newocr.utils.IntPair
-
Gets this
IntPair
's key. - getLetter() - Method in class com.uddernetworks.newocr.character.Character
-
Gets the char letter of the current
Character
. - getLetter() - Method in enum com.uddernetworks.newocr.recognition.similarity.Letter
- getLetter(char, int) - Static method in enum com.uddernetworks.newocr.recognition.similarity.Letter
- getLetter(ImageLetter) - Static method in enum com.uddernetworks.newocr.recognition.similarity.Letter
- getLetters() - Method in interface com.uddernetworks.newocr.recognition.CharacterLine
-
Gets the letters in the line ordered by X value.
- getLetters() - Method in class com.uddernetworks.newocr.recognition.TrainLine
- getLetters(SearchImage, List<SearchCharacter>) - Method in interface com.uddernetworks.newocr.recognition.Actions
-
Gets the
SearchCharacter
characters found in the givenSearchImage
. - getLetters(SearchImage, List<SearchCharacter>) - Method in class com.uddernetworks.newocr.recognition.OCRActions
- getLettersDuringTraining(SearchImage) - Method in interface com.uddernetworks.newocr.recognition.Actions
-
Gets the
SearchCharacter
s found in training. - getLettersDuringTraining(SearchImage) - Method in class com.uddernetworks.newocr.recognition.OCRActions
- getLine(int) - Method in class com.uddernetworks.newocr.recognition.DefaultScannedImage
- getLine(int) - Method in interface com.uddernetworks.newocr.recognition.ScannedImage
-
Gets the line at the given index value.
- getLineBoundsForTraining(SearchImage) - Method in interface com.uddernetworks.newocr.recognition.Actions
-
Gets the top and bottom line bounds found from the value 2D array.
- getLineBoundsForTraining(SearchImage) - Method in class com.uddernetworks.newocr.recognition.OCRActions
- getLineCount() - Method in class com.uddernetworks.newocr.recognition.DefaultScannedImage
- getLineCount() - Method in interface com.uddernetworks.newocr.recognition.ScannedImage
-
gets the amount of lines in the image.
- getLineEntry(int) - Method in class com.uddernetworks.newocr.recognition.DefaultScannedImage
- getLineEntry(int) - Method in interface com.uddernetworks.newocr.recognition.ScannedImage
-
Gets both the line Y and values at the given index value.
- getMaxCenter() - Method in class com.uddernetworks.newocr.character.DatabaseCharacter
-
Gets the maximum relative center value from the top of the character found in the training set for this font size.
- getMaxCenter() - Method in class com.uddernetworks.newocr.character.ImageLetter
-
Gets the maximum relative center value from the top of the character found in the training set for this font size.
- getMaxCenter() - Method in class com.uddernetworks.newocr.character.TrainedCharacterData
-
Gets the maximum center value of all the training data used.
- getMaxFontSize() - Method in class com.uddernetworks.newocr.train.TrainGeneratorOptions
-
Gets the maximum font size to generate up to in points.
- getMaxPercentDiffToMerge() - Method in class com.uddernetworks.newocr.train.OCROptions
-
Gets the value set by
OCROptions.setMaxPercentDiffToMerge(double)
- getMergedPieces() - Method in class com.uddernetworks.newocr.character.CoordinateCharacter
-
Gets the individual pieces before merging.
- getMinCenter() - Method in class com.uddernetworks.newocr.character.DatabaseCharacter
-
Gets the minimum relative center value from the top of the character found in the training set for this font size.
- getMinCenter() - Method in class com.uddernetworks.newocr.character.ImageLetter
-
Gets the minimum relative center value from the top of the character found in the training set for this font size.
- getMinCenter() - Method in class com.uddernetworks.newocr.character.TrainedCharacterData
-
Gets the minimum center value of all the training data used.
- getMinFontSize() - Method in class com.uddernetworks.newocr.train.TrainGeneratorOptions
-
Gets the minimum font size to generate down to in points.
- getMod() - Method in enum com.uddernetworks.newocr.recognition.similarity.Letter
- getModifier() - Method in class com.uddernetworks.newocr.character.Character
-
Gets the modifier for the character.
- getName() - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Gets the name of the database, which is by default it is either the file name or URL (Whichever one is given).
- getName() - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- getName() - Method in class com.uddernetworks.newocr.recognition.similarity.rules.BasicSimilarityRule
- getName() - Method in interface com.uddernetworks.newocr.recognition.similarity.SimilarRule
-
Gets the name of the rule.
- getOptions() - Method in interface com.uddernetworks.newocr.recognition.Actions
-
Gets the
OCROptions
theActions
is using. - getOptions() - Method in class com.uddernetworks.newocr.recognition.OCRActions
- getOriginalFile() - Method in class com.uddernetworks.newocr.recognition.DefaultScannedImage
- getOriginalFile() - Method in interface com.uddernetworks.newocr.recognition.ScannedImage
-
Gets the original
File
scanned by the OCR. - getOriginalImage() - Method in class com.uddernetworks.newocr.recognition.DefaultScannedImage
- getOriginalImage() - Method in interface com.uddernetworks.newocr.recognition.ScannedImage
-
Gets the original image scanned by the OCR.
- getOrLookupConstructor(Class<T>, ReflexiveSupplier<Constructor<T>>) - Method in class com.uddernetworks.newocr.configuration.ConfigReflectionCacher
- getOrLookupConstructor(Class<T>, ReflexiveSupplier<Constructor<T>>) - Method in interface com.uddernetworks.newocr.configuration.ReflectionCacher
-
Gets a constructor from the internal cache from the given class, or generate one via constructorGenerator.
- getPrettyString() - Method in class com.uddernetworks.newocr.recognition.DefaultScannedImage
- getPrettyString() - Method in interface com.uddernetworks.newocr.recognition.ScannedImage
-
Gets the string of a scanned image
- getPriority() - Method in class com.uddernetworks.newocr.recognition.mergence.MergeRule
-
Gets the priority of the current rule
- getPriority() - Method in class com.uddernetworks.newocr.recognition.mergence.rules.ApostropheMergeRule
- getPriority() - Method in class com.uddernetworks.newocr.recognition.mergence.rules.EqualVerticalMergeRule
- getPriority() - Method in class com.uddernetworks.newocr.recognition.mergence.rules.OverDotMergeRule
- getPriority() - Method in class com.uddernetworks.newocr.recognition.mergence.rules.PercentMergeRule
- getPriority() - Method in class com.uddernetworks.newocr.recognition.mergence.rules.UnderDotMergeRule
- getPriorityIndex() - Method in enum com.uddernetworks.newocr.recognition.mergence.MergePriority
- getProperty(String) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Gets the boolean property by the given name.
- getProperty(String) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- getRatio() - Method in class com.uddernetworks.newocr.character.ImageLetter
-
Gets the width/height ratio of this character.
- getRule(String) - Method in class com.uddernetworks.newocr.recognition.similarity.DefaultSimilarityManager
- getRule(String) - Method in interface com.uddernetworks.newocr.recognition.similarity.SimilarityManager
-
Gets the instance of
SimilarRule
with the given name. - getSafeRule(String, Consumer<SimilarRule>) - Method in class com.uddernetworks.newocr.recognition.similarity.DefaultSimilarityManager
- getSafeRule(String, Consumer<SimilarRule>) - Method in interface com.uddernetworks.newocr.recognition.similarity.SimilarityManager
-
Gets a rule from the given name, and if found, sends it through the consumer.
- getSecondHighest(List<Object2DoubleMap.Entry<ImageLetter>>) - Method in class com.uddernetworks.newocr.recognition.similarity.DefaultSimilarityManager
- getSecondHighest(List<Object2DoubleMap.Entry<ImageLetter>>) - Method in interface com.uddernetworks.newocr.recognition.similarity.SimilarityManager
-
When given a list of the potential results of a character (Irrelevant what character it is), this will find the character lowest in the list that does not match the first character's letter and modifier to any of the added
SimilarRule
s. - getSegmentPercentages() - Method in class com.uddernetworks.newocr.character.SearchCharacter
-
Gets the raw segment percentages all <= 1.
- getSegmentPercentages() - Method in class com.uddernetworks.newocr.character.TrainedCharacterData
-
Gets the calculated array of the percentages for each section.
- getSegments() - Method in class com.uddernetworks.newocr.character.SearchCharacter
-
Gets the raw segments added via
SearchCharacter.addSegment(IntPair)
where the Entry format is [total black, size of segment]. - getSizeRatio() - Method in class com.uddernetworks.newocr.character.TrainedCharacterData
-
Gets the width/height size ratio.
- getSizeRatioWeight() - Method in class com.uddernetworks.newocr.train.OCROptions
-
Gets the amount the width/height radio should be multiplied across all a character's potential matches, to increase its effects compared to the actual section similarity.
- getSizeRatioWeight(Letter) - Method in class com.uddernetworks.newocr.train.OCROptions
-
Gets the amount the width/height radio should be multiplied across all a character's potential matches, to increase its effects compared to the actual section similarity.
- getSpacesFor(List<ImageLetter>, int) - Method in class com.uddernetworks.newocr.recognition.OCRScan
- getSpacesFor(List<ImageLetter>, int) - Method in interface com.uddernetworks.newocr.recognition.Scan
-
Gets and inserts all the spaces of the current line based on the font size given (The first character of the line by default).
- getSpecialSpaces() - Method in class com.uddernetworks.newocr.train.OCROptions
-
Gets the characters requiring custom trained spaces.
- getSubimage(int, int, int, int) - Method in class com.uddernetworks.newocr.detection.SearchImage
-
Gets a
SearchImage
from the bounds of the current image. - getSystemName() - Method in interface com.uddernetworks.newocr.configuration.FontConfiguration
-
Gets the font name used by the OS to define it.
- getSystemName() - Method in class com.uddernetworks.newocr.configuration.HOCONFontConfiguration
- getTrainedCharacter(List<TrainedCharacterData>, char, int) - Method in class com.uddernetworks.newocr.recognition.OCRTrain
- getTrainedCharacter(List<TrainedCharacterData>, char, int) - Method in interface com.uddernetworks.newocr.recognition.Train
-
Gets the
TrainedCharacterData
with the known letter value of the given character, with the same modifier. - getTrainingMeta(String) - Method in class com.uddernetworks.newocr.character.SearchCharacter
-
Gets the training meta with the given name.
- getValue() - Method in class com.uddernetworks.newocr.utils.IntPair
-
Gets this
IntPair
's value. - getValue(int, int) - Method in class com.uddernetworks.newocr.detection.SearchImage
-
Gets the coordinate of the given coordinates.
- getValues() - Method in class com.uddernetworks.newocr.character.CoordinateCharacter
-
Gets the black (true) and white (false) pixels of the scanned character.
- getValues() - Method in class com.uddernetworks.newocr.detection.SearchImage
-
Gets the raw values grid.
- getVerticalHalf(boolean[][]) - Static method in class com.uddernetworks.newocr.utils.SegmentationUtils
-
Splits a grid of values in half vertically
- getVerticalThird(boolean[][]) - Static method in class com.uddernetworks.newocr.utils.SegmentationUtils
-
Splits a grid of values in thirds vertically
- getWidth() - Method in class com.uddernetworks.newocr.character.Character
-
Gets the width of the current
Character
. - getWidth() - Method in class com.uddernetworks.newocr.detection.SearchImage
-
Gets the width computed from the internal value 2D array.
- getWidthAverage() - Method in class com.uddernetworks.newocr.character.TrainedCharacterData
-
Gets the average width for everything trained with this object.
- getX() - Method in class com.uddernetworks.newocr.character.Character
-
Gets the X coordinate of the current
Character
. - getY() - Method in class com.uddernetworks.newocr.character.Character
-
Gets the Y coordinate of the current
Character
. - GRAVE - com.uddernetworks.newocr.recognition.similarity.Letter
- GREATER_THAN - com.uddernetworks.newocr.recognition.similarity.Letter
H
- h - com.uddernetworks.newocr.recognition.similarity.Letter
- H - com.uddernetworks.newocr.recognition.similarity.Letter
- hashCode() - Method in class com.uddernetworks.newocr.character.Character
- hashCode() - Method in class com.uddernetworks.newocr.character.CoordinateCharacter
- hashCode() - Method in class com.uddernetworks.newocr.character.ImageLetter
- hashCode() - Method in class com.uddernetworks.newocr.character.SearchCharacter
- hashCode() - Method in class com.uddernetworks.newocr.character.TrainedCharacterData
- hashCode() - Method in class com.uddernetworks.newocr.utils.IntPair
- HASHTAG - com.uddernetworks.newocr.recognition.similarity.Letter
- hasValue(int, int) - Method in class com.uddernetworks.newocr.detection.SearchImage
-
Gets the value of the given coordinates.
- HIGH - com.uddernetworks.newocr.recognition.mergence.MergePriority
- HIGHEST - com.uddernetworks.newocr.recognition.mergence.MergePriority
- HOCONFontConfiguration - Class in com.uddernetworks.newocr.configuration
-
Reads a HOCON Configuration file and derives options from it.
- HOCONFontConfiguration(String, ReflectionCacher, SimilarityManager) - Constructor for class com.uddernetworks.newocr.configuration.HOCONFontConfiguration
-
Creates a
HOCONFontConfiguration
with a given file name andReflectionCacher
(Which should be global across all instances of this current class) - HOCONFontConfiguration(String, ReflectionCacher, SimilarityManager, MergenceManager) - Constructor for class com.uddernetworks.newocr.configuration.HOCONFontConfiguration
-
Creates a
HOCONFontConfiguration
with a given file name andReflectionCacher
(Which should be global across all instances of this current class). - HorizontalLineSimilarityRule - Class in com.uddernetworks.newocr.recognition.similarity.rules
-
Similarity rule for horizontal lines.
- HorizontalLineSimilarityRule() - Constructor for class com.uddernetworks.newocr.recognition.similarity.rules.HorizontalLineSimilarityRule
I
- i - com.uddernetworks.newocr.recognition.similarity.Letter
- I - com.uddernetworks.newocr.recognition.similarity.Letter
- i_DOT - com.uddernetworks.newocr.recognition.similarity.Letter
- IMAGE_ICON - com.uddernetworks.newocr.train.ImageReadMethod
-
This read method uses the
OCRUtils.readImage(File)
to read the given file. - IMAGEIO - com.uddernetworks.newocr.train.ImageReadMethod
-
This read method simply uses
ImageIO.read(File)
to read the given file. - IMAGEIO_STREAM - com.uddernetworks.newocr.train.ImageReadMethod
-
This read method uses a
FileInputStream
along withImageIO.read(InputStream)
to read the mage. - ImageLetter - Class in com.uddernetworks.newocr.character
-
An object to contain data from characters directly scanned from an image.
- ImageLetter(char, int, int, int, int, int, double, double, double) - Constructor for class com.uddernetworks.newocr.character.ImageLetter
-
Creates an ImageLetter from collected data.
- ImageLetter(char, int, int, int, int, int, double, double, double, List<IntPair>) - Constructor for class com.uddernetworks.newocr.character.ImageLetter
-
Creates an ImageLetter from collected data.
- ImageReadMethod - Enum in com.uddernetworks.newocr.train
- IntPair - Class in com.uddernetworks.newocr.utils
-
A class that acts as an
int
-int
tuple. - IntPair(int, int) - Constructor for class com.uddernetworks.newocr.utils.IntPair
-
Creates a new
IntPair
with the specified key and value. - isBlack(BufferedImage, int, int) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
Gets if a pixel should be considered black.
- isEmpty() - Method in class com.uddernetworks.newocr.character.TrainedCharacterData
-
Gets if anything has been recalcuated/prepared to be recalculated to the character, e.g.
- isHorizontal() - Method in class com.uddernetworks.newocr.recognition.mergence.MergeRule
-
Gets if the current merge rule is based on horizontally aligned letters (true) or vertically aligned letters (true).
- isHorizontal() - Method in class com.uddernetworks.newocr.recognition.mergence.rules.ApostropheMergeRule
- isHorizontal() - Method in class com.uddernetworks.newocr.recognition.mergence.rules.EqualVerticalMergeRule
- isHorizontal() - Method in class com.uddernetworks.newocr.recognition.mergence.rules.OverDotMergeRule
- isHorizontal() - Method in class com.uddernetworks.newocr.recognition.mergence.rules.PercentMergeRule
- isHorizontal() - Method in class com.uddernetworks.newocr.recognition.mergence.rules.UnderDotMergeRule
- isInBounds(int, int) - Method in class com.uddernetworks.newocr.character.Character
-
Gets if the given coordinate is within the bounds of this character.
- isInXBounds(int) - Method in class com.uddernetworks.newocr.character.Character
-
Gets if the given Y position is within the X bounds of the current character.
- isInYBounds(int) - Method in class com.uddernetworks.newocr.character.Character
-
Gets if the given Y position is within the Y bounds of the current character.
- isOverlappingX(Character) - Method in class com.uddernetworks.newocr.character.Character
- isOverlappingY(Character) - Method in class com.uddernetworks.newocr.character.Character
- isRowPopulated(boolean[][], int) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
Gets if the row has any `true` (Black) values in it
- isSimilar(ImageLetter, ImageLetter) - Method in class com.uddernetworks.newocr.recognition.similarity.DefaultSimilarityManager
- isSimilar(ImageLetter, ImageLetter) - Method in interface com.uddernetworks.newocr.recognition.similarity.SimilarityManager
-
Finds any matching
SimilarRule
s for the firstImageLetter
, and then checks if the secondImageLetter
also matches any of them. - isTrained() - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Gets if the database has been trained already.
- isTrained() - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- isTrainedSync() - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Gets if the database has been trained already.
- isTrainedSync() - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- isWithin(double, double, double) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
Gets if a given number is within two bounds.
J
- j - com.uddernetworks.newocr.recognition.similarity.Letter
- J - com.uddernetworks.newocr.recognition.similarity.Letter
- j_DOT - com.uddernetworks.newocr.recognition.similarity.Letter
K
- k - com.uddernetworks.newocr.recognition.similarity.Letter
- K - com.uddernetworks.newocr.recognition.similarity.Letter
L
- l - com.uddernetworks.newocr.recognition.similarity.Letter
- L - com.uddernetworks.newocr.recognition.similarity.Letter
- LEFT_CURLY_BRACKET - com.uddernetworks.newocr.recognition.similarity.Letter
- LEFT_PARENTHESE - com.uddernetworks.newocr.recognition.similarity.Letter
- LEFT_SQUARE_BRACKET - com.uddernetworks.newocr.recognition.similarity.Letter
- LESS_THAN - com.uddernetworks.newocr.recognition.similarity.Letter
- Letter - Enum in com.uddernetworks.newocr.recognition.similarity
-
An enum containing every possible character piece that can be detected.
- letterAt(int) - Method in class com.uddernetworks.newocr.recognition.DefaultScannedImage
- letterAt(int) - Method in interface com.uddernetworks.newocr.recognition.ScannedImage
-
Gets the letter at the given index of the actual
ScannedImage.getPrettyString()
position, meaning newlines are not returned. - loadDefaults() - Method in class com.uddernetworks.newocr.recognition.mergence.DefaultMergenceManager
-
Adds the default
MergeRule
s, otherwise all rules will need to be added manually viaMergenceManager.addRule(BiFunction)
. - loadDefaults() - Method in class com.uddernetworks.newocr.recognition.similarity.DefaultSimilarityManager
-
Load the default
SimilarRule
s, otherwise all rules will need to be added manually viaSimilarityManager.addSimilarity(SimilarRule)
. - loadMergeClass(String) - Method in interface com.uddernetworks.newocr.configuration.FontConfiguration
-
Loads a class that's an instance of
MergeRule
from the given fully qualified name . - loadMergeClass(String) - Method in class com.uddernetworks.newocr.configuration.HOCONFontConfiguration
- LOW - com.uddernetworks.newocr.recognition.mergence.MergePriority
- LOWEST - com.uddernetworks.newocr.recognition.mergence.MergePriority
M
- m - com.uddernetworks.newocr.recognition.similarity.Letter
- M - com.uddernetworks.newocr.recognition.similarity.Letter
- makeImage(boolean[][], String) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
Creates an image from a grid of booleans, `true` being black and `false` being white.
- matches(char, int) - Method in enum com.uddernetworks.newocr.recognition.similarity.Letter
- matches(ImageLetter) - Method in enum com.uddernetworks.newocr.recognition.similarity.Letter
- matchesLetter(ImageLetter) - Method in class com.uddernetworks.newocr.recognition.similarity.rules.BasicSimilarityRule
- matchesLetter(ImageLetter) - Method in interface com.uddernetworks.newocr.recognition.similarity.SimilarRule
-
Gets if the current rule matches with the given
ImageLetter
and is allowed to be processed. - matchesLetter(Letter) - Method in class com.uddernetworks.newocr.recognition.similarity.rules.BasicSimilarityRule
- matchesLetter(Letter) - Method in interface com.uddernetworks.newocr.recognition.similarity.SimilarRule
-
Gets if the current rule matches with the given
ImageLetter
and is allowed to be processed. - merge(CoordinateCharacter) - Method in class com.uddernetworks.newocr.character.CoordinateCharacter
-
Merges the given
CoordinateCharacter
with the current one, possibly changing width, height, X and Y values, along with combining the current and givenCoordinateCharacter
's coordinates and values (Accessible viaCoordinateCharacter.getCoordinates()
andCoordinateCharacter.getValues()
respectively). - mergeCharacters(ImageLetter, List<ImageLetter>) - Method in class com.uddernetworks.newocr.recognition.mergence.MergeRule
-
Preforms the merging action with the current rule against the given data.
- mergeCharacters(ImageLetter, List<ImageLetter>) - Method in class com.uddernetworks.newocr.recognition.mergence.rules.ApostropheMergeRule
- mergeCharacters(ImageLetter, List<ImageLetter>) - Method in class com.uddernetworks.newocr.recognition.mergence.rules.EqualVerticalMergeRule
- mergeCharacters(ImageLetter, List<ImageLetter>) - Method in class com.uddernetworks.newocr.recognition.mergence.rules.OverDotMergeRule
- mergeCharacters(ImageLetter, List<ImageLetter>) - Method in class com.uddernetworks.newocr.recognition.mergence.rules.PercentMergeRule
- mergeCharacters(ImageLetter, List<ImageLetter>) - Method in class com.uddernetworks.newocr.recognition.mergence.rules.UnderDotMergeRule
- MergenceManager - Interface in com.uddernetworks.newocr.recognition.mergence
-
The manager for
MergeRule
s to combine/merge multi part characters. - MergePriority - Enum in com.uddernetworks.newocr.recognition.mergence
- MergeRule - Class in com.uddernetworks.newocr.recognition.mergence
-
Provides methods to combine/merge two character pieces.
- MergeRule(DatabaseManager, SimilarityManager) - Constructor for class com.uddernetworks.newocr.recognition.mergence.MergeRule
- MINUS - com.uddernetworks.newocr.recognition.similarity.Letter
N
- n - com.uddernetworks.newocr.recognition.similarity.Letter
- N - com.uddernetworks.newocr.recognition.similarity.Letter
- NewOCR - module NewOCR
- NINE - com.uddernetworks.newocr.recognition.similarity.Letter
- NORMAL - com.uddernetworks.newocr.recognition.mergence.MergePriority
O
- o - com.uddernetworks.newocr.recognition.similarity.Letter
- O - com.uddernetworks.newocr.recognition.similarity.Letter
- OCRActions - Class in com.uddernetworks.newocr.recognition
-
Provides general OCR actions.
- OCRActions(DatabaseManager, OCROptions) - Constructor for class com.uddernetworks.newocr.recognition.OCRActions
- OCRActions(SimilarityManager, DatabaseManager, OCROptions) - Constructor for class com.uddernetworks.newocr.recognition.OCRActions
- OCRDatabaseManager - Class in com.uddernetworks.newocr.database
- OCRDatabaseManager(boolean, File, String, String, String) - Constructor for class com.uddernetworks.newocr.database.OCRDatabaseManager
- OCRDatabaseManager(File) - Constructor for class com.uddernetworks.newocr.database.OCRDatabaseManager
-
Connects to the internal database provided by HSQLDB in the given location, and executes the queries found in letters.sql and sectionData.sql.
- OCRDatabaseManager(String, String, String) - Constructor for class com.uddernetworks.newocr.database.OCRDatabaseManager
-
Connects to the database with the given credentials, and executes the queries found in letters.sql and sectionData.sql
- OCROptions - Class in com.uddernetworks.newocr.train
-
General options used by the OCR scanning and training.
- OCROptions() - Constructor for class com.uddernetworks.newocr.train.OCROptions
- OCRScan - Class in com.uddernetworks.newocr.recognition
-
The base class for actually scanning an image.
- OCRScan(DatabaseManager, SimilarityManager, MergenceManager, Actions) - Constructor for class com.uddernetworks.newocr.recognition.OCRScan
-
Creates a new
OCRScan
. - OCRScan(DatabaseManager, OCROptions) - Constructor for class com.uddernetworks.newocr.recognition.OCRScan
- OCRScan(DatabaseManager, OCROptions, SimilarityManager) - Constructor for class com.uddernetworks.newocr.recognition.OCRScan
-
Creates a new
OCRScan
with a defaultMergenceManager
. - OCRScan(DatabaseManager, OCROptions, SimilarityManager, MergenceManager) - Constructor for class com.uddernetworks.newocr.recognition.OCRScan
-
Creates a new
OCRScan
. - OCRTrain - Class in com.uddernetworks.newocr.recognition
-
The base class for actually training an image/font.
- OCRTrain(DatabaseManager, SimilarityManager, OCROptions) - Constructor for class com.uddernetworks.newocr.recognition.OCRTrain
-
Creates a new
OCRTrain
. - OCRTrain(DatabaseManager, OCROptions) - Constructor for class com.uddernetworks.newocr.recognition.OCRTrain
-
Creates a new
OCRTrain
. - OCRTrain(DatabaseManager, OCROptions, Actions) - Constructor for class com.uddernetworks.newocr.recognition.OCRTrain
-
Creates a new
OCRTrain
. - OCRTrain(DatabaseManager, OCROptions, Actions, TrainGeneratorOptions) - Constructor for class com.uddernetworks.newocr.recognition.OCRTrain
-
Creates a new
OCRTrain
. - OCRUtils - Class in com.uddernetworks.newocr.utils
-
Some various utility methods used by the OCR that may assist others using the library.
- OCRUtils() - Constructor for class com.uddernetworks.newocr.utils.OCRUtils
- ONE - com.uddernetworks.newocr.recognition.similarity.Letter
- OverDotMergeRule - Class in com.uddernetworks.newocr.recognition.mergence.rules
-
Merges dots above base characters for the letter i, j, and ;
- OverDotMergeRule(DatabaseManager, SimilarityManager) - Constructor for class com.uddernetworks.newocr.recognition.mergence.rules.OverDotMergeRule
P
- p - com.uddernetworks.newocr.recognition.similarity.Letter
- P - com.uddernetworks.newocr.recognition.similarity.Letter
- PERCENT_BASE - com.uddernetworks.newocr.recognition.similarity.Letter
- PERCENT_LDOT - com.uddernetworks.newocr.recognition.similarity.Letter
- PERCENT_RDOT - com.uddernetworks.newocr.recognition.similarity.Letter
- PercentDotSimilarityRule - Class in com.uddernetworks.newocr.recognition.similarity.rules
-
Similarity rule for percent circles/dots.
- PercentDotSimilarityRule() - Constructor for class com.uddernetworks.newocr.recognition.similarity.rules.PercentDotSimilarityRule
- PercentMergeRule - Class in com.uddernetworks.newocr.recognition.mergence.rules
-
Merges all pieces of a percent sign.
- PercentMergeRule(DatabaseManager, SimilarityManager) - Constructor for class com.uddernetworks.newocr.recognition.mergence.rules.PercentMergeRule
- PERIOD - com.uddernetworks.newocr.recognition.similarity.Letter
- PIPE - com.uddernetworks.newocr.recognition.similarity.Letter
- pixelToPoint(int) - Static method in class com.uddernetworks.newocr.utils.ConversionUtils
-
Converts the given pixel to a point
- PLUS - com.uddernetworks.newocr.recognition.similarity.Letter
- pointToPixel(int) - Static method in class com.uddernetworks.newocr.utils.ConversionUtils
-
Converts the given point to a pixel
- printOut(boolean[][]) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
Prints a grid of booleans to console using full width characters so it will appear proportional and not skewed with spaces and the filling character.
- process(List<Object2DoubleMap.Entry<ImageLetter>>) - Method in interface com.uddernetworks.newocr.recognition.similarity.SimilarRule
-
When given a list of the potential results of a character (Irrelevant what character it is), this will find the character lowest in the list that does not match the first character's letter and modifier to the current rule.
Q
- q - com.uddernetworks.newocr.recognition.similarity.Letter
- Q - com.uddernetworks.newocr.recognition.similarity.Letter
- QUESTION_MARK_BOTTOM - com.uddernetworks.newocr.recognition.similarity.Letter
- QUESTION_MARK_TOP - com.uddernetworks.newocr.recognition.similarity.Letter
- QUOTE_LEFT - com.uddernetworks.newocr.recognition.similarity.Letter
- QUOTE_RIGHT - com.uddernetworks.newocr.recognition.similarity.Letter
R
- r - com.uddernetworks.newocr.recognition.similarity.Letter
- R - com.uddernetworks.newocr.recognition.similarity.Letter
- RAW_STRING - Static variable in class com.uddernetworks.newocr.recognition.OCRScan
- readImage(File) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
An ImageIO.read() replacement, which in tests can be up to 15x faster.
- recalculateCenter(double) - Method in class com.uddernetworks.newocr.character.TrainedCharacterData
-
If the given value is less than the minimum center, it's the new minimum center, and if it's bigger than the maximum center, it will be the new maximum center.
- recalculateTo(double, double) - Method in class com.uddernetworks.newocr.character.TrainedCharacterData
-
Adds the given width and height variables to the internal list to be put into calculations upon invoking
TrainedCharacterData.finishRecalculations()
. - recalculateTo(SearchCharacter) - Method in class com.uddernetworks.newocr.character.TrainedCharacterData
-
Does the same thing as
TrainedCharacterData.recalculateTo(double, double)
but with aSearchCharacter
, and it includes its percentages as well. - ReflectionCacher - Interface in com.uddernetworks.newocr.configuration
-
A simple class to cache constructors from classes.
- ReflexiveSupplier<T> - Interface in com.uddernetworks.newocr.configuration
-
A simple supplier that throws
ReflectiveOperationException
. - removeLeadingSpaces(String) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
Removes all common spaces between all newlines, useful if the OCR say adds an extra 2 spaces before all lines of text, this will remove the 2 spaces.
- removeLetter(Letter) - Method in class com.uddernetworks.newocr.recognition.similarity.rules.BasicSimilarityRule
- removeSimilarity(Class<? extends SimilarRule>) - Method in class com.uddernetworks.newocr.recognition.similarity.DefaultSimilarityManager
- removeSimilarity(Class<? extends SimilarRule>) - Method in interface com.uddernetworks.newocr.recognition.similarity.SimilarityManager
-
Removes a
SimilarRule
from the internal list if found. - RIGHT_CURLY_BRACKET - com.uddernetworks.newocr.recognition.similarity.Letter
- RIGHT_PARENTHESE - com.uddernetworks.newocr.recognition.similarity.Letter
- RIGHT_SQUARE_BRACKET - com.uddernetworks.newocr.recognition.similarity.Letter
S
- s - com.uddernetworks.newocr.recognition.similarity.Letter
- S - com.uddernetworks.newocr.recognition.similarity.Letter
- Scan - Interface in com.uddernetworks.newocr.recognition
-
The main class that handles character scanning of an image.
- scanFrom(int, int, List<IntPair>) - Method in class com.uddernetworks.newocr.detection.SearchImage
-
Adds the surrounding black pixels from the given coordinate to the coordinates parameter.
- scanImage(File) - Method in class com.uddernetworks.newocr.recognition.OCRScan
- scanImage(File) - Method in interface com.uddernetworks.newocr.recognition.Scan
-
Scans the input image and returns a
DefaultScannedImage
containing all the characters and their info. - ScannedImage - Interface in com.uddernetworks.newocr.recognition
-
The resulting object from an image being scanned.
- SearchCharacter - Class in com.uddernetworks.newocr.character
-
An object meant to store characters directly scanned from an image and that is being searched for/mutated.
- SearchCharacter(List<IntPair>) - Constructor for class com.uddernetworks.newocr.character.SearchCharacter
-
Creates a SearchCharacter from a list of coordinates used by the character.
- SearchCharacter(List<IntPair>, int, int) - Constructor for class com.uddernetworks.newocr.character.SearchCharacter
-
Creates a SearchCharacter from a list of coordinates used by the character.
- SearchImage - Class in com.uddernetworks.newocr.detection
-
Provides a way to easily get touching coordinates of black pixels.
- SearchImage(boolean[][]) - Constructor for class com.uddernetworks.newocr.detection.SearchImage
-
Creates a
SearchImage
from a boolean grid. - SegmentationUtils - Class in com.uddernetworks.newocr.utils
-
A utility class for methods to create segments separating character images for training and scanning.
- SegmentationUtils() - Constructor for class com.uddernetworks.newocr.utils.SegmentationUtils
- SEMICOLON_BOTTOM - com.uddernetworks.newocr.recognition.similarity.Letter
- SEMICOLON_TOP - com.uddernetworks.newocr.recognition.similarity.Letter
- setAverageHeight(double) - Method in class com.uddernetworks.newocr.character.ImageLetter
-
Sets the average height of this character's trained data.
- setAverageWidth(double) - Method in class com.uddernetworks.newocr.character.ImageLetter
-
Sets the average width of this character's trained data.
- setCenterOffset(double) - Method in class com.uddernetworks.newocr.character.SearchCharacter
-
Sets the amount away a character is from the center of the line.
- setClosestMatches(List<Object2DoubleMap.Entry<ImageLetter>>) - Method in class com.uddernetworks.newocr.character.ImageLetter
- setData(double, double, double, double) - Method in class com.uddernetworks.newocr.character.DatabaseCharacter
-
Sets multiple used data points.
- setData(Object) - Method in class com.uddernetworks.newocr.character.ImageLetter
-
Sets any data to the
ImageLetter
object, useful for storing any needed data about the character to be used in the future. - setFontFamily(String) - Method in class com.uddernetworks.newocr.train.TrainGeneratorOptions
-
Sets the system font family used during training image generation.
- setFontSize(char, int, double) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Sets the font size ratio for the given character and modifier.
- setFontSize(char, int, double) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- setHeight(int) - Method in class com.uddernetworks.newocr.character.Character
-
Sets the height of the current
Character
. - setImageReadMethod(ImageReadMethod) - Method in class com.uddernetworks.newocr.train.OCROptions
-
Sets the
ImageReadMethod
used during training and scanning. - setKey(int) - Method in class com.uddernetworks.newocr.utils.IntPair
-
Sets this
IntPair
's key. - setLetter(char) - Method in class com.uddernetworks.newocr.character.Character
-
Sets the char letter to the current
Character
. - setMaxCenter(double) - Method in class com.uddernetworks.newocr.character.ImageLetter
-
Sets the maximum relative center value from the top of the character found in the training set for this font size.
- setMaxFontSize(int) - Method in class com.uddernetworks.newocr.train.TrainGeneratorOptions
-
Sets the maximum font size to generate up to in points.
- setMaxPercentDiffToMerge(double) - Method in class com.uddernetworks.newocr.train.OCROptions
-
Sets the maximum percentage difference a line must be in order to merge in the very first phase of training.
- setMinCenter(double) - Method in class com.uddernetworks.newocr.character.ImageLetter
-
Sets the minimum relative center value from the top of the character found in the training set for this font size.
- setMinFontSize(int) - Method in class com.uddernetworks.newocr.train.TrainGeneratorOptions
-
Sets the minimum font size to generate up to in points.
- setModifier(int) - Method in class com.uddernetworks.newocr.character.Character
-
Sets the modifier for the character.
- setName(String) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Sets the name of the database.
- setName(String) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- setNextClosest() - Method in class com.uddernetworks.newocr.character.ImageLetter
- setProperty(String, boolean) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Sets the boolean property to the database.
- setProperty(String, boolean) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- setRatio(double) - Method in class com.uddernetworks.newocr.character.ImageLetter
-
Sets the width/height ratio of this character.
- setSizeRatioWeight(double) - Method in class com.uddernetworks.newocr.train.OCROptions
-
Sets the amount the width/height radio should be multiplied across all a character's potential matches, to increase its effects compared to the actual section similarity.
- setSpecialSpaces(char...) - Method in class com.uddernetworks.newocr.train.OCROptions
-
Sets the characters requiring custom trained spaces.
- setSpecialSpaces(Set<Character>) - Method in class com.uddernetworks.newocr.train.OCROptions
-
Sets the characters requiring custom trained spaces.
- setTrained(boolean) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Sets the database value as trained or not.
- setTrained(boolean) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- setTrainingMeta(String, double) - Method in class com.uddernetworks.newocr.character.SearchCharacter
-
Sets the training data with a given name.
- setValue(int) - Method in class com.uddernetworks.newocr.utils.IntPair
-
Sets this
IntPair
's value. - setValues(boolean[][]) - Method in class com.uddernetworks.newocr.character.CoordinateCharacter
-
Sets the black (true) and white (false) pixels of the scanned character.
- setWidth(int) - Method in class com.uddernetworks.newocr.character.Character
-
Sets the width of the current
Character
. - setX(int) - Method in class com.uddernetworks.newocr.character.Character
-
Sets the X coordinate of the current
Character
. - setY(int) - Method in class com.uddernetworks.newocr.character.Character
-
Sets the Y coordinate of the current
Character
. - SEVEN - com.uddernetworks.newocr.recognition.similarity.Letter
- shutdown() - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Shuts down all executor threads when the program is ready to be terminated.
- shutdown() - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- shutdown(TimeUnit, long) - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Shuts down all executor threads when the program is ready to be terminated after the specified time.
- shutdown(TimeUnit, long) - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
- similarityManager - Variable in class com.uddernetworks.newocr.recognition.mergence.MergeRule
- SimilarityManager - Interface in com.uddernetworks.newocr.recognition.similarity
-
The manager for
SimilarRule
s, usually derived fromFontConfiguration
s. - SimilarRule - Interface in com.uddernetworks.newocr.recognition.similarity
-
A rule to state certain character pieces are effectively the same, i.e.
- SIX - com.uddernetworks.newocr.recognition.similarity.Letter
- SPACE - com.uddernetworks.newocr.recognition.similarity.Letter
- spaceRound(double) - Method in class com.uddernetworks.newocr.recognition.OCRScan
- spaceRound(double) - Method in interface com.uddernetworks.newocr.recognition.Scan
-
Gets the full space character count for the blank gap divided by the space width.
- stripLeadingSpaces() - Method in class com.uddernetworks.newocr.recognition.DefaultScannedImage
- stripLeadingSpaces() - Method in interface com.uddernetworks.newocr.recognition.ScannedImage
-
Removes all common leading spaces, just like how
OCRUtils.removeLeadingSpaces(String)
removes empty spaces, but with actualImageLetter
objects.
T
- t - com.uddernetworks.newocr.recognition.similarity.Letter
- T - com.uddernetworks.newocr.recognition.similarity.Letter
- THREE - com.uddernetworks.newocr.recognition.similarity.Letter
- TILDE - com.uddernetworks.newocr.recognition.similarity.Letter
- toGrid(BufferedImage, boolean[][]) - Static method in class com.uddernetworks.newocr.utils.OCRUtils
-
Populates a boolean 2D array with the same dimensions as the input image where each pixel is represented by a boolean value, black being `true`, white being `false`.
- toImage() - Method in class com.uddernetworks.newocr.detection.SearchImage
- topY() - Method in interface com.uddernetworks.newocr.recognition.CharacterLine
-
Gets the top Y coordinate of the line.
- topY() - Method in class com.uddernetworks.newocr.recognition.TrainLine
- toString() - Method in class com.uddernetworks.newocr.character.Character
- toString() - Method in class com.uddernetworks.newocr.character.ImageLetter
- toString() - Method in class com.uddernetworks.newocr.detection.SearchImage
- toString() - Method in enum com.uddernetworks.newocr.recognition.similarity.Letter
- toString() - Method in class com.uddernetworks.newocr.utils.IntPair
- Train - Interface in com.uddernetworks.newocr.recognition
-
The main class that handles training of an image/font.
- TRAIN_STRING - Static variable in class com.uddernetworks.newocr.recognition.OCRTrain
- TrainedCharacterData - Class in com.uddernetworks.newocr.character
-
This is an object meant for storing the data for characters in the training stage.
- TrainedCharacterData(char) - Constructor for class com.uddernetworks.newocr.character.TrainedCharacterData
-
Creates a
TrainedCharacterData
from a character letter with a modifier of 0. - TrainedCharacterData(char, int) - Constructor for class com.uddernetworks.newocr.character.TrainedCharacterData
-
Creates a
TrainedCharacterData
from a character value with a given modifier value. - TrainGenerator - Interface in com.uddernetworks.newocr.train
-
Generates a training image to be used by the OCR.
- TrainGeneratorOptions - Class in com.uddernetworks.newocr.train
-
Defines options for the actual generation of the image to train on.
- TrainGeneratorOptions() - Constructor for class com.uddernetworks.newocr.train.TrainGeneratorOptions
- trainImage(File) - Method in class com.uddernetworks.newocr.recognition.OCRTrain
- trainImage(File) - Method in interface com.uddernetworks.newocr.recognition.Train
-
Scans the input image and creates training data based off of it.
- trainImage(File, TrainGeneratorOptions) - Method in class com.uddernetworks.newocr.recognition.OCRTrain
- trainImage(File, TrainGeneratorOptions) - Method in interface com.uddernetworks.newocr.recognition.Train
-
Scans the input image and creates training data based off of it.
- TrainLine - Class in com.uddernetworks.newocr.recognition
-
Stores characters at a top and bottom Y position after an image has been scanned.
- TrainLine(List<SearchCharacter>, int, int) - Constructor for class com.uddernetworks.newocr.recognition.TrainLine
-
Creates a new
TrainLine
with a list of characters populating it. - TWO - com.uddernetworks.newocr.recognition.similarity.Letter
U
- u - com.uddernetworks.newocr.recognition.similarity.Letter
- U - com.uddernetworks.newocr.recognition.similarity.Letter
- UnderDotMergeRule - Class in com.uddernetworks.newocr.recognition.mergence.rules
-
Merges the dot under a character for ! and ?
- UnderDotMergeRule(DatabaseManager, SimilarityManager) - Constructor for class com.uddernetworks.newocr.recognition.mergence.rules.UnderDotMergeRule
- UNDERSCORE - com.uddernetworks.newocr.recognition.similarity.Letter
- undoLastRecalculations(int) - Method in class com.uddernetworks.newocr.character.TrainedCharacterData
-
Removed the last x entries added by
TrainedCharacterData.recalculateTo(SearchCharacter)
. - UntrainedDatabaseException - Exception in com.uddernetworks.newocr.train
-
An exception thrown when a database has not been trained, and it tries to scan an image.
- UntrainedDatabaseException(DatabaseManager) - Constructor for exception com.uddernetworks.newocr.train.UntrainedDatabaseException
- usesInternal() - Method in interface com.uddernetworks.newocr.database.DatabaseManager
-
Gets if the database manager is running off of the internal HSQLDB database or the external MySQL database.
- usesInternal() - Method in class com.uddernetworks.newocr.database.OCRDatabaseManager
V
- v - com.uddernetworks.newocr.recognition.similarity.Letter
- V - com.uddernetworks.newocr.recognition.similarity.Letter
- valueOf(String) - Static method in enum com.uddernetworks.newocr.recognition.mergence.MergePriority
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.uddernetworks.newocr.recognition.similarity.Letter
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.uddernetworks.newocr.train.ImageReadMethod
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.uddernetworks.newocr.recognition.mergence.MergePriority
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.uddernetworks.newocr.recognition.similarity.Letter
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.uddernetworks.newocr.train.ImageReadMethod
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VerticalLineSimilarityRule - Class in com.uddernetworks.newocr.recognition.similarity.rules
-
Similarity rule for vertical lines.
- VerticalLineSimilarityRule() - Constructor for class com.uddernetworks.newocr.recognition.similarity.rules.VerticalLineSimilarityRule
W
- w - com.uddernetworks.newocr.recognition.similarity.Letter
- W - com.uddernetworks.newocr.recognition.similarity.Letter
X
- x - com.uddernetworks.newocr.recognition.similarity.Letter
- X - com.uddernetworks.newocr.recognition.similarity.Letter
Y
- y - com.uddernetworks.newocr.recognition.similarity.Letter
- Y - com.uddernetworks.newocr.recognition.similarity.Letter
Z
- z - com.uddernetworks.newocr.recognition.similarity.Letter
- Z - com.uddernetworks.newocr.recognition.similarity.Letter
- ZERO - com.uddernetworks.newocr.recognition.similarity.Letter
- ZERO_PLACEHOLDER - Static variable in class com.uddernetworks.newocr.utils.SegmentationUtils
All Classes All Packages