use of com.joliciel.jochre.letterGuesser.features.LetterFeatureTester in project jochre by urieli.
the class Jochre method doCommandApplyFeatures.
/**
* Apply a set of features to a given image or a given shape.
*/
public void doCommandApplyFeatures(int imageId, int shapeId, List<String> featureDescriptors) {
LetterFeatureTester featureTester = new LetterFeatureTester(jochreSession);
LetterFeatureParser letterFeatureParser = new LetterFeatureParser();
Set<LetterFeature<?>> features = letterFeatureParser.getLetterFeatureSet(featureDescriptors);
Set<String> letters = new HashSet<>();
featureTester.applyFeatures(features, letters, imageId, shapeId);
}
Aggregations