在PHP中创建基于边缘检测的图像

我很好奇 – 有可能在 PHP中使用:

1)将图像文件发送到服务器
2)过程图像=检测边缘并基于边缘创建简单的笔划
3)将文件保存在服务器上/发送到用户的浏览器/等等

这是一些“样本”文件; P(你可以看到它不是使用任何边缘检测启用的程序,而是手工 – 只是作为一个例子):

http://i51.tinypic.com/5vzo0x.jpg
谢谢!

如果你可以使用 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

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...