Hi list,
I need help figuring out how to customise segmentation. What I have
done so far is:
----
import_all(ocr)
import_all(iulib)
image = bytearray();
seg = intarray()
read_image_gray(image,arg[1]);
make_page_black(image);
segmenter = make_SegmentPageByRAST();
segmenter:segment(seg,image)
check_page_segmentation(seg);
regions = RegionExtractor()
regions:setPageColumns(seg)
-- intarray out
out_line_image = intarray();
for i = 1,regions:length()-1 do
print("Writing.."..i);
regions:extract(out_line_image,seg,i,0);
iulib.write_image_packed(i..arg[2],out_line_image);
end
----
Now, I need to figure out how to tune the segmentation such that I can
make the segmenter extract only the region/s I tell it to? Which
documentation/paper do I need to read further? Any insight would be
really helpful. Thanks! :)
--
Regards,
Ishwor Gurung
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ocropus" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---