Closed RexWzh closed 1 year ago
Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:
Coverage data is based on head (
7b60e86
) compared to base (2db7512
). Patch coverage: 100.00% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
# codes with same settings
exportqrcode(["Hello world!", "Hello Julia!"], fps=2, eclevel=Low())
# equivalently
codes = QRCode.(["Hello world!", "Hello Julia!"], eclevel=Low())
exportqrcode(["Hello world!", "Hello Julia!"], fps=2)
# codes with different settings
using QRCoders: penalty
codes = [QRCode("Hello world!", mask = i) for i in 0:7]
qrcode.(codes) .|> penalty
# [425, 485, 342, 318, 495, 562, 368, 415]
exportqrcode(codes)
BTW, there are two keywords should be replaced in version 2.0.0.
exportqrcode( message::AbstractString
, path::AbstractString = "qrcode.png"
; eclevel::ErrCorrLevel = Medium()
, version::Int = 0
, mode::Mode = Numeric()
, mask::Int = -1
, width::Int = 4
, compact::Bool = false
, targetsize::Int = 0
, pixels::Int = 160)
compact
is equivalent to width=0
, and targetsize
can be replaced by pixels
while the latter is easier to understand.
I use
version
,mode
,eclevel
,mask
,message
andwidth
to represents a QR code.In QRDecoders, it is
QRInfo
(immutable structure) that stores the information. However, the white-border(width) of a QR code is uncertain in general, so we might keep bothQRInfo
andQRCode
.