tessl install tessl/pypi-imutils@0.5.0A series of convenience functions to make basic image processing functions such as translation, rotation, resizing, skeletonization, displaying Matplotlib images, sorting contours, detecting edges, and much more easier with OpenCV and both Python 2.7 and Python 3.
Agent Success
Agent success rate when using this tile
91%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.34x
Baseline
Agent success rate without this tile
68%
{
"context": "This evaluation criteria assesses how well the engineer uses the imutils package's version detection and compatibility functions (is_cv2, is_cv3, is_cv4, grab_contours) to handle OpenCV version differences correctly.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses grab_contours",
"description": "The find_and_sort_objects function uses imutils.grab_contours() to extract contours from cv2.findContours() result in a version-agnostic way.",
"max_score": 40
},
{
"name": "Uses version detection",
"description": "The get_version_report function uses imutils version detection functions (is_cv2, is_cv3, and/or is_cv4) to determine OpenCV version capabilities.",
"max_score": 30
},
{
"name": "Correct or_better usage",
"description": "When checking for 'supports_modern_features' (version 3.x or higher), correctly uses the or_better parameter with is_cv3(or_better=True) or equivalent logic.",
"max_score": 20
},
{
"name": "Proper imports",
"description": "Imports imutils and uses its functions directly (e.g., 'import imutils' and 'imutils.grab_contours()' or 'from imutils import grab_contours').",
"max_score": 10
}
]
}