Skip to content

开发计划讨论 #4

@hszcg

Description

@hszcg

设计方案讨论请见 #3

  • 定义接口, 其实就是两个函数encodeQR和decodeQR,参见 https://github.com/9sharp/qrcoder/blob/master/src/qrcoder.js
  • 准备好Test Case和Grunt Test Job,这个我稍后准备好
    • 基本想法是有两种Test Case
      • 一种是不包括压缩的部分,只考虑压缩图像的二维码encode和decode过程,数据应该完全一致,比如PSNR>99
      • 另一种是包括压缩的部分,考虑原始图像和decode之后的图像的差异,数据差异应该在可接受的范围内,客观指标可以是PSNR>20,主观指标可以再议
  • 第一版直接采用黑白二维码
    • Encoder就用我实现的JEPG + Base64 String + qr.js的方案,基本已实现 c3f096e
    • Decoder也已经实现,暂时只支持直接读取文件,大家可以尝试跑一下我写的Test Case

欢迎各位回复讨论~

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions