Skip to content

Unable to set langPath to a blob url #965

@TheWorldEndsWithUs

Description

@TheWorldEndsWithUs

Tesseract.js version (version number for npm/GitHub release, or specific commit for repo)

Describe the bug
When running tesseract js in the browser, I'd like to pass the language data via a blob URL because of the restrictions of the environment the code will be running on. However, when I pass the URL to langPath it fails to load the file.

To Reproduce
Steps to reproduce the behavior:

  1. Create a worker and set it's langPath property to a blob url.

Please attach any input image required to replicate this behavior.

Expected behavior
A clear and concise description of what you expected to happen.

Device Version:
Chrome Browser

Additional context
Add any other context about the problem here.

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