Closed MehmedGIT closed 1 year ago
-p '{"shrink_polygons": "true"}'
should be -p '{"shrink_polygons": true}'
or simply -P shrink_polygons true
. The latter will already try to do type casting (although in a limited fashion).
Anyway, this is not a ocrd_tesserocr issue, it belongs to core. But see https://github.com/OCR-D/core/issues/950 for the problems that casting can cause.
Thanks for referencing 950. That helps to understand why a certain decision was made regarding parameters.
Although I see the reason behind this error, I wonder if it is just not better to try parsing string parameters to a boolean where a boolean is expected.