Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

fix lint

Daniel Gatis552c19d9f85d
diff --git a/rembg/bg.py b/rembg/bg.py
index a78b2cc..60a3045 100644
--- a/rembg/bg.py
+++ b/rembg/bg.py
@@ -3,8 +3,14 @@ from enum import Enum
from typing import List, Optional, Union
import numpy as np
-from cv2 import (BORDER_DEFAULT, MORPH_ELLIPSE, MORPH_OPEN, GaussianBlur,
- getStructuringElement, morphologyEx)
+from cv2 import (
+ BORDER_DEFAULT,
+ MORPH_ELLIPSE,
+ MORPH_OPEN,
+ GaussianBlur,
+ getStructuringElement,
+ morphologyEx,
+)
from PIL import Image
from PIL.Image import Image as PILImage
from pymatting.alpha.estimate_alpha_cf import estimate_alpha_cf