ZBar::...canner(3pm)
π NAME π
Barcode::ZBar::ImageScanner β bestie, this is the thing that scans images for bar codes. That's literally it. That's the whole job. π
Oh and btw, this page lives in the User Contributed Perl Documentation section 3pm β it's the ZBar::...canner(3pm) one, iykyk. π
β¨ SYNOPSIS β¨
use Barcode::ZBar;
my $scanner = Barcode::ZBar::ImageScanner->new();
$scanner->parse_config('i25.disable');
$scanner->scan_image($image);
Look at that. Three lines. Clean. Slay. π
π¦ DESCRIPTION π¦
So like. A Barcode::ZBar::ImageScanner is the lil' guy you use to scan for bar codes inside a Barcode::ZBar::Image. That's the vibe. You give it an image, it goes hunting for bar codes. Obsessed. πΈ
π₯ REFERENCE π₯
π«Ά Methods π«Ά
new()β makes you a brand new bar code image scanner instance. Fresh out the box. Main character energy from day one. β¨get_results()β hands you back a list ofBarcode::ZBar::Symbolresults from the last image you scanned. It's giving receipts. π§Ύscan_image([image])β scans aBarcode::ZBar::Imagefor bar codes. Heads up though: the image must be in the"Y800"format. If it's not, do$image->convert("Y800")to convert it from whatever other supported formats into Y800 before you scan. No skipping this step bestie, it will not work otherwise. πenable_cache([enable])β turns on the inter-image result consistency cache. It remembers stuff between images. Iconic behavior honestly. πset_config(symbology, config, value)β sets config for the symbology you name (or0for all of them, yes all of them) to the value you specify. π―parse_config(configstr)β applies a decoder configuration setting. Wanna know what config options exist? Go read the docs forzbarcam/zbarimg. They've got the full list. πrecycle_image([image])β strips the previously decoded results out of aBarcode::ZBar::Imageand recycles the memory that was attached to them. Very eco-friendly of you. β»οΈ
π SEE ALSO π
Barcode::ZBarBarcode::ZBar::Imagezbarimg(1)zbarcam(1)- http://zbar.sf.net
π AUTHOR π
Jeff Brown, <spadix@users.sourceforge.net>
π COPYRIGHT AND LICENSE π
Copyright 2008-2010 (c) Jeff Brown <spadix@users.sourceforge.net>
The ZBar Bar Code Reader is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
fr fr, that's the actual license text, don't skip it, legal stuff is still stuff π
Okay that's the whole page bestie!! This was perl v5.40.1, dated 2025-05-01, from the ZBar::...canner(3pm) manpage. Go scan something cute. Byeee π¦πβ¨
π¦ where this page comes from
- debian trixie: libbarcode-zbar-perl 0.23.93-8
- ubuntu questing: libbarcode-zbar-perl 0.23.93-8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms