You can create a Java web application that analyzes videos for label detection by using the AWS SDK for Java version 2. The application created in this AWS tutorial lets you upload a video (MP4 file) to an Amazon S3 bucket. Then the appliction uses the Amazon Rekognition service to analyze the video. The results are used to populate a data model and then a report is generated and emailed to a specific user by using the Amazon Simple Email Service.
The following illustration shows a report that is generated after the application completes analyzing the video. The columns in the table below show Age Range, Beard, Eye glasses, and Eyes open, as well as confidence values for different attribute predictions.

In this tutorial, you create a Spring Boot application that invokes various AWS services. The Spring Boot APIs are used to
build a model, different views, and a controller. For more information, see Spring Boot
This service uses the following AWS services:
Amazon Rekognition
The AWS services included in this tutorial are included in the AWS Free Tier. We recommend that you terminate all of the resources you create in the tutorial when you are finished with them to avoid being charged.
Prerequisites
Before you begin, you need to complete the steps in Setting Up the AWS SDK for Java. Then make sure that you have the following:
Java 1.8 JDK.
Maven 3.6 or later.
An Amazon S3 bucket named video[somevalue]. Be sure to use this bucket name in your Amazon S3 Java code. For more information, see Creating a bucket.
An IAM role. You need this for the VideoDetectFaces class that you will create. For more information, see Configuring Amazon Rekognition Video.
A valid Amazon SNS topic. You need this for the VideoDetectFaces class that you will create. For more information, see Configuring Amazon Rekognition Video.
Procedure
In the course of the tutorial, you do the following:
Create a project
Add the POM dependencies to your project
Create the Java classes
Create the HTML files
Create the script files
Package the project into a JAR file
Deploy the application to AWS Elastic Beanstalk
To proceed with the tutorial, follow the detailed instructions in the AWS Documentation SDK examples GitHub repository