Home
/
Runtime
/
Parallel
Runtime
Parallel
Parallel API available from the Runtime library.
8 public methods
Import
from Xenonix.Runtime import Parallel
Configuration
Use Config(...) with these keys where the class exposes configuration.
This object does not expose a public Config table.
Public methods
Create
Creates a new Parallel instance.
Create(Model_Path, Instances=1, Start_Method='spawn')
Arguments
| Argument |
Default |
Accepted values |
What it does |
Model_Path |
Required |
Any valid value |
Model Path value used by the operation. |
Instances |
1 |
Any valid value |
Instances value used by the operation. |
Start_Method |
'spawn' |
Any valid value |
Start Method value used by the operation. |
Output
Creates a new Parallel object.
Start
Starts the process or connection.
Start()
Arguments
No arguments.
Output
Returns success/status or the operation result.
Stop
Stops the process or connection.
Stop()
Arguments
No arguments.
Output
Returns success/status or the operation result.
Config
Changes one or more supported settings. Pass only the configuration keys you want to update.
Config(**Kw)
Arguments
| Argument |
Default |
Accepted values |
What it does |
Kw |
**kwargs |
Any valid value |
Kw value used by the operation. |
Output
Updates configuration values on the object.
Detect
Runs the main operation and returns the detected/calculated result.
Detect(Frame)
Arguments
| Argument |
Default |
Accepted values |
What it does |
Frame |
Required |
Any valid value |
Input image/frame data. Can be an image object, array, or frame accepted by this tool. |
Output
Returns the calculated result.
Track
Runs the main operation and returns the detected/calculated result.
Track(Frame)
Arguments
| Argument |
Default |
Accepted values |
What it does |
Frame |
Required |
Any valid value |
Input image/frame data. Can be an image object, array, or frame accepted by this tool. |
Output
Returns the calculated result.
Warm_Up
Runs the Warm_Up operation for Parallel.
Warm_Up(Frame)
Arguments
| Argument |
Default |
Accepted values |
What it does |
Frame |
Required |
Any valid value |
Input image/frame data. Can be an image object, array, or frame accepted by this tool. |
Output
Returns the calculated result.
Get
Runs the Get operation for Parallel.
Get()
Arguments
No arguments.
Output
Returns structured data such as a list or dictionary.