Create
Creates a new Anomaly instance.
Create()
Arguments
No arguments.
Output
Creates a new Anomaly object.
Anomaly inspection helper for comparing expected and unusual image features.
from Xenonix.Classic import Anomaly
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 Anomaly instance.
Create()
No arguments.
Creates a new Anomaly object.
Runs the main operation and returns the detected/calculated result.
Train(Dataset_Path, Image_Size=640, Iter=12000, Input_Type='MONO', Use_Lbp=True, Eval_Mode='ALL', K_Folds=5, Seeds=None, Train_Ratio=0.8, Valid_Ratio=0.1, Test_Ratio=0.1, Random_Seed=123)
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Dataset_Path |
Required | Any valid value | Dataset Path value used by the operation. |
Image_Size |
640 |
Any valid value | Input image size used by the model/tool. |
Iter |
12000 |
Any valid value | Iter value used by the operation. |
Input_Type |
'MONO' |
MONO, COLOR |
Mode/value selector for input type. |
Use_Lbp |
True |
Any valid value | Enables or disables lbp behavior. |
Eval_Mode |
'ALL' |
ALL, SEEDS, KFOLD |
Mode/value selector for eval mode. |
K_Folds |
5 |
Any valid value | K Folds value used by the operation. |
Seeds |
None |
Any valid value | Seeds value used by the operation. |
Train_Ratio |
0.8 |
Any valid value | Train Ratio value used by the operation. |
Valid_Ratio |
0.1 |
Any valid value | Valid Ratio value used by the operation. |
Test_Ratio |
0.1 |
Any valid value | Test Ratio value used by the operation. |
Random_Seed |
123 |
Any valid value | Random Seed value used by the operation. |
Returns structured data such as a list or dictionary.
Runs the main operation and returns the detected/calculated result.
Predict(Frame)
| 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. |
Returns the calculated result.
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.