jsta / contour2bathy

Convert a pdf with contour lines to a bathymetric (raster) map
0 stars 0 forks source link

Turn numbers in to points and interpolate? #2

Open jsta opened 7 years ago

jsta commented 7 years ago

Rather than trying to recover lines?

jsta commented 7 years ago

Can run the following line to return the coordinates and id confidence of ocr strings:

$ tesseract testocr.png test hocr

jsta commented 7 years ago

Probably want to set a character whitelist of only numbers to restrict classifying sounding points:

tessedit_char_whitelist = "0123456789"