Auto-Segmentation
Calling the AutoSegment method will perform automatic segmentation using the LEADTOOLS MRC engine. LEADTOOLS segments the bitmap, classifying the segments as text, grayscale or picture. Use the following properties to control the segmentation process:
It is also possible to use the AutoSegmentExt method to perform automatic segmentation, or the SegmentExt method to apply manual segmentation.
To enumerate the segments, call the EnumSegments method. An EnumSegments event is fired for each segment, which provides segment boundaries and its ID. To modify a segment type or its coordinates, use the SetSegmentData method. This method will update only one segment’s data each time it is called. To delete a segment, call the DeleteSegment method. To combine two segments, call the CombineSegments method. To copy the segmentation handle and data, call the CopySegmentationHandle method.
Save the segmentation handle and data to a file by calling the SaveSegmentation method. To load the saved segmentation handle and data from a file, call the LoadSegmentation method.