Ubuntu18.04+OpenCV3.2.0进行源码编译安装时,可能会出现Failed to download vgg_generated_48.i等系列错误。现把相关文件通过zip打包下载,下载后解压,按需替换相应目录里面的同名文件即可,比如:把vgg_generated_48.i文件拷贝到/opencv_contrib-3.2.0/modules/xfeatures2d/cmake/.download/e8d0dcd54d1bcfdc29203d011a797179文件夹下面替换同名文件。重新cmake即可。
1