| layout | default-layout |
|---|---|
| title | CaptureVisionRouter Auxiliary Methods - Dynamsoft Capture Vision Java Edition API |
| description | API reference for auxiliary methods of the CaptureVisionRouter class in Dynamsoft Capture Vision Java Edition. |
| keywords | capture vision, auxiliary, instance, api reference, Java |
| needAutoGenerateSidebar | true |
| needGenerateH3Content | false |
| Method | Description |
|---|---|
setGlobalIntraOpNumThreads |
Sets the global number of threads used internally for model execution. |
appendDLModelBuffer |
Appends a deep learning model to the memory buffer. |
clearDLModelBuffers |
Clears all deep learning models from buffer to free up memory. |
appendModelBuffer |
Deprecated. Will be removed in future versions. Use appendDLModelBuffer instead. |
Sets the global number of threads used internally for model execution.
public static void setGlobalIntraOpNumThreads(int size)Parameters
[in] size Number of threads used internally for model execution. Valid range: [0, 256].
If the value is outside the range [0, 256], it will be treated as 0 (default).
Remarks
- Introduced in Dynamsoft Barcode Reader SDK version 11.2.1000 and Dynamsoft Capture Vision version 3.2.1000.
Appends a deep learning model to the memory buffer.
public static void appendDLModelBuffer(String modelName, byte[] modelBytes, int maxModelInstances) throws CaptureVisionExceptionParameters
[in] modelName The name of the model.
[in] modelBytes The bytes of the model.
[in] maxModelInstances The max instances created for the model.
Exceptions
A [CaptureVisionException]({{ site.dcvb_java_api }}capture-vision-router/capture-vision-exception.html) is thrown when:
- The model buffer is invalid.
- Failed to allocate memory for the model.
Remarks
- Introduced in Dynamsoft Barcode Reader SDK version 11.2.1000 and Dynamsoft Capture Vision version 3.2.1000.
Clears all deep learning models from buffer to free up memory.
public static void clearDLModelBuffers()Remarks
-
After calling this function, all
CaptureVisionRouterinstances created before the function call will not be able to use model-related features. -
Introduced in Dynamsoft Barcode Reader SDK version 11.2.1000 and Dynamsoft Capture Vision version 3.2.1000.
Deprecated. Will be removed in future versions. Use appendDLModelBuffer instead.
Remarks
- Deprecated in Dynamsoft Barcode Reader SDK version 11.2.1000 and Dynamsoft Capture Vision version 3.2.1000.