在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):rohrlaf/SlaRle.js开源软件地址(OpenSource Url):https://github.com/rohrlaf/SlaRle.js开源编程语言(OpenSource Language):JavaScript 80.4%开源软件介绍(OpenSource Introduction):SlaRle.jsA JavaScript-based localization and decoding library for EAN-13 barcodes in HTML5SlaRle (SLA - Scanline-Algorithm, RLE - Run-Length-Encoding) is a pure JavaScript implementation for locating barcode regions in images and decoding EAN-13 barcodes. This algorithm was implemented during the work for my master's thesis. The aim was to create an app using HTML5 with client-side barcode recognition functionality. As mentioned above, SlaRle consists of two parts: localization and decoding. Localization is based on an algorithm from Stern [1] with enhanced parameterization. Decoding follows the description from O'Sullivan et al. [2] with the additional feature of scanline movement if a scan wasn't successful. SlaRle is far from perfect, but tries to find a compromise between performance and accuracy in scanning EAN-13 barcodes. Therefore, only horizontal barcodes will be detected due to the scanline algorithm that starts from the top and ends at the bottom. During the implementation, the algorithm was tested against the 1055 images from Muenster BarcodeDB [3]. Due to the horizontal barcode limitation, some images needed to be rotated from [3]: 167 images by 90° and 32 by 180°. After this modification, SlaRle reached the following results:
DemoPlease check out the demo at: http://bobbyjay.github.io/SlaRle.js/ For taking a photo or selecting an existing photo (depends on the mobile browser) click "Load Image". This will load your image into the canvas at the bottom scaled with the maximum resolution set in the input field above. After the image is loaded the "Scan" button will trigger SlaRle. Limitations of SlaRle
LicenseMIT License Future work
Other JS barcode readerHere is a list of other interesting barcode reading algorithms implemented in JavaScript:
References
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论