擅长:python、mysql、java
<p>根据cv文档,对于某些形状,动量0(面积)可以为0。这可能就是这里发生的事情:</p>
<blockquote>
<p>Note Since the contour moments are computed using Green formula, you
may get seemingly odd results for contours with self-intersections,
e.g. a zero area (m00) for butterfly-shaped contours.</p>
</blockquote>
<p>发件人:<a href="https://docs.opencv.org/3.4/d8/d23/classcv_1_1Moments.html#a8b1b4917d1123abc3a3c16b007a7319b" rel="nofollow noreferrer">https://docs.opencv.org/3.4/d8/d23/classcv_1_1Moments.html#a8b1b4917d1123abc3a3c16b007a7319b</a></p>
<p>在使用面积(m00)进行分割之前,需要确保面积(m00)不是0</p>