I followed the code mentioned in below link https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/python/CustomVision/ObjectDetection/CustomVisionQuickstart.py
Able to upload images, train model, publish model into customvision.api But when I tried executing the line predictor.detect_image, I am getting below error as CustomVisionErrorException: Operation returned an invalid status code 'Unauthorized'. Please help
As you haven't provided code to repro the issue, to resolve unauthorized error, based on the available solutions, you can try the following ways:
According to areddish and shawnmittal, make sure to provide correct prediction credentials and endpoint.
You can refer to Operation returned an invalid status code 'unauthorized' on azure cognitive