Search in sources :

Example 6 with ShapeSequence

use of com.joliciel.jochre.boundaries.ShapeSequence in project jochre by urieli.

the class LetterAssigner method onGuessSequence.

@Override
public void onGuessSequence(LetterSequence letterSequence) {
    if (save) {
        ShapeSequence shapeSequence = letterSequence.getUnderlyingShapeSequence();
        for (ShapeInSequence shapeInSequence : shapeSequence) {
            Shape shape = shapeInSequence.getShape();
            shape.save();
        }
    }
}
Also used : Shape(com.joliciel.jochre.graphics.Shape) ShapeSequence(com.joliciel.jochre.boundaries.ShapeSequence) ShapeInSequence(com.joliciel.jochre.boundaries.ShapeInSequence)

Aggregations

ShapeSequence (com.joliciel.jochre.boundaries.ShapeSequence)6 Shape (com.joliciel.jochre.graphics.Shape)5 ShapeInSequence (com.joliciel.jochre.boundaries.ShapeInSequence)4 ArrayList (java.util.ArrayList)4 GroupOfShapes (com.joliciel.jochre.graphics.GroupOfShapes)3 Paragraph (com.joliciel.jochre.graphics.Paragraph)1 RowOfShapes (com.joliciel.jochre.graphics.RowOfShapes)1 LetterSequence (com.joliciel.jochre.letterGuesser.LetterSequence)1 Decision (com.joliciel.talismane.machineLearning.Decision)1 HashMap (java.util.HashMap)1 PriorityQueue (java.util.PriorityQueue)1 TreeMap (java.util.TreeMap)1