Re: Name for barcode-reading module?

2009-02-23 Thread David Nicol
http://www.barcodehq.com/primer.html#READERS seems to indicate that
decoder would be the term to use.

On Sat, Feb 21, 2009 at 11:58 AM, sawyer x xsawy...@gmail.com wrote:
 I think Barcode::OCR depicts by the name exactly what it does. It does OCR
 of barcodes. Perfect. The rest I would have to open to read what they do
 exactly. Barcode::OCR is sself explanatory, IMHO.

But doing OCR of barcodes is ambiguous.  Optical character
recognition often captures style info as well as character sequences,
at least the one that came with my scanner a few years ago does, and
very well too -- scanning magazine articles into pdfs resulted in
images that looked just like the pages, except that the text in the
middle of the page was clipboardable while towards the spine, where
things got skewed, there was a big vertical image -- I was, and
remain, impressed.  Based on that as an experience with OCR, I might
expect Barcode::OCR to somehow allow barcodes to pass through an OCR
process intact, perhaps by adjsuting image compression parameters
within their boundaries.

I think Barcode::Decoder depicts by the name exactly what it does. It
decodes barcodes. Perfect. The rest I would have to open to read what
they do exactly. Barcode::Decoder is sself explanatory, IMHO.


-- 
Freedom's colors are red, white and black and blue.


Re: Name for barcode-reading module?

2009-02-21 Thread sawyer x
I think Barcode::OCR depicts by the name exactly what it does. It does OCR
of barcodes. Perfect. The rest I would have to open to read what they do
exactly. Barcode::OCR is sself explanatory, IMHO.

On Tue, Feb 17, 2009 at 8:21 PM, Smylers smyl...@stripey.com wrote:

 Keith Ivey writes:

  Okay, it seems like Barcode is the best namespace for it.  ...  the
  module is essentially OCR for barcodes
 
  Barcode::Reader ... could give people the idea that it's for use with
  barcode readers ... Right now, I'm leaning toward Barcode::Finder, or
  maybe Barcode::Recognizer.  Anyone have any better ideas?

 Barcode::OCR?

 Barcode::Decode or ::Decoder?

 Barcode::Interpreter?

 Barcode::Read?

 Barcode::Image2Numbers?

 Smylers



Re: Name for barcode-reading module?

2009-02-18 Thread David Cantrell
On Tue, Feb 17, 2009 at 01:04:55PM -0500, Keith Ivey wrote:

 Okay, it seems like Barcode is the best namespace for it.  As Bill says, 
 the module is essentially OCR for barcodes ...
 
 Right now, I'm leaning toward Barcode::Finder, or maybe 
 Barcode::Recognizer.  Anyone have any better ideas?

Of those, Recognizer is better IMO, because you're actually aiming to
*understand* the barcode and turn it into a number, just like OCR turns
an image into a bunch of characters, and not merely find the part of the
image that contains the barcode.

-- 
David Cantrell | Godless Liberal Elitist

Vegetarian: n: a person who, due to malnutrition caused by
  poor lifestyle choices, is eight times more likely to
  catch TB than a normal person


Re: Name for barcode-reading module?

2009-02-17 Thread Keith Ivey
Okay, it seems like Barcode is the best namespace for it.  As Bill says, 
the module is essentially OCR for barcodes, so if there were a good 
space for OCR-related modules it might fit there, but there doesn't seem 
to be one.


I've thought about Barcode::Reader, but that could give people the idea 
that it's for use with barcode readers, when the whole point is that it 
allows you to use images of barcodes created by a camera or scanner 
*without* having a barcode reader.


Right now, I'm leaning toward Barcode::Finder, or maybe 
Barcode::Recognizer.  Anyone have any better ideas?


--
Keith C. Ivey ke...@iveys.org
Washington, DC


Re: Name for barcode-reading module?

2009-02-17 Thread Smylers
Keith Ivey writes:

 Okay, it seems like Barcode is the best namespace for it.  ...  the
 module is essentially OCR for barcodes
 
 Barcode::Reader ... could give people the idea that it's for use with
 barcode readers ... Right now, I'm leaning toward Barcode::Finder, or
 maybe Barcode::Recognizer.  Anyone have any better ideas?

Barcode::OCR?

Barcode::Decode or ::Decoder?

Barcode::Interpreter?

Barcode::Read?

Barcode::Image2Numbers?

Smylers


Re: Name for barcode-reading module?

2009-02-17 Thread Bill Ward
On Tue, Feb 17, 2009 at 10:04 AM, Keith Ivey ke...@iveys.org wrote:
 Okay, it seems like Barcode is the best namespace for it.  As Bill says, the
 module is essentially OCR for barcodes, so if there were a good space for
 OCR-related modules it might fit there, but there doesn't seem to be one.

 I've thought about Barcode::Reader, but that could give people the idea that
 it's for use with barcode readers, when the whole point is that it allows
 you to use images of barcodes created by a camera or scanner *without*
 having a barcode reader.

 Right now, I'm leaning toward Barcode::Finder, or maybe Barcode::Recognizer.
  Anyone have any better ideas?

How about Barcode::Parser?

There's an article in the latest Linux Journal about a library and
command-line tool for parsing 2D barcodes (I use quotes because it's
pixels, not bars).  I don't remember offhand what it's called, but as
I was reading the article I was thinking of you and how someone ought
to write a Perl interface to it if there isn't one already


Re: Name for barcode-reading module?

2009-02-17 Thread Smylers
Keith Ivey writes:

 (It seems like object-oriented modules should have names that are
 nouns,

I agree.

(The non-noun suggestions were in case your module isn't
object oriented.)

Smylers


Re: Name for barcode-reading module?

2009-02-11 Thread Bill Ward
As the author of Barcode::Code128 (though I haven't done anything with
barcodes in many years) I don't see anything wrong with the Barcode
namespace.  I think it predates the others, but I'm too lazy to dig up the
dates on each.  Anyway, I think filing it under Business is silly, since
there are plenty of non-business uses of barcodes, and unless your barcode
is nothing but an extension of GD I wouldn't put it there.  If I understand,
your code is something like OCR for barcodes?

On Wed, Feb 11, 2009 at 12:10 PM, Keith Ivey ke...@iveys.org wrote:

 I've written some code to recognize and read barcodes in images that I want
 to clean up and release as a module.  I haven't found any module that
 duplicates the functionality.

 The idea is that you give it an image (JPEG, PNG, or anything else handled
 by GD) that contains a barcode and it returns the string that the barcode
 decodes to.  Currently I handle only EAN-13 (including UPC) barcodes, but I
 may eventually extend it.

 There are modules for generating barcodes under GD::Barcode, modules for
 validating the check digit in barcodes under Business::Barcode, and a
 top-level Barcode namespace that may or may not be a good idea.

 Any suggestions for the right namespace?

 --
 Keith C. Ivey ke...@iveys.org
 Washington, DC



Re: Name for barcode-reading module?

2009-02-11 Thread Jonathan Yu
Hi Keith:

I have to say, I am pleased that people are working on enriching
CPAN's offerings. Currently it does lack Barcode handling support,
from what I can tell.

I would be totally behind a project that would bring everything under
a consistent Barcode:: interface - that is, the processing/input,
creation, checking, etc. of barcodes.

So, while new namespaces are generally a bad idea, I think that
Barcode processing support can't realistically exist under anything
else. So, go ahead and register the Barcode namespace from PAUSE, and
commit away.

As a side project, I think it would be beneficial to contact the
authors of the other Barcode-related modules and see if you can bring
them under the Barcode:: namespace.

Please do feel free to contact me if you have more specific questions,
and thanks for consulting module-authors :-)

Unfortunately I don't personally have a whole lot of experience
working with barcodes, but I definitely think this sort of thing is
something others will find extremely useful!

Cheers,

Jonathan
(PAUSE: frequency)

On Wed, Feb 11, 2009 at 3:10 PM, Keith Ivey ke...@iveys.org wrote:
 I've written some code to recognize and read barcodes in images that I want
 to clean up and release as a module.  I haven't found any module that
 duplicates the functionality.

 The idea is that you give it an image (JPEG, PNG, or anything else handled
 by GD) that contains a barcode and it returns the string that the barcode
 decodes to.  Currently I handle only EAN-13 (including UPC) barcodes, but I
 may eventually extend it.

 There are modules for generating barcodes under GD::Barcode, modules for
 validating the check digit in barcodes under Business::Barcode, and a
 top-level Barcode namespace that may or may not be a good idea.

 Any suggestions for the right namespace?

 --
 Keith C. Ivey ke...@iveys.org
 Washington, DC