machinevision-toolbox-python
machinevision-toolbox-python copied to clipboard
Fix blob error for single pixels
Some blobs were being created that were one pixel in size causing the code:
blob.uc = M.m10 / M.m00
for the centroid to throw a division by zero error.
Added in code to prevent the blob being appended when the value of m00 is zero