[Cloud Vision API] APIs Explorer: Qwik Start

yejinยท2026๋…„ 4์›” 13์ผ

Google Skills

๋ชฉ๋ก ๋ณด๊ธฐ
1/46
Google Skills์—์„œ ๊ณต๋ถ€ํ•œ ๋‚ด์šฉ๋“ค์„ ์ •๋ฆฌํ•ด๋ณด์ž๐Ÿค“

ํ•™์Šต๋ฐฉ๋ฒ•

Google Skills์—์„œ ํ•™์Šตํ•˜๊ณ  ์‹ถ์€ ๋‚ด์šฉ์„ ์„ ํƒํ•˜์—ฌ ํ•ด๋‹น ๊ณผ์ •์„ ๋“ค์œผ๋ฉด ๋œ๋‹ค!

๐Ÿช„ ์ฐธ๊ณ 

Catalog ๋ฉ”๋‰ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ง์ ‘ ๊ณต๋ถ€ํ•˜๋ ค๋Š” ํ•ญ๋ชฉ์„ ๊ฒ€์ƒ‰ํ•˜๊ฑฐ๋‚˜,
Paths ๋ฉ”๋‰ด๋ฅผ ํ†ตํ•ด ํ•™์Šต ๊ณผ์ •์„ ํ•˜๋‚˜ ์„ ํƒํ•˜์—ฌ ๊ณต๋ถ€ํ•˜๋ฉด ๋œ๋‹ค.
์ผ๋ถ€ ๊ณผ์ •์—์„œ๋Š” Credit์ด ํ•„์š”ํ•˜๋ฉฐ, ๋‚˜๋Š” Google Cloud Study Jam์„ ํ†ตํ•ด ๋ฐ›์€ ์•ฝ 200 Credit์„ ํ™œ์šฉํ•˜์—ฌ ๊ณต๋ถ€๋ฅผ ์ง„ํ–‰ํ–ˆ๋‹ค.


Course

Analyze Images with the Cloud Vision API

๊ตฌ์„ฑ

๋ชฉ๋ก

  • APIs Explorer: Qwik Start โฌ…๏ธ ์˜ค๋Š˜ ํ•™์Šตํ•  Lab!
  • Extract, Analyze, and Translate Text from Images with the Cloud ML APIs
  • Detect Labels, Faces, and Landmarks in images with the Cloud Vision API
  • Analyze Images with the Cloud Vision API: Challenge Lab
  • Claim credential (๋ชจ๋“  ๊ฐ•์˜๋ฅผ ์ˆ˜๋ฃŒํ•ด์•ผ Skill badge ์ทจ๋“ ๊ฐ€๋Šฅ!โœจ)

๐ŸŒ APIs Explorer: Qwik Start

๊ฐœ์š”

Google Vision API๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ, ๋‚˜์˜ Cloud Storage์— ์žˆ๋Š” ์ด๋ฏธ์ง€๋ฅผ ๋ถ„์„ํ•˜๋Š” ๊ณผ์ •

์ฃผ์˜์‚ฌํ•ญ

๋ฐ˜๋“œ์‹œ ์‹œ์ž‘ํ•˜๊ธฐ ์ „์—, Start Lab ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ ํ•™์Šต ์‹œ ์‚ฌ์šฉํ•œ ๊ตฌ๊ธ€ ๊ณ„์ •์„ ๋ฐœ๊ธ‰๋ฐ›๊ณ  ํ•ด๋‹น ๊ณ„์ •์œผ๋กœ ๋กœ๊ทธ์ธํ•˜์—ฌ ์‹ค์Šต์„ ์ง„ํ–‰ํ•ด์•ผ ํ•œ๋‹ค.
Start Lab ๋ฒ„ํŠผ์„ ํด๋ฆญ ์‹œ ๊ฐ Lab๋งˆ๋‹ค ์ฃผ์–ด์ง„ ์‹œ๊ฐ„ ์•ˆ์— ์‹ค์Šต์„ ๋งˆ์ณ์•ผ ํ•œ๋‹ค. ๋ฏธ๋ฆฌ ๋‚ด์šฉ์„ ์ฝ์–ด๋ณธ ํ›„์— ์–ด๋А์ •๋„ ์ •๋ฆฌ๊ฐ€ ๋์œผ๋ฉด ๋ฒ„ํŠผ ๋ˆ„๋ฅด๋Š” ๊ฒƒ์„ ์ถ”์ฒœํ•œ๋‹ค.

์‹ค์Šต ๊ณผ์ •

(1) Cloud Storage > Buckets ์ƒ์„ฑํ•˜๊ธฐ

(2) demo ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ ํ•˜๊ธฐ

โฌ†๏ธ Bucket(qwiklabs-gcp-02-...) ์ƒ์„ฑ ํ›„ demo-image.jpg๋ฅผ ์—…๋กœ๋“œ ์™„๋ฃŒ ์‹œ

(3) ์ด๋ฏธ์ง€ ๊ถŒํ•œ ์„ค์ •

API๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ, ๊ตฌ๊ธ€ ํด๋ผ์šฐ๋“œ ํ”Œ๋žซํผ(GCP)์ด๋‚˜ ๊ตฌ๊ธ€ ๋“œ๋ผ์ด๋ธŒ์™€ ์œ ์‚ฌํ•œ ํ™˜๊ฒฝ์—์„œ ํŠน์ • ํŒŒ์ผ(์ด๋ฏธ์ง€)์„ '์ „ ์„ธ๊ณ„ ๋ˆ„๊ตฌ๋ผ๋„ ๋ณผ ์ˆ˜ ์žˆ๊ฒŒ ์™„์ „ํžˆ ๊ณต๊ฐœ'ํ•˜๋Š” ์„ค์ •

  • Select Public for the Entity.
  • Enter allUsers for the Name.
  • Select Reader for the Access.

(4) Cloud Vision API ํ…Œ์ŠคํŠธ

(4-1) Cloud Vision API Console ์—ด๊ธฐ

โžก๏ธ Cloud Vision - Try this API์„ ํ†ตํ•ด Cloud Vision API ํ…Œ์ŠคํŠธํ•  ์ˆ˜ ์žˆ๋Š” ์ฝ˜์†”์ฐฝ ์—ด๊ธฐ

(4-2) request ํŒŒ๋ผ๋ฏธํ„ฐ ์ž…๋ ฅ

โžก๏ธ Label์ด๋ž€? ์ผ๋ฐ˜ ๊ฐ์ฒด, ์œ„์น˜, ํ™œ๋™, ๋™๋ฌผ ์ข…, ์ œํ’ˆ ๋“ฑ์„ ์‹๋ณ„ํ•˜์—ฌ ๊ด‘๋ฒ”์œ„ํ•œ ์นดํ…Œ๊ณ ๋ฆฌ ๊ทธ๋ฃน์—์„œ ์ด๋ฏธ์ง€ ๋‚ด ํ•ญ๋ชฉ์— ๋Œ€ํ•œ ์ •๋ณด๋ฅผ ์ธ์‹ํ•˜๊ณ  ์ถ”์ถœํ•˜๋Š” ๊ธฐ๋Šฅ

  • type: LABEL_DETECTION
  • image: imageUri

(4-3) ์‘๋‹ต๊ฐ’ ํ™•์ธ

(5) ์‘๋‹ต๊ฐ’ ๋ถ„์„

{
  "responses": [
    {
      "labelAnnotations": [
        {
          "mid": "/m/0bt9lr",
          "description": "Dog",
          "score": 0.9955614,
          "topicality": 0.5910274
        },
        {
          "mid": "/m/01lrl",
          "description": "Carnivores",
          "score": 0.95821124,
          "topicality": 0.006677204
        },
        {
          "mid": "/m/05mqq3",
          "description": "Snout",
          "score": 0.8904693,
          "topicality": 0.0051104086
        },
        {
          "mid": "/m/0h8ks17",
          "description": "Pet Supply",
          "score": 0.84506834,
          "topicality": 0.0013254747
        },
        {
          "mid": "/m/09141t",
          "description": "Collar",
          "score": 0.83984137,
          "topicality": 0.015019552
        },
        {
          "mid": "/m/07_gml",
          "description": "Working animal",
          "score": 0.8320223,
          "topicality": 0.000209493
        },
        {
          "mid": "/m/01v327",
          "description": "Lawn",
          "score": 0.829867,
          "topicality": 0.006828101
        },
        {
          "mid": "/m/01z5f",
          "description": "Canidae",
          "score": 0.78751886,
          "topicality": 0.010690784
        },
        {
          "mid": "/m/05q778",
          "description": "Dog collar",
          "score": 0.78325343,
          "topicality": 0.008057055
        },
        {
          "mid": "/m/0h8nm96",
          "description": "Dog Supply",
          "score": 0.73061556,
          "topicality": 0.0014571295
        }
      ]
    }
  ]
}

ํ‚ค ๊ฐ’ ์ •๋ฆฌ

  • mid (Machine ID): Google์˜ ์ง€์‹ ๊ทธ๋ž˜ํ”„์—์„œ ํ•ด๋‹น ์‚ฌ๋ฌผ์„ ์‹๋ณ„ํ•˜๊ธฐ ์œ„ํ•ด ๋ถ€์—ฌํ•œ ๊ณ ์œ  ์ฝ”๋“œ
  • description: AI๊ฐ€ ๊ฐ์ง€ํ•œ ์‚ฌ๋ฌผ์ด๋‚˜ ๊ฐœ๋…์˜ ์ด๋ฆ„
  • score (์‹ ๋ขฐ๋„): AI๊ฐ€ ํ•ด๋‹น ์‚ฌ๋ฌผ์ด๋ผ๊ณ  ํ™•์‹ ํ•˜๋Š” ์ •๋„๋กœ, 1.0์— ๊ฐ€๊นŒ์šธ์ˆ˜๋ก ํ™•์‹คํ•˜๋‹ค๋Š” ๋œป
  • topicality (์ฃผ์ œ์„ฑ): ํ•ด๋‹น ๊ฐœ์ฒด๊ฐ€ ์ด๋ฏธ์ง€ ์ „์ฒด์—์„œ ์–ผ๋งˆ๋‚˜ ์ค‘์š”ํ•œ ๋น„์ค‘์ด๋‚˜ ์ฃผ์ œ๋ฅผ ์ฐจ์ง€ํ•˜๊ณ  ์žˆ๋Š”์ง€๋ฅผ ๋‚˜ํƒ€๋ƒ„

๋ถ„์„ ๋‚ด์šฉ

  • ์ฃผ์ธ๊ณต: ๊ฐœ(Dog) (์‹ ๋ขฐ๋„๊ฐ€ 99% ์ด์ƒ)
  • ์„ธ๋ถ€ ํŠน์ง•: ๊ฐœ์˜ ์ฝ”(Snout)๊ฐ€ ๋šœ๋ ทํ•˜๊ฒŒ ๋ณด์ด๋ฉฐ, ํ’ˆ์ข…์€ ์‹์œก๋ชฉ(Carnivores), ๊ฐœ๊ณผ(Canidae)์— ์†ํ•˜๋Š” ๋™๋ฌผ
  • ์ฃผ๋ณ€ ์š”์†Œ: ๊ฐœ๊ฐ€ ๊ฐœ ๋ชฉ์ค„(Collar, Dog collar)์„ ์ฐฉ์šฉํ•˜๊ณ  ์žˆ์œผ๋ฉฐ, ์ฃผ๋ณ€์— ์ž”๋””๋ฐญ(Lawn)์ด ์žˆ์„ ๊ฐ€๋Šฅ์„ฑ์ด ํผ.
  • ๋ถ„๋ฅ˜: ๋ฐ˜๋ ค๋™๋ฌผ ์šฉํ’ˆ(Pet Supply)์ด๋‚˜ ์‚ฌ์—ญ๊ฒฌ(Working animal)๊ณผ ๊ด€๋ จ๋œ ๋งฅ๋ฝ์˜ ์ด๋ฏธ์ง€์ผ ์ˆ˜ ์žˆ์Œ

โžก๏ธ ์ตœ์ข…์ ์œผ๋กœ ์ด๋ฏธ์ง€ ๋ถ„์„ ๊ฒฐ๊ณผ: ์ž”๋””๋ฐญ ์œ„์— ๋ชฉ์ค„์„ ์ฐฌ ๊ฐœ๊ฐ€ ์žˆ๋Š” ์‚ฌ์ง„
โžก๏ธ ์‹ค์ œ demo-image:

profile
์ƒˆ์‹น ๊ฐœ๋ฐœ์ž

0๊ฐœ์˜ ๋Œ“๊ธ€