Skip to content

ms-cognitive-services no longer works #678

Open
@lbehal

Description

I think that "ms-cognitive-services" no longer works. Because the service is changed.
"Cognitive Services and AppliedAI Services are now Azure AI services."
You can take a look here: https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/quickstarts/get-started-sdks-rest-api?view=doc-intel-4.0.0&viewFallbackFrom=form-recog-3.0.0&preserve-view=true&pivots=programming-language-javascript
where you can get a code sample.

"ocr": "ms-cognitive-services",
"credentials": {
"OCP_APIM_SUBSCRIPTION_KEY": "...",
"OCP_APIM_ENDPOINT": "https://germanywestcentral.api.cognitive.microsoft.com/"
},

[2024-06-13T08:28:43] INFO (parsr-api/7 on 44824d69fde7): Running OCR in image 1 of 24
[2024-06-13T08:28:43] INFO (parsr-api/7 on 44824d69fde7): executing command: python3 /opt/app-root/src/dist/assets/ImageCorrection.py /tmp/7ddabb535fd6bd613e14cb5b3ef2da/img-0021.png
[2024-06-13T08:28:45] INFO (parsr-api/7 on 44824d69fde7): Image optimisation succeed
[2024-06-13T08:28:45] INFO (parsr-api/7 on 44824d69fde7): Error OCR scanning file Error: Error: Request failed with status code 401

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions