Comments (4)
How to detect faces and divide them to save
I am not clear what you are asking. I understand two things from this issue:
- You want to train a model for face recognition
- you already have a model and want to know how to use that model to make predictions and interpret the results.
Please clear out your question so it is for us to provide the appropriate solution. 😸
from human-detection-and-tracking.
I want to train a model for face recognition.
Now I have so many photos of my face and I want to detect faces in these photos and divide them to save in './data'.
In the './scripts' I can't find which script to do the work mentioned above. 😁
from human-detection-and-tracking.
I will walk you through the steps:
-
This is the file that we have used to train our face recognition model
-
We have a specific filename format that we use for images. The format
subjectX.Y.jpg
where X is the subject label and Y is an auto increment number just for different images. -
next you need to run the file mentioned above
create_face_model.py
python3 create_face_model.py /path/to/images/directory
Let me know if you find any problem in that.
from human-detection-and-tracking.
closing this issue #22 with answer:
I will walk you through the steps:
- This is the file that we have used to train our face recognition model
- We have a specific filename format that we use for images. The format
subjectX.Y.jpg
where X is the subject label and Y is an auto increment number just for different images. - next you need to run the file mentioned above
create_face_model.py
python3 create_face_model.py /path/to/images/directory
Let me know if you find any problem in that.
from human-detection-and-tracking.
Related Issues (20)
- This node is not a map nor an empty collection HOT 5
- this code with python3.6 and opencv3.4 HOT 1
- The node is neither a map nor an empty collection in function 'cvGetFileNodeByName' HOT 1
- python3 opencv 3.4.1 HOT 2
- python3 opencv 3.4.1 HOT 6
- how to apply usb-camera to this codes? HOT 1
- core dump occurred when running ./humandetect ../GEM_time.mp4 HOT 1
- Labelling Issue HOT 3
- error in runing code HOT 2
- run error HOT 1
- imutils import error HOT 1
- neural network HOT 4
- ValueError: not enough values to unpack (expected 3, got 2) HOT 2
- main.py returns assertion failed HOT 5
- error in reading 'model.yaml' HOT 1
- base) C:\Users\ssbilakeri\Human-detection-and-Tracking-master>python create_face_model.py usage: create_face_model.py [-h] -i IMAGES create_face_model.py: error: the following arguments are required: -i/--images how to fix this error HOT 2
- ['C:\\Users\\jatin\\Downloads\\Human-detection-and-Tracking-master\\Human-detection-and-Tracking-master\\video\\1.mp4'] (720, 1280, 3) (450, 800, 3) Traceback (most recent call last): File "main.py", line 160, in <module> temp = background_subtraction(previous_frame, frame_resized_grayscale, min_area) File "main.py", line 118, in background_subtraction im2, cnts, hierarchy = cv2.findContours(thresh.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) ValueError: not enough values to unpack (expected 3, got 2) HOT 1
- can this project run on windows
- Mi
- Can it run on OpenCV 4?
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 human-detection-and-tracking.