加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

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

发布时间:2020-12-13 14:13:21 所属栏目:PHP教程 来源:网络整理
导读:我很好奇 – 有可能在 PHP中使用: 1)将图像文件发送到服务器 2)过程图像=检测边缘并基于边缘创建简单的笔划 3)将文件保存在服务器上/发送到用户的浏览器/等等 这是一些“样本”文件; P(你可以看到它不是使用任何边缘检测启用的程序,而是手工 – 只是作为一
我很好奇 – 有可能在 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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读