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

How to turn off text orientation detection #287

Open
freddycct opened this issue Jan 6, 2022 · 0 comments
Open

How to turn off text orientation detection #287

freddycct opened this issue Jan 6, 2022 · 0 comments

Comments

@freddycct
Copy link

freddycct commented Jan 6, 2022

I do not want MS Read API to return a "flipped" box.
e.g.

"words": [
                    {
                        "bounding_box": [
                            1113.0,
                            85.0,
                            1072.0,
                            86.0,
                            1072.0,
                            66.0,
                            1112.0,
                            66.0
                        ],
                        "text": "NOS)",
                        "confidence": 0.147
                    }
                ]

I'm using this function

def read_in_stream(
            self, image, language=None, pages=None, model_version="latest", reading_order="basic", custom_headers=None, raw=False, callback=None, **operation_config):

putting detectionOrientation : False in query_parameters didn't work.

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

1 participant