(self, inputs)
| 506 | "detect the sketch from this image. " |
| 507 | "The input to this tool should be a string, representing the image_path") |
| 508 | def inference(self, inputs): |
| 509 | image = Image.open(inputs) |
| 510 | scribble = self.detector(image, scribble=True) |
| 511 | updated_image_path = get_new_image_name(inputs, func_name="scribble") |
| 512 | scribble.save(updated_image_path) |
| 513 | print(f"\nProcessed Image2Scribble, Input Image: {inputs}, Output Scribble: {updated_image_path}") |
| 514 | return updated_image_path |
| 515 | |
| 516 | |
| 517 | class ScribbleText2Image: |
nothing calls this directly
no test coverage detected