CVCascadeClassifier - matt-s-clark/godot-gdextension-opencv GitHub Wiki

Class used to load and apply a resizable feature detector based on shape. More information here.

detect_multi_scale

Prototype: Dictionary detect_multi_scale(CVMat image, Dictionary additional_parameters)

Detects objects of different sizes in the input image. Returns a dictionary with the following keys: objects – Array of CVRects, num_detections (Only when output_reject_levels is false) – Array of integers, reject_levels (Only when output_reject_levels is true) – Array of Integers, level_weights (Only when output_reject_levels is true) – Array of floats.

  • Additional parameters: scale_factor:Float, min_neighbors: Int, flags: Int, min_size: Vector2, max_size: Vector2, output_reject_levels: Bool

empty

Prototype: bool empty()

Returns false if the classifier has been loaded.

get_feature_type

Prototype: int get_feature_type()

load

Prototype: bool load(String filename)

Loads a classifier from a file.