我正在尝试确定图像是否平方(像素化)。
我听说过使用 numpy 或 scipy 进行二维傅里叶变换,但它有点复杂。
目标是确定由于这样的不良压缩而产生的平方区域的数量(img a):
python image pixel
image ×1
pixel ×1
python ×1