View Source Evision.FaceDetectorYN (Evision v0.1.7)

Link to this section Summary

cv

Creates an instance of this class with given parameters

Creates an instance of this class with given parameters

A simple interface to detect face from given image

A simple interface to detect face from given image

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Set the size for the network input, which overwrites the input size of creating model. Call this method when the size of input image does not match the input size when creating model

Set the Non-maximum-suppression threshold to suppress bounding boxes that have IoU greater than the given value

Set the score threshold to filter out bounding boxes of score less than the given value

Set the number of bounding boxes preserved before NMS

Link to this section cv

Link to this function

create(model, config, input_size)

View Source

Creates an instance of this class with given parameters

Positional Arguments
  • model: String.

    the path to the requested model

  • config: String.

    the path to the config file for compability, which is not requested for ONNX models

  • input_size: Size.

    the size of the input image

Keyword Arguments
  • score_threshold: float.

    the threshold to filter out bounding boxes of score smaller than the given value

  • nms_threshold: float.

    the threshold to suppress bounding boxes of IoU bigger than the given value

  • top_k: int.

    keep top K bboxes before NMS

  • backend_id: int.

    the id of backend

  • target_id: int.

    the id of target device

Python prototype (for reference):

create(model, config, input_size[, score_threshold[, nms_threshold[, top_k[, backend_id[, target_id]]]]]) -> retval
Link to this function

create(model, config, input_size, opts)

View Source

Creates an instance of this class with given parameters

Positional Arguments
  • model: String.

    the path to the requested model

  • config: String.

    the path to the config file for compability, which is not requested for ONNX models

  • input_size: Size.

    the size of the input image

Keyword Arguments
  • score_threshold: float.

    the threshold to filter out bounding boxes of score smaller than the given value

  • nms_threshold: float.

    the threshold to suppress bounding boxes of IoU bigger than the given value

  • top_k: int.

    keep top K bboxes before NMS

  • backend_id: int.

    the id of backend

  • target_id: int.

    the id of target device

Python prototype (for reference):

create(model, config, input_size[, score_threshold[, nms_threshold[, top_k[, backend_id[, target_id]]]]]) -> retval

A simple interface to detect face from given image

Positional Arguments
Return
  • faces: Evision.Mat.

    detection results stored in a cv::Mat

Python prototype (for reference):

detect(image[, faces]) -> retval, faces
Link to this function

detect(self, image, opts)

View Source

A simple interface to detect face from given image

Positional Arguments
Return
  • faces: Evision.Mat.

    detection results stored in a cv::Mat

Python prototype (for reference):

detect(image[, faces]) -> retval, faces

Python prototype (for reference):

getInputSize() -> retval

Python prototype (for reference):

getNMSThreshold() -> retval

Python prototype (for reference):

getScoreThreshold() -> retval

Python prototype (for reference):

getTopK() -> retval
Link to this function

setInputSize(self, input_size)

View Source

Set the size for the network input, which overwrites the input size of creating model. Call this method when the size of input image does not match the input size when creating model

Positional Arguments
  • input_size: Size.

    the size of the input image

Python prototype (for reference):

setInputSize(input_size) -> None
Link to this function

setNMSThreshold(self, nms_threshold)

View Source

Set the Non-maximum-suppression threshold to suppress bounding boxes that have IoU greater than the given value

Positional Arguments
  • nms_threshold: float.

    threshold for NMS operation

Python prototype (for reference):

setNMSThreshold(nms_threshold) -> None
Link to this function

setScoreThreshold(self, score_threshold)

View Source

Set the score threshold to filter out bounding boxes of score less than the given value

Positional Arguments
  • score_threshold: float.

    threshold for filtering out bounding boxes

Python prototype (for reference):

setScoreThreshold(score_threshold) -> None

Set the number of bounding boxes preserved before NMS

Positional Arguments
  • top_k: int.

    the number of bounding boxes to preserve from top rank based on score

Python prototype (for reference):

setTopK(top_k) -> None

Link to this section Functions

Link to this function

create!(model, config, input_size)

View Source

Raising version of create/3.

Link to this function

create!(model, config, input_size, opts)

View Source

Raising version of create/4.

Raising version of detect/2.

Link to this function

detect!(self, image, opts)

View Source

Raising version of detect/3.

Raising version of getInputSize/1.

Raising version of getNMSThreshold/1.

Link to this function

getScoreThreshold!(self)

View Source

Raising version of getScoreThreshold/1.

Raising version of getTopK/1.

Link to this function

setInputSize!(self, input_size)

View Source

Raising version of setInputSize/2.

Link to this function

setNMSThreshold!(self, nms_threshold)

View Source

Raising version of setNMSThreshold/2.

Link to this function

setScoreThreshold!(self, score_threshold)

View Source

Raising version of setScoreThreshold/2.

Raising version of setTopK/2.