Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clmtrk not working correctly when i give video and canvas size as variable. #151

Open
nikhilapinninti opened this issue Jun 15, 2018 · 4 comments

Comments

@nikhilapinninti
Copy link

so when i give video size and canvas size as a variable of window.innerwidth and window.innerheight
clm trckr not tracking correctly ...
i cant fix video size as it depends on the system we are using and iam using it in my webpage.

@donut87
Copy link

donut87 commented Jun 15, 2018

It is always easier to discuss code, while looking at code. Could you provide some sort of example what you are trying to accomplish?

@nikhilapinninti
Copy link
Author

`videoInput = createCapture(VIDEO);
videoInput.size(x, y);
videoInput.position(xpos, ypos);
// setup canvas

     cnv = createCanvas(x, y).mousePressed(storeguess);
    cnv.position(xpos,ypos);
    
    // setup tracker
    ctracker = new clm.tracker();
    ctracker.init(pModel);
    ctracker.start(videoInput.elt);
    //ctracker.setResponseMode("single",["lbp"])
    noStroke();`

this is my part of code and when iam giving x,y as some number everything is perfect but when i am giving x=window.innerwidth and y=window.innerheight the clmtrck efficiency(eye detection) is decreased.

@donut87
Copy link

donut87 commented Jun 15, 2018

I cannot try out at the moment, that is why I am just throwing questions at you.
If you hard code the current innerwidth and innerheight, do you have the same problem?
If you have a small window, is the efficiency also decreased?

@nikhilapinninti
Copy link
Author

if i hard code any value there is no problem ,efficiency is also good.
but there is some problem when iam giving
x=window. innerwidth
y=window. innerheight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants