From 0c10f313b5be1f7968d2da6d2dc7f2c3a824f2c3 Mon Sep 17 00:00:00 2001 From: Savan Visalpara Date: Mon, 31 Aug 2020 11:08:16 -0500 Subject: [PATCH] updated minimum length of polygons --- .../tensorflow/matterport/mask_rcnn/nuclio/model_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serverless/tensorflow/matterport/mask_rcnn/nuclio/model_loader.py b/serverless/tensorflow/matterport/mask_rcnn/nuclio/model_loader.py index c0180d59629b..1e56b6e60df7 100644 --- a/serverless/tensorflow/matterport/mask_rcnn/nuclio/model_loader.py +++ b/serverless/tensorflow/matterport/mask_rcnn/nuclio/model_loader.py @@ -63,7 +63,7 @@ def infer(self, image, threshold): contour = np.flip(contour, axis=1) # Approximate the contour and reduce the number of points contour = approximate_polygon(contour, tolerance=2.5) - if len(contour) < 5: + if len(contour) < 6: continue label = self.labels[class_id]