qurator-spk / sbb_textline_detection

Detect textlines in document images
Apache License 2.0
90 stars 18 forks source link

Warn about or refuse overwriting existing elements #17

Closed wrznr closed 4 years ago

wrznr commented 4 years ago

The OCR-D processor silently overwrites existing annotations in the PAGE XML. It should be made either made clear via documentation and/or logging that this happens or maybe the processor should refuse to do so and require explicit confirmation via a parameter.

mikegerber commented 4 years ago

I'll do two things:

mikegerber commented 4 years ago

Fixed in https://github.com/qurator-spk/sbb_textline_detector/commit/27b2d056b0e2e430fcc0df772f4610ee032fde8e and https://github.com/qurator-spk/sbb_textline_detector/commit/f90b3cfa8601c20c8401095209c00dfbb43c5a78.