优化定位点大小
This commit is contained in:
parent
46d928936e
commit
dc35751d35
|
|
@ -444,7 +444,7 @@ public class CommonUse
|
|||
// bool bo = (rect.Width / rect.Height >= ratio && (rect.Width > 3 && rect.Height > 2) && (area > 200 && area <= 4500));
|
||||
//bool bo = ((rect.Width > 3 && rect.Height > 2) && (area > 80 && area <= 15000));
|
||||
//bool bo = pxNums > 130 && pxNums < 300;
|
||||
bool bo = (approx_curve.Size == 4 && CvInvoke.IsContourConvex(approx_curve) && (rect.Width > 15 && rect.Height > 15) && (area > 550 && area < 2000) && (rect.Width < 50 && rect.Height < 50) && pxNums > 550);
|
||||
bool bo = (approx_curve.Size == 4 && CvInvoke.IsContourConvex(approx_curve) && (rect.Width > 10 && rect.Height > 10) && (area > 350 && area < 2000) && (rect.Width < 50 && rect.Height < 50) && pxNums > 200);
|
||||
if (bo)
|
||||
{
|
||||
selected_contours.Push(contours[i]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue