CLI Image Segmenter

A person stands in front of a whiteboard with some equations and diagrams drawn on it. In the corner, a thumbnail shows which parts of the image are classified as "person".

Using the Xnor C API, this sample processes any image file and produces a segmentation mask – a representation of the parts of an image that match a particular class. The model precisely identifies which pixels in an image are a particular kind of object, much like an automated version of the “Lasso” tool in many popular image editing programs.

Language

C

Location

xnor-sdk-<hardware-target>/samples/c/segmentation_mask_of_image_file_to_file.c

Dependencies

None

Compatible Xnor Models

All segmentation models

Example Usage

build/segmentation_mask_of_image_file_to_file ../test-images/person.jpg