I have developed a logistics app, which needs to scan barcodes on parcels frequently. I've tried integrating ZXing to implement the barcode scanning function, but it cannot recognize barcodes accurately in some scenarios including strong light, bending, and deformation... Now, I've integrated HUAWEI Scan Kit, but its startScanFromFragment(Fragment f, int code, HmsSanAnalyzerOptions o) method does not work. Because fragment that I'm using inherits from androidx.fragment.app. What should I do? Plz give me some points.
The fragment parameter in startScanFromFragment is android.native.fragment. However, the android.native.fragment API is about to be deprecated and will not be included in the Scan Kit API Reference. You are advised to use the startScan(Activity a, int code, HmsSanAnalyzerOptions o) method for barcode scanning.
In addition, Scan Kit provides four integration modes: Default View, Customized View, Bitmap, and MultiProcessor. Scan Kit is able to accurately and quickly scan barcodes from a long distance, in challenging scenarios, and no matter how the barcode is oriented. To learn more, please visit HUAWEI Scan Kit.