We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ba8aec + 299a38b commit 9f564c9Copy full SHA for 9f564c9
src/core.ts
@@ -175,6 +175,9 @@ export interface QrcodeResult {
175
176
/** Data class for QR code result used for debugging. */
177
debugData?: QrcodeResultDebugData;
178
+
179
+ /** Contains the rawBytes without QrCode header/footer. */
180
+ rawBytes?: Uint8Array;
181
}
182
183
/**
src/zxing-html5-qrcode-decoder.ts
@@ -112,7 +112,8 @@ export class ZXingHtml5QrcodeDecoder implements QrcodeDecoderAsync {
112
text: result.text,
113
format: QrcodeResultFormat.create(
114
this.toHtml5QrcodeSupportedFormats(result.format)),
115
- debugData: this.createDebugData()
+ debugData: this.createDebugData(),
116
+ rawBytes: result.resultMetadata.get(2)[0]
117
};
118
119
0 commit comments