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

ms-cognitive-services no longer works #678

Open
lbehal opened this issue Jun 13, 2024 · 0 comments
Open

ms-cognitive-services no longer works #678

lbehal opened this issue Jun 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lbehal
Copy link

lbehal commented Jun 13, 2024

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

@lbehal lbehal added the bug Something isn't working label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant