clmtrackr icon indicating copy to clipboard operation
clmtrackr copied to clipboard

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

Open nikhilapinninti opened this issue 6 years ago • 4 comments

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.

nikhilapinninti avatar Jun 15 '18 07:06 nikhilapinninti

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

donut87 avatar Jun 15 '18 07:06 donut87

`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.

nikhilapinninti avatar Jun 15 '18 07:06 nikhilapinninti

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?

donut87 avatar Jun 15 '18 11:06 donut87

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

nikhilapinninti avatar Jun 15 '18 11:06 nikhilapinninti