Skip to content

Human Detection example#

What it does#

This example demonstrates how to use the human detector to get a human bbox (bounding box).

Prerequisites#

This example assumes that you have already read the FaceEngine Handbook (or at least have it somewhere nearby for reference) and know some core concepts, like memory management, object ownership, and life-time control. This sample will not explain these aspects in detail.

Example walkthrough#

To get familiar with FSDK usage and common practices, please go through example_extraction first.

How to run#

Use the following command to run the example.

./example_human_detection <some_image.ppm>

Example output#

detectHumanExample. Detect results for 0 image:
    detected: 1 humans
    next human:
        Rect:
        x = 121
        y = 2
        w = 462
        h = 543
        score = 0.997865
detectHumanExample. Detect results for 1 image:
    detected: 1 humans
    next human:
        Rect:
        x = 121
        y = 2
        w = 462
        h = 543
        score = 0.997865
detectHumanExample. Redetect results for image[0]:
    next human:
        Rect:
        x = 85
        y = 19
        w = 502
        h = 490
        score = 0.997068
detectHumanExample. Redetect results for image[1]:
    next human:
        Rect:
        x = 85
        y = 19
        w = 502
        h = 490
        score = 0.997068

Back to top