擅长:python、mysql、java
<p>看起来你没有用OpenCV_contrib模块编译你的OpenCV。你必须重新编译它。您可以在<a href="http://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/" rel="nofollow noreferrer">this</a>blogpost中找到一个非常好的分步指导。</p>
<p><strong>编辑:</strong></p>
<p>如果需要在Windows上编译,可以使用@Osama的<a href="https://stackoverflow.com/questions/37517983/opencv-install-opencv-contrib-on-windows">this</a>优秀教程</p>
<p>希望有帮助。</p>