The Alarm Menu :: Object Detection
param.cgi?cmd=getodthresh
Set Motion Detection
object
: Set object bounding box for [person
,vehicle
,animal
]enable
: Enable selected bounding boxthreshold
: Set required detection probability threshold in percent [1-100]minwidth
: Set required minimum width of detection bounding boxmaxwidth
: Set required maximum width of detection bounding boxminheight
: Set required minimum height of detection bounding boxmaxheight
: Set required maximum height of detection bounding box
Example
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getodthresh
cmd="getodthresh";
enable['person']="1";
threshold['person']="60";
minwidth['person']="40";
maxwidth['person']="2560";
minheight['person']="40";
maxheight['person']="1440";
enable['vehicle']="1";
threshold['vehicle']="60";
minwidth['vehicle']="40";
maxwidth['vehicle']="2560";
minheight['vehicle']="40";
maxheight['vehicle']="1440";
enable['animal']="1";
threshold['animal']="60";
minwidth['animal']="40";
maxwidth['animal']="2560";
minheight['animal']="40";
maxheight['animal']="1440";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getodthresh&object=vehicle&user=admin&pwd=instar
cmd="getodthresh";
enable="1";
threshold="60";
minwidth="40";
maxwidth="2560";
minheight="40";
maxheight="1440";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setodthresh&object=vehicle&enable=1
cmd="setodthresh";
response="200";
param.cgi?cmd=getuiodattr
Set Audio Detection Parameter
The bounding box position (as drawn in the web user interface) is not used for the detection. Only the box size limits the detection. The position is now stored in the following parameter.
odbox
: Set object bounding box for [person
,vehicle
,animal
]x
: X position of the object bounding boxy
: Y position of the object bounding box
Example
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getuiodattr
cmd="getuiodattr";
x['person']="1280";
y['person']="720";
x['vehicle']="1280";
y['vehicle']="720";
x['animal']="1280";
y['animal']="720";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getuiodattr&odbox=animal&user=admin&pwd=instar
cmd="getuiodattr";
x="1280";
y="720";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setuiodattr&odbox=animal&x=1281&y=721
cmd="setuiodattr";
response="200";