PTZ Tracking : Auto-Up require object height larger than 80% of img height

merge-requests/210/head
Moe 2020-06-07 23:44:45 -07:00
parent 47aa4fd55b
commit 3781ea5f35
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ module.exports = function(s,config,lang){
if(distanceY < -1)distanceY = -1
var axis = [
{direction: 'x', amount: rawDistanceX > thresholdX || rawDistanceX < -thresholdX ? distanceX : 0},
{direction: 'y', amount: largestMatrix.y < 30 ? 0.5 : rawDistanceY > thresholdY || rawDistanceY < -thresholdY ? -distanceY : 0},
{direction: 'y', amount: largestMatrix.y < 30 && largestMatrix.height > imgHeight * 0.8 ? 0.5 : rawDistanceY > thresholdY || rawDistanceY < -thresholdY ? -distanceY : 0},
{direction: 'z', amount: 0},
]
s.cameraControl({