image_utils¶
Module Contents¶
Dominant color class |
|
|
|
|
- gaussianBlur(image, blurRadius=18, brightFactor=1, blurPicSize=None)¶
- fromqpixmap(im: PyQt5.QtGui.QImage | PyQt5.QtGui.QPixmap)¶
- Parameters:
im – QImage or PIL ImageQt object
- class DominantColor¶
Dominant color class
- classmethod getDominantColor(imagePath)¶
extract dominant color from image
Parameters¶
- imagePath: str
image path
Returns¶
- r, g, b: int
gray value of each color channel
- static rgb2hsv(rgb)¶
convert rgb to hsv
- static hsv2rgb(h, s, v)¶
convert hsv to rgb
- static colorfulness(r: int, g: int, b: int)¶