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-2/

{
  "context": "This criteria evaluates how well the engineer uses the imutils package to adjust brightness and contrast in images. The focus is on whether they identify and correctly use the adjust_brightness_contrast function from imutils rather than implementing adjustments manually or using lower-level OpenCV functions.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses imutils import",
      "description": "The solution imports the imutils package to access its convenience functions",
      "max_score": 10
    },
    {
      "name": "Uses adjust_brightness_contrast",
      "description": "The solution calls imutils.adjust_brightness_contrast() function instead of implementing brightness/contrast adjustment manually or using cv2.addWeighted directly",
      "max_score": 40
    },
    {
      "name": "Correct brightness parameter",
      "description": "The brightness parameter is passed correctly to adjust_brightness_contrast with the expected semantics (0 = no change, positive = brighter, negative = darker)",
      "max_score": 15
    },
    {
      "name": "Correct contrast parameter",
      "description": "The contrast parameter is passed correctly to adjust_brightness_contrast with the expected semantics (0 = no change, positive = more contrast, negative = less contrast)",
      "max_score": 15
    },
    {
      "name": "Correct function signature",
      "description": "The adjust_brightness_contrast function is called with the correct signature: adjust_brightness_contrast(image, brightness, contrast)",
      "max_score": 10
    },
    {
      "name": "Image I/O integration",
      "description": "The solution properly integrates adjust_brightness_contrast with OpenCV's imread/imwrite for loading and saving images",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-imutils

tile.json