doxygen training/mftraining.cpp

This commit is contained in:
Jim O'Regan 2015-07-20 14:39:35 +01:00
parent 2aa72dba40
commit 0b8de99f14

View File

@ -23,9 +23,9 @@
** See the License for the specific language governing permissions and ** See the License for the specific language governing permissions and
** limitations under the License. ** limitations under the License.
******************************************************************************/ ******************************************************************************/
/**---------------------------------------------------------------------------- /*----------------------------------------------------------------------------
Include Files and Type Defines Include Files and Type Defines
----------------------------------------------------------------------------**/ ----------------------------------------------------------------------------*/
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config_auto.h" #include "config_auto.h"
#endif #endif
@ -79,9 +79,9 @@ const int kMaxShapeLabelLength = 10;
DECLARE_STRING_PARAM_FLAG(test_ch); DECLARE_STRING_PARAM_FLAG(test_ch);
/**---------------------------------------------------------------------------- /*----------------------------------------------------------------------------
Public Function Prototypes Public Function Prototypes
----------------------------------------------------------------------------**/ ----------------------------------------------------------------------------*/
int main ( int main (
int argc, int argc,
char **argv); char **argv);
@ -208,41 +208,37 @@ static void SetupConfigMap(ShapeTable* shape_table, IndexMapBiDi* config_map) {
config_map->CompleteMerges(); config_map->CompleteMerges();
} }
/*---------------------------------------------------------------------------*/ /**
int main (int argc, char **argv) { * This program reads in a text file consisting of feature
/* * samples from a training page in the following format:
** Parameters: * @verbatim
** argc number of command line arguments FontName UTF8-char-str xmin ymin xmax ymax page-number
** argv array of command line arguments NumberOfFeatureTypes(N)
** Globals: none FeatureTypeName1 NumberOfFeatures(M)
** Operation: Feature1
** This program reads in a text file consisting of feature ...
** samples from a training page in the following format: FeatureM
** FeatureTypeName2 NumberOfFeatures(M)
** FontName UTF8-char-str xmin ymin xmax ymax page-number Feature1
** NumberOfFeatureTypes(N) ...
** FeatureTypeName1 NumberOfFeatures(M) FeatureM
** Feature1 ...
** ... FeatureTypeNameN NumberOfFeatures(M)
** FeatureM Feature1
** FeatureTypeName2 NumberOfFeatures(M) ...
** Feature1 FeatureM
** ... FontName CharName ...
** FeatureM @endverbatim
** ... * The result of this program is a binary inttemp file used by
** FeatureTypeNameN NumberOfFeatures(M) * the OCR engine.
** Feature1 * @param argc number of command line arguments
** ... * @param argv array of command line arguments
** FeatureM * @return none
** FontName CharName ... * @note Exceptions: none
** * @note History: Fri Aug 18 08:56:17 1989, DSJ, Created.
** The result of this program is a binary inttemp file used by * @note History: Mon May 18 1998, Christy Russson, Revistion started.
** the OCR engine.
** Return: none
** Exceptions: none
** History: Fri Aug 18 08:56:17 1989, DSJ, Created.
** Mon May 18 1998, Christy Russson, Revistion started.
*/ */
int main (int argc, char **argv) {
ParseArguments(&argc, &argv); ParseArguments(&argc, &argv);
ShapeTable* shape_table = NULL; ShapeTable* shape_table = NULL;