summaryrefslogtreecommitdiff
path: root/pkg/hocr/hocr.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/hocr/hocr.go')
-rw-r--r--pkg/hocr/hocr.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/pkg/hocr/hocr.go b/pkg/hocr/hocr.go
index 6cd1df1..e84c2b1 100644
--- a/pkg/hocr/hocr.go
+++ b/pkg/hocr/hocr.go
@@ -58,16 +58,6 @@ func wordConf(s string) (float64, error) {
return strconv.ParseFloat(conf[1], 64)
}
-// Returns the image path for a page from a ocr_page title
-func imagePath(s string) (string, error) {
- re, err := regexp.Compile(`image ["']([^"']+)["']`)
- if err != nil {
- return "", err
- }
- m := re.FindStringSubmatch(s)
- return m[1], nil
-}
-
// BoxCoords parses bbox coordinate strings
func BoxCoords(s string) ([4]int, error) {
var coords [4]int