const math = require('mathjs');
const mtx = [
- [ 701.7255, -1.9998, 941.7793],
- [0, 700.2460, 539.9974],
- [0, 0, 1.0000]
+ [337.1690, 0, 316.2955],
+ [0, 336.4553, 243.2880],
+ [0, 0, 1.0000]
];
exports.transform = function(point, scale) {
let video = document.getElementById('video-frame');
- let scale = video.offsetWidth / 1920;
+ let scale = video.offsetWidth / 640;
let coord = pointToImage.transform(point,scale);
marker.style.top = coord.y-25 + 'px';
marker.style.display = 'none';
}
- else if(coord.x > 1920*scale || coord.y > 1080*scale) {
+ else if(coord.x > 640*scale || coord.y > 480*scale) {
marker.style.display = 'none';
}