#include <classifier_factory.h>
Definition at line 31 of file classifier_factory.h.
◆ Create()
Definition at line 35 of file classifier_factory.cpp.
41 FeatureBase *feat_extract;
43 switch (params->TypeFeature()) {
45 feat_extract =
new FeatureBmp(params);
48 feat_extract =
new FeatureChebyshev(params);
51 feat_extract =
new FeatureHybrid(params);
54 fprintf(stderr,
"Cube ERROR (CharClassifierFactory::Create): invalid " 60 CharClassifier *classifier_obj;
61 switch (params->TypeClassifier()) {
63 classifier_obj =
new ConvNetCharClassifier(char_set, params,
67 classifier_obj =
new HybridNeuralNetCharClassifier(char_set, params,
71 fprintf(stderr,
"Cube ERROR (CharClassifierFactory::Create): invalid " 72 "classifier type.\n");
77 if (!classifier_obj->Init(data_file_path,
lang, lang_mod)) {
78 delete classifier_obj;
79 fprintf(stderr,
"Cube ERROR (CharClassifierFactory::Create): unable " 80 "to Init() character classifier object.\n");
83 return classifier_obj;
The documentation for this class was generated from the following files: