.. _f-imagesegmentation: module ``ai.image_segmentation`` ================================ .. inheritance-diagram:: code_beatrix.ai.image_segmentation Short summary +++++++++++++ module ``code_beatrix.ai.image_segmentation`` Extracts objects from an image based on deep learning. :githublink:`%|py|5` Classes +++++++ +---------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +=======================================================================================+=======================================================================================================================+ | :class:`DLImageSegmentation ` | Segments an image. Inspired from `infer.py `_. ... | +---------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ Properties ++++++++++ +--------------------------------------------------------------------------------------+------------------------------+ | property | truncated documentation | +======================================================================================+==============================+ | :meth:`ModelFile ` | Returns the model file name. | +--------------------------------------------------------------------------------------+------------------------------+ Static Methods ++++++++++++++ +-----------------------------------------------------------------------------------------+-------------------------+ | staticmethod | truncated documentation | +=========================================================================================+=========================+ | :py:meth:`_new_size ` | Computes a new size. | +-----------------------------------------------------------------------------------------+-------------------------+ Methods +++++++ +---------------------------------------------------------------------------------------------+-------------------------------------------+ | method | truncated documentation | +=============================================================================================+===========================================+ | :py:meth:`__init__ ` | | +---------------------------------------------------------------------------------------------+-------------------------------------------+ | :py:meth:`_load_image ` | Loads an image as a :epkg:`numpy:array`. | +---------------------------------------------------------------------------------------------+-------------------------------------------+ | :py:meth:`_preprocess ` | Preprocesses the image before prediction. | +---------------------------------------------------------------------------------------------+-------------------------------------------+ | :meth:`plot ` | Displays the segmentation. | +---------------------------------------------------------------------------------------------+-------------------------------------------+ | :meth:`predict ` | Applies the model on features *X*. | +---------------------------------------------------------------------------------------------+-------------------------------------------+ Documentation +++++++++++++ .. automodule:: code_beatrix.ai.image_segmentation :members: :special-members: __init__ :show-inheritance: