Skip to content

mydansun/QrCode-Reader-Node.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QrCode-Reader-Node.js

QrCode Reader for Node.js

Find and identify the QRCode in the picture

JavaScript QRCode reader for Node.js

This is a port of LazarSoft / jsqrcode https://github.com/LazarSoft/jsqrcode

Local version

How to use?

node main.js

Online version (Suspended)

https://qr.api.onlyke.com/reader?url=[image_url]

A example: https://qr.api.onlyke.com/reader?url=https://github.com/mydansun/QrCode-Reader-Node.js/raw/master/test/test.jpg

The example image

Return data

Error

{
	"status":0,
	"error":"There are some errors"
}

Success

{
	"status": 1,
	"content": "The text of QR"
}

QrCode-Reader-Node.js

实现图片中的二维码识别,基于Node.js

找到并识别图片中的二维码

基于 LazarSoft / jsqrcode https://github.com/LazarSoft/jsqrcode

本地部署

如何使用

node main.js

在线版本(暂停使用)

https://qr.api.onlyke.com/reader?url=[图片地址]

一个例子: https://qr.api.onlyke.com/reader?url=https://github.com/mydansun/QrCode-Reader-Node.js/raw/master/test/test.jpg 样例图片

返回数据

识别错误

{
	"status":0,
	"error":"这里是错误信息"
}

识别成功

{
	"status": 1,
	"content": "这是二维码的文本内容"
}

About

QrCode Reader for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published