Skip to content

Webcam Streaming EC2

0

Hi all, I have a simple python application that takes videos from webcam and does some processing with it. I am looking to migrate over to EC2 instances and am wondering whether I can use cv2 in my EC2 instance to get the video from the webcam? Will this work from my EC2 instance?

AWS

asked 2 years ago559 views

2 Answers
2

Using cv2 to access a webcam directly from an EC2 instance is typically not feasible because EC2 instances are virtual machines running in the cloud without direct access to local hardware such as webcams. However, there are alternative approaches you can consider for processing webcam video with an EC2 instance:-

Capture and Upload Video Locally, Process on EC2 Stream Video to EC2 and Use AWS Media Services to ingest, process, and store video streams

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

2

You can upload your video into EC2, and process it with CV2.

If you want to access your local PC web cam from your EC2 instance. Install NICE DCV in EC2 Windows Server, remote in using a supported web browser or native client, and enable webcam re-direction

This is from web browser

Enter image description here

This is from Windows and Linux client app

Enter image description here

AWS
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years 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.