Bob Davies
Bob Davies
Found similar on #520 This is how I did it... ```javascript gm(fs.readFileSync(path)) .command("convert") .out("(") .out("-clone", "0") .out("-background", "black") .out("-shadow", "80x3+10+10") .out(")") .out("(") .out("-clone", "0") .out("-background", "white") .out("-shadow", "80x3+-5-5") .out(")") .out("-reverse")...
I've kludged this to roughly translate an event array to 3d transforms. It's not quite 'right' but it might point someone in the right direction. ```javascript function mapEventTo3dTransforms(event) { if(event)...
I got really decent tracking with it, I figure 30 degrees X, Y and Z. Mileage does vary with backgrounds though (if I'm in front of my bookshelf it struggles...
This is what I ended up using. It's not 'great', I think some form of vector-based linear regression would be much more accurate, but it works pretty well :) https://gist.github.com/bobbigmac/08b6f341385fc4445fe545a80aa3d15f...
I've reviewed and retested this and all seems fine. Looks good to merge.