Commit cf37871
committed
Add returnImage parameter to AiBarcodeScanner
This PR introduces an optional returnImage parameter to the AiBarcodeScanner widget and internally passes it to the MobileScannerController. This enables access to raw frame image data (Uint8List) via BarcodeCapture.image, which is useful for:
- Visual frame analysis
- Extracting pixel color values
- Saving scanned frames
Default: false to avoid extra processing for non-image consumers.1 parent b74f524 commit cf37871
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
118 | 123 | | |
119 | 124 | | |
120 | 125 | | |
| |||
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
| 152 | + | |
147 | 153 | | |
148 | 154 | | |
149 | 155 | | |
| |||
168 | 174 | | |
169 | 175 | | |
170 | 176 | | |
171 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
172 | 181 | | |
173 | 182 | | |
174 | 183 | | |
| |||
0 commit comments