How to add colliders to complex maze

I downloaded a maze sprite for expiremental purpose to use in my game and I’m trying to add colliders to the wall. But since the maze is complex, it is quite a lot of work to add a Box collider 2D to each wall so I tried using the Polygon collider 2D and it was some sort of inaccurate mesh looking collider. Is there any better way to add colliders to a maze or is it possible to do it programmatically adding colliders by somehow detecting the structure of the maze?

Here is something similar to the maze I’m using:

I dont know really, but if you can transform that into a Mesh object, in some modeling 3d software, like Maya 3D, you can attach a Mesh Collider so it fits perfect.