Results 1 to 40 of 49

Thread: reading barcode from scanned images

Threaded View

  1. #31
    PowerPoster Spoo's Avatar
    Join Date
    Nov 2008
    Location
    Right Coast
    Posts
    2,656

    Re: reading barcode from scanned images

    Cool

    Sure. As I see it, we will need to take the following steps

    1. Load BMP file into binary array
    2. Read the header to get the offset to the "image"
    3. Get to a "good" row (ie, one that has the bars).
    4. Translate bytes into a string of W and N (wide and narrow)
    5. Translate W/N string into numbers and letters.


    Step 3 will be a little tricky. We'll get to that point eventually,
    but as a preview, we'll need to skip over possible non-barcode "rows"
    (eg, at top of image in Post #28), so we'll read several rows to assure
    that they are the "same". Further, if the image is slightly tilted, as it
    is in Post #28, then some additional "massaging" will be in order.

    Step 5 is going to be tricky, too. If we successfully get that far,
    I'm afraid you'll be on your own.

    So, to begin with step 1 ---

    Could you please post any or all of the images from your Post #33 as
    attached files (as opposed to attached images). That way I too can
    download the file.

    I am assuming that they are BMP format. If they aren't, could you
    instead please attach one that is in a BMP format.

    Spoo
    Last edited by Spoo; Feb 20th, 2010 at 11:22 AM. Reason: Step 5 comment

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width