{"id":8890,"date":"2021-04-12T07:00:48","date_gmt":"2021-04-11T22:00:48","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=8890"},"modified":"2021-03-31T19:31:53","modified_gmt":"2021-03-31T10:31:53","slug":"laravel-amazon-rekognition%e3%81%a7%e4%b8%8d%e9%81%a9%e5%88%87%e3%81%aa%e7%94%bb%e5%83%8f%e3%82%92%e6%a4%9c%e5%87%ba%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=8890","title":{"rendered":"Laravel + Amazon Rekognition\u3067\u4e0d\u9069\u5207\u306a\u753b\u50cf\u3092\u691c\u51fa\u3059\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u306b\u5f15\u304d\u7d9a\u304d<code>AWS<\/code>\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u3044\u308d\u3044\u308d\u3068\u8a66\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u305d\u306e\u6614\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3055\u3093\u3078\u300c<strong>\u5b8c\u5168\u306b\u306f\u96e3\u3057\u3044\u3067\u3059\u306d&#8230;\ud83d\udca6<\/strong>\u300d\u3068\u56de\u7b54\u3057\u305f\u3053\u3068\u304c\u3042\u308b\u5185\u5bb9\u3092\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u306f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">\u30cc\u30fc\u30c9\u3084\u66b4\u529b\u306a\u3069\u306e\u4e0d\u9069\u5207\u306a\u753b\u50cf\u306e\u81ea\u52d5\u691c\u51fa<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u6614\u3001AI\u3084\u6a5f\u68b0\u5b66\u7fd2\u304c\u305d\u308c\u307b\u3069\u767a\u5c55\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4e0d\u9069\u5207\u306a\u753b\u50cf\u3092\u691c\u51fa\u3059\u308b\u306e\u306f\u81f3\u96e3\u306e\u696d\u3067\u3057\u305f\u304c\u3001\u73fe\u5728\u306f<code>AWS<\/code>\u3092\u4f7f\u3046\u3053\u3068\u3067\u9ad8\u3044\u7cbe\u5ea6\u3067\u691c\u51fa\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f<code>Laravel<\/code>\u3092\u4f7f\u3063\u3066\u300c<strong>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u308b\u524d\u306b\u30a2\u30c0\u30eb\u30c8\u753b\u50cf\u3092\u62d2\u5426\u3059\u308b<\/strong>\u300d\u3068\u3044\u3046\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u3001\u30b5\u30a4\u30c8\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u8cea\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u304a\u5f79\u306b\u7acb\u3066\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8777 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/no_15.png\" alt=\"\" width=\"338\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/no_15.png 338w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/no_15-300x284.png 300w\" sizes=\"auto, (max-width: 338px) 100vw, 338px\" \/>\u300c<code>Amazon Rekognition<\/code>\u3063\u3066\u3001<br \/>\n\u308f\u3056\u3068 k \u3092\u3064\u304b\u3063\u3066\u308b\u3093\u3067\u3059\u306d\uff01\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 8.x\u3001Amazon Rekognition<\/p>\n<h1>AWS\u306e\u6e96\u5099\u3092\u3059\u308b<\/h1>\n<h2>\u30a2\u30af\u30bb\u30b9\u60c5\u5831\uff08IAM\uff09\u3092\u53d6\u5f97\u3059\u308b<\/h2>\n<p>\u3067\u306f\u3001\u307e\u305a<code>Laravel<\/code>\u304b\u3089<code>AWS<\/code>\u3078\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u30a2\u30af\u30bb\u30b9\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u753b\u9762\u4e0a\u90e8\u306b\u3042\u308b\u691c\u7d22\u30dc\u30c3\u30af\u30b9\u306b\u300c<strong>iam<\/strong>\u300d\u3068\u5165\u529b\u3059\u308b\u3068\u300c<strong>IAM<\/strong>\u300d\u30b5\u30fc\u30d3\u30b9\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3053\u308c\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8894\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_1.png\" alt=\"\" width=\"640\" height=\"231\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_1.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_1-300x108.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u6b21\u306b\u30da\u30fc\u30b8\u5de6\u5074\u30e1\u30cb\u30e5\u30fc\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u300c<strong>\u30e6\u30fc\u30b6\u30fc<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8895\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_2.png\" alt=\"\" width=\"238\" height=\"307\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_2.png 238w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_2-233x300.png 233w\" sizes=\"auto, (max-width: 238px) 100vw, 238px\" \/><\/p>\n<p>\u30da\u30fc\u30b8\u79fb\u52d5\u5f8c\u3001\u300c<strong>\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8905\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_3.png\" alt=\"\" width=\"293\" height=\"56\" \/><\/p>\n<p>\u8a73\u7d30\u3092\u5165\u529b\u3059\u308b\u753b\u9762\u306b\u306a\u308b\u306e\u3067\u3001\u307e\u305a\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u304a\u597d\u307f\u3067\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8904\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_4.png\" alt=\"\" width=\"640\" height=\"147\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_4.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_4-300x69.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u307e\u305f\u3001\u4eca\u56de\u306f<code>Laravel<\/code>\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3067\u3059\u306e\u3067\u3001\u300c<strong>\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3088\u308b\u30a2\u30af\u30bb\u30b9<\/strong>\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8903\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_5.png\" alt=\"\" width=\"640\" height=\"172\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_5.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_5-300x81.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8902\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_6.png\" alt=\"\" width=\"221\" height=\"39\" \/><\/p>\n<p>\u3059\u308b\u3068\u30b0\u30eb\u30fc\u30d7\u4f5c\u6210\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u300c<strong>\u30b0\u30eb\u30fc\u30d7\u306e\u4f5c\u6210<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8901\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_7.png\" alt=\"\" width=\"294\" height=\"99\" \/><\/p>\n<p>\u4eca\u56de\u306f<code>Amazon Rekognition<\/code>\u3092\u4f7f\u3046\u306e\u3067\u3001\u30b0\u30eb\u30fc\u30d7\u540d\u306e\u691c\u7d22\u30dc\u30c3\u30af\u30b9\u306b\u300c<strong>rekognition<\/strong>\u300d\u3068\u5165\u529b\u3057\u3066\u691c\u7d22\u3002<\/p>\n<p>\u3059\u308b\u3068\u3001\u300c<strong>Access to all Amazon Rekognition<\/strong>\u300d\u3068\u3044\u3046\u9805\u76ee\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3053\u308c\u306b\u30c1\u30a7\u30c3\u30af\u3092\u3044\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8900\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_8.png\" alt=\"\" width=\"640\" height=\"177\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_8.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_8-300x83.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8899\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_9.png\" alt=\"\" width=\"340\" height=\"42\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_9.png 340w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_9-300x37.png 300w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><\/p>\n<p>\u6700\u5f8c\u306b\u300c<strong>\u30e6\u30fc\u30b6\u30fc\u306e\u4f5c\u6210<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3089\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8897\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_11.png\" alt=\"\" width=\"317\" height=\"41\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_11.png 317w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_11-300x39.png 300w\" sizes=\"auto, (max-width: 317px) 100vw, 317px\" \/><\/p>\n<p>\u8868\u793a\u304c\u5207\u308a\u66ff\u308f\u308a\u3001\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u3053\u3053\u306e\u300c<strong>\u30a2\u30af\u30bb\u30b9\u30ad\u30fc<\/strong>\u300d\u3068\u300c<strong>\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u30ad\u30fc<\/strong>\u300d\u3092\u53d6\u5f97\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8896\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_12.png\" alt=\"\" width=\"640\" height=\"96\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_12.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_12-300x45.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\uff12\u3064\u306e\u30ad\u30fc\u3092\u53d6\u5f97\u3057\u305f\u3089\u3001<code>.env<\/code>\u306b\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><strong>.env<\/strong><\/p>\n<pre><strong>AWS_ACCESS_KEY_ID=\"\uff08\u3053\u3053\u306b\u30a2\u30af\u30bb\u30b9\u30ad\u30fc ID\uff09\"<\/strong>\r\n<strong>AWS_SECRET_ACCESS_KEY=\"\uff08\u3053\u3053\u306b\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\uff09\"<\/strong>\r\n<strong>AWS_DEFAULT_REGION=ap-northeast-1<\/strong><\/pre>\n<h1>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u307e\u305a<code>AWS<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>composer require aws\/aws-sdk-php<\/strong><\/pre>\n<p>\u307e\u305f\u3001\u4eca\u56de\u306f\u753b\u50cf\u306e\u64cd\u4f5c\u3082\u3059\u308b\u306e\u3067<code>intervention<\/code>\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>composer require intervention\/image<\/strong><\/pre>\n<h1>\u72ec\u81ea\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5148\u306b\u4eca\u56de\u30e1\u30a4\u30f3\u306b\u306a\u308b\u300c<strong>\u4e0d\u9069\u5207\u306a\u753b\u50cf\u3092\u62d2\u5426\u3059\u308b<\/strong>\u300d\u72ec\u81ea\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u304f\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:rule SafeImage<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Rules\/SafeImage.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Rules;\r\n\r\nuse Aws\\Rekognition\\RekognitionClient;\r\nuse Illuminate\\Contracts\\Validation\\Rule;\r\n\r\nclass SafeImage implements Rule\r\n{\r\n    <strong>private $client, $unsafe_labels, $confidence;<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Create a new rule instance.<\/strong>\r\n<strong>     *<\/strong>\r\n<strong>     * @return void<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function __construct($unsafe_labels = ['Explicit Nudity'], $confidence = 50)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $this-&gt;client = new RekognitionClient([<\/strong>\r\n<strong>            'version' =&gt; 'latest',<\/strong>\r\n<strong>            'region' =&gt; 'ap-northeast-1'<\/strong>\r\n<strong>        ]);<\/strong>\r\n<strong>        $this-&gt;unsafe_labels = $unsafe_labels; \/\/ \u3053\u306e\u6570\u5024\u4ee5\u4e0a\u306a\u3089\u4e0d\u9069\u5207\u3068\u3057\u3066\u51e6\u7406<\/strong>\r\n<strong>        $this-&gt;confidence = $confidence;<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Determine if the validation rule passes.<\/strong>\r\n<strong>     *<\/strong>\r\n<strong>     * @param  string  $attribute<\/strong>\r\n<strong>     * @param  mixed  $value<\/strong>\r\n<strong>     * @return bool<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function passes($attribute, $file)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $image_path = $file-&gt;getPathName();<\/strong>\r\n\r\n<strong>        \/\/ \u753b\u50cf\u30b5\u30a4\u30ba\u304c\u5927\u304d\u3044\u3068\u9001\u4fe1\u30c7\u30fc\u30bf\u304c\u5927\u304d\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u6700\u5927\u6a2a\u5e45 500px \u3078\u30ea\u30b5\u30a4\u30ba<\/strong>\r\n<strong>        $image = \\Image::make($image_path);<\/strong>\r\n<strong>        $image-&gt;resize(500, null, function ($constraint) {<\/strong>\r\n\r\n<strong>            $constraint-&gt;aspectRatio();<\/strong>\r\n<strong>            $constraint-&gt;upsize();<\/strong>\r\n\r\n<strong>        });<\/strong>\r\n<strong>        $bytes = $image-&gt;encode('png');<\/strong>\r\n\r\n<strong>        $result = $this-&gt;client<\/strong>\r\n<strong>            -&gt;detectModerationLabels([<\/strong>\r\n<strong>                'Image' =&gt; ['Bytes' =&gt; $bytes],<\/strong>\r\n<strong>                'MinConfidence' =&gt; $this-&gt;confidence<\/strong>\r\n<strong>            ]);<\/strong>\r\n<strong>        $moderation_labels = $result['ModerationLabels'];<\/strong>\r\n\r\n<strong>        foreach ($moderation_labels as $moderation_label) {<\/strong>\r\n\r\n<strong>            if($this-&gt;hasUnsafeLabel($moderation_label)) {<\/strong>\r\n\r\n<strong>                return false;<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return true;<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Get the validation error message.<\/strong>\r\n<strong>     *<\/strong>\r\n<strong>     * @return string<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function message()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return '\u3053\u306e\u753b\u50cf\u306fAI\u306b\u3088\u308a\u4e0d\u9069\u5207\u306a\u753b\u50cf\u3068\u5224\u65ad\u3055\u308c\u307e\u3057\u305f\u3002';<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    private function hasUnsafeLabel($moderation_label) {<\/strong>\r\n\r\n<strong>        $moderation_label_name = $moderation_label['Name'];<\/strong>\r\n<strong>        $moderation_label_parent_name = $moderation_label['ParentName'];<\/strong>\r\n\r\n<strong>        return (<\/strong>\r\n<strong>            in_array($moderation_label_name, $this-&gt;unsafe_labels) ||<\/strong>\r\n<strong>            in_array($moderation_label_parent_name, $this-&gt;unsafe_labels)<\/strong>\r\n<strong>        );<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u3084\u3063\u3066\u3044\u308b\u306e\u306f\u4ee5\u4e0b\uff13\u3064\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u9001\u4fe1\u3055\u308c\u3066\u304d\u305f\u753b\u50cf\u306e\u30b5\u30a4\u30ba\u3092\u5909\u66f4<\/li>\n<li>Amazon Rekognition \u306b\u305d\u306e\u753b\u50cf\u3092\u9001\u4fe1<\/li>\n<li>\u8a3a\u65ad\u7d50\u679c\u304c\u8fd4\u3063\u3066\u304f\u308b\u306e\u3067\u3001\u305d\u306e\u5185\u5bb9\u306b\u3088\u3063\u3066\uff5b\u8a31\u53ef\uff0f\u62d2\u5426\uff5d\u3092\u5224\u5225\u3059\u308b<\/li>\n<\/ol>\n<p>\u306a\u304a\u3001\u4f7f\u3044\u65b9\u3068\u3057\u3066\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>$unsafe_labels = [ \/\/ \u62d2\u5426\u3059\u308b\u300c\u30e9\u30d9\u30eb\u300d\u3092\u6307\u5b9a<\/strong>\r\n<strong>    'Explicit Nudity' \/\/ \u660e\u3089\u304b\u306a\u30cc\u30fc\u30c9\u306e\u5834\u5408<\/strong>\r\n<strong>];<\/strong>\r\n<strong>$confidence = 50; \/\/ \u3053\u306e\u6570\u5024\u4ee5\u4e0a\u306e\u300c\u78ba\u5b9f\u6027\u300d\u306a\u3089\u4e0d\u9069\u5207\u3068\u3057\u3066\u51e6\u7406 min: 0, max: 100<\/strong>\r\n\r\n$request-&gt;validate([\r\n    'image' =&gt; [\r\n\r\n        \/\/ \u7701\u7565\r\n\r\n        <strong>new SafeImage($unsafe_labels, $confidence)<\/strong>\r\n    ]\r\n]);<\/pre>\n<p>\u306a\u304a\u3001\u62d2\u5426\u3067\u304d\u308b\u30e9\u30d9\u30eb\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\uff08\u4eca\u56de\u306e\u5b9f\u88c5\u3067\u306f\u3001<code>Top-Level Category<\/code>\u3001<code>Second-Level Category<\/code>\u3069\u3061\u3089\u306e\u30e9\u30d9\u30eb\u3082\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\uff09<\/p>\n<p>\ud83d\udcdd <strong>\u53c2\u8003URL\uff1a<\/strong> <a href=\"https:\/\/docs.aws.amazon.com\/rekognition\/latest\/dg\/moderation.html#moderation-api\">Using the image and video moderation APIs<\/a><\/p>\n<h1>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u3053\u3053\u304b\u3089\u306f\u30c6\u30b9\u30c8\u7528\u306b\u753b\u50cf\u306e\u9001\u4fe1\u30d5\u30a9\u30fc\u30e0\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:controller ImageUploadController<\/strong><\/pre>\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Http\/Controllers\/ImageUploadController.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse App\\Rules\\SafeImage;\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass ImageUploadController extends Controller\r\n{\r\n    <strong>public function create() {<\/strong>\r\n\r\n<strong>        return view('image_upload.create');<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function store(Request $request) {<\/strong>\r\n\r\n        <strong>$unsafe_labels = [ \/\/ \u62d2\u5426\u3059\u308b\u300c\u30e9\u30d9\u30eb\u300d\u3092\u6307\u5b9a<\/strong>\r\n<strong>            'Explicit Nudity' \/\/ \u660e\u3089\u304b\u306a\u30cc\u30fc\u30c9\u306e\u5834\u5408<\/strong>\r\n<strong>        ];<\/strong>\r\n<strong>        $confidence = 50; \/\/ \u3053\u306e\u6570\u5024\u4ee5\u4e0a\u306e\u300c\u78ba\u5b9f\u6027\u300d\u306a\u3089\u4e0d\u9069\u5207\u3068\u3057\u3066\u51e6\u7406 min: 0, max: 100<\/strong>\r\n\r\n<strong>        $request-&gt;validate([<\/strong>\r\n<strong>            'image' =&gt; [<\/strong>\r\n<strong>                'required',<\/strong>\r\n<strong>                'image',<\/strong>\r\n<strong>                'max:5000', \/\/ \u6700\u5927 5MB \u307e\u3067<\/strong>\r\n<strong>                'mimetypes:image\/jpeg,image\/png',<\/strong>\r\n<strong>                new SafeImage($unsafe_labels, $confidence)<\/strong>\r\n<strong>            ]<\/strong>\r\n<strong>        ]);<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<h1>\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u5148\u307b\u3069\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u6307\u5b9a\u3057\u305f\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p><strong>resources\/views\/image_upload\/create.blade.php<\/strong><\/p>\n<pre><strong>&lt;html&gt;<\/strong>\r\n<strong>&lt;head&gt;<\/strong>\r\n<strong>    &lt;link href=\"https:\/\/unpkg.com\/tailwindcss@^2\/dist\/tailwind.min.css\" rel=\"stylesheet\"&gt;<\/strong>\r\n<strong>&lt;\/head&gt;<\/strong>\r\n<strong>&lt;body&gt;<\/strong>\r\n<strong>    &lt;div class=\"p-4\"&gt;<\/strong>\r\n<strong>        &lt;h1 class=\"text-xl mb-5\"&gt;\u4e0d\u9069\u5207\u306a\u753b\u50cf\u3092\u691c\u51fa\u3059\u308b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u5b9f\u88c5&lt;\/h1&gt;<\/strong>\r\n<strong>        &lt;form method=\"post\" action=\"{{ route('image_upload.store') }}\" enctype=\"multipart\/form-data\"&gt;<\/strong>\r\n<strong>            @csrf<\/strong>\r\n<strong>            &lt;div class=\"pb-3\"&gt;<\/strong>\r\n<strong>                &lt;input type=\"file\" name=\"image\" accept=\"image\/jpeg,image\/png\"&gt;<\/strong>\r\n<strong>            &lt;\/div&gt;<\/strong>\r\n<strong>            @error('image')<\/strong>\r\n<strong>            &lt;div class=\"bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded mb-3\" role=\"alert\"&gt;<\/strong>\r\n<strong>                {{ $message }}<\/strong>\r\n<strong>            &lt;\/div&gt;<\/strong>\r\n<strong>            @enderror<\/strong>\r\n<strong>            &lt;button type=\"submit\" class=\"bg-blue-500 text-blue-50 p-2 rounded\"&gt;\u9001\u4fe1\u3059\u308b&lt;\/button&gt;<\/strong>\r\n<strong>        &lt;\/form&gt;<\/strong>\r\n<strong>    &lt;\/div&gt;<\/strong>\r\n<strong>&lt;\/body&gt;<\/strong>\r\n<strong>&lt;\/html&gt;<\/strong><\/pre>\n<h1>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u6700\u5f8c\u306b\u30eb\u30fc\u30c8\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u7701\u30b3\u30fc\u30c9\u5316\u3057\u3084\u3059\u3044<code>resource()<\/code>\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<pre><strong>use App\\Http\\Controllers\\ImageUploadController;<\/strong>\r\n\r\n\/\/ \u7701\u7565\r\n\r\n<strong>Route::resource('image_upload', ImageUploadController::class)-&gt;only([<\/strong>\r\n<strong>    'create',<\/strong>\r\n<strong>    'store'<\/strong>\r\n<strong>]);<\/strong><\/pre>\n<p>\u3053\u308c\u3067\u6e96\u5099\u306f\u5168\u3066\u5b8c\u4e86\u3067\u3059\uff01<\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u4e0d\u9069\u5207\u306a\u753b\u50cf\uff08\u4eca\u56de\u306e\u5834\u5408\u306f\u30cc\u30fc\u30c9\u753b\u50cf\uff09\u3092\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u304b\u3089\u63a2\u3057\u3066\u304d\u3066\u9001\u4fe1\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<\/p>\n<p>\u307e\u305a\u3001\u300c<strong>http:\/\/******\/image_upload\/create<\/strong>\u300d\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8909\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_13.png\" alt=\"\" width=\"445\" height=\"167\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_13.png 445w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_13-300x113.png 300w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\u5148\u307b\u3069\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304d\u305f\u300c<strong>\u4e0d\u9069\u5207\u306a\u753b\u50cf<\/strong>\u300d\u3092\u9078\u629e\u3057\u3001\u9001\u4fe1\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8908\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_14.png\" alt=\"\" width=\"451\" height=\"171\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_14.png 451w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_14-300x114.png 300w\" sizes=\"auto, (max-width: 451px) 100vw, 451px\" \/><\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8907\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_15.png\" alt=\"\" width=\"459\" height=\"231\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_15.png 459w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_15-300x151.png 300w\" sizes=\"auto, (max-width: 459px) 100vw, 459px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u304d\u3061\u3093\u3068\u4e0d\u9069\u5207\u306a\u753b\u50cf\u3068\u3057\u3066\u51e6\u7406\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude0a\ud83d\udc4d\u2728<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u5b9f\u306f\u4eca\u56de\u3069\u3046\u306a\u308b\u304b\u8a66\u3057\u3066\u307f\u305f\u3044\u753b\u50cf\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n\u305d\u308c\u304c\u3001\u300c<strong style=\"font-size: 20px;\">\u7802\u6f20\u306e\u753b\u50cf<\/strong>\u300d\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\u3001\u3069\u3053\u304b\u306e\u8a18\u4e8b\u3067\u300c<strong>\u7802\u6f20\u306e\u753b\u50cf\u3092AI\u304c\u30cc\u30fc\u30c9\u3068\u3057\u3066\u51e6\u7406\u3057\u3066\u3057\u307e\u3063\u305f\u30fb\u30fb\u30fb<\/strong>\u300d\u3068\u3044\u3046\u306e\u3092\u898b\u305f\u3053\u3068\u304c\u3042\u3063\u305f\u304b\u3089\u3067\u3059\u3002\uff08\u78ba\u304b\u306b\u98a8\u7d0b\u304c\u88f8\u306b\u898b\u3048\u306a\u304f\u3082\u306a\u3044\u3067\u3059\u306d\uff09<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001<code>pixabay<\/code>\u304b\u3089\u4ee5\u4e0b\uff13\u3064\u306e\u7802\u6f20\u306e\u753b\u50cf\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5b9f\u969b\u306b\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8910\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_18.jpg\" alt=\"\" width=\"640\" height=\"426\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_18.jpg 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_18-300x200.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8911\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_17.jpg\" alt=\"\" width=\"640\" height=\"247\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_17.jpg 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_17-300x116.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8912\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_16.jpg\" alt=\"\" width=\"600\" height=\"600\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_16.jpg 600w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_16-300x300.jpg 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_16-150x150.jpg 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/laravel_detect_inappropriate_16-100x100.jpg 100w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\u7d50\u679c\u306f\u3068\u3044\u3046\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p>\u306a\u3093\u3068\u5168\u3066\u300c<strong>\u9069\u5207\u306a\u753b\u50cf<\/strong>\u300d\u3068\u3057\u3066\u51e6\u7406\u3055\u308c\u307e\u3057\u305f\u2757<br \/>\n\u3064\u307e\u308a\u3001AI\u306f\u304d\u3061\u3093\u3068<strong>\u30cc\u30fc\u30c9\u3067\u306f\u306a\u3044\u3068\u5224\u65ad\u3057\u3066\u304f\u308c\u305f<\/strong>\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u304b\u3059\u308b\u3068\u3001\u79c1\u304c\u8aad\u3093\u3060\u8a18\u4e8b\u304b\u3089\u6642\u9593\u304c\u7d4c\u3061\u3001\u3088\u308a\u6b63\u78ba\u306b\u306a\u3063\u305f\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3068\u306b\u304b\u304f\u3001\u3053\u3061\u3089\u3082\u6210\u529f\u3067\u3057\u305f\ud83d\ude0a\u2728<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306e\u6280\u8853\u3092\u4f7f\u3046\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u753b\u50cf\u3092\u691c\u51fa\u3057\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u4e8b\u524d\u306b\u62d2\u5426\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305c\u3072\u304a\u6c17\u8efd\u306b\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>\u30cc\u30fc\u30c9\u306a\u3069\u306e\u30a2\u30c0\u30eb\u30c8\u753b\u50cf<\/li>\n<li>\u98f2\u9152\u3001\u85ac\u7269\u3001\u30c9\u30e9\u30c3\u30b0\u3001\u66b4\u529b\u3001\u30ae\u30e3\u30f3\u30d6\u30eb<\/li>\n<li>\u4e2d\u6307\u3092\u7acb\u3066\u308b\u30b8\u30a7\u30b9\u30c1\u30e3\u30fc<\/li>\n<li>\u30cf\u30fc\u30b1\u30f3\u30af\u30ed\u30a4\u30c4\u306a\u3069\u306e\u30de\u30fc\u30af<\/li>\n<li>\u907a\u4f53\u306a\u3069<\/li>\n<\/ul>\n<p>\u203b \u306a\u304a\u3001\u300c<strong>\u88f8\u306f\u30a2\u30a6\u30c8\u3060\u3051\u3069\u3001\u6c34\u7740\u3084\u4e0b\u7740\u306a\u3089OK<\/strong>\u300d\u3068\u3044\u3046\u3088\u3046\u306a\u6761\u4ef6\u306b\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f<code>Amazon Rekognition<\/code>\u3092\u4f7f\u3063\u3066\u4e0d\u9069\u5207\u306a\u753b\u50cf\u3092AI\u3067\u691c\u51fa\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u307e\u3067\u591a\u304f\u306e\u753b\u50cf\u3067\u8a66\u3057\u3066\u306f\u3044\u307e\u305b\u3093\u304c\u3001\u3055\u3059\u304c<code>Amazon<\/code>\u3067\u3059\u3002<br \/>\n\u79c1\u304c\u8a66\u3057\u305f\u753b\u50cf\u306b\u306f\u3001<strong>\u3072\u3068\u3064\u3082\u304a\u304b\u3057\u306a\u5224\u65ad\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/strong><\/p>\n<p>\u307e\u305f\u3001\u62d2\u5426\u3057\u305f\u3044\u5185\u5bb9\u3092\u9078\u3079\u308b\u3068\u3044\u3046\u306e\u3082\u6c4e\u7528\u6027\u304c\u9ad8\u304f\u3066\u3044\u3044\u3067\u3059\u3088\u306d\u3002<br \/>\n\u305c\u3072\u7686\u3055\u3093\u3082<code>Amazon Rekognition<\/code>\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3467 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png\" alt=\"\" width=\"216\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png 216w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9-203x300.png 203w\" sizes=\"auto, (max-width: 216px) 100vw, 216px\" \/>\u300cAWS\u306b\u306f\u9762\u767d\u3044\u6a5f\u80fd\u304c<br \/>\n\u3044\u3063\u3071\u3044\u3042\u308a\u307e\u3059\ud83d\udc4d\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u306b\u5f15\u304d\u7d9a\u304dAWS\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u3044\u308d\u3044\u308d\u3068\u8a66\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u305d\u306e\u6614\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3055\u3093\u3078\u300c\u5b8c\u5168\u306b\u306f\u96e3\u3057\u3044\u3067\u3059\u306d&#8230;\ud83d\udca6\u300d\u3068\u56de\u7b54\u3057\u305f\u3053\u3068\u304c\u3042 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=8890\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel + Amazon Rekognition\u3067\u4e0d\u9069\u5207\u306a\u753b\u50cf\u3092\u691c\u51fa\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":8920,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[233,3],"tags":[5],"class_list":["post-8890","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","category-laravel","tag-5"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8890"}],"version-history":[{"count":9,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8890\/revisions"}],"predecessor-version":[{"id":8919,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/8890\/revisions\/8919"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/8920"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}