CMakeLists.txt 906 B

123456789101112131415161718192021222324252627
  1. set(the_description "Face recognition etc")
  2. ocv_define_module(face opencv_core
  3. opencv_imgproc
  4. opencv_objdetect
  5. opencv_calib3d # estimateAffinePartial2D() (trainFacemark)
  6. opencv_photo # seamlessClone() (face_swap sample)
  7. WRAP python java objc
  8. )
  9. # NOTE: objdetect module is needed for one of the samples
  10. set(__commit_hash "8afa57abc8229d611c4937165d20e2a2d9fc5a12")
  11. set(__file_hash "7505c44ca4eb54b4ab1e4777cb96ac05")
  12. ocv_download(
  13. FILENAME face_landmark_model.dat
  14. HASH ${__file_hash}
  15. URL
  16. "${OPENCV_FACE_ALIGNMENT_URL}"
  17. "$ENV{OPENCV_FACE_ALIGNMENT_URL}"
  18. "https://raw.githubusercontent.com/opencv/opencv_3rdparty/${__commit_hash}/"
  19. DESTINATION_DIR "${CMAKE_BINARY_DIR}/${OPENCV_TEST_DATA_INSTALL_PATH}/cv/face/"
  20. ID "data"
  21. RELATIVE_URL
  22. STATUS res
  23. )
  24. if(NOT res)
  25. message(WARNING "Face: Can't get model file for face alignment.")
  26. endif()