Create
Creates a new Pattern instance.
Create()
Arguments
No arguments.
Output
Creates a new Pattern object.
Template/pattern matching tool for locating repeated image features.
from Xenonix.Classic import Pattern
Filter methods, arguments, and configuration keys on this page.
Use Config(...) with these keys where the class exposes configuration.
This object does not expose a public Config table.
Creates a new Pattern instance.
Create()
No arguments.
Creates a new Pattern object.
Calculates or applies angle/rotation behavior.
Angle(Value=None)
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Value |
None |
Any valid value | Value to set or process. |
Returns or applies an angle value.
Scales the object/data by the requested amount.
Scale(Value=None)
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Value |
None |
Any valid value | Value to set or process. |
Returns the calculated result.
Runs the Score operation for Pattern.
Score(Value=None)
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Value |
None |
Any valid value | Value to set or process. |
Returns the calculated result.
Runs the Count operation for Pattern.
Count(Value=None)
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Value |
None |
Any valid value | Value to set or process. |
Returns the calculated result.
Runs the Edge operation for Pattern.
Edge(Value=None)
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Value |
None |
Any valid value | Value to set or process. |
Returns the calculated result.
Runs the Homography operation for Pattern.
Homography(Value=None)
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Value |
None |
Any valid value | Value to set or process. |
Returns the calculated result.
Runs the main operation and returns the detected/calculated result.
Train(Frame, Region=None, Image_Size=640)
| 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. |
Region |
None |
Any valid value | Region of interest used to limit where the operation runs. |
Image_Size |
640 |
Any valid value | Input image size used by the model/tool. |
Returns True/False to indicate success.
Runs the main operation and returns the detected/calculated result.
Find(Frame, Region=None, Pick='All', Index=None)
| 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. |
Region |
None |
Any valid value | Region of interest used to limit where the operation runs. |
Pick |
'All' |
ALL, FIRST, BEST, BEST_FIRST, BEST_TWO |
Selects which candidate/result should be returned. |
Index |
None |
Any valid value | Index value used by the operation. |
Returns structured data such as a list or dictionary.
Writes the current data to a file path.
Write(Path)
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Path |
Required | Any valid value | File path used for reading or writing. |
Returns success/status or the operation result.
Reads data from a file path.
Read(Path)
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Path |
Required | Any valid value | File path used for reading or writing. |
Returns success/status or the operation result.
Runs the Export operation for Pattern.
Export(Type='BASE64')
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Type |
'BASE64' |
JSON, BASE64 |
Mode/value selector for type. |
Returns True/False to indicate success.
Loads input data into the object.
Load(Data, Type='BASE64')
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Data |
Required | Any valid value | Dataset path or dataset definition. |
Type |
'BASE64' |
JSON, BASE64 |
Mode/value selector for type. |
Returns success/status or the operation result.