Bit의 개발다이어리

1. APIs Explorer: Qwik Start

  • Create a Cloud Storage bucket.
  • Upload an image to Cloud Storage and make it public.
  • Make a request to the Vision API with that image.

API키 설정하고 cloud storage에서 bucket생성. 이때, how to controll access to objects에서 enforce public access prevention on this bucket을 uncheck하고 fine-grained를 체크한다.

Object names must be unique only within a given bucket. -> true

When an object is shared publicly, any user with knowledge of the object URI can access the object for as long as the object is public. -> true

2. Extract, Analyze, and Translate Text from Images with the Cloud ML APIs

위처럼 bucket생성.

사진을 업로드 하고 edit access (public allUsers read)

ocr-request.json을 생성하고 파일 경로와 요청상세정보를 json에 입력한다.

 

curl명령어를 통해 텍스트 추출할 수 있다.

추출 후에 번역도 가능하다.

Natural Language API를 사용하여 이미지의 텍스트 분석도 가능하다.

 

3. Detect Labels, Faces, and Landmarks in Images with the Cloud Vision API

  • Create a Cloud Vision API request and calling the API with curl
  • Use the label, face, and landmark detection methods of the API

이미지 감지를 위해 Cloud Vision API에 이미지를 보내는 방법에는 두 가지가 있습니다. API에 base64로 인코딩된 이미지 문자열을 보내는 방법이나 Cloud Storage에 저장된 파일의 URL을 전달하는 방법

 

사진의 주소가 포함된 request json에 관련된 curl 명령어를 실행시키면 레이블을 결과로 표시한다.

 

type을 WEB_DETECTION으로 변경하면 인터넷에서 추가 정보를 검색할 수도 있습니다. (구글 이미지 검색과 비슷)

 

face detection도 가능

일반적인 landmark 식별

로고 감지

안전한 검색 감지

텍스트 감지

4. Analyze Images with the Cloud Vision API: Challenge Lab

profile

Bit의 개발다이어리

@bit비트

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!