This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Threading; | |
using System.Collections; | |
namespace workerthread | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = 'G:\My Drive\credential\your_credentials.json' | |
work_dir = 'C:/temp/2023Mar/Output/web' | |
from google.cloud import vision | |
def anotate_image(file_name): | |
client = vision.ImageAnnotatorClient() | |
with io.open(file_name, 'rb') as image_file: | |
content = image_file.read() |