Git Product home page Git Product logo

Comments (3)

devileye1 avatar devileye1 commented on June 14, 2024 1

We have 100 students In my class I create flask app using tf opencv n facenet mtcnn model pre train work good …..now I need output images after recognition like 5 friends same time in frame (web,ip whatever), there is any way opencv Extract particular frame and save images with name and if Unkown person detected save his image in Unkown folder with date n time ,I have a CVS file Contain all 100 students name n one folder with name with images , if it’s possible then I can feed data to dash ploty for graph and Heroku for reports….. I really need this please help me in short I need to display a graph and monthly reports if there is any way please guide me sir

from face_recognition_crop.

ahmetozlu avatar ahmetozlu commented on June 14, 2024

What do you mean exactly? Can you specify your issue better, please? Thanks....

from face_recognition_crop.

ahmetozlu avatar ahmetozlu commented on June 14, 2024

You can develop what you mentioned using OpenCV easily!

Here is the algorithm:

1.) Get the specific frames according to your requirements
2.) Perform face recognition model on the frames
3.) Crop each recognized faces and save them under the folders which are named with the recognized person's name
4.) Crop the unrecognized faces and save them under the folder which is named "unknown"
5.) Get the saved images counts and use that information to creating report

You can benefits this code to crop and save faces:

import cv2
img = input_video_frame
crop_img = img[y:y+h, x:x+w] # set the x, y, w, h considering recognized face pixel coordinates
cv2.imshow("cropped", crop_img)
cv2.imwrite(face_name + ".jpg", "./FaceDatabase" + face_name) # face_name comes from face recognizer and FaceDatabase is the location which is for storing cropped face images

from face_recognition_crop.

Related Issues (4)

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.