JuliaImages / QRCoders.jl

Creating QR Codes within Julia
https://juliaimages.org/QRCoders.jl/
MIT License
67 stars 11 forks source link

Plot images #45

Closed RexWzh closed 1 year ago

RexWzh commented 1 year ago

The best approximation in version 20 is like qrcode The modify-rate is 0.013(95 pixels from an 83x83=6889 image).

Note: it might take a few seconds to scan, one can try the "scan from image" option or use the online QR-code reader instead.

codecov[bot] commented 1 year ago

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (88bddea) compared to base (2c70b52). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #45 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 10 10 Lines 616 684 +68 ========================================= + Hits 616 684 +68 ``` | [Impacted Files](https://codecov.io/gh/JuliaImages/QRCoders.jl/pull/45?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaImages) | Coverage Δ | | |---|---|---| | [src/encode.jl](https://codecov.io/gh/JuliaImages/QRCoders.jl/pull/45/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaImages#diff-c3JjL2VuY29kZS5qbA==) | `100.00% <100.00%> (ø)` | | | [src/export.jl](https://codecov.io/gh/JuliaImages/QRCoders.jl/pull/45/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaImages#diff-c3JjL2V4cG9ydC5qbA==) | `100.00% <100.00%> (ø)` | | | [src/styles/locate.jl](https://codecov.io/gh/JuliaImages/QRCoders.jl/pull/45/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaImages#diff-c3JjL3N0eWxlcy9sb2NhdGUuamw=) | `100.00% <100.00%> (ø)` | | | [src/styles/plotimage.jl](https://codecov.io/gh/JuliaImages/QRCoders.jl/pull/45/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaImages#diff-c3JjL3N0eWxlcy9wbG90aW1hZ2Uuamw=) | `100.00% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaImages). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaImages)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

RexWzh commented 1 year ago
Benchmark results for version 40. version singlemask cost diff num & rate
40 false 254.053 ms (1779159 allocations: 200.27 MiB) 388 & 1.497
40 true 29.580 ms (223210 allocations: 26.39 MiB) 386 & 1.489

Note: the keyword singlemask is useful only when the QR code contains little free bits and too much message.


Notes for the function imageinqrcode(137 lines).