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 effectively the engineer uses imutils' multi-line text rendering capabilities to implement an image caption overlay system. The focus is specifically on proper usage of imutils.text functions (put_text and put_centered_text) to handle line breaks and text positioning.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses imutils.text module",
"description": "Imports and uses functions from the imutils.text module (specifically put_text and/or put_centered_text) rather than implementing line-break handling manually with cv2.putText in a loop.",
"max_score": 30
},
{
"name": "Regular text placement",
"description": "For mode='regular', uses imutils.text.put_text() to render multi-line text at the specified position with automatic line spacing, correctly passing the text parameter with embedded newline characters.",
"max_score": 25
},
{
"name": "Centered text placement",
"description": "For mode='centered', uses imutils.text.put_centered_text() to render the text centered both horizontally and vertically on the image canvas.",
"max_score": 25
},
{
"name": "Correct parameter mapping",
"description": "Correctly maps function parameters to the imutils text functions, including font_face, font_scale, color, and thickness. Handles the line_type parameter appropriately (either uses default or passes it explicitly).",
"max_score": 15
},
{
"name": "Image I/O handling",
"description": "Properly uses cv2.imread() to load the image, modifies it in-place by passing it to the imutils text functions, and saves the result with cv2.imwrite(). The image is correctly handled as a numpy array throughout.",
"max_score": 5
}
]
}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