Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ぱっと見犬猫っぽいAWSアーキテクチャ図を Amazon Rekognitionで判定しよう

Kazuki Maeda
November 08, 2022

ぱっと見犬猫っぽいAWSアーキテクチャ図を Amazon Rekognitionで判定しよう

AWS Dev Day 2022 Day0

Kazuki Maeda

November 08, 2022
Tweet

More Decks by Kazuki Maeda

Other Decks in Programming

Transcript

  1. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    ぱっと見犬猫っぽいAWSアーキテクチャ図を
    Amazon Rekognitionで判定しよう
    atama plus株式会社 / AWS Startup Community Core Member
    前田 和樹

    View Slide

  2. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    Kazuki Maeda  @kzk_maeda
    SRE @atama plus
    AWS Community Builders / AWS Startup Community Core Member
    ■■■■■■■■■■■■
    日系電機メーカー法務
    → Recruitでインフラエンジニアとして、オンプレ、社内
    ITシステムなど経験したあとクラウド、
    PMなど
    → スタートアップに転身してEM
    → 現職
    ■■■■■■■■■■■■
    犬派(実家に15歳のトイプードルがいます)
    自己紹介

    View Slide

  3. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    AWSアーキテクチャ図を描いて
    ちょっとだけ恣意的に配置を調整して
    Amazon Rekognitionに犬猫判定させてみよう!
    今日の発表概要

    View Slide

  4. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    AWS触ってるエンジニアが親の顔よりよく見るやつ
    AWSアーキテクチャ図とは?

    View Slide

  5. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    恣意的に操作すれば何かに見えてくるよね
    ※さっきとほぼ
    同じ構成です

    View Slide

  6. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    これをAI(Amazon Rekognition)
    に判定させよう!

    View Slide

  7. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    Amazon Rekognitionとは?
    ● 画像や動画の分析を行うことができるマネージドAIサービス
    ● 顔検出やラベリングなどを高精度に実施できる

    View Slide

  8. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    Amazon Rekognition利用に際して
    ● Amazon Rekognitionで判定する際に、最新のAWS公式アイコンでは
    色情報が特徴量と捉えられてしまうため、白黒の公式アイコンを
    以降では利用させていただきます

    View Slide

  9. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    アーキテクチャ1:猫

    View Slide

  10. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    アーキテクチャ1:データ処理パイプライン
    下記は今日は本題じゃないのでチラ見しておいてください
    • データソースとしてAmazon DynamoDBやAmazon RDSを使用
    • Amazon Kinesis Data FirehoseやAWS Lambdaを用いたデータ転送
    • DataLakeにはAmazon S3を使用
    • AWS Glueを用いたCrawling・ETL処理・DataCatalog生成
    • Amazon Athena / Amazon QuickSightを用いた分析

    View Slide

  11. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    アーキテクチャ1:データ処理パイプライン
    アーキテクチャ図はこちら

    View Slide

  12. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    判定結果がこちら

    View Slide

  13. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    アーキテクチャ1:データ処理パイプライン
    ほぼ図形だと
    認識されていますね

    View Slide

  14. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    アーキテクチャ2:犬

    View Slide

  15. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    アーキテクチャ2:巨大サーバーレスアプリ
    下記は今日は本題じゃないのでチラ見しておいてください
    • とにかく大量のAWS Lambdaを起動してつなげる
    • while true
    ▪ AWS LambdaからAWS LambdaをInvoke

    View Slide

  16. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    アーキテクチャ2:巨大サーバーレスアプリ
    アーキテクチャ図はこちら

    View Slide

  17. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    アーキテクチャ2:巨大サーバーレスアプリ
    アーキテクチャ図はこちら
    無数のLambdaで構
    成されています

    View Slide

  18. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    判定結果がこちら

    View Slide

  19. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    アーキテクチャ2:巨大サーバーレスアプリ

    View Slide

  20. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    アーキテクチャ2:巨大サーバーレスアプリ
    ほぼ犬!

    View Slide

  21. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View Slide

  22. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    まとめ
    ● アーキテクチャ図は楽しいのでいっぱい描こう
    ● Amazon Rekognitionいいサービスなので使ってみよう
    ● 今日の結果は真に受けないようにしよう

    View Slide

  23. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    Thank you!
    © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    Kazuki Maeda
    @kzk_maeda

    View Slide