Skip to content
Snippets Groups Projects
Commit 551f1bec authored by Hyunseok_Sang's avatar Hyunseok_Sang
Browse files

객체 탐지용 외부 API를 담당하는 클래스 작성

parent 85db86b2
No related branches found
No related tags found
No related merge requests found
from google.cloud import vision
class ObjectDetectAPI:
def detect_objects(self, image_bytes):
client = vision.ImageAnnotatorClient()
image = vision.Image(content=image_bytes)
objects = client.object_localization(
image=image).localized_object_annotations
return objects
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment