Comments (3)
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.
What do you mean exactly? Can you specify your issue better, please? Thanks....
from face_recognition_crop.
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)
- Frames do not write, display window absent. HOT 1
- some issues HOT 2
- Is there a paper? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from face_recognition_crop.