How to write frames extracted from opencv videocapture to kinesis video stream

Viewed 510

I am reading kinesis video stream and performing aws face recognition. However I have to perform tasks like creating rectangle and other post-processing tasks by OpenCV after AWS face reCognition. So, I captured kinesis video with Boto3 library and give input to OpenCV library and performed my operation. Now I am not sure how to write the frame back to kinesis after performing the operation.

This is the reference link showing how to read data from Kinesis video stream. Instead of imshow I need to write back frames to kinesis video stream. How do I do it?

2 Answers

Other alternative would be to render the bounding boxes with the video and stream it back to another kinesis video stream using the stream producer.

Related