Internal feature
InternalFeature
Bases: InternalRegion
, IFeature
Source code in src/officialeye/_internal/template/internal_feature.py
get_feature_class()
Returns class of feature, or None if the feature does not have a class.
Source code in src/officialeye/_internal/template/internal_feature.py
interpret_image(img)
Takes an image and runs the interpretation method defined in the corresponding feature class. Assumes that the feature class is present.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
img | ndarray | The image which should be passed to the intepretation method. | required |
Returns:
Type | Description |
---|---|
FeatureInterpretation | The result of running the interpretation method on the image. |