Classic

Anomaly

Anomaly inspection helper for comparing expected and unusual image features.

5 public methods

Import

from Xenonix.Classic import Anomaly

Search this API

Filter methods, arguments, and configuration keys on this page.

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 Anomaly instance.

Create()

Arguments

No arguments.

Output

Creates a new Anomaly object.

Train

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)

Arguments

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.

Output

Returns structured data such as a list or dictionary.

Predict

Runs the main operation and returns the detected/calculated result.

Predict(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.

Write

Writes the current data to a file path.

Write(Path)

Arguments

Argument Default Accepted values What it does
Path Required Any valid value File path used for reading or writing.

Output

Returns success/status or the operation result.

Read

Reads data from a file path.

Read(Path)

Arguments

Argument Default Accepted values What it does
Path Required Any valid value File path used for reading or writing.

Output

Returns success/status or the operation result.