Comments (3)
Hi @yurinativo,
excellent question. Thanks a lot for asking it. I have totally overlooked this in the Python interface.
If you look at the C++
example you will see the answer to your question and also what is missing in the Python interface now.
The detector returns also a score (the higher the score, the better the fit of landmarks), the multi-view model is learned in such a way that this score can be used to determine the viewpoint. The viewpoint detection is done simply by taking the model which maximizes this score.
If you wanna a quick fix, simply change this line to the following one:
return landmarks, self.thisptr.getScore()
and add the following line here:
fl_double_t getScore()
and recompile the python interface. Your script will then need a minor modification of this line
Ps.append(flandmarks[j].detect_optimized(arr, bbox))
where you simply first call the detect_optimized
function and store both landmarks and score of each viewpoint. Then by getting the argmax over the array containing scores you will have the id of the "correct" viewpoint.
I will apply this fix as well, it might just take some time (do not have access to the repo sources on this computer now).
Hope I described it clearly, if you have any questions, please do not hesitate to ask further ;-)
from clandmark.
Thanks Michal,
This solution worked perfectly!
from clandmark.
Hi @yurinativo,
no problem ;-)
from clandmark.
Related Issues (20)
- Running Clandmark webcam example HOT 15
- Truecaller_api
- Tru
- Truecaller_api HOT 1
- matlab interface HOT 2
- matlab interface HOT 5
- missing -lopencv_imgcodecs for libopencv 3.1.0 HOT 3
- Using code in video processing,how can I speed up it? HOT 2
- Error in `./video_input': double free or corruption (out): 0x0000000000b56020 ***Aborted (core dumped) HOT 1
- Face Rectangle size HOT 11
- Relocation error when compiling Python interface on Ubuntu HOT 23
- cannot openfile CDPM.xml HOT 9
- Building python_binding HOT 2
- Ask some questions for using "C2F-DPM.xml" HOT 5
- How to build a new face model based on Rhesus monkey ?
- Matlab interface on linux
- Can I use this lib to detect smile ? HOT 2
- Using clandmark in Android app with native c++ HOT 6
- Question for unstable landmark points according to new input frames.
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 clandmark.