Azure-Samples / Azure-Samples/cognitive-services-quickstart-code

How to turn off text orientation detection

Open
#287 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
389
Forks
556
Avg merge
3d 12h
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the Python read_in_stream entry point and how detectionOrientation is added to query parameters. Check the Azure Read API request options and any related examples or tests; done means identifying a supported way to disable orientation detection or documenting that the requested behavior is unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
api, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.