Coder Social home page Coder Social logo

Comments (8)

VergaraF avatar VergaraF commented on May 17, 2024

I am on the same boat. It throws an exception on every feature. When I tried OCR, it says my key is not valid but I am literally copying and pasting from the Microsoft website... the key is indeed valid.

from cognitive-vision-windows.

VergaraF avatar VergaraF commented on May 17, 2024

The error is somewhere on the api key. Despite being given an official key from Microsoft, the request doesn't accept it. I get a 401 error.

from cognitive-vision-windows.

cthrash avatar cthrash commented on May 17, 2024

Are either of you using the 'Try Free' API key? If so, you must use the VisionServiceClient.ctor override, and provide the host address (2nd arg) of https://westcentralus.api.cognitive.microsoft.com/vision/v1.0.

from cognitive-vision-windows.

VergaraF avatar VergaraF commented on May 17, 2024

https://stackoverflow.com/questions/44094186/microsoft-cognitive-services-computer-vision-invalid-subscription-key here a solution

from cognitive-vision-windows.

briannoyes avatar briannoyes commented on May 17, 2024

Aligning the region my keys were for with the region being called fixed the problem for me. Since the region being called is buried in the code, I'd suggest making that a prompt along with the key, or somehow make it clear that the code has a specific region buried in the code that they will need to change if their keys are from a different region.

from cognitive-vision-windows.

chsienki avatar chsienki commented on May 17, 2024

Thanks @briannoyes This was a recent change, and we haven't yet updated the sample apps to support the region specificity, its on our backlog and we'll update the apps to prompt for a region in the future.

from cognitive-vision-windows.

cthrash avatar cthrash commented on May 17, 2024

I haven't had the time to try it, but does this solve the issue? Worth a try

from cognitive-vision-windows.

briannoyes avatar briannoyes commented on May 17, 2024

yep, looks like that will help

from cognitive-vision-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.