mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 04:26:58 +03:00
Added Counter Clockwise option for analog dial.
This commit is contained in:
@@ -398,6 +398,7 @@ function WriteConfigININew()
|
||||
text = text + " " + NUMBERS[_roi]["digit"][_roiddet]["y"];
|
||||
text = text + " " + NUMBERS[_roi]["digit"][_roiddet]["dx"];
|
||||
text = text + " " + NUMBERS[_roi]["digit"][_roiddet]["dy"];
|
||||
text = text + " " + NUMBERS[_roi]["digit"][_roiddet]["CCW"];
|
||||
config_split.push(text);
|
||||
}
|
||||
}
|
||||
@@ -416,6 +417,7 @@ function WriteConfigININew()
|
||||
text = text + " " + NUMBERS[_roi]["analog"][_roiddet]["y"];
|
||||
text = text + " " + NUMBERS[_roi]["analog"][_roiddet]["dx"];
|
||||
text = text + " " + NUMBERS[_roi]["analog"][_roiddet]["dy"];
|
||||
text = text + " " + NUMBERS[_roi]["analog"][_roiddet]["CCW"];
|
||||
config_split.push(text);
|
||||
}
|
||||
}
|
||||
@@ -484,6 +486,7 @@ function ExtractROIs(_aktline, _type){
|
||||
abc["dx"] = linesplit[3];
|
||||
abc["dy"] = linesplit[4];
|
||||
abc["ar"] = parseFloat(linesplit[3]) / parseFloat(linesplit[4]);
|
||||
abc["CCW"] = linesplit[5];
|
||||
}
|
||||
|
||||
|
||||
@@ -712,7 +715,7 @@ function DeleteNUMBER(_delte){
|
||||
return "";
|
||||
}
|
||||
|
||||
function CreateROI(_number, _type, _pos, _roinew, _x, _y, _dx, _dy){
|
||||
function CreateROI(_number, _type, _pos, _roinew, _x, _y, _dx, _dy, _CCW){
|
||||
_indexnumber = -1;
|
||||
for (j = 0; j < NUMBERS.length; ++j)
|
||||
if (NUMBERS[j]["name"] == _number)
|
||||
@@ -735,6 +738,7 @@ function CreateROI(_number, _type, _pos, _roinew, _x, _y, _dx, _dy){
|
||||
_ret["dx"] = _dx;
|
||||
_ret["dy"] = _dy;
|
||||
_ret["ar"] = _dx / _dy;
|
||||
_ret["CCW"] = _CCW;
|
||||
|
||||
NUMBERS[_indexnumber][_type].splice(_pos+1, 0, _ret);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user