Giter Site home page Giter Site logo

kilj4eden / realtime_facialrecognition Goto Github PK

View Code? Open in Web Editor NEW
20.0 4.0 8.0 3.28 MB

Real time Facial Recognition using the face_recognition module and ip cameras.

License: MIT License

Python 100.00%
machine-vision realtime-facialrecognition opencv python

realtime_facialrecognition's Introduction

Realtime_FacialRecognition

Real time Facial Recognition using the face_recognition module and ip cameras.

License Version Code size Repo size Issue open Issue closed

Prerequisites:

1 - Python

2 - OpenCV

3 - Sklearn

4 - PIL (pillow)

5 - numpy

How to Use:

1 - Clone the repo.

2 - Install the required libraries.

3 - Find your camera ip and change it in the code, in a rare case when opencv can't crack open your ip camera url, use specific my repo for acquiring images from ip cams using urrlib at https://github.com/KiLJ4EdeN/IPCAM_urllib.

4 - To add training examples of your own, Go to knn_examples/train, each folder name represents a person and inside that folder will be images related to that person for the knn to be trained.

5 - Run facerec_ipcamera_knn.py.

6 - Use q to quit the stream anytime.

realtime_facialrecognition's People

Contributors

kilj4eden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

realtime_facialrecognition's Issues

Help with the code

Hi there,
I want to create a "party greeter", similar to this one: https://robotzero.one/face-recognition-party-greeter-raspberry-pi/, but using my IP Camera and Ubuntu OS. The intend is to make a web request when a face is recognized. The web request will make echo dot say something using IFTTT.

I commented the line "cv2.imshow('camera', frame)", because I don't need to see the streaming video, and inserted a print function that shows the name of the found person:

for name, (top, right, bottom, left) in predictions:
print("- Found {}".format(name))

The problem is that when a face is detected it keeps printing the message in the console. Few seconds of a face showing results in dozens of lines in the console with the same message.

I need somehow to limit this and make it shows the message only once. The http request also should be send only once.

Can I get some help with this? Thanks in advance.

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.