Code Monkey home page Code Monkey logo

facerecognition-yolo's Introduction

Facerecognition YOLO

Simple object recognition worker configured to perform face blur on jpg images fed via a RabbitMQ message queue.

The code is part of the final exam of the free anynines Kubernetes Tutorial. Therefore, the code is not meant to be production grade and contains refactoring TODOs that learners may engage with.

The Worker

The worker performs the following steps

  • Connect to RabbitMQ
  • Retrieve a job (message)
  • Retrieve the image
  • Start image processing
  • Upload the image
  • Acknowledge the message (and thus remove it from the queue)

Read the source code for further information.

Building the Image

Example:

docker build -t facerecognition-yolo:dev .

Publishing the Image

Example:

docker tag facerecognition-yolo:dev fischerjulian/facerecognition-yolo:dev
docker push fischerjulian/facerecognition-yolo:dev

As a oneliner:

docker build -t facerecognition-yolo:dev . && docker tag facerecognition-yolo:dev fischerjulian/facerecognition-yolo:dev && docker push fischerjulian/facerecognition-yolo:dev

Running the Image

Example:

docker run --rm -it --name facerecognition-yolo facerecognition-yolo bash

Running the Face Recognition

Inside the container run:

cd python3 yolo_opencv.py --image /tmp/object_recognition/original-image.jpg --config yolov3.cfg --weights yolov3.weights --classes yolov3.txt 

This will produce output file: /tmp/object_recognition/filtered-image.jpg

Downloading the YOLO Weights Definition

wget https://pjreddie.com/media/files/yolov3.weights

Links and Further Reading

  1. https://pjreddie.com/darknet/yolo/
  2. https://github.com/loretoparisi/docker/tree/master/darknet
  3. https://www.arunponnusamy.com/yolo-object-detection-opencv-python.html

facerecognition-yolo's People

Contributors

a9s-cli-ci avatar avarteq avatar

Watchers

James Cloos avatar  avatar

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.