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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.