Skip to content

rodneyosodo/Emojidetection

Repository files navigation

Emojidetection

HitCount contributions welcome GitHub repo size PyPI - Python Version GitHub last commit GitHub commit activity GitHub language count License MIT

Replacing your emotions or signs you do with emojis

Getting Started

These instructions will get you a copy of the code up and running on your local machine for development purposes and playing around 😂 and testing purposes. Deployment will focus on one of the available platforms.

Prerequisites

Things you will need to bring the project up on your local machine

Docker (Not necessarily but adviced)
Python3
Text editor
Web browser

Installing

A step by step series of getting a development env running on your local machine

Windows

mkdir Emoji
cd Emoji
virtualenv --no-site-packages Venv
Venv\Scripts\activate
git clone https://github.com/0x6f736f646f/Emojidetection.git
cd Emojidetection

Unix

mkdir Emoji
cd Emoji
virtualenv --no-site-packages Venv
.Venv/bin/activate
git clone https://github.com/0x6f736f646f/Emojidetection.git
cd Emojidetection

Installing requirements

pip install -r requirements

Running webapp

python3 app.py

Dockerising your app

docker build -t emojidetection:1.0.1 .
  • -t is to tag the image being built
  • emojidetection is the image name your can replace it with your own image name
  • 1.0.1 is the version

Running docker web app container

docker run --name emoji --restart=always -d -p 8081:5000 emojidetection:1.0.1 python3 app.py
  • --name gives the container a name
  • --restart always restart when it goes down
  • -d is running it as a daemon
  • -p is for port mapping (We are mapping 5000 from docker container to 8081 to our localhost)
  • emojidetection this is the image name we built
  • 1.0 this is the version of the image we built
  • python3 app.py this is passing a command to the container

Running docker web app using compose

docker-compose up
  • up to run the images

Web app

Windows

Find your docker ip

docker-machine.exe ip

Then go to http:// docker-machine ip:8081

Otherwise

Go to http://localhost:8081 to find the web app

Deployment

Procedure on how to deploy on heroku as a live system.

install heroku cli for windows and linux users
heroku login
heroku create --region eu your_appname # creates app in eu region, common regions: eu, us
heroku buildpacks:set heroku/python # set python buildpack
git push heroku master # deploy app to heroku
heroku logs --tail # If for some reason it’s not working, check the logs

Built With

  • Docker - Container development tool
  • Flask - The web framework used
  • Heroku - Platform
  • Opencv - For video streaming analysis

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • AI saturday Kenya

About

Replacing your emotions or signs you do with emojis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •