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.
Overall
score
91%
dlib rectangle to bounding box conversion
Imports imutils.face_utils
100%
100%
Uses rect_to_bb function
100%
100%
Single rectangle conversion
100%
100%
Multiple rectangles conversion
100%
100%
Brightness and contrast adjustment
Uses imutils import
100%
100%
Uses adjust_brightness_contrast
100%
100%
Correct brightness parameter
100%
100%
Correct contrast parameter
100%
100%
Correct function signature
100%
100%
Image I/O integration
100%
70%
Basic image rotation (rotate)
Uses imutils.rotate
0%
100%
Reads image correctly
0%
100%
Handles angle parameter
0%
100%
Custom center support
0%
100%
Scaling support
0%
100%
Saves output image
0%
100%
Multi-line text rendering with line breaks
Uses imutils.text module
60%
100%
Regular text placement
100%
100%
Centered text placement
0%
100%
Correct parameter mapping
100%
100%
Image I/O handling
100%
100%
Recursive image file discovery (list_images)
Uses list_images
100%
100%
Handles generator correctly
100%
100%
Uses contains parameter
100%
100%
Passes basePath correctly
100%
100%
Returns correct structure
100%
100%
Contour labeling and visualization
Contour extraction
100%
100%
Contour sorting
0%
100%
Contour labeling
0%
0%
Proper iteration
100%
100%
OpenCV function discovery (find_function)
Uses imutils.find_function
100%
100%
Handles search results
100%
100%
Case-insensitive search
100%
100%
Correct function signature
100%
100%
BGR to RGB conversion for Matplotlib (opencv2matplotlib)
Uses opencv2matplotlib function
100%
100%
Imports imutils correctly
100%
100%
Conditional color conversion
100%
0%
Uses cv2.imread
100%
100%
Handles file errors
100%
100%
Enhanced RootSIFT descriptor with Hellinger kernel
RootSIFT instantiation
0%
100%
SIFT detector usage
0%
100%
RootSIFT compute method
0%
100%
Descriptor matching setup
100%
100%
Ratio test implementation
100%
100%
Match visualization
100%
100%
OpenCV version detection (is_cv2, is_cv3, is_cv4)
Uses grab_contours
100%
100%
Uses version detection
0%
50%
Correct or_better usage
0%
0%
Proper imports
100%
100%
Install with Tessl CLI
npx tessl i tessl/pypi-imutils