All Projects → jerry-git → Thug Memes

jerry-git / Thug Memes

Licence: mit
Command line Thug Meme generator written in Python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Thug Memes

Facer
Simple (🤞) face averaging (🙂) in Python (🐍)
Stars: ✭ 49 (-78.12%)
Mutual labels:  opencv, dlib, image-processing
Haskell Opencv
Haskell binding to OpenCV-3.x
Stars: ✭ 145 (-35.27%)
Mutual labels:  opencv, image-processing
Color Tracker
Color tracking with OpenCV
Stars: ✭ 128 (-42.86%)
Mutual labels:  opencv, image-processing
Proctoring Ai
Creating a software for automatic monitoring in online proctoring
Stars: ✭ 155 (-30.8%)
Mutual labels:  opencv, dlib
Face Swap Android
Realtime Face Swap Android NDK app full source code. Developed with OpenCV (http://opencv.org) and Dlib C++ (http://dlib.net).
Stars: ✭ 111 (-50.45%)
Mutual labels:  opencv, dlib
Autoannotationtool
A label tool aim to reduce semantic segmentation label time, rectangle and polygon annotation is supported
Stars: ✭ 113 (-49.55%)
Mutual labels:  opencv, image-processing
Vehicle Speed Check
Vehicle Speed Check
Stars: ✭ 151 (-32.59%)
Mutual labels:  opencv, dlib
Is Now Illegal
🚫 A NERD protest against Trump's Immigration ban
Stars: ✭ 1,392 (+521.43%)
Mutual labels:  opencv, image-processing
Invisibility cloak
This is a fun application of image processing which enables you to experience the magic of an invisibility cloak. Let's make our childhood fantasy of using an invisibility cloak come true.
Stars: ✭ 176 (-21.43%)
Mutual labels:  opencv, image-processing
Opencv Python Tutorial
📖 OpenCV-Python image processing tutorial for beginners
Stars: ✭ 2,425 (+982.59%)
Mutual labels:  opencv, image-processing
Omrchecker
Grade exams fast and accurately using a scanner 🖨 or your phone 🤳.
Stars: ✭ 189 (-15.62%)
Mutual labels:  opencv, image-processing
Ios Rubik Solver
An iOS app that detects a 3x3 Rubik's cube, recognizes the color of all cubies, solves it and provides a 3D visualisation of the solving process.
Stars: ✭ 111 (-50.45%)
Mutual labels:  opencv, image-processing
Nvidia Gpu Tensor Core Accelerator Pytorch Opencv
A complete machine vision container that includes Jupyter notebooks with built-in code hinting, Anaconda, CUDA-X, TensorRT inference accelerator for Tensor cores, CuPy (GPU drop in replacement for Numpy), PyTorch, TF2, Tensorboard, and OpenCV for accelerated workloads on NVIDIA Tensor cores and GPUs.
Stars: ✭ 110 (-50.89%)
Mutual labels:  opencv, image-processing
Deepway
This project is an aid to the blind. Till date there has been no technological advancement in the way the blind navigate. So I have used deep learning particularly convolutional neural networks so that they can navigate through the streets.
Stars: ✭ 118 (-47.32%)
Mutual labels:  opencv, dlib
Awesome Face Detection
Compare with various detectors - s3fd, dlib, ocv, ocv-dnn, mtcnn-pytorch, face_recognition
Stars: ✭ 106 (-52.68%)
Mutual labels:  opencv, dlib
Scene Text Recognition
Scene text detection and recognition based on Extremal Region(ER)
Stars: ✭ 146 (-34.82%)
Mutual labels:  opencv, image-processing
Superpixels Revisited
Library containing 7 state-of-the-art superpixel algorithms with a total of 9 implementations used for evaluation purposes in [1] utilizing an extended version of the Berkeley Segmentation Benchmark.
Stars: ✭ 222 (-0.89%)
Mutual labels:  opencv, image-processing
Sign Language Recognition
✌️ 👌 ✊ 📷 Sign Language Recognition using Python
Stars: ✭ 98 (-56.25%)
Mutual labels:  opencv, image-processing
Imagestitching
Conducts image stitching upon an input video to generate a panorama in 3D
Stars: ✭ 98 (-56.25%)
Mutual labels:  opencv, image-processing
Attendance Using Face
Face-recognition using Siamese network
Stars: ✭ 174 (-22.32%)
Mutual labels:  opencv, dlib

Thug Memes

|build| |pypi| |python_versions| |codecov|

Command line Thug Meme generator written in Python.

Installation

Requirements ^^^^^^^^^^^^

  • Python 3.4+

.. code:: bash

pip3 install thug-memes

This installs the core version which supports opencv <https://pypi.python.org/pypi/opencv-python>__ haarcascade based detector. If you are serious with your thug memes (like you definitely should), there is also support for dlib <http://dlib.net/>__ based detector which, in general, provides better results. If you want to enjoy dlib's accuracy, please follow dlib's own installation instructions <https://pypi.python.org/pypi/dlib>. Some additional dlib installation guides for macOS and Ubuntu can be found in: [1] <https://gist.github.com/ageitgey/629d75c1baac34dfa5ca2a1928a7aeaf> [2] <https://www.pyimagesearch.com/2018/01/22/install-dlib-easy-complete-guide/>__. Thug memes can be installed with dlib's Python bindings included:

.. code:: bash

pip3 install "thug-memes[dlib]"

Usage

.. code:: bash

thug path/to/the/original/image 'JUST CASUALLY LIFTING' '20KGs HERE'

Will store something like this in your current directory:

|img1|

If you have installed dlib and want to use it instead of opencv detector, add option:

.. code:: bash

--detector dlib

If you want to see the results of the detection, add --debug option:

Opencv (--debug):

|img2|

Dlib (--detector dlib --debug):

|img3|

Almost everything is configurable. You can see the used configuration with:

.. code:: bash

--show-config

The default configuration is in src/thug/defaul.conf. You can override this by defining environment variable THUG_CONF and pointing it to a file which contains overrides. In addition, you can override any of the configuration variables from command line with --override or -o options. For example:

.. code:: bash

thug path/to/original/img.jpg 'WE HAVE HUGE CIGARS' 'BUT ALSO PINK TEXT' --detector dlib -o cigar_length 2 -o glasses_width 5 -o font_bgr '[180,105,255]'

|img4|

For all available options, see:

.. code:: bash

thug --help

If you don't want to have awesome Thug elements in your meme, there is also 'a plain meme' alternative:

.. code:: bash

meme path/to/the/original/image 'THIS IS A NORMAL MEME' 'WITHOUT THUG STUFF :(' -o font_bgr '[255,255,255]'

|img5|

Example images are from pexels <https://www.pexels.com/photo-license/>__.

Contributing

See contributing <https://github.com/jerry-git/thug-memes/blob/master/CONTRIBUTING.md>__ guide.

.. |pypi| image:: https://img.shields.io/pypi/v/thug-memes.svg :target: https://pypi.python.org/pypi/thug-memes

.. |build| image:: https://travis-ci.org/jerry-git/thug-memes.svg?branch=master :target: https://travis-ci.org/jerry-git/thug-memes

.. |python_versions| image:: https://img.shields.io/pypi/pyversions/thug-memes.svg :target: https://pypi.python.org/pypi/thug-memes

.. |codecov| image:: https://codecov.io/gh/jerry-git/thug-memes/branch/master/graph/badge.svg :target: https://codecov.io/gh/jerry-git/thug-memes

.. |img1| image:: https://raw.githubusercontent.com/jerry-git/thug-memes/master/doc/examples/1_face_out_thug.jpg :height: 600pt

.. |img2| image:: https://raw.githubusercontent.com/jerry-git/thug-memes/master/doc/examples/1_face_debug_opencv.jpg :height: 600pt

.. |img3| image:: https://raw.githubusercontent.com/jerry-git/thug-memes/master/doc/examples/1_face_debug_dlib.jpg :height: 600pt

.. |img4| image:: https://raw.githubusercontent.com/jerry-git/thug-memes/master/doc/examples/3_faces_thug_custom.jpeg :width: 600pt

.. |img5| image:: https://raw.githubusercontent.com/jerry-git/thug-memes/master/doc/examples/normal_meme_out.jpg :width: 600pt

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].