Scandit SDK扫描一维条形码时出现问题。对于2D条形码,它可以正常工作,但是当我尝试扫描1D时-它无法识别任何代码。
我在Google上搜索了很多,发现我必须将活动符号数设置为20,这是我尝试过的:
let symbologySettings = settings.settings(for: .code39)
symbologySettings.activeSymbolCounts = Set(7...24) as Set<NSNumber>
并且由此,我的所有设置如下所示:
let settings = SBSScanSettings.default()
settings.highDensityModeEnabled = true
let symbologies: Set<SBSSymbology> = [.datamatrix, .ean13, .ean8, .upce, .qr, .code39, .code128, .twoDigitAddOn, .fiveDigitAddOn]
for symbology in symbologies {
settings.setSymbology(symbology, enabled: true)
}
let symbologySettings = settings.settings(for: .code39)
symbologySettings.activeSymbolCounts = Set(7...24) as Set<NSNumber>
symbologySettings.setExtension(SBSSymbologySettingsExtensionFullAscii, enabled: true)
因此,我期望这个问题将得到解决,但仍然存在。有什么我可以解决的问题吗?
条形码: