(self)
| 81 | |
| 82 | class PreprocessorCanny(Preprocessor): |
| 83 | def __init__(self): |
| 84 | super().__init__() |
| 85 | self.name = 'canny' |
| 86 | self.tags = ['Canny'] |
| 87 | self.model_filename_filters = ['canny'] |
| 88 | self.slider_1 = PreprocessorParameter(minimum=0, maximum=256, step=1, value=100, label='Low Threshold', visible=True) |
| 89 | self.slider_2 = PreprocessorParameter(minimum=0, maximum=256, step=1, value=200, label='High Threshold', visible=True) |
| 90 | self.sorting_priority = 100 |
| 91 | self.use_soft_projection_in_hr_fix = True |
| 92 | |
| 93 | def __call__(self, input_image, resolution, slider_1=None, slider_2=None, slider_3=None, **kwargs): |
| 94 | input_image, remove_pad = resize_image_with_pad(input_image, resolution) |
nothing calls this directly
no test coverage detected