CMakeLists.txt 746 B

123456789101112131415161718192021222324252627
  1. set(the_description "Text Detection and Recognition")
  2. set(__extra_deps "")
  3. if(DEBUG_opencv_text)
  4. list(APPEND __extra_deps PRIVATE_REQUIRED opencv_highgui)
  5. endif()
  6. ocv_define_module(text
  7. opencv_ml opencv_imgproc opencv_core opencv_features2d opencv_dnn
  8. ${__extra_deps}
  9. WRAP
  10. python
  11. java
  12. objc
  13. )
  14. if(TARGET ocv.3rdparty.tesseract)
  15. ocv_target_link_libraries(${the_module} LINK_PRIVATE ocv.3rdparty.tesseract)
  16. endif()
  17. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/text_config.hpp.in
  18. ${CMAKE_BINARY_DIR}/text_config.hpp @ONLY)
  19. ocv_include_directories(${CMAKE_CURRENT_BINARY_DIR})
  20. ocv_add_testdata(samples/ contrib/text
  21. FILES_MATCHING PATTERN "*.xml" PATTERN "*.xml.gz" REGEX "scenetext[0-9]+.jpg"
  22. )