Wiki

Clone wiki

DoQuBookWeb-jee6 / Home

Spécifications Groundtruth

Layout Graound Truth

class LayoutGroundTruth {

 Integer id;
 @ManyToOne // A page may have several LayoutGroundTruth ?
 Page p;

 Set<Block> blocks;

}
class Block {

 Integer id;
 String label;

}
class Paragraph extends Block {
  Set<Character> chars; 

  // From attributs
  @XmlElement
  Set<Character> getChars();

  // Computed with a separator
  @XmlElement // Ou transient ?
  Set<Word> getWords();

  // Computed with a separator like \n
  @XmlElement // Ou transient ?
  Set<Line> getLines();


  //Computed with a separator like .
  @XmlElement // ou transient
  Set<Sentences> getSentences();


  //Computed with positions of left-top and right-bottomChar
  @XmlElement // ou transient
  BBox getBoundingBox();
}
class Character extends Block {
  Integer id;
  String label;
  Set<ScanLine> scanlines;
}

ImageGroundTruth

class ImageGroundTruth {
  Page page;
  String label;
  ImageURL imageUrl;
}
class BinarisationGroundTruth extends ImageGroundTruth {
   Integer forgroundColorR = 0; // necessaire ?
   Integer forgroundColorG = 0; // necessaire ?
   Integer forgroundColorB = 0; // necessaire ?
}
class SkelGroundTruth extends ImageGroundTruth {
}
class DegradationGroundTruth extends ImageGroundTruth {
  TaskParameters params
  Executor  exec;
}

Updated