Update app.py
Browse files
app.py
CHANGED
@@ -163,7 +163,7 @@ def remove_bg(fl):
|
|
163 |
blur_s.append([])
|
164 |
for j in range(2, frame.shape[1]-2):
|
165 |
d = edges[i-2:i+2,j-2:j+2].var().astype(np.uint8)
|
166 |
-
blur_s[i-2].append(np.array(d))
|
167 |
|
168 |
#remove regions of low saturation and lightness (get scene without shadow)
|
169 |
m = cv2.inRange(cv2.cvtColor(frame_c, cv2.COLOR_RGB2HSV), np.array([0,0,0]), np.array([180,32,64]))
|
|
|
163 |
blur_s.append([])
|
164 |
for j in range(2, frame.shape[1]-2):
|
165 |
d = edges[i-2:i+2,j-2:j+2].var().astype(np.uint8)
|
166 |
+
blur_s[i-2].append(np.array([d]))
|
167 |
|
168 |
#remove regions of low saturation and lightness (get scene without shadow)
|
169 |
m = cv2.inRange(cv2.cvtColor(frame_c, cv2.COLOR_RGB2HSV), np.array([0,0,0]), np.array([180,32,64]))
|