mirror of
https://github.com/RoCry/blozi-etag.git
synced 2025-12-06 09:02:49 +08:00
11 lines
327 B
Python
11 lines
327 B
Python
from PIL.Image import Dither # noqa
|
|
|
|
from tools.utils import image2hex, load_test_image
|
|
|
|
|
|
if __name__ == '__main__':
|
|
# print(image2hex(load_test_image('test-01.bmp')))
|
|
|
|
print(image2hex(load_test_image('mao.bmp'), dither=Dither.FLOYDSTEINBERG))
|
|
print(image2hex(load_test_image('car-sign.png'), dither=Dither.NONE))
|