我一直在研究製作一個iOS應用程序,它使用相機拍攝條形碼(例如代碼39)並正確讀取它們。用於MonoTouch的條形碼掃描儀?
只是看着幾個庫,不知道是否有任何工作,但他們都使用iOS的Objective-C。
想到也許我應該問一下,在MonoTouch中是否有解決方案,因爲這是我想如何製作iOS應用程序?
我一直在研究製作一個iOS應用程序,它使用相機拍攝條形碼(例如代碼39)並正確讀取它們。用於MonoTouch的條形碼掃描儀?
只是看着幾個庫,不知道是否有任何工作,但他們都使用iOS的Objective-C。
想到也許我應該問一下,在MonoTouch中是否有解決方案,因爲這是我想如何製作iOS應用程序?
在MonoTouch郵件列表上有一個類似的thread。
RedLaserlatest(比單的git倉庫更新版本)綁定,請訪問:https://github.com/chrisbranson/monotouch-bindings 與示例代碼,請訪問:https://github.com/chrisbranson/RedLaserSample
另一項建議是使用:https://github.com/GoranHalvarsson/BarcodeReader-MonoTouch
其他人已經開始使用的(商業)LineaPro SDK(一些MonoTouch綁定也可在github上使用)。
您可以使用Monotouch將本機objective-c庫與您的monotouch項目綁定。
您可以找到有關此主題在這裏詳細信息:
http://ios.xamarin.com/Documentation/Binding_New_Objective-C_Types
(不再可用)
你可以找到一個準備使用Github上進行的RedLaser結合: https://github.com/mono/monotouch-bindings
礦也可以工作:
http://www.jmawebtechstore.com/p/21/ios-monotouch-barcode-scanner-reader
(Web內容不再可用)
我有可用的源代碼全條碼掃描應用程序。我的應用將條形碼保存到數據庫並將照片保存到相冊中。
下面是另一個由Redth:
https://github.com/Redth/ZXing.Net.Mobile
他的例子的使用:
var scanner = new ZXing.Mobile.MobileBarcodeScanner();
scanner.Scan().ContinueWith((result) => {
if (result != null)
Console.WriteLine("Scanned Barcode: " + result.Text);
});