Images are in float32, not uint8, color value should be "1"

This commit is contained in:
Jeremy Hummel 2019-08-15 14:05:42 -07:00
commit e29a24c0da

View file

@ -209,7 +209,7 @@ def get_image_hull_mask (image_shape, image_landmarks, ie_polys=None):
for item in parts:
merged = np.concatenate(item)
cv2.fillConvexPoly(hull_mask, cv2.convexHull(merged), 255.) # pylint: disable=no-member
cv2.fillConvexPoly(hull_mask, cv2.convexHull(merged), 1)
if ie_polys is not None:
ie_polys.overlay_mask(hull_mask)