from google.cloud import vision
from google.cloud.vision import types
from PIL import Image, ImageDraw

from gcpBucketHelper import upload_blob

from cv2 import *

client = vision.ImageAnnotatorClient()

# cam = VideoCapture(0)
# s, img = cam.read()

def find_face(frame):
    print("attempting to write file")
    cv2.imwrite(filename='saved_img.jpg', img=frame)
    print("finished writing file")

    print("attempting to store to GCP Bucket")
    upload_blob("testnwhacks", "/root/server/saved_img.jpg", "saved_face.jpg")
    print("finished storing face image to bucket")
140f97f5532f1ef9e7889193f76f2a9682c849d2
<mask token>

<mask token>


def find_face(frame):
    print('attempting to write file')
    cv2.imwrite(filename='saved_img.jpg', img=frame)
    print('finished writing file')
    print('attempting to store to GCP Bucket')
    upload_blob('testnwhacks', '/root/server/saved_img.jpg', 'saved_face.jpg')
    print('finished storing face image to bucket')

<mask token>
client = vision.ImageAnnotatorClient()


def find_face(frame):
    print('attempting to write file')
    cv2.imwrite(filename='saved_img.jpg', img=frame)
    print('finished writing file')
    print('attempting to store to GCP Bucket')
    upload_blob('testnwhacks', '/root/server/saved_img.jpg', 'saved_face.jpg')
    print('finished storing face image to bucket')

from google.cloud import vision
from google.cloud.vision import types
from PIL import Image, ImageDraw
from gcpBucketHelper import upload_blob
from cv2 import *
client = vision.ImageAnnotatorClient()


def find_face(frame):
    print('attempting to write file')
    cv2.imwrite(filename='saved_img.jpg', img=frame)
    print('finished writing file')
    print('attempting to store to GCP Bucket')
    upload_blob('testnwhacks', '/root/server/saved_img.jpg', 'saved_face.jpg')
    print('finished storing face image to bucket')

from google.cloud import vision
from google.cloud.vision import types
from PIL import Image, ImageDraw

from gcpBucketHelper import upload_blob

from cv2 import *

client = vision.ImageAnnotatorClient()

# cam = VideoCapture(0)
# s, img = cam.read()

def find_face(frame):
    print("attempting to write file")
    cv2.imwrite(filename='saved_img.jpg', img=frame)
    print("finished writing file")

    print("attempting to store to GCP Bucket")
    upload_blob("testnwhacks", "/root/server/saved_img.jpg", "saved_face.jpg")
    print("finished storing face image to bucket")