Giter Site home page Giter Site logo

Comments (1)

KiLJ4EdeN avatar KiLJ4EdeN commented on June 14, 2024

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.

Hello,
I think i know where the problem is,
Since we are skipping frames, what i did is that through the time that the
frames are being skipped, which is a pretty small time on a 30 fps camera
the same predictions are shown on the image, which i understand is not good for your application.

What you can do is move the line:
frame = show_prediction_labels_on_image(frame, predictions1)
Inside the frame skipping condition:
if process_this_frame % 30 == 0:
So only when frames are being processed the results will be shown.

Or and alternative option would be removing the frame skipping lines.

from realtime_facialrecognition.

Related Issues (1)

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.