src/wordrec/tface.cpp
BLOB_CHOICE_LIST *Wordrec::call_matcher(TBLOB *tessblob) {
  // Rotate the blob for classification if necessary.
  TBLOB *rotated_blob = tessblob->ClassifyNormalizeIfNeeded();
  if (rotated_blob == nullptr) {
    rotated_blob = tessblob;
  }
  auto *ratings = new BLOB_CHOICE_LIST(); // matcher result
  AdaptiveClassifier(rotated_blob, ratings);
  if (rotated_blob != tessblob) {
    delete rotated_blob;
  }
  return ratings;
}
/**
 * @name call_matcher
 *
 * Called from Tess with a blob in tess form.
 * The blob may need rotating to the correct orientation for classification.
 */
@name call_matcher
Called from Tess with a blob in tess form.
The blob may need rotating to the correct orientation for classification.
@name call_matcher Called from Tess with a blob in tess form . The blob may need rotating to the correct orientation for classification .
BLOB_CHOICE_LIST *Wordrec::call_matcher(TBLOB *tessblob) {
  TBLOB *rotated_blob = tessblob->ClassifyNormalizeIfNeeded();
  if (rotated_blob == nullptr) {
    rotated_blob = tessblob;
  }
  auto *ratings = new BLOB_CHOICE_LIST(); 
  AdaptiveClassifier(rotated_blob, ratings);
  if (rotated_blob != tessblob) {
    delete rotated_blob;
  }
  return ratings;
}
BLOB_CHOICE_LIST * Wordrec :: call_matcher ( TBLOB * tessblob ) { TBLOB * rotated_blob = tessblob -> ClassifyNormalizeIfNeeded ( ) ; if ( rotated_blob == nullptr ) { rotated_blob = tessblob ; } auto * ratings = new BLOB_CHOICE_LIST ( ) ; AdaptiveClassifier ( rotated_blob , ratings ) ; if ( rotated_blob != tessblob ) { delete rotated_blob ; } return ratings ; }
@name call_matcher
 Called from Tess with a blob in tess form.
@name call_matcher Called from Tess with a blob in tess form .
// Rotate the blob for classification if necessary. // matcher result