Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Version 0.0.71 breaks ocr_only pdf recognition on some documents #485

Copy link
Copy link

Description

@fatadel
Issue body actions

Describe the bug
Starting with version 0.0.71 ocr_only pdf processing of some documents yields an empty result. Exactly the same code works fine with version 0.0.70.

To Reproduce

  1. docker run --platform linux/x86_64 -p 8000:8000 -d --rm --name unstructured-api downloads.unstructured.io/unstructured-io/unstructured-api:0.0.71
curl -X 'POST' \
  'http://127.0.0.1:8000/general/v0/general' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'files=@4.pdf' \
  -F 'strategy=ocr_only' \
  -F 'languages=deu'
  1. Now pull version 0.0.70 and try the same. In the first case the result is empty, in the second the result is correct and non-empty.
  • Filetype: PDF
  • Any additional API parameters: -

Environment:

  • self-hosted API
  • any client yields the same result

Additional context
Attaching the problematic PDF.
4.pdf

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.