Spaces:
Sleeping
Sleeping
Commit ·
03e2e42
1
Parent(s): 565f802
add Gaussian Blur
Browse files92 unmodified lines9394959697989992 unmodified lines"""Fast Canny‑edge preview (already implemented)."""arr = np.array(pil_img.convert("RGB"))edges = cv2.Canny(arr, threshold1=canny_threshold_1, threshold2=canny_threshold_2)edges_rgb = cv2.cvtColor(edges, cv2.COLOR_GRAY2RGB)return Image.fromarray(edges_rgb)92 unmodified lines9394959697989910092 unmodified lines"""Fast Canny‑edge preview (already implemented)."""arr = np.array(pil_img.convert("RGB"))blurred = cv2.GaussianBlur(arr, (5, 5), 1.4)edges = cv2.Canny(blurred, threshold1=canny_threshold_1, threshold2=canny_threshold_2)edges_rgb = cv2.cvtColor(edges, cv2.COLOR_GRAY2RGB)return Image.fromarray(edges_rgb)
app.py+2-1