擅长:python、mysql、java
<p>IplImage是OpenCV中的基本图像类。<code>cv.QueryFrame</code>应该返回一个IplImage。但你的情况似乎不是这样。在</p>
<p>您应该尝试检查<code>NULL</code>。<code>QueryFrame</code>返回<code>NULL</code>而不是图像以防出错。在</p>
<p>另外,看看<a href="https://stackoverflow.com/questions/12482761/typeerror-argument-image-must-be-iplimage/12486296#12486296">THIS</a>问题。你可以在这里找到答案。在</p>