Commit ac7e4f2c authored by narugo1992's avatar narugo1992
Browse files

dev(narugo): update new demo

parent a4bdc503
Loading
Loading
Loading
Loading
+0 −526

File deleted.

Preview size limit exceeded, changes collapsed.

+3 −3
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ def _open_face_detect_model(level: str = 's', version: str = 'v1.3'):


def detect_faces(image: ImageTyping, level: str = 's', version: str = 'v1.3', max_infer_size=640,
                 conf_threshold: float = 0.45, iou_threshold: float = 0.7) \
                 conf_threshold: float = 0.25, iou_threshold: float = 0.7) \
        -> List[Tuple[Tuple[int, int, int, int], str, float]]:
    """
    Overview:
@@ -48,11 +48,11 @@ def detect_faces(image: ImageTyping, level: str = 's', version: str = 'v1.3', ma
    :param level: The model level being used can be either `s` or `n`.
        The `n` model runs faster with smaller system overface, while the `s` model achieves higher accuracy.
        The default value is `s`.
    :param version: Version of model, default is ``v1``. Available versions are ``v0`` and ``v1``.
    :param version: Version of model, default is ``v1.3``. Available versions are ``v0``, ``v1`` and ``v1.3``.
    :param max_infer_size: The maximum image size used for model inference, if the image size exceeds this limit,
        the image will be resized and used for inference. The default value is `640` pixels.
    :param conf_threshold: The confidence threshold, only detection results with confidence scores above
        this threshold will be returned. The default value is `0.45`.
        this threshold will be returned. The default value is `0.25`.
    :param iou_threshold: The detection area coverage overlap threshold, areas with overlaps above this threshold
        will be discarded. The default value is `0.7`.
    :return: The detection results list, each item includes the detected area `(x0, y0, x1, y1)`,