2011-03-12 68 views
1

期待掃描vin並獲取年份模型樣式,這樣我就可以爲我們公司提供與車輛數據匹配的產品。類似的問題在這裏被問到, How to write the VIN Scanner toolVin解碼器api? Iphone

任何人都可以推薦現有的API或資源來查詢?優選地免費但不是次佳(可靠且便宜)

+0

看看http://vin-info.com - 他們有一個非常漂亮的VIN解碼器 – 2013-06-12 17:42:22

+0

你的意思是他們的API? http://uk.vin-info.com/vin-api – 2013-06-12 18:00:47

回答

-1

不確定您是否還在尋找Fozz,但我工作的公司提供REST Web服務來解碼VIN。這不是免費的,但我們提供免費試用於開發目的。

http://www.dataonesoftware.com/business-tools-xml-vin-decoder.php

實施是非常簡單......只要將您的憑據&您的VIN號碼爲HTTP GET請求,你會回來XML瓦特/車輛的詳細信息。

-1

掃描一個VIN:

使用zbar和做到這一點。 爲了獲得足夠的分辨率進行掃描,您需要以橫向模式掃描條形碼。這裏是我的設置(測試&工作)

// ADD: present a barcode reader that scans from the camera feed 
ZBarReaderViewController *reader = [ZBarReaderViewController new]; 
reader.readerDelegate = self; 
reader.supportedOrientationsMask = ZBarOrientationMaskAll; 

ZBarImageScanner *scanner = reader.scanner; 

//disable other codes to improve performance 
[scanner setSymbology: 0 
       config: ZBAR_CFG_ENABLE 
        to: 0]; 
[scanner setSymbology:ZBAR_CODE39 config:ZBAR_CFG_ENABLE to:1]; 
//only scan vertically, in the middle of the screen (also improves performance) 
[reader setScanCrop:CGRectMake(0, 0.4, 1, 0.2)]; 
[reader setShowsZBarControls:NO]; 
[reader setShowsHelpOnFail:NO]; 
//VERY IMPORTANT: reset zoom. by default, the screen is partially zoomed in and will cause a loss of precision 
reader.readerView.zoom = 1.0; 
reader.readerView.allowsPinchZoom=NO; 
reader.readerView.showsFPS=YES; 
reader.readerView.tracksSymbols=YES; 
//scan landscape only (this also improves performance) 
[scanner setSymbology:ZBAR_CODE39 config:ZBAR_CFG_X_DENSITY to:0]; 
[scanner setSymbology:ZBAR_CODE39 config:ZBAR_CFG_Y_DENSITY to:1]; 

這應該幾乎做到這一點!祝你好運!