Skip to content

This project aims to detect objects in an image and match detected objects with emojis.

License

Notifications You must be signed in to change notification settings

zhanghengdev/img2emoji

Repository files navigation

Install img2emoji

News

  • Updated to YOLOv3! For more details, see this.

Introduction

This project aims to detect objects in an image and match detected objects with emojis.

Home page

When you launch the application, there will be an animation effect: the emojis will appear or disappear randomly.

Image mode

Webcam mode

How to use it

  1. Take an image by webcam or a local image.
  2. Perform object detection in the image using the convolutional neural network approach.
  3. Match between detected objects and emojis.
  4. Show emojis on the graphical interface.

Installation

  • Install PyQt;
  • Modify the Makefile file according to your environment.
GPU=1		# 0 if your pc doesn't support CUDA
CUDNN=1		# 0 if your pc doesn't support CUDNN
OPENCV=1	# 0 if your pc doesn't support OPENCV
  • make the project;
  • Download yolo.weights by running:
wget https://pjreddie.com/media/files/yolo.weights
  • If you want to detect one image, run:
python yolo_detection.py filename

for exemple:

python yolo_detection.py data/dog.jpg
  • If you want to detect more than one images, run:
python yolo_detection.py filename1 filename2 filename3 ...
  • If you want to run the interface program, run:
python img2emoji.py

Documents

Team membres

Reference

This project is based on darknet.

About

This project aims to detect objects in an image and match detected objects with emojis.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published