Comments (16)
Thank you, thanks to your work!
from pigo.
One of the obvious question it pops up in my mind is by which terms do you want to compare faces? Object detection at the moment is not possible with Pigo, but is on the track (see https://github.com/esimov/pigo#todo). I'm asking because maybe I can advice you in certain direction.
from pigo.
I work with a video stream. And I get 25 frames per second. In real time The idea is to filter out duplicate faces.
To get just 1 person. I thought to use
https://github.com/vitali-fedulov/images
but that doesn't fit. You can try to average the color, but this is also not a good solution.
as I understand it in other projects https://github.com/ageitgey/face_recognition
there are functions that make a hash out of a person, which can then be compared with other people and get the difference.
from pigo.
You need to filter out duplicate faces per frame or to filter out duplicate faces during a certain frame interval?
from pigo.
filter out duplicate faces during a certain frame interval
Ideally, I would like to have a faceDistance function
func faceDistance (face1, face2) int {
compares two faces and returns the identity coefficient precent 0-100
from pigo.
Currently there is no such functionality implemented in Pigo, but the basic "ingredients" are there for making it happen. One way this could be achieved is by combining a few techniques together like delaunay triangulation and face morphing, then we can compare the resulted face with the original one and if the coefficient is below a certain threshold the the two faces could be considered identical. Something like here: https://learnopencv.com/average-face-opencv-c-python-tutorial/. Of course this is a first approach which needs to be analyzed more in depth.
However the best option is still the object detection and description towards I'm focusing right now, by implementing the SURF and/or SIFT methods.
These are however long term objectives, which requires some time for integration, so right now I cannot offer you a working solution for your problem. I will investigate other options and keep you updated with my findings, but I would keep this thread open for suggestions and proposals.
from pigo.
Please tell me where exactly can I get the data for triangulation?
Maybe you have some minimal sample that could guide me?
from pigo.
+1) Write landmark Point []float32
+2) Use PIGO found face
+-3) Encode rect to jpeg ;( and use dlib (slow) found face landmark
+4) Use Avx avx.EuclideanDistance(sampleIlia, current) https://en.wikipedia.org/wiki/Euclidean_distance
it work very slow ;) try use https://github.com/esimov/pigo/blob/master/examples/facial_landmark/flploc.go
from pigo.
It's obvious that using dlib for face detection is way slower, since it relies on C bindings. This is a also the case for the Python example you just pointed out, because it's a C binding.
Regarding your question about triangulation, be aware that there are no working solutions and examples currently available for this feature. The one suggested by me is a possible approach which can be followed. I have developed a tool for triangulating images, this could be a logical approach.
Unfortunately currently I do have a busy period and I could not really focus on this request, but as I mentioned the object detection is the next step.
from pigo.
Tell me what is the format of such files lp38 lp42 lp44 lp46?
The idea is how can I add custom mark on the face? maybe there is some kind of convector xml to bin?
from pigo.
These are binary formats. What do you mean by adding custom mark on the face? You mean to have your custom classifier?
from pigo.
I wanted to make the jawlines to build a better comparison model.
from pigo.
yes, custom classifier
from pigo.
Currently only these facial landmark points are encoded into the cascade binary tree.
from pigo.
But can I take the cascade file from opencv and encode it to a binary format?
from pigo.
I'm afraid not, because they have different structure and by encoding into a binary format would not guarantee that the cascade tree structure would be preserved.
from pigo.
Related Issues (20)
- oval shape HOT 15
- x / y values are backwards in json output HOT 1
- what is the mean of iouThreshold HOT 3
- is pigo.Pigo thread-safe? HOT 1
- Infinite loop HOT 11
- encountered some problems when i try write a demo by myself HOT 5
- Pigo Wasm demo crashes after certain time HOT 1
- What are the bounds of the score? HOT 2
- Invalid Face Detected HOT 2
- Can this be somehow used to smart-detect background image and replace it in realtime? HOT 3
- Adding jaw line facial landmarks HOT 2
- WASM Demo features toggled with keys fail HOT 2
- Is there a way to create new landmark point definitions? HOT 6
- Feature addition to support body recognition
- Got exit code 1073741819 (0xC0000005) from python demo HOT 7
- On the CLI, -flpc flag doesn't work without -plc. HOT 5
- CLI error in case of uppercase extensions
- Faster detection on ffmpeg videos HOT 5
- [QUESTION] - How to run examples on local MacOS? 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 pigo.