我很好奇 - 是否有可能在 PHP 中实现:
1) 发送图像文件到服务器 2)处理图像=检测边缘并根据边缘创建简单的笔画 3)在服务器上保存文件/将其发送到用户的浏览器/任何
这是一些“示例”文件;P(如您所见,它不是使用任何启用边缘检测的程序制作的,而是手工制作的 - 仅作为示例):
最佳答案
如果可以使用ImageMagick , 有 --charcoal
filter :
The charcoal effect is meant to simulate artist's charcoal sketch of the given image.
The "-charcoal" operator is in some respects similar to edge detection transforms used by Computer Vision. Basically it tries to convert the major borders and edges of object in the image into pencil and charcoal shades.
The one argument is supposed to represent the thickness of the edge lines.
ImageMagick 示例手册展示了另一种方法,其结果看起来更好:
Artist Charcoal Sketch of Image
关于php - 在 PHP 中创建基于边缘检测的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4058224/