scan static method
Implementation
static List<UCode> scan(UBitMatrix matrix, UCodeScanOptions options) {
try {
final List<Offset>? corners = UWhiteRectangleDetector(matrix).detect();
if (corners == null) return const <UCode>[];
final _UDataMatrixShape? shape = _detectShape(matrix, corners);
if (shape == null) return const <UCode>[];
final UCode code = _decodeMatrix(shape.bits, shape.points);
return <UCode>[code];
} catch (_) {
return const <UCode>[];
}
}