number ObjectDetect(string source, array of images | filename[, number type=OBJECT_FILE|OBJECT_CAMERA|OBJECT_BUFFER, boolean detect_only_biggest_object, string fileformat="png", number width=200, number height=200, number max_iterations=0]);
Description:
Detects an object and returns an array. On error returns a number describing the error code.
Return value:
Return array or number.
Example
...
var obj=LoadObject("face.xml");
while (true) {
var arr=ObjectDetect(ReadFile("test.jpg"), obj, OBJECT_BUFFER);
var len=length arr;
for (var i=0;i<len;i++) {
var e=arr[i];
if (e)
WriteFile(e["data"], "out$i.png");
}
}
CloseObject(obj);
...