AdonaiVera / idomai

Apply face filters in realtime | Smart Board | Change background - All deploy with Streamlit and MediaPipe
8 stars 3 forks source link

IDOM+ AI πŸ€“

Strokes of AI: Creating Visual Magic in Real Time with MediaPipe and Streamlit. "Pinceladas de IA: Creando Magia Visual en Tiempo Real con MediaPipe y Streamlit"

Teaching Academy with AI

Sample page hosted on Heroku: tryit ... https://idomai.herokuapp.com/ πŸ“’

MediaPipe

Presentation Keras community Day

image

Getting Started 🎁

  1. Clone repository: For security use SSH keys.

    git clone https://github.com/AdonaiVera/idomai.git
  2. Install dependencies.

    pip3 install -r requirements.txt
  3. Run commands

    streamlit run app.py
  4. Enjoy

Results πŸ› οΈ

Media Pipe with filters

https://github.com/AdonaiVera/idomai/blob/master/img/filter1.png

Media Pipe hands | Smart Board

https://github.com/AdonaiVera/idomai/blob/master/img/filter2.png

Manual deployment πŸ“¦

Manual deployment to heroku

Prerequisites

  1. Set up heroku command.

  2. Add heroku-buildpack-apt to buildpacks.

    $ heroku buildpacks:add --index 1 heroku-community/apt

    Deploy

    If dependencies have changed, update requirements.txt

  3. Update requirements.txt.

    $ make deps/update
  4. Commit it.

    $ git add requirements.txt
    $ git commit -m "requirements.txt"

    Deploy the current branch to Heroku

    heroku create -a idiomai
    git push heroku master

Manual deployment to app services Azure πŸ“¦

Prerequisites

  1. Install docker
  2. Instal Azure CLI locally

Deploy

If codes have changed, you should rebuild the docker images

Build

   docker build --tag idomai-app .

Try it locally

   docker run -p 8501:8501 idomai-app

Access locally

   http://localhost:8501/

Deploy the docker image and save to Azure container Registry

   az acr build --registry idomAIRegistry --resource-group idomAI --image idomai-app .

Architecture πŸ“Œ

Architecture is divided intro three main parts:

  1. WEB APP develop in streamlit.
  2. Computer vision class develop in Python with mediaPipe and OpenCV.
  3. Azure media services to stream videos in real time

Build with πŸ› οΈ

Mention the tools you used to create your project

Contribute βœ’οΈ