MCPcopy Create free account
hub / github.com/RylonW/DocNLC / blur

Function blur

generate_dataset.py:130–135  ·  view source on GitHub ↗
(image_path)

Source from the content-addressed store, hash-verified

128 return overlap
129
130def blur(image_path):
131 img = Image.open(image_path)
132 k = Kernel((randint(10,100), randint(10,100)), intensity = randint(0,10)/10)
133
134 blurred = k.applyTo(img, keep_image_dim=True)
135 return blurred
136
137def average_hw (src):
138 # print the average height and width of all the images in src

Callers 1

generate_blurFunction · 0.85

Calls 2

applyToMethod · 0.95
KernelClass · 0.90

Tested by

no test coverage detected