擅长:python、mysql、java
<p>不幸的是,默认情况下,这些函数没有公开给pythonapi。在</p>
<p>如果您从源代码构建cv2.pyd,有一个简单的补救方法:</p>
<ul>
<li>找到他们的负责人。声明,opencv/modules/contrib/include/opencv2/contrib/出资水电站在</li>
<li>将<code>CV_EXPORTS Mat subspaceProject(...)</code>更改为<code>CV_EXPORTS_W Mat subspaceProject(...)</code></li>
<li><p>将<code>CV_EXPORTS Mat subspaceReconstruct(...)</code>改为<code>CV_EXPORTS_W Mat subspaceReconstruct(...)</code></p></li>
<li><p>重新运行cmake/make以重建cv libs和python包装器模块</p></li>
</ul>
<p>W additional-W前缀将把这些函数添加到生成的包装器中</p>