Scandit与设备摩托罗拉XT907 - 相机不聚焦

我正在测试我正在扫描条形码的应用程序。这个应用程序将是跨平台的,所以我正在使用Visual Studio开发Xamarin。我决定使用Scandit,因为它似乎是Xamarin的最佳条码扫描库。Scandit与设备摩托罗拉XT907 - 相机不聚焦

我遇到的问题是在这个特定的设备上,相机非常模糊,似乎无法自动对焦。正因为如此,我很难得到正确扫描的东西。

手机内置的相机应用程序效果很好,重点突出。其他条形码应用程序似乎也能够集中精细。我在另一个Android设备上尝试了我的应用程序,并且它工作正常。它似乎是这个特定设备和Scandit的结合。

正在扫描的条形码类型将全部为code128。我禁用了所有其他类型,似乎有所帮助,但仍然非常难以扫描。

这里是我的代码:

public class MainActivity : Activity, Scandit.Interfaces.IScanditSDKListener 

{

private ScanditSDKBarcodePicker picker;

const string APP_KEY = "it's a secret.";

protected override void OnCreate(Bundle bundle)

{

base.OnCreate(bundle);

SetContentView(Resource.Layout.Main);

Button button = FindViewById<Button>(Resource.Id.MyButton);

button.Click += delegate

{

picker = new ScanditSDKBarcodePicker(this, APP_KEY);

picker.OverlayView.AddListener(this);

picker.SetCode39Enabled(false);

picker.SetCode93Enabled(false);

picker.SetEan13AndUpc12Enabled(false);

picker.SetEan8Enabled(false);

picker.SetUpceEnabled(false);

picker.SetItfEnabled(false);

picker.SetMsiPlesseyEnabled(false);

picker.SetGS1DataBarEnabled(false);

picker.SetGS1DataBarExpandedEnabled(false);

picker.SetQrEnabled(false);

picker.SetDataMatrixEnabled(false);

picker.SetPdf417Enabled(false);

picker.SetCodabarEnabled(false);

picker.StartScanning();

SetContentView(picker);

};

}

public void DidScanBarcode(string barcode, string symbology)

{

Toast.MakeText(this, string.Format("barcode scanned: {0}, '{1}'", symbology, barcode), ToastLength.Long).Show();

}

public void DidCancel()

{

Toast.MakeText(this, "Cancel was pressed.", ToastLength.Long).Show();

}

public void DidManualSearch(string text)

{

Toast.MakeText(this, "Search was used. " + text, ToastLength.Long).Show();

}

}

回答:

原来,这是与Scandit库Xamarin的错误。我发邮件给开发者,他们告诉我应该在下一个版本中修复,他们说这个版本将在11月中旬发布。我下载了他们刚刚更新的最新Scandit演示应用程序,现在它工作正常。

因此,当Scandit 4.3被公开时,这应该是固定的。

以上是 Scandit与设备摩托罗拉XT907 - 相机不聚焦 的全部内容, 来源链接: utcz.com/qa/266116.html

回到顶部