Need better scanning performance?
Timeout
Parameter Timeout defines the maximum amount of time (in milliseconds) that should be spent processing each image or frame. It does not include the time taken to load/decode an image from disk into memory.
The timer starts when the library start processing the first task of the image. You may still receive processing results even if it times out:
- If a part of the tasks are finished, the results of the finished tasks are output. You will receive an
EC_TIMEOUTerror code in yourCapturedResultas well. - If all tasks are not finished:
- If there exist results of the unfinished tasks, the existing results are output. You will receive an
EC_TIMEOUTerror code in yourCapturedResultas well. - If none of the tasks has result, you still receive a CapturedResult with an empty array of
CapturedResultItemand the error codeEC_TIMEOUT.
- If there exist results of the unfinished tasks, the existing results are output. You will receive an
JSON Structure
Location in template:
CaptureVisionTemplates[i]
└── Timeout
Parent object: CaptureVisionTemplate object
Example:
{
"Timeout":10000
}
- This snippet shows only the
Timeoutparameter.- To use it, embed this parameter within a CaptureVisionTemplate object.
- For the complete JSON structure, see:
Parameter Details
| Timeout Parameter Details |
|---|
| Type int |
| Range [0, 0x7fffffff] |
| Default Value 10000 |
| Remarks 0: no limitation on the time cost. |