Introduction - If you have any usage issues, please Google them yourself
This procedure is based on the multiple document (MDI) of the connected components labeling algorithm, the number of connected components for the statistics. I personally modify, run through, and with a test case diagrams.