A 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.
91
{
"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
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-imutilsevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10