or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/imutils@0.5.x
tile.json

tessl/pypi-imutils

tessl install tessl/pypi-imutils@0.5.0

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.

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%

rubric.jsonevals/scenario-4/

{
  "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
    }
  ]
}