Project

General

Profile

opencv downloads third party blobs during compilation

nona - about 1 month ago -

This is a warning. OpenCV 4.5.3 now downloads https://github.com/opencv/ade/ without asking for it, and without an option to prevent it.

The `init.cmake' file in the `modules/gapi/cmake' directory shows

if(NOT TARGET ade)
  # if ade_DIR is not set, try to use automatically
  # downloaded one (if there any)
  include("${CMAKE_CURRENT_LIST_DIR}/DownloadADE.cmake")
endif()

May be, ADE is a pre-requisite, but I don't think that the compilation process should be in charge of downloading an extension. This should be left to the prepare function. The new version of the program is still not available on Parabola's repository, but this may help to prevent undesired consequences.

If needed, I can create a bug out of this.
[edit: moved to freedom and liberty]


Replies (1)

RE: opencv downloads third party software during compilation - nona - 13 days ago -

It seems that there is this short list of files which are also downloaded (even for v4.5.1):

  • detect.prototxt
  • detect.caffemodel
  • sr.prototxt
  • sr.caffemodel

Besides these, there are binary blobs which come from modules/{aruco,cnn_3dobj,dnns_easily_fooled,wechat_qrcode} (removing those directories should be enough to sanitize).

    (1-1/1)