vuba.Solidity
- class vuba.Solidity(min=None, max=None)[source]
Filter contours by solidity based on a lower or upper limit, or both.
- Parameters
min (int or float) – Lower solidity limit to filter contours.
max (int or float) – Upper solidity limit to filter contours.
- Returns
filter – Class object with
__call__
method that filters contours based on the pre-defined solidity limits provided at initiation.- Return type
Notes
Note that here the solidity of a contour is based on its area relative to its corresponding convex hull.
See also
Methods
__init__
([min, max])