goishi
Goishi
An experimental QR Code locator/extractor library written purely in Crystal. It works on top of Goban, a QR Code encoder/decoder library, and takes a matrix of each source image pixel to locate and extract QR Code symbols in the image.
The library is already capable of locating/extracting regular QR Code symbols, however the implementation is not complete and may fail with some edge cases. The goal is to finish the implementation for regular QR Code and then expand it to support other QR Code types such as Micro QR and rMQR Code.
Installation
-
Add the dependency to your
shard.yml
:dependencies: goishi: github: soya-daizu/goishi
-
Run
shards install
Usage
See examples/extract_test.cr
for the usage with stumpy_png to read, locate/extract, and decode QR Codes in the image.
Contributing
- Fork it (https://github.com/your-github-user/goishi/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- soya_daizu - creator and maintainer
goishi
- 0
- 0
- 0
- 0
- 4
- over 1 year ago
- March 4, 2023
MIT License
Sun, 22 Dec 2024 21:54:00 GMT