Find Objects

Find objects within the image.

find_objects(img, mask, device, debug=None)

returns device, objects, object hierarchy

Original image

Screenshot

Input binary mask

Screenshot

from plantcv import plantcv as pcv

# Identify objects (plant material) in an image, all objects regardless of hierarchy are filled (e.g. holes between leaves).
device, id_objects, obj_hierarchy = pcv.find_objects(img, mask, device, debug="print")

Image with contours highlighted

Screenshot