Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Webcam QR Barcode Decoder Problem

Webcam QR Barcode Decoder Problem

Scheduled Pinned Locked Moved C#
helpquestion
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    S K Y
    wrote on last edited by
    #1

    my barcode decoder working fine with original JPG file of a QR barcode. but when i take a picture of the barcode using my webcam, system cann't recodnice the barcode of webcam picture(jpg). any one know why happen this....????

    A S E L A

    C OriginalGriffO 2 Replies Last reply
    0
    • S S K Y

      my barcode decoder working fine with original JPG file of a QR barcode. but when i take a picture of the barcode using my webcam, system cann't recodnice the barcode of webcam picture(jpg). any one know why happen this....????

      A S E L A

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      pretty simple really. Your picture is not going to be 100% without noise, 100% taken at the right angle, etc.

      Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

      S 1 Reply Last reply
      0
      • C Christian Graus

        pretty simple really. Your picture is not going to be 100% without noise, 100% taken at the right angle, etc.

        Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

        S Offline
        S Offline
        S K Y
        wrote on last edited by
        #3

        hi Christian Graus but i saw some sample applications can run n mobile phones. those application don't have that problem. how can i solve this problem??? any tips...???

        A S E L A

        D 1 Reply Last reply
        0
        • S S K Y

          hi Christian Graus but i saw some sample applications can run n mobile phones. those application don't have that problem. how can i solve this problem??? any tips...???

          A S E L A

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Do some image processing on the picture to increase the contrast and flatten the colors out so you get a more consistent black and white images. Then send the processed image to your decoder.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          1 Reply Last reply
          0
          • S S K Y

            my barcode decoder working fine with original JPG file of a QR barcode. but when i take a picture of the barcode using my webcam, system cann't recodnice the barcode of webcam picture(jpg). any one know why happen this....????

            A S E L A

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #5

            Right, this is going to need you to do some work: First, read the QR barcode spec: QR 2005 barcode specification[^] - then you will know what you are trying to do. Second, the problem is likely to be resolution related, as the squares need to be pretty uniform and "pretty". Best method is to process several frames from the camera and build up the barcode format in memory from the various frames until you have a "good" image (this is how most scanners work - build an image from a number of scans, rather than a single scan). Keep building until the "compulsary" parts of the image are readable, and hopefully you will have the entire barcode. Good luck!

            No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            B 1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              Right, this is going to need you to do some work: First, read the QR barcode spec: QR 2005 barcode specification[^] - then you will know what you are trying to do. Second, the problem is likely to be resolution related, as the squares need to be pretty uniform and "pretty". Best method is to process several frames from the camera and build up the barcode format in memory from the various frames until you have a "good" image (this is how most scanners work - build an image from a number of scans, rather than a single scan). Keep building until the "compulsary" parts of the image are readable, and hopefully you will have the entire barcode. Good luck!

              No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

              B Offline
              B Offline
              btss01
              wrote on last edited by
              #6

              Hi I just gone through your thread posted on codeproject. If you fond the solution of this problem then please share with me. Regards, Bhavesh Rajdeep

              OriginalGriffO 1 Reply Last reply
              0
              • B btss01

                Hi I just gone through your thread posted on codeproject. If you fond the solution of this problem then please share with me. Regards, Bhavesh Rajdeep

                OriginalGriffO Offline
                OriginalGriffO Offline
                OriginalGriff
                wrote on last edited by
                #7

                What part of my answer did you not bother to read? The solution is given - but you will have to implement it. I don't need to read barcodes on my mobile...

                Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                B 1 Reply Last reply
                0
                • OriginalGriffO OriginalGriff

                  What part of my answer did you not bother to read? The solution is given - but you will have to implement it. I don't need to read barcodes on my mobile...

                  Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

                  B Offline
                  B Offline
                  btss01
                  wrote on last edited by
                  #8

                  Hi OriginalGriff, I want to scan barcode through webcam attached to my computer. If you have code for that then please email me or post it in this thread or pass the URL. Thanks in Advance.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups