Skip to content

Instantly share code, notes, and snippets.

View HilarioJuniorNengare's full-sized avatar

HilarioJuniorNengare

View GitHub Profile
# include the cv2 module with literal name cv
import cv2 as cv
def main():
# paste absolute path of source image inside the single quotes
img = cv.imread(r" ")
gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
gray = cv.medianBlur(gray, 5)
mask = cv.adaptiveThreshold(