Skip to content

Commit

Permalink
Expands options for providing Azure OCR endpoint and key, updates REA…
Browse files Browse the repository at this point in the history
…DME.md and CHANGELOG.md accordingly
  • Loading branch information
Paethon committed Nov 9, 2023
1 parent a681945 commit f7132e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The version numbers are according to [Semantic Versioning](http://semver.org/).

## Next Release
### Added

- Extended the possibilities on how to provide endpoint and key for Azure OCR in addition to the `credentials.json`. Have a look at the README.md for details.
### Changed

### Fixed
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ The credentials for Google OCR will be obtained from one of the following:
- The environment variable `GOOGLE_APPLICATION_CREDENTIALS`
- A credentials file `~/.config/gcloud/credentials.json`
- A credentials file `/credentials.json`

### AzureOCR
Credentials etc. for Azure OCR will be obtained from one of the following (in this order):
- From the `endpoint` and `key` arguments when creating AzureOCR
- From the environment variables `AZURE_OCR_ENDPOINT` and `AZURE_OCR_KEY`
- From the credentials file `~/.config/azure/ocr_credentials.json` that contains the keys `endpoint` and `key`

0 comments on commit f7132e3

Please sign in to comment.