MCPcopy Create free account
hub / github.com/creatale/node-dv / DebugAdaptiveClassifier

Method DebugAdaptiveClassifier

deps/tesseract/classify/adaptmatch.cpp:1547–1557  ·  view source on GitHub ↗

* * @param blob blob whose classification is being debugged * @param Results results of match being debugged * * Globals: none * * @note Exceptions: none * @note History: Wed Mar 13 16:44:41 1991, DSJ, Created. */

Source from the content-addressed store, hash-verified

1545 * @note History: Wed Mar 13 16:44:41 1991, DSJ, Created.
1546 */
1547void Classify::DebugAdaptiveClassifier(TBLOB *blob,
1548 ADAPT_RESULTS *Results) {
1549 if (static_classifier_ == NULL) return;
1550 INT_FX_RESULT_STRUCT fx_info;
1551 GenericVector<INT_FEATURE_STRUCT> bl_features;
1552 TrainingSample* sample =
1553 BlobToTrainingSample(*blob, false, &fx_info, &bl_features);
1554 if (sample == NULL) return;
1555 static_classifier_->DebugDisplay(*sample, blob->denorm().pix(),
1556 Results->best_unichar_id);
1557} /* DebugAdaptiveClassifier */
1558#endif
1559
1560/*---------------------------------------------------------------------------*/

Callers

nothing calls this directly

Calls 4

BlobToTrainingSampleFunction · 0.85
DebugDisplayMethod · 0.80
pixMethod · 0.80
denormMethod · 0.80

Tested by

no test coverage detected