Open sushantsapra opened 9 months ago
Hey there!
Thanks for reaching out. Looks like you've hit a couple of snags with the Google Cloud Vision API. Let's untangle this, shall we?
Missing EXIF Data:
Default Credentials Not Found:
GOOGLE_APPLICATION_CREDENTIALS
environment variable to point to your key file.By the way, we're planning to add a tutorial on setting up the Google Cloud Vision API soon. Keep an eye out for that – it should help you get things running smoothly.
Cheers!
hello sir thanks a lot for uploading your work
I am getting the following error with respect to integration and credentials of google cloud vision client
{'Error': 'No EXIF data found in the image.'}
0: 480x640 1 license, 72.8ms Speed: 5.3ms preprocess, 72.8ms inference, 3.0ms postprocess per image at shape (1, 3, 480, 640) Traceback (most recent call last): File "/home/sushant/YOLOv8-License-Plate-Detection/inference.py", line 334, in
recognized_img = detector.recognize_license_plate(file_path)
File "/home/sushant/YOLOv8-License-Plate-Detection/inference.py", line 54, in recognize_license_plate
license_plate = self.extract_license_plate_text(roi)
File "/home/sushant/YOLOv8-License-Plate-Detection/inference.py", line 119, in extract_license_plate_text
client = vision.ImageAnnotatorClient()
File "/home/sushant/anaconda321/envs/banodet/lib/python3.10/site-packages/google/cloud/vision_v1/services/image_annotator/client.py", line 462, in init
self._transport = Transport(
File "/home/sushant/anaconda321/envs/banodet/lib/python3.10/site-packages/google/cloud/vision_v1/services/image_annotator/transports/grpc.py", line 155, in init
super().init(
File "/home/sushant/anaconda321/envs/banodet/lib/python3.10/site-packages/google/cloud/vision_v1/services/imageannotator/transports/base.py", line 103, in init
credentials, = google.auth.default(
File "/home/sushant/anaconda321/envs/banodet/lib/python3.10/site-packages/google/auth/_default.py", line 691, in default
raise exceptions.DefaultCredentialsError(_CLOUD_SDK_MISSING_CREDENTIALS)
google.auth.exceptions.DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.