Go to documentation repository
...
Syntax of method invocation:
| Code Block |
|---|
function SaveToFile (path: String, data: String, param : Boolean) |
Saving of frame is also can be performed using the GET_FRAME reaction of the CAM object. It is required to specify the path for saving file with frame in the path parameter of this reaction. FRAME_SENT event is created in the system if the GET_FRAME reaction has not got the path parameter. In the data parameter of the FRAME_SENT event the video image frame which is to be saved using the SaveToFile method is stored.
...
Example. Save the frame receiving from Camera 1 in the test.jpg file on the D disk:
| Code Block |
|---|
if (Event.SourceType == "CAM" && Event.SourceId == "1" && Event.Action == "FRAME_SENT") { SaveToFile("D:\\test.jpg",Event.GetParam("data"),true); } |