Returns a string debug representation of the given sample: font, unichar_str, bounding box, page.
| 200 | // Returns a string debug representation of the given sample: |
| 201 | // font, unichar_str, bounding box, page. |
| 202 | STRING TrainingSampleSet::SampleToString(const TrainingSample& sample) const { |
| 203 | STRING boxfile_str; |
| 204 | MakeBoxFileStr(unicharset_.id_to_unichar(sample.class_id()), |
| 205 | sample.bounding_box(), sample.page_num(), &boxfile_str); |
| 206 | return STRING(fontinfo_table_.get(sample.font_id()).name) + " " + boxfile_str; |
| 207 | } |
| 208 | |
| 209 | // Gets the combined set of features used by all the samples of the given |
| 210 | // font/class combination. |
no test coverage detected