-
Change image path in main.py
-
Run the application: python main.py. It will create a folder named "output_yourfilename".
In this fork project, I add code to distinguish image and text region only in the "process_par".
The application is a simple document layout analysis using Python-OpenCV. Using three images, the program needs to do the following:
- Individual characters are boxed
- Individual words are boxed
- Lines are boxed
- Paragraphs are boxed
- The paragraphs with margins
Here is a blog for a short description: http://warkyou.blogspot.com/2016/03/document-layout-analysis.html