How to automatically detect and categorize process flow diagrams or charts within business documentation

I want to create a model to automatically detect and categorize process flow diagrams or charts within business documentation. Can anyone please tell me how can I approach this project?