上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 28 下一页
摘要: const tinify = require("tinify"); tinify.key = "本人的appkey"; const fs=require('fs'); const glob=require('glob'); const mkdir=require('./utils/mkdir'); const srcDir='./src/'; //被搜索的资源 let sourceFile... 阅读全文
posted @ 2019-07-17 19:08 无工时代 阅读(701) 评论(0) 推荐(0)
摘要: /** code 转tokens* *///判断字符function isEqual(test,code,pos,end) { if(pos<end&&code.charCodeAt(pos-1)!==92&&test code.substr(pos,test.length)){ return tr 阅读全文
posted @ 2019-07-09 19:11 无工时代 阅读(384) 评论(0) 推荐(0)
摘要: //js语法树节点类型-babel-eslint9const typeMap= { 'File':function (node) { return [node.program]; }, 'Program':function (node) { return [node.body] }, 'Block' 阅读全文
posted @ 2019-07-07 15:56 无工时代 阅读(893) 评论(0) 推荐(0)
摘要: //js语法树节点类型-babylon@6.18const typeMap= { 'CommentBlock':function (node) {}, 'CommentLine':function (node) {}, 'Literal':function (node) {}, 'Expressio 阅读全文
posted @ 2019-07-06 19:04 无工时代 阅读(871) 评论(0) 推荐(0)
摘要: const fs = require("fs")const PNG = require('pngjs').PNG;function getPixelsSync(filename){ return new Promise(function (resolve,reject) { fs.createReadStream(filename) .pipe(new ... 阅读全文
posted @ 2019-07-02 11:25 无工时代 阅读(353) 评论(0) 推荐(0)
摘要: 颜色分类,之后补充图片成矩形,找出左上角点,之后找出{ r: 212, c: 41, w: 78, h: 80 };r为行y,c为列x,w为宽度,h为高度; 输出:0为背景,1表示文字部分,2为杂色 文字:我 阅读全文
posted @ 2019-06-27 17:55 无工时代 阅读(329) 评论(0) 推荐(0)
摘要: 逻辑原理: 1、找出图片种最多的一种颜色,将它的相似颜色和它分类成0; 2、找出剩下的颜色种的最多一种颜色,将它的相似颜色和它分类成1; 3、找出剩下的颜色种的最多一种颜色,将它的相似颜色和它分类成2; 如果类别限制为maxTagNum,将剩下的颜色都分类成maxTagNum 阅读全文
posted @ 2019-06-27 15:20 无工时代 阅读(473) 评论(0) 推荐(0)
摘要: Matrix,Fraction,Point,Line 阅读全文
posted @ 2019-06-27 14:11 无工时代 阅读(475) 评论(0) 推荐(0)
摘要: https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1561552141135&di=170679fcee4e69499f94b5167c8e474a&imgtype=0&src=http%3A%2F%2Fb-ssl 阅读全文
posted @ 2019-06-26 18:35 无工时代 阅读(295) 评论(0) 推荐(0)
摘要: //回行扫描函数 left、top、right、bottom function scanRound(x,y,w,h,isOpenFunc,callfunc) { const map={} function isOpen(x,y) { if(map[x+','+y]){ return 0 } if(x=w||... 阅读全文
posted @ 2019-06-26 11:18 无工时代 阅读(274) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 28 下一页