Skip to content

Draw labels/faces on a kinesis stream video

0

I am working with the kinesis video stream examples and doing some face recognition process, first I run a stream processor that searches for persons on the video if there are faces I run a face recognition process and store an image with the drawn boundingbox of the found face but, I want to be able to do the same on video, I have the producer and I want to be able to send the video to all consumers with the drawn box of the found face, what would be the best approach for this?

1 Answer
1

To achieve real-time face detection and bounding box drawing on a Kinesis video stream, you can leverage AWS KVS in a more integrated manner. Start by ingesting your video into Kinesis Video Streams, then use Amazon Rekognition Video to perform face detection directly on the stream. Implement a serverless architecture using AWS Lambda to process the Rekognition results and generate metadata for the detected faces. This metadata can be used to draw bounding boxes on the video frames in real-time.

To accomplish this, create a Lambda function that subscribes to the Kinesis Video Stream and processes the Rekognition results. This function can then use the AWS SDK to modify the video frames, drawing bounding boxes around detected faces. The processed frames can be pushed to a new Kinesis Video Stream for output. This approach eliminates the need for separate container deployments and complex metadata storage solutions.

For distribution to multiple consumers, you can use the Kinesis Video Streams GetMedia API to allow clients to directly consume the processed video stream. If broader distribution is required, consider integrating with AWS MediaLive and AWS MediaPackage to prepare the stream for delivery via CloudFront, providing scalable and low-latency access to the processed video with drawn face bounding boxes.

answered a year ago
EXPERT
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.