Config.in 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. comment "tesseract-ocr needs a toolchain w/ threads, C++, gcc >= 7, dynamic library, wchar"
  2. depends on BR2_USE_MMU
  3. depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
  4. !BR2_TOOLCHAIN_GCC_AT_LEAST_7 || BR2_STATIC_LIBS || !BR2_USE_WCHAR
  5. menuconfig BR2_PACKAGE_TESSERACT_OCR
  6. bool "tesseract-ocr"
  7. depends on BR2_INSTALL_LIBSTDCPP
  8. depends on BR2_TOOLCHAIN_HAS_THREADS
  9. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
  10. depends on BR2_USE_MMU # fork()
  11. depends on !BR2_STATIC_LIBS
  12. depends on BR2_USE_WCHAR
  13. select BR2_PACKAGE_LEPTONICA
  14. help
  15. Tesseract is an OCR (Optical Character Recognition) engine,
  16. It can be used directly, or (for programmers) using an API.
  17. It supports a wide variety of languages.
  18. https://github.com/tesseract-ocr/tesseract
  19. if BR2_PACKAGE_TESSERACT_OCR
  20. comment "tesseract-ocr languages support"
  21. config BR2_PACKAGE_TESSERACT_OCR_LANG_ENG
  22. bool "English"
  23. config BR2_PACKAGE_TESSERACT_OCR_LANG_FRA
  24. bool "French"
  25. config BR2_PACKAGE_TESSERACT_OCR_LANG_GER
  26. bool "German"
  27. config BR2_PACKAGE_TESSERACT_OCR_LANG_SPA
  28. bool "Spanish"
  29. config BR2_PACKAGE_TESSERACT_OCR_LANG_CHI_SIM
  30. bool "Simplified Chinese"
  31. config BR2_PACKAGE_TESSERACT_OCR_LANG_CHI_TRA
  32. bool "Traditional Chinese"
  33. endif