Code Monkey home page Code Monkey logo

video-streaming's Introduction

RealTime Video Face Detection

Demo Link

Face detection

Installation

  • Install Homebrew

    • /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
      
    • vim ~/.bash_profile
      export PATH=/usr/local/bin:$PATH
      
      source ~/.bash_profile
      
  • Install python

    • brew install python python3
      cd /usr/local/bin
      ln -s ../Cellar/python/2.7.14/bin/python2 python
      
  • Install ffmpeg

    • brew install ffmpeg \
        --with-tools \
        --with-fdk-aac \
        --with-freetype \
       --with-fontconfig \
       --with-libass \
       --with-libvorbis \
       --with-libvpx \
       --with-opus \
       --with-x265
      
  • Install opencv

    • brew tap homebrew/science
      brew install opencv3 --with-contrib --with-python3
      
  • Install boto3, watchdog

    •   pip2 install boto3 watchdog
      

    or python -m pip install boto3 watchdog

Execution - Recognizing Faces in a Streaming Video

Clone this repo:

git clone [email protected]:imyoungyang/video-streaming.git

Step1: IAM Role & SNS Topic

Create an IAM service role to give Rekognition Video access to your Kinesis video streams and your Kinesis data streams. SNS Topic to recieve the reginition name.

python iam-role-helper.py --create
python sns-helper.py --create

Step2: Create Collection

python collection-helper.py --create

Step3: Add faces to a collection

python index_faces.py ./young-yang.jpg Young

Step4: Create a Kinesis Video Stream

python video-stream-helper.py --create

Step5: Create a Kinesis Data Stream

python data-stream-helper.py --create

Step6: Create the stream processor

  • run command to create a stream processor.

    python rekognition-process.py --create

  • run command to check process status

    aws rekognition describe-stream-processor --name appStreamProcessor-videoFaceRek

Step7: Start the stream processor

  • run command python rekognition-process.py --start to start the process

Step8: Start video stream

  • Open terminal and exeucte the upload to kinesis videos

    • python watch_for_changes.py
  • Execute face detection in another terminal

    • python face-detection-multi-files.py

Step9: Consume the analysis result

  • run command python get-rekognition-result.py

Reference

video-streaming's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

video-streaming's Issues

about using the jar in Windows

dear sir, i am very appreciate for you work, now i am trying use it for Windows.
i my python application, i use JPype to execute the .jar file you provide. the problem i met is how to give the parameters.
the code is like follows. so in order to use it , i may be need for information about the class name and its method used in the .jar. i mean, can i use it conveniently just as you use in shell?(pass accessKey, secretKey, region, video_stream_name, fileName and get the response)
can you give some help.
Best regards,
Andy from Beijing

from jpype import *  
startJVM("*****/jvm.dll","-ea", "-Djava.class.path=%s" % ('kinesisvideo-java-demo-1.0-SNAPSHOT.jar'))  

JDClass = JClass(<the class name for putmedia>)  
jd = JDClass()  
jd.<the name for putmedia and so on>(<the parameters>)
shutdownJVM()  

Kinesis Video Streaming using .Net SDK

I am trying to develop same application using .Net SDK. but as there in python I don't see any PutMedia() in AmazonKinesisVideoClient class. Could you please here how you figured out this problem?

clone statement doesn't work.

Clone statement will lead to the error due to public key issue.

git clone [email protected]:imyoungyang/video-streaming.git
Cloning into 'video-streaming'...
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

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.