Как преобразовать изображение в мультфильм из командной строки?

Установите sysv-rc-conf, затем запустите его как root и убедитесь, что X на уровнях выполнения S 0 1 2 для wpa-ifupdown или просто введите sudo sysv-rc-conf --level S012 wpa-ifupdown on после установки.

1
задан 23 May 2017 в 15:39

1 ответ

Я нашел сценарий bash для imagemagick, чтобы сделать это Фред Вайнхаус.

Использование командной строки:

USAGE: cartoon [-p pattern] [-n numlevels] [-m method] [-e edgeamount] 
[-b brightness] [-s saturation] infile outfile

USAGE: cartoon [-h or -help]

-p ... pattern ...... segmentation pattern (shape); 0<=integer<=100;
..................... default=70
-n ... numlevels .... number of desired segmentation levels; integer>=2;
..................... default=6
-m ... method ....... edge method; 1 or 2; default=1
-e ... edgeamount ... amount of edges; float>=0; default=4
-b ... brightness ... brightness of cartoon; integer>=0; default=100
-s ... saturation ... saturation of cartoon; integer>=0; default=150

PURPOSE: To create a cartoon-like appearance to an image.

(больше на самом сайте). Что делает скрипт. .

(Optionally) applies a median filter to the image
Reduces the number of colors in the filtered image
Converts the original image to grayscale
(Optionally) applies a median filter to the grayscale image
Applies a gradient edge detector to the grayscale image
Thresholds the edge image to binary
Composites the edge image with the color reduced image

На его сайте есть образцы, но они не близки вашим примерам. Вы, вероятно, должны будете играть с настройками, чтобы он выглядел так, как выглядят ваши изображения.

5
ответ дан 23 May 2018 в 15:27

Другие вопросы по тегам:

Похожие вопросы: