SetMonitorRect.cgi
Description
Set the rectangle for motion detect. (administrator privilege required)
Grammar
/SetMonitorRect.cgi?Rect=left,top,right,bottom[&RedirectUrl=sUrl]
Remark
left, top, right, bottom are all in the range: >=0 && <10000.
The actual resolution of images should be mapped to (0, 10000).
eg: To set the 1/4 of the total visual rectangle on the top-left, user should call request as:
/SetMonitorRect.cgi?Rect=0,0,5000,5000
To cancel this feature, call /SetMonitorRect.cgi?Rect=0,0,0,0
In the text returned by GetStatus.cgi, bytes 40 ~ 55 shows the monitor rectangle.
Example
<html>
<table>
<form name=f>
<tr><td>Left:</td><td><input id=oLeft></td></tr>
<tr><td>Top:</td><td><input id=oTop></td></tr>
<tr><td>Right:</td><td><input id=oRight></td></tr>
<tr><td>Buttom:</td><td><input id=oBottom></td></tr>
</form>
</table>
<script>
function OK(o)
{
o.Rect.value = document.f.oLeft.value
+ ',' + document.f.oTop.value
+ ',' + document.f.oRight.value
+ ',' + document.f.oBottom.value;
return true;
}
</script>
<form action=/SetMonitorRect.cgi onsubmit="return OK(this);">
<input name=Rect type=hidden>
<input type=submit value=OK>
</form>
</html>