4

I am searching for a VIN (vehicle identification number) barcode SDK. Has any1 implemented then please help me with some tutorials ans sample codes. I din't find anything helpful.All i found is barcode reader but not VIN.

Any help will be appreciated.Thanks

Dhara
  • 4,093
  • 2
  • 36
  • 69

4 Answers4

8

I know this has been answered already, but...

VIN's are just Code 39 Barcodes.

You can use: http://zxing.org/w/decode.jspx to read the barcode and then use http://developer.edmunds.com/ to decipher the vehicle information. This is the best no cost solution I've been able to come up with.

Brad
  • 2,237
  • 5
  • 41
  • 69
  • The problem with Vin codes is that they are irregularly shaped for Code 39 barcodes. I have tried multiple times using the zxing libraries, and their sample app doesn't work with vins on any device I've tried. – K.Niemczyk Nov 15 '13 at 15:23
  • 2
    @K.Niemczyk : That is completely untrue. The reason some of the open source libraries often dont work is because of resolution issues, as the vin codes from bar 39 are quite long, often the default configurations are not compatible... Check out my answer for a free solution that works with a completely free open source library. – Jeremie D Feb 24 '14 at 18:26
  • @Jeremie Been a while since I looked at this. If I recall correctly, at the time, I couldn't get the zxing libraries to work with the Android device I was using, even after making some changes to try and deal with the resolution problem (Unfortunately, I don't think I still have that code). Also, when I couldn't get zxing's base app to read VINs on any device I tried it on (couple different ios devices, and an android tablet). As such, I didn't have a lot of confidence in trying to use it. Thanks for the update! – K.Niemczyk Feb 24 '14 at 22:42
5

ZBar reads Code 39 Barcodes. Its free and open source. See my answer here for working source code example

Edit/Note:the iOS framework now includes a barcode scanner as of iOS 7. I used this implementation to get better and easier results than using Zbar.

Free SDK for scanning barcode (code 39 format) in iOS

Community
  • 1
  • 1
Jeremie D
  • 4,145
  • 1
  • 35
  • 41
2

There are some libraries available for this.

Please check these links for sdk's and demo apps:

  1. bees4honey
  2. fastbook
Community
  • 1
  • 1
Midhun MP
  • 103,496
  • 31
  • 153
  • 200
1

We can use AVFoundation to scan following types of barcode in ios.

The framework reads the below barcodes:

2D Barcodes:

  1. QR
  2. PDF417
  3. Aztec

1D Barcodes:

  1. Code 128
  2. EAN-8
  3. EAN-13
  4. UPC-A
  5. UPC-E
  6. Code 39
  7. Code 93

Since VIN is a code 39 barcode we get it done very easily without using any third party library.

Pranjal
  • 101
  • 5