pythonium

This commit is contained in:
Jörn-Michael Miehe 2022-10-10 02:15:47 +00:00
parent 2e6daa9da3
commit b6e9ade1b2

View file

@ -97,7 +97,7 @@ async def get_picture_for_day(
fill=txt_color,
)
if not (bbox := txt_layer.getbbox()) is None:
if (bbox := txt_layer.getbbox()) is not None:
mean = np.mean(img.crop(bbox).getdata(), axis=0)
txt_color = tuple(int(val) for val in mean)