download_boostdesc.cmake 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. function(download_boost_descriptors dst_dir status_var)
  2. set(OPENCV_3RDPARTY_COMMIT "34e4206aef44d50e6bbcd0ab06354b52e7466d26")
  3. set(ids BGM BGM_BI BGM_HD BINBOOST_064 BINBOOST_128 BINBOOST_256 LBGM)
  4. set(name_BGM boostdesc_bgm.i)
  5. set(name_BGM_BI boostdesc_bgm_bi.i)
  6. set(name_BGM_HD boostdesc_bgm_hd.i)
  7. set(name_BINBOOST_064 boostdesc_binboost_064.i)
  8. set(name_BINBOOST_128 boostdesc_binboost_128.i)
  9. set(name_BINBOOST_256 boostdesc_binboost_256.i)
  10. set(name_LBGM boostdesc_lbgm.i)
  11. set(hash_BGM "0ea90e7a8f3f7876d450e4149c97c74f")
  12. set(hash_BGM_BI "232c966b13651bd0e46a1497b0852191")
  13. set(hash_BGM_HD "324426a24fa56ad9c5b8e3e0b3e5303e")
  14. set(hash_BINBOOST_064 "202e1b3e9fec871b04da31f7f016679f")
  15. set(hash_BINBOOST_128 "98ea99d399965c03d555cef3ea502a0b")
  16. set(hash_BINBOOST_256 "e6dcfa9f647779eb1ce446a8d759b6ea")
  17. set(hash_LBGM "0ae0675534aa318d9668f2a179c2a052")
  18. set(${status_var} TRUE PARENT_SCOPE)
  19. foreach(id ${ids})
  20. ocv_download(FILENAME ${name_${id}}
  21. HASH ${hash_${id}}
  22. URL
  23. "${OPENCV_BOOSTDESC_URL}"
  24. "$ENV{OPENCV_BOOSTDESC_URL}"
  25. "https://raw.githubusercontent.com/opencv/opencv_3rdparty/${OPENCV_3RDPARTY_COMMIT}/"
  26. DESTINATION_DIR ${dst_dir}
  27. ID "xfeatures2d/boostdesc"
  28. RELATIVE_URL
  29. STATUS res)
  30. if(NOT res)
  31. set(${status_var} FALSE PARENT_SCOPE)
  32. endif()
  33. endforeach()
  34. endfunction()