This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cv2 | |
import skimage.measure | |
import matplotlib.pyplot as plt | |
import winsound | |
im = cv2.imread(r'C:\Users\vikas\OneDrive\Desktop\Back ground\pillars.jpg', 0) # Can be many different formats. | |
x = skimage.measure.block_reduce(im, (3,3), np.max) | |
x = skimage.measure.block_reduce(x, (3,3), np.mean) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from statistics import median | |
import numpy as np | |
import cv2 | |
import skimage.measure | |
import matplotlib.pyplot as plt | |
import winsound | |
finalnotes = [] | |
im = cv2.imread(r'C:\Users\vikas\OneDrive\Desktop\Back ground\pillars.jpg', 0) # Can be many different formats. |