OpenPecha / OCR-Pipelines

1 stars 0 forks source link

use google vision explicit authentication #5

Closed 10zinten closed 1 year ago

10zinten commented 1 year ago

Goal: To have explicit google vision authentication for every pipeline run

credentials = google.oauth2.credential.Credential()
self.vision_client = vision.ImageAnnotatorClient(credentials=credentials)
- expose credential to `__init__`
def __init__(self, images_base_dir: Path, config: ImportConfig, ocr_base_dir: Path, credential: Dict):
     ...