Commit 0afd9157 cuiya

vision_v12

1 个父辈 933d1e47
...@@ -227,8 +227,8 @@ namespace Acc.Img ...@@ -227,8 +227,8 @@ namespace Acc.Img
{ {
itemArea = 3; itemArea = 3;
} }
int totalCount = CountBlobs(blobList, itemArea, ref imageMat); int totalCount = CountBlobs(blobList, itemArea, ref grayMat);
image = BitmapConverter.ToBitmap(imageMat); image = BitmapConverter.ToBitmap(grayMat);
return totalCount; return totalCount;
} }
...@@ -548,7 +548,7 @@ namespace Acc.Img ...@@ -548,7 +548,7 @@ namespace Acc.Img
if (pngB) if (pngB)
{ {
Cv2.Threshold(dst, dst, 70, 255, ThresholdTypes.Binary); Cv2.Threshold(dst, dst, 70, 255, ThresholdTypes.Binary);
Cv2.Threshold(dst, dst, 70, 150, ThresholdTypes.BinaryInv); Cv2.Threshold(dst, dst, 0, 150, ThresholdTypes.BinaryInv);
} }
else else
{ {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!