Answers for "skimage local threshold"

0

skimage local threshold

import cv2
from skimage.filters import threshold_local

image = cv2.imread("path/to/image")

# block size must be odd
thresh = threshold_local(image, block_size = 3, offset = 0.02)
binary_image = image > thresh
Posted by: Guest on April-12-2022

Python Answers by Framework

Browse Popular Code Answers by Language