feat generate sketch 污点检测改为顶部两角
This commit is contained in:
@@ -145,8 +145,8 @@ def stain_detection(image, spot_size=200):
|
||||
corners = [
|
||||
image[0:spot_size, 0:spot_size], # top left
|
||||
image[0:spot_size, width - spot_size:width], # top right
|
||||
image[height - spot_size:height, 0:spot_size], # bottom left
|
||||
image[height - spot_size:height, width - spot_size:width] # bottom right
|
||||
# image[height - spot_size:height, 0:spot_size], # bottom left
|
||||
# image[height - spot_size:height, width - spot_size:width] # bottom right
|
||||
]
|
||||
|
||||
for index, corner in enumerate(corners):
|
||||
|
||||
Reference in New Issue
Block a user