PHP Barcode Decoder from Photo

Hello,

I am trying to have a feature on my website where someone can take an image using their phone or web cam of a car VIN Number (which is a barcode usually code 39 or Code 128 (a,b,c).

I would then like to decode this barcode so I end up with a variable with the 17 alphanumeric code that I can then send on to another service I am using through their API.

I would like to achieve this using PHP.

Thanks In Advance!
LVL 1
piixeldesignsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
Executive summary: PHP Image recognition is not really a thing you can depend on.  No matter what, you will have an error rate, especially if your clients are taking cell-phone photos through automobile windshields.  A faster path to success, with lower error rates, would be to ask the client to type the VIN into a traditional HTML form.  But that said, ...

Why not try it in JavaScript, where it has existed for years?  You can use JavaScript to talk to a PHP application with AJAX if you need this information on the server.
http://tobeytailor.s3.amazonaws.com/get_barcode_from_image/get_barcode_from_image.js

Aspose might have something.

You may be able to make a port of this from C* into PHP
http://sourceforge.net/projects/zbar/

This might be worth a look.
https://github.com/mkoppanen/php-zbarcode

This claims to have a web api:
http://www.inliteresearch.com/web-api-barcode-reader.php
piixeldesignsAuthor Commented:
Thanks Ray,

I will defiantly have a look into your JavaScript option (sounds very promising). The VIN Numbers in AUS are now all just inside the door frames so will be a clear image 99% of the time.

I have looked briefly into php-zbarcode this does sound promising as well however I could not get it to work/install on XAMPP for MAC?

Have you ever worked with PHP Zbarcode?

Thanks
Ray PaseurCommented:
No, I don't know PHP Zbarcode.  

Any of these will be a research project.  If you need the VIN, the first step is to ask the client to type it into the HTML form, then add the option to scan an image once you get a dependable OCR-type script that can replace the client input.
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

Chris Harte2015 Top Expert (Most Article Points)Commented:
Wouldn't it be easier to read the barcode with an app scanner such as NeoReader (or one of the many others like it)? They can then send you the decoded number.  Save you the hassle of doing it with unreliable technologies.

https://play.google.com/store/apps/details?id=de.gavitec.android

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ray PaseurCommented:
@MunterMan: I completely agree!  There probably are barcode apps, because there are QR code apps.  Great suggestion.
Chris Harte2015 Top Expert (Most Article Points)Commented:
@Ray Paseur: The one I posted reads barcodes as well as QR codes. Most of them do since the standard Android library reads them both.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.