SSD demo running based on OpenCV's dnn module

Recently, the project has a task to use VS+OpenCV to implement the call of the caffe model in the windows environment, so I found a few related blogs on the Internet and ran a few demos to practice. These blogs are very detailed, but some details have changed in the process of configuration due to version update problems, so I will post another blog to record them.

 

For the preparatory work, you can refer to this blog: Calling the caffe model based on the opencv dnn module . Regarding the configuration environment, I used VS2015, CMake is the latest version of the official website, and OpenCV chose OpenCV3.2.0 used in the blog. It should be noted that in the running environment and preliminary preparation process, the version of the OpenCV contrib library should correspond to the OpenCV library downloaded by yourself, otherwise an error will be reported in the subsequent compilation process. At the same time, in the process of compiling OpenCV and contrib libraries, after completing the first compilation and finding the "OPENCV_EXTRA_MODUALS_PATH" setting path, remember to change the '\' in the path to '/' after copying the path, otherwise it will also report an error.

 

The next step is to follow the above blog step by step. The first demo ran smoothly, but at the last step of the second demo, the system would always report an error, prompting me that there is no 'norm_para' parameter. Using the method on the blog to find that it still can't work, the reason may be that the caffemode on the Internet is updated from time to time, so there will be corresponding changes in deploy.protxt. I have been looking for a solution on the Internet for a long time, but I finally solved it by github Issue: https://github.com/opencv/opencv_contrib/issues/935

 

So I still need more FQ, use google~

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325132641&siteId=291194637