src/training/common/commontraining.cpp
void ParseArguments(int *argc, char ***argv) {
  std::string usage;
  if (*argc) {
    usage += (*argv)[0];
    usage += " -v | --version | ";
    usage += (*argv)[0];
  }
  usage += " [.tr files ...]";
  tesseract::ParseCommandLineFlags(usage.c_str(), argc, argv, true);
  // Set some global values based on the flags.
  Config.MinSamples =
      std::max(0.0, std::min(1.0, double(FLAGS_clusterconfig_min_samples_fraction)));
  Config.MaxIllegal = std::max(0.0, std::min(1.0, double(FLAGS_clusterconfig_max_illegal)));
  Config.Independence = std::max(0.0, std::min(1.0, double(FLAGS_clusterconfig_independence)));
  Config.Confidence = std::max(0.0, std::min(1.0, double(FLAGS_clusterconfig_confidence)));
  // Set additional parameters from config file if specified.
  if (!FLAGS_configfile.empty()) {
    tesseract::ParamUtils::ReadParamsFile(
        FLAGS_configfile.c_str(), tesseract::SET_PARAM_CONSTRAINT_NON_INIT_ONLY, ccutil.params());
  }
}
/**
 * This routine parses the command line arguments that were
 * passed to the program and uses them to set relevant
 * training-related global parameters.
 *
 * Globals:
 * - Config  current clustering parameters
 * @param argc number of command line arguments to parse
 * @param argv command line arguments
 */
This routine parses the command line arguments that were
passed to the program and uses them to set relevant
training-related global parameters.

- Config  current clustering parameters
@param argc number of command line arguments to parse
@param argv command line arguments
This routine parses the command line arguments that were passed to the program and uses them to set relevant training - related global parameters . - Config current clustering parameters @param argc number of command line arguments to parse @param argv command line arguments
void ParseArguments(int *argc, char ***argv) {
  std::string usage;
  if (*argc) {
    usage += (*argv)[0];
    usage += " -v | --version | ";
    usage += (*argv)[0];
  }
  usage += " [.tr files ...]";
  tesseract::ParseCommandLineFlags(usage.c_str(), argc, argv, true);
  Config.MinSamples =
      std::max(0.0, std::min(1.0, double(FLAGS_clusterconfig_min_samples_fraction)));
  Config.MaxIllegal = std::max(0.0, std::min(1.0, double(FLAGS_clusterconfig_max_illegal)));
  Config.Independence = std::max(0.0, std::min(1.0, double(FLAGS_clusterconfig_independence)));
  Config.Confidence = std::max(0.0, std::min(1.0, double(FLAGS_clusterconfig_confidence)));
  if (!FLAGS_configfile.empty()) {
    tesseract::ParamUtils::ReadParamsFile(
        FLAGS_configfile.c_str(), tesseract::SET_PARAM_CONSTRAINT_NON_INIT_ONLY, ccutil.params());
  }
}
void ParseArguments ( int * argc , char * * * argv ) { std :: string usage ; if ( * argc ) { usage += ( * argv ) [ 0 ] ; usage += " " ; usage += ( * argv ) [ 0 ] ; } usage += " " ; tesseract :: ParseCommandLineFlags ( usage . c_str ( ) , argc , argv , true ) ; Config . MinSamples = std :: max ( 0.0 , std :: min ( 1.0 , double ( FLAGS_clusterconfig_min_samples_fraction ) ) ) ; Config . MaxIllegal = std :: max ( 0.0 , std :: min ( 1.0 , double ( FLAGS_clusterconfig_max_illegal ) ) ) ; Config . Independence = std :: max ( 0.0 , std :: min ( 1.0 , double ( FLAGS_clusterconfig_independence ) ) ) ; Config . Confidence = std :: max ( 0.0 , std :: min ( 1.0 , double ( FLAGS_clusterconfig_confidence ) ) ) ; if ( ! FLAGS_configfile . empty ( ) ) { tesseract :: ParamUtils :: ReadParamsFile ( FLAGS_configfile . c_str ( ) , tesseract :: SET_PARAM_CONSTRAINT_NON_INIT_ONLY , ccutil . params ( ) ) ; } }
This routine parses the command line arguments that were
 passed to the program and uses them to set relevant
 training-related global parameters.
This routine parses the command line arguments that were passed to the program and uses them to set relevant training - related global parameters .
// Set some global values based on the flags. // Set additional parameters from config file if specified.