上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 28 下一页
摘要: //js语法树节点类型-babylon@6.18const typeMap= { 'CommentBlock':function (node) {}, 'CommentLine':function (node) {}, 'Literal':function (node) {}, 'Expressio 阅读全文
posted @ 2019-07-06 19:04 无工时代 阅读(853) 评论(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 无工时代 阅读(338) 评论(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 无工时代 阅读(311) 评论(0) 推荐(0)
摘要: 逻辑原理: 1、找出图片种最多的一种颜色,将它的相似颜色和它分类成0; 2、找出剩下的颜色种的最多一种颜色,将它的相似颜色和它分类成1; 3、找出剩下的颜色种的最多一种颜色,将它的相似颜色和它分类成2; 如果类别限制为maxTagNum,将剩下的颜色都分类成maxTagNum 阅读全文
posted @ 2019-06-27 15:20 无工时代 阅读(448) 评论(0) 推荐(0)
摘要: Matrix,Fraction,Point,Line 阅读全文
posted @ 2019-06-27 14:11 无工时代 阅读(462) 评论(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 无工时代 阅读(283) 评论(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 无工时代 阅读(266) 评论(0) 推荐(0)
摘要: app.js 特征函数 makeFeatures.js 配置文件,定义了分类名称、训练集位置 config.js 入口工具,存在了bayes公式相关运算 utils/Bayes.js 每个文件都有特征,将特征组合成矩阵 单个特征存在的情况,属于类别的概率,getFeaPosInTag.js 找出每个 阅读全文
posted @ 2019-06-21 18:27 无工时代 阅读(367) 评论(0) 推荐(0)
摘要: 已上传到npm,NPM包地址: https://www.npmjs.com/package/exec-mathexpress //运行demo 阅读全文
posted @ 2019-06-19 18:52 无工时代 阅读(10405) 评论(0) 推荐(1)
摘要: //app3.js//给less加上webkit前缀const glob=require('glob');const autoprefixer = require('autoprefixer')const postcss = require('postcss')const fs = require('fs')const syntax = require('postcss-less');const... 阅读全文
posted @ 2019-06-17 23:11 无工时代 阅读(488) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 28 下一页