CannyFilter Python ITK

I’m trying to reproduce this example in python but i have an error: TypeError: <module 'ITKSmoothing'> is a built-in module.
Do you have any ideas how to solve it?

Hi @fraca,

Are you using the Python script included with the example?

If you are using the script and are encountering this error, it indicates that the Python ITK installation may be invalid – the best approach in this case is to start from a new Python virtual environment or a new conda environment.

I tried to downgrade to ITK 5.0.1 and it seems to work

1 Like