BinaryEye icon indicating copy to clipboard operation
BinaryEye copied to clipboard

Vin compatability

Open superdupergrover opened this issue 3 years ago • 1 comments

I have a feature request that may be relatively easy to implement. I don't code, so i don't know for sure.

The ability to read Vehicle Identification Numbers would be extrememly convienient for me. It is my (limited) understanding that modern US vin barcodes are nearly the same as Code 39, but has no start or end characters. It is prescribed in law as USS Code 39. The following link is the most digestable infonI could find. https://www.dynamsoft.com/blog/imaging/barcode/scanning-vin-codes-barcode-reader/

superdupergrover avatar May 27 '22 21:05 superdupergrover

Well, this is interesting: I was able to successfully scan the sample from the web site you mentioned, but it's recognized as Code 128 - not Code 39 🤔

Then, I was checking the barcode scanning library this app is using (https://github.com/zxing/zxing) and found a parser and a custom result for VIN contents: https://github.com/zxing/zxing/blob/99e9b34f5afc21fdaeead283d5ed0bc1314cbec1/core/src/main/java/com/google/zxing/client/result/VINParsedResult.java

There are also tests for VIN contents: https://github.com/zxing/zxing/blob/99e9b34f5afc21fdaeead283d5ed0bc1314cbec1/core/src/test/java/com/google/zxing/client/result/VINParsedResultTestCase.java

So I believe it's maybe already working. Do you have a sample that does not work?

Or do you just want Binary Eye to just parse the VIN and show its components, instead of simply showing the number?

markusfisch avatar May 28 '22 12:05 markusfisch