BlinkReceipt / blinkreceipt-android

MIT License
49 stars 16 forks source link

Realtime feedback on receipt data is not displayed after first scan #90

Closed mobile-copilot-1 closed 3 months ago

mobile-copilot-1 commented 3 months ago

If we use the new Blink UI with ScanCharacteristics

 val options =  CameraRecognizerOptions.Builder().options(scanOptions.build())
                                .characteristics(
                                    CameraCharacteristics.Builder().style(R.style.AppThemeBlink)
                                        .cameraPermission(true)
                                        .scanCharacteristics(
                                            ScanCharacteristics.Builder()
                                                .total(true)
                                                .merchant(true)
                                                .date(true)
                                                .build()
                                        )
                                        .tooltipCharacteristics(
                                            TooltipCharacteristics.Builder()
                                                .displayTooltips(true)
                                                .build()
                                        )
                                        .build()
                                ).build()
                        launcher.launch(options)

The real time feedback on receipt data is only available on first run and after app relaunch. Although this feedback is available after the image is captured by the camera but not before the capturing of the receipt image.

Without taking picture

https://github.com/BlinkReceipt/blinkreceipt-android/assets/163402036/b724a180-d251-4b2a-a452-12f55ccc5f78

After taking picture https://github.com/BlinkReceipt/blinkreceipt-android/assets/163402036/4b3f4440-aee0-44d2-87a1-8fd13fe490b9