Representation of VEC-format Information in Color-Based Format
This web-service performs a conversion of the VEC-format used in previous
GREC Arc Segmentation Contests to the Color-Based Segmentatation
Evaluation as used in the GREC 2007 Arc Segmentation
Contest and described in the paper Pixel-Accurate Representation
and Evaluation of Page Segmentation in Document Images (ICPR
2006). If you have any questions, please contact Faisal Shafait.
Note that the representation in the image file is what counts for the
evaluation. In some test cases we noted that the VEC-format
representation can be inaccurate. You might want to consider
post-processing the resulting image file if you use this web-service
for conversion.
Note also that this conversion only accepts lines starting with A or C
(arcs and cirlces) and will fail if there are lines or comments in the
VEC-format input.
Form Interface
You need to upload the original binary image and a VEC-format text file.
We recommend you upload a png image file. (Other formats work, but may be too large or lossy.)
Programmatic Interface
To submit your image programmatically, you can simply POST to this URL; the
input should be parameters named "imagefile" and "vecfile".
From the command line, you can do this using:
curl -D header.out -F 'imagefile=@input.png;type=image/png' -F 'vecfile=@vecfile.txt;type=text/plain' http://demo.iupr.org/vec2img/ > output.txt
You can also do this easily using the HTTP implementation in your favorite
programming language (C#, Python, Java, Perl, etc.).