Skip to content

Commit

Permalink
Move training to src.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Apr 25, 2018
1 parent ca5c15e commit 104fe79
Show file tree
Hide file tree
Showing 65 changed files with 1,664 additions and 1,664 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ if (BUILD_TESTS AND EXISTS ${PROJECT_SOURCE_DIR}/googletest/CMakeLists.txt)
endif()

if (BUILD_TRAINING_TOOLS)
add_subdirectory(training)
add_subdirectory(src/training)
endif()

get_target_property(tesseract_NAME libtesseract NAME)
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ AC_CONFIG_FILES([java/com/google/scrollview/Makefile])
AC_CONFIG_FILES([java/com/google/scrollview/events/Makefile])
AC_CONFIG_FILES([java/com/google/scrollview/ui/Makefile])
AC_CONFIG_FILES([doc/Makefile])
AM_COND_IF([ENABLE_TRAINING], [AC_CONFIG_FILES(training/Makefile)])
AM_COND_IF([ENABLE_TRAINING], [AC_CONFIG_FILES(src/training/Makefile)])
AC_OUTPUT
# Final message
Expand Down
86 changes: 43 additions & 43 deletions cppan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,112 +172,112 @@ projects:
tessopt:
type: lib
static_only: true
files: training/tessopt.*
files: src/training/tessopt.*
include_directories: training
dependencies: libtesseract

common_training:
type: lib
static_only: true
files:
- training/commandlineflags.cpp
- training/commandlineflags.h
- training/commontraining.cpp
- training/commontraining.h
- src/training/commandlineflags.cpp
- src/training/commandlineflags.h
- src/training/commontraining.cpp
- src/training/commontraining.h
include_directories: training
dependencies:
- tessopt

ambiguous_words:
files: training/ambiguous_words.cpp
files: src/training/ambiguous_words.cpp
dependencies:
- libtesseract

classifier_tester:
files: training/classifier_tester.cpp
files: src/training/classifier_tester.cpp
dependencies: common_training

combine_lang_model:
files: training/combine_lang_model.cpp
files: src/training/combine_lang_model.cpp
dependencies: unicharset_training

combine_tessdata:
files: training/combine_tessdata.cpp
files: src/training/combine_tessdata.cpp
dependencies: libtesseract

cntraining:
files: training/cntraining.cpp
files: src/training/cntraining.cpp
dependencies: common_training

dawg2wordlist:
files: training/dawg2wordlist.cpp
files: src/training/dawg2wordlist.cpp
dependencies: libtesseract

mftraining:
files:
- training/mftraining.cpp
- training/mergenf.*
- src/training/mftraining.cpp
- src/training/mergenf.*
dependencies: common_training

shapeclustering:
files: training/shapeclustering.cpp
files: src/training/shapeclustering.cpp
dependencies: common_training

unicharset_extractor:
files: training/unicharset_extractor.cpp
files: src/training/unicharset_extractor.cpp
dependencies: unicharset_training

wordlist2dawg:
files: training/wordlist2dawg.cpp
files: src/training/wordlist2dawg.cpp
dependencies: libtesseract

unicharset_training:
type: lib
static_only: true
files:
- training/fileio.*
- training/icuerrorcode.h
- training/lang_model_helpers.*
- training/lstmtester.*
- training/normstrngs.*
- training/unicharset_training_utils.*
- training/validat.*
- src/training/fileio.*
- src/training/icuerrorcode.h
- src/training/lang_model_helpers.*
- src/training/lstmtester.*
- src/training/normstrngs.*
- src/training/unicharset_training_utils.*
- src/training/validat.*
include_directories: training
dependencies:
- common_training
- pvt.cppan.demo.unicode.icu.i18n

lstmeval:
files: training/lstmeval.cpp
files: src/training/lstmeval.cpp
dependencies: unicharset_training

lstmtraining:
files: training/lstmtraining.cpp
files: src/training/lstmtraining.cpp
dependencies: unicharset_training

set_unicharset_properties:
files: training/set_unicharset_properties.cpp
files: src/training/set_unicharset_properties.cpp
dependencies: unicharset_training

text2image:
files:
- training/text2image.cpp
- training/boxchar.cpp
- training/boxchar.h
- training/degradeimage.cpp
- training/degradeimage.h
- training/ligature_table.cpp
- training/ligature_table.h
- training/normstrngs.cpp
- training/normstrngs.h
- training/pango_font_info.cpp
- training/pango_font_info.h
- training/stringrenderer.cpp
- training/stringrenderer.h
- training/tlog.cpp
- training/tlog.h
- training/util.h
- training/icuerrorcode.h
- src/training/text2image.cpp
- src/training/boxchar.cpp
- src/training/boxchar.h
- src/training/degradeimage.cpp
- src/training/degradeimage.h
- src/training/ligature_table.cpp
- src/training/ligature_table.h
- src/training/normstrngs.cpp
- src/training/normstrngs.h
- src/training/pango_font_info.cpp
- src/training/pango_font_info.h
- src/training/stringrenderer.cpp
- src/training/stringrenderer.h
- src/training/tlog.cpp
- src/training/tlog.h
- src/training/util.h
- src/training/icuerrorcode.h

dependencies:
- unicharset_training
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 104fe79

Please sign in to comment.