Hatching pattern recognition and boundary marking automatically

I want to automatically identify different hatching patterns in the same image and mark the boundaries to differentiate between the patterns. The shapes having hatching pattern can be random (i.e. it’s not a defined shape like circle/rectangle etc.).
I have tried tempalate matching and contouring but not exactly getting the solution to the pattern. Could anyone kindly let me know a solution that goes close to this?