0.2.0 • Published 7 years ago

chohuku v0.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Chohuku

【Input】 Image path -> Resize(32px) + Grey scalize -> hash -> Hash value 【Output】

Detail of the algorithm

Iconfinder: 画像データの重複チェックのアルゴリズム - ワザノバ | wazanova

Installation

npm i chohuku -S

Usage

const Chohuku = require('chohuku');
const chohuku = new Chohuku('test.jpg');

// Hexadecimal
chohuku.getHash().then(hash => {
  console.log(hash);
  // c080324818f824e0
});

# Binarydecimal
chohuku.getHash(2).then(hash => {
  console.log(hash);
  // 1100000010000000001100100100100000011000111110000010010011100000
});
0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago