- Mais recentes
- Mais votos
- Mais comentários
Hi Eruditic,
Please go through below steps and documentation link it will help to resolve your issue.
Confirming Free Tier Availability
To confirm whether video analysis is included in the Free Tier, follow these steps:
Create a Support Case: Log in to your AWS Management Console. Navigate to the Support Center. Click on "Create Case". Select "Account and Billing Support". In the case description, mention that you want to confirm if video analysis with Amazon Rekognition is included in the Free Tier and how it can be utilized.
Understanding Amazon Rekognition Video Analysis Amazon Rekognition provides a range of capabilities for video analysis, including the detection of faces and facial attributes (e.g., emotions like smiling or frowning).
Setting Up Rekognition for Video Analysis Here are the steps to analyze videos using Amazon Rekognition:
Upload Your Video to Amazon S3:
- Ensure your video is in a supported format (e.g., MP4).
- Upload the video to an S3 bucket in your AWS account.
Initiate Video Analysis:
- Use the Rekognition API to start a video analysis job. This can be done using the AWS SDK for Python (Boto3) or directly through the AWS Management Console.
Here is an example using Python:
import boto3
# Create a Rekognition client
rekognition_client = boto3.client('rekognition')
# Start label detection
response = rekognition_client.start_face_detection(
Video={'S3Object': {'Bucket': 'your-bucket-name', 'Name': 'your-video-file.mp4'}}
)
# Get the job ID
job_id = response['JobId']
print(f'Started face detection job with ID: {job_id}')
Check the Status of the Job: You need to periodically check the status of your job until it's complete.
import time
while True:
response = rekognition_client.get_face_detection(JobId=job_id)
status = response['JobStatus']
if status in ['SUCCEEDED', 'FAILED']:
break
print(f'Job status: {status}')
time.sleep(10) # Wait before checking again
if status == 'SUCCEEDED':
print('Face detection completed successfully')
else:
print('Face detection failed')
Retrieve and Analyze Results: Once the job is completed, you can retrieve the results.
response = rekognition_client.get_face_detection(JobId=job_id)
for face in response['Faces']:
timestamp = face['Timestamp']
emotions = face['Face']['Emotions']
for emotion in emotions:
print(f"Timestamp: {timestamp} ms, Emotion: {emotion['Type']}, Confidence: {emotion['Confidence']:.2f}%")
Interpreting the Results
- Timestamp: The time in milliseconds from the start of the video when the face was detected. *** Emotions:** List of detected emotions with their confidence level
AWS Documentation:
https://docs.aws.amazon.com/rekognition/latest/dg/what-is.html
Conteúdo relevante
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 3 anos