【发布时间】:2019-08-25 18:39:04
【问题描述】:
此链接中的最佳答案How to pixelate a square image to 256 big pixels with python? 使用PIL 对图像进行像素化。将图像从PIL 转换为cv2.Mat 是可能的,但我不允许使用其他库,而且我找不到任何使用opencv 的好方法。
有没有办法只在 Python 中使用OpenCV 库来像素化图像?任何示例图像都可以。非常感谢我可以控制以供以后调整的像素大小参数的解决方案。
【问题讨论】:
标签: python opencv image-processing pixelate