CronShot 中间件 cronshot-imagemagick
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/yahoo/cronshot-imagemagick
- 官方下载: https://github.com/yahoo/cronshot-imagemagick
软件介绍
cronshot-imagemagick 是 cronshot 中间件,通过 gm 来操作和保存 ImageMagick 处理的图片。
安装
npm install cronshot-imagemagick
示例
var cronshot = require('cronshot'),
middleware = {
'imagemagick': require('cronshot-imagemagick')
};
// Image Magick Example
// --------------------
// Takes a screenshot of sports.yahoo.com,
// and converts the screenshot to be a transparent image using Image Magick
// Image Magick example
cronshot.startCapturing({
// The webpage URL that you would like to take a screenshot of
'url': 'http://sports.yahoo.com',
// The local path where you would like to save the image
'path': __dirname,
// Only takes one screenshot
'cronPattern': false,
// What middleware functions to use each time a screenshot is taken
'saveMiddleware': [{
// Function that does all the Image Magick stuff
'middleware': middleware.imagemagick,
'options': {
'gmCommands': [{
'method': 'trim',
'args': []
}, {
'method': 'transparent',
'args': ['#FFFFFF']
}]
}
}]
}, function(err) {
// optional callback function once all screenshots have been taken
});白话机器学习算法
[新加坡] 黄莉婷、[新加坡] 苏川集 / 武传海 / 人民邮电出版社 / 2019-2 / 49.00元
与使用数学语言或计算机编程语言讲解算法的书不同,本书另辟蹊径,用通俗易懂的人类语言以及大量有趣的示例和插图讲解10多种前沿的机器学习算法。内容涵盖k均值聚类、主成分分析、关联规则、社会网络分析等无监督学习算法,以及回归分析、k最近邻、支持向量机、决策树、随机森林、神经网络等监督学习算法,并概述强化学习算法的思想。任何对机器学习和数据科学怀有好奇心的人都可以通过本书构建知识体系。一起来看看 《白话机器学习算法》 这本书的介绍吧!
随机密码生成器
多种字符组合密码
html转js在线工具
html转js在线工具
