Giter VIP home page Giter VIP logo

ayimg's Introduction

aYimg

usage

Install dependencies:

npm i ayimg --save

Test:

npm i 
npm run start

run

import Ayimg from 'ayimg'
const ayimg = new Ayimg()
ayimg.init(imgObj or imgurl, domELment).then(() => {
  ayimg.grayScale().show()
})

如果你不想将处理后的图像展示,那么你可以不输入domELment,canvas不会挂载到dom上 ###如何运行? 如果是在客户点使用它,将传入的img输出到canvas中,通过对修改imagedata,实现图像处理相关的算法,挂载到对应的节点上,你可以通过控制节点的渲染来改变canvas大小,如果是在node端使用它,你需要配置好node canvas

支持那些方法?

  • 灰化
  • 二值化
  • 边缘提取
  • 滤波
  • 开闭运算
  • 降噪
  • 垂直水平方向投影
  • ...

详细 api

更多例子?

...

ayimg's People

Contributors

takeern avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

ayimg's Issues

边缘识别问题

您好 我又来了 边缘识别是怎么实现的呢 比如 一张照片 和 随便拍摄的物体 怎么能够识别出是一个长方形的东西呢 如果可以的能留下您的联系方式吗

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.