CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-imutils

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

1.33x
Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "This evaluation criteria assesses how well the engineer uses the imutils package, specifically the opencv2matplotlib() function, to solve the image visualization problem. The focus is on proper usage of imutils for color format conversion when displaying OpenCV images in Matplotlib.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses opencv2matplotlib function",
      "description": "Uses imutils.opencv2matplotlib() to convert BGR images to RGB format for Matplotlib display",
      "max_score": 50
    },
    {
      "name": "Imports imutils correctly",
      "description": "Correctly imports imutils or specifically imports opencv2matplotlib from imutils",
      "max_score": 10
    },
    {
      "name": "Conditional color conversion",
      "description": "Only applies opencv2matplotlib() to color images, not grayscale images (checks if image has 3 channels before conversion)",
      "max_score": 20
    },
    {
      "name": "Uses cv2.imread",
      "description": "Uses cv2.imread() to load images from file paths",
      "max_score": 10
    },
    {
      "name": "Handles file errors",
      "description": "Properly checks if the image was loaded successfully and raises FileNotFoundError when appropriate",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-imutils

tile.json