Skip to content

cmake download workaround, samples data installation#12124

Merged
opencv-pushbot merged 2 commits intoopencv:3.4from
mshabunin:download-improve
Aug 2, 2018
Merged

cmake download workaround, samples data installation#12124
opencv-pushbot merged 2 commits intoopencv:3.4from
mshabunin:download-improve

Conversation

@mshabunin
Copy link
Copy Markdown
Contributor

@mshabunin mshabunin commented Aug 1, 2018

This pullrequest changes

  • write download scripts for failed download attempts, minor changes in download logs
  • fixed installation of samples data (was "/data/data")
  • do not download face_detector models, instead created script which allows users to download models described in Metalink file

How to use download scripts

  • Run cmake in clean build directory - cmake complains it can not download several files
  • Run bash <build>/download_with_wget.sh script (or with_curl) - all files will be downloaded to the download cache
  • Run cmake . in the build directory - all downloaded files will be found by cmake

How to download face_detector models

  • Go to directory samples/dnn/face_detector
  • Run command python download_weights.py

Alternative way:

allow_multiple_commits=1

"${OPENCV_DNN_MODELS_URL}"
"https://raw.githubusercontent.com/opencv/opencv_3rdparty/${commit}/"
DESTINATION_DIR ${DNN_FACE_DETECTOR_MODEL_DOWNLOAD_DIR}
DESTINATION_DIR "${OpenCV_BINARY_DIR}/face_detector"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is located in the source directory for a reason.
There are other files which required to run sample.
Python sample goes broken (they are run from source directory).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants