CVFaceDetectorYN - matt-s-clark/godot-gdextension-opencv GitHub Wiki
Implementation of yunet face detection. More information here.
detect
Prototype: CVMat detect(CVMat image)
Returns mat of size [number of faces, 15] with face data
detect_simplified
Prototype: Array detect_simplified(CVMat image)
The same as detect, but returns an array of dictionaries.
get_input_size
Prototype: Vector2 get_input_size()
Returns the size of the image the model expects.
get_nms_threshold
Prototype: float get_nms_threshold()
Returns the Non-maximum-suppression threshold to suppress bounding boxes that have IoU greater than the given value.
get_score_threshold
Prototype: float get_score_threshold()
Returns the score threshold to filter out bounding boxes of score less than the given value.
get_top_k
Prototype: int get_top_k()
Returns the number of bounding boxes preserved before NMS.
set_input_size
Prototype: void set_input_size(Vector2 input_size)
Set the size of the image the model expects.
set_nms_threshold
Prototype: void set_nms_threshold(float nms_threshold)
Set the Non-maximum-suppression threshold to suppress bounding boxes that have IoU greater than the given value.
set_score_threshold
Prototype: void set_score_threshold(float score_threshold)
Set the score threshold to filter out bounding boxes of score less than the given value.
set_top_k
Prototype: void set_top_k(int top_k)
Set the number of bounding boxes preserved before NMS.
create
Prototype: static CVFaceDetectorYN create(String model, String config, Vector2 input_size, Dictionary additional_parameters)
Creates an instance of face detector class.
- Additional parameters: score_threshold: Float, nms_threshold: Float, top_k: Int, backend_id: Int, target_id: Int