Commit f3b2a54b authored by narugo1992's avatar narugo1992
Browse files

dev(narugo): test skip

parent 9c691489
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,6 +18,6 @@ if __name__ == '__main__':
        (censor_areas(image, 'pixelate', areas, radius=12), 'pixelate'),
        (censor_areas(image, 'emoji', areas), 'emoji'),
        columns=2,
        figsize=(12, 8),
        figsize=(9.5, 6),
        autocensor=False,
    )
+0 −499

File deleted.

Preview size limit exceeded, changes collapsed.

+23 −0
Original line number Diff line number Diff line
from PIL import Image

from imgutils.operate import censor_areas
from plot import image_plot

if __name__ == '__main__':
    image = Image.open('genshin_post.jpg')
    areas = [
        (967, 143, 1084, 261),
        (246, 208, 331, 287),
        (662, 466, 705, 514),
        (479, 283, 523, 326)
    ]

    image_plot(
        (image, 'origin'),
        (censor_areas(image, 'blur', areas, radius=4), 'blur (radius=4)'),
        (censor_areas(image, 'blur', areas, radius=8), 'blur (radius=8)'),
        (censor_areas(image, 'blur', areas, radius=12), 'blur (radius=12)'),
        columns=2,
        figsize=(9.5, 6),
        autocensor=False,
    )
+23 −0
Original line number Diff line number Diff line
from PIL import Image

from imgutils.operate import censor_areas
from plot import image_plot

if __name__ == '__main__':
    image = Image.open('genshin_post.jpg')
    areas = [
        (967, 143, 1084, 261),
        (246, 208, 331, 287),
        (662, 466, 705, 514),
        (479, 283, 523, 326)
    ]

    image_plot(
        (image, 'origin'),
        (censor_areas(image, 'color', areas), 'color'),
        (censor_areas(image, 'color', areas, color='green'), 'color (green)'),
        (censor_areas(image, 'color', areas, color='#ffff00'), 'color (#ffff00)'),
        columns=2,
        figsize=(9.5, 6),
        autocensor=False,
    )
+23 −0
Original line number Diff line number Diff line
from PIL import Image

from imgutils.operate import censor_areas
from plot import image_plot

if __name__ == '__main__':
    image = Image.open('genshin_post.jpg')
    areas = [
        (967, 143, 1084, 261),
        (246, 208, 331, 287),
        (662, 466, 705, 514),
        (479, 283, 523, 326)
    ]

    image_plot(
        (image, 'origin'),
        (censor_areas(image, 'emoji', areas), 'emoji'),
        (censor_areas(image, 'heart', areas), 'heart'),
        (censor_areas(image, 'smile', areas), 'smile'),
        columns=2,
        figsize=(9.5, 6),
        autocensor=False,
    )
Loading