Giter Site home page Giter Site logo

Can i run this on ec2 and get the input from a (webcam through internet )or kinesis video streams producer about amazon-rekognition-video-analyzer HOT 3 CLOSED

aws-samples avatar aws-samples commented on July 18, 2024
Can i run this on ec2 and get the input from a (webcam through internet )or kinesis video streams producer

from amazon-rekognition-video-analyzer.

Comments (3)

moanany avatar moanany commented on July 18, 2024

Hello,

(1) Yes you can, here are the instructions (shared by a user):

HOW TO DEPLOY DEVELOPMENT ENVIRONMENT TO EC2 and USE PUBLIC IP CAMS

(a.) Install OpenCV on a Linux AMI:
o sudo yum install git cmake gcc-c++ numpy python-devel
o sudo pip install --upgrade pip
o sudo ln -rs /usr/local/bin/pip /usr/bin/
o wget https://pypi.python.org/packages/18/eb/707897ab7c8ad15d0f3c53e971ed8dfb64897ece8d19c64c388f44895572/numpy-1.11.1-cp27-cp27mu-manylinux1_x86_64.whl
o sudo pip install numpy-1.11.1-cp27-cp27mu-manylinux1_x86_64.whl
o git clone https://github.com/Itseez/opencv.git
o cd opencv
o git checkout 3.1.0
o mkdir build
o cd build
o cmake .. -DBUILD_opencv_python2=ON
o make -j4
o sudo make install
o echo 'export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages/:/usr/local/lib/python2.7/dist-packages/'>>~/.bashrc;. ~/.bashrc
o python -c 'import cv2; print "cv2 imported"'

Reference: https://stackoverflow.com/questions/38775044/installing-opencv-python-on-amazon-linux-apache

(b.) Modify line 370 in build.py as follows:
httpd = SocketServer.TCPServer(("0.0.0.0", port), Handler)

(c.) Camera Input:
Using IP camera on laptop or elsewhere requires Security Group setting updates, or NAT’ing depending on whether the camera has public IP or not. An alternative is to use public IP Cameras from internet (precondition is MJPEG streaming). Following is a camera from an observatory in Spain that is verified to be working. http://iris.not.iac.es/axis-cgi/mjpg/video.cgi

(2) This is an AWS Lambda-based solution and is capable of processing video frames ingested through Kinesis Streams. Consuming Kinesis Video Streams in Lambda is currently not supported.

Hope that helps

from amazon-rekognition-video-analyzer.

moanany avatar moanany commented on July 18, 2024

Closing .. please re-open if you need further assistance .. thanks!

from amazon-rekognition-video-analyzer.

melgabay avatar melgabay commented on July 18, 2024

Hey @moanany , after making all this installation I didn't succeed to use the camera of my laptop / RSTP camera on alphapose do you maybe know why I can't detect my camera? I'm using ASUS Zenbook UX331UA

from amazon-rekognition-video-analyzer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.