Skip to content

samples: refactor DNN model downloading#12186

Closed
alalek wants to merge 5 commits intoopencv:3.4from
alalek:dnn_sample_models_download
Closed

samples: refactor DNN model downloading#12186
alalek wants to merge 5 commits intoopencv:3.4from
alalek:dnn_sample_models_download

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Aug 8, 2018

  • added CMake "skip" flag: OPENCV_SAMPLES_SKIP_DATA_DOWNLOAD
  • added CMake "extra" flag: OPENCV_SAMPLES_EXTRA_DATA_DOWNLOAD
  • added standalone "parameter-less" sample: opencv_dnn_face_detector.py
  • added winpack "just run" script
  • split Metalink file, added FP32
  • added WINDOW_AUTOSIZE (required for GTK backend)
  • fix confidence callback to work with images too
  • added saving of input/result frame ('space' key)
  • and other commits

related #12124
replaces #12154

raise ImportError("Can't find OpenCV Python module. If you've built it from sources without installation, "
'configure environemnt variable PYTHONPATH to "opencv_build_dir/lib" directory (with "python3" subdirectory if required)')

data_path = os.path.realpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../samples/data'))

This comment was marked as outdated.

alalek and others added 5 commits September 3, 2018 21:08
- added CMake "skip" flag: OPENCV_SAMPLES_SKIP_DATA_DOWNLOAD
- added CMake "extra" flag: OPENCV_SAMPLES_EXTRA_DATA_DOWNLOAD
- added standalone "parameter-less" sample: opencv_dnn_face_detector.py
- added winpack "just run" .cmd script for Python sample
- split Metalink file, added FP32
- fixed WINDOW_AUTOSIZE (required for GTK backend)
- fixed confidence callback to work with images too
- added saving of input/result frame ('space' key)
with auto downloader for defined file URLs
It may contain some useful information, like:
- RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
@asmorkalov
Copy link
Copy Markdown
Contributor

@alalek Do you plan to finish it in mean time?

@dkurt
Copy link
Copy Markdown
Member

dkurt commented Oct 18, 2019

Hi!

I'd like to continue working on openvinotoolkit/open_model_zoo#272 but now as a part of cv::dnn namespace.

So we can use Python code inside C++ and use it as for samples as to download test data.

@asenyaev
Copy link
Copy Markdown
Contributor

asenyaev commented Apr 7, 2021

jenkins cn please retry a build

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.

4 participants