Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocrd-sbb-binarize does not produce a correct AlternativeImage #8

Closed
mikegerber opened this issue Oct 22, 2020 · 1 comment
Closed

Comments

@mikegerber
Copy link
Member

This is a result I get:

<?xml version="1.0" encoding="UTF-8"?>
<pc:PcGts xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15 http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15/pagecontent.xsd" pcGtsId="OCR-D-IMG-BIN_00000024">
    <pc:Metadata>
        <pc:Creator>OCR-D/core 2.18.1</pc:Creator>
        <pc:Created>2020-10-22T18:49:34.729618</pc:Created>
        <pc:LastChange>2020-10-22T18:49:34.729618</pc:LastChange>
        <pc:MetadataItem type="processingStep" name="preprocessing/optimization/binarization" value="ocrd-sbb-binarize">
            <pc:Labels externalModel="ocrd-tool" externalId="parameters">
                <pc:Label value="/var/lib/sbb_binarization" type="model"/>
                <pc:Label value="page" type="operation_level"/>
            </pc:Labels>
        </pc:MetadataItem>
    </pc:Metadata>
    <pc:Page imageFilename="OCR-D-IMG/OCR-D-IMG_00000024.tif" imageWidth="2463" imageHeight="4060">
        <pc:AlternativeImage filename="OCR-D-IMG-BIN/OCR-D-IMG-BIN_00000024.IMG-BIN.png"/>
    </pc:Page>
</pc:PcGts>

I believe the AlternativeImage is missing comments="binarized".

Workspace: actevedef_718448162.first-page.MISSING-ALTERNATIVE-IMAGE-COMMENTS.zip

@cneud
Copy link
Member

cneud commented Oct 22, 2020

I believe the AlternativeImage is missing comments="binarized"

Correct, well spotted!

@cneud cneud closed this as completed in c4b63fc Oct 23, 2020
cneud added a commit that referenced this issue Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants