Added erGrouping function: Find groups of Extremal Regions that are organized as text blocks. Updated sample/cpp to use the complete text detection pipeline.
fixed some build errors and warnings. removed trailing whitespaces.