thegrizzlylabs / geniusscan-sdk-demo

Demo apps for Genius Scan SDK
30 stars 38 forks source link

Cordova "multiPage" order of resulting scan array #53

Closed bottley-rl closed 1 year ago

bottley-rl commented 1 year ago

Hi there,

When enabling the "multiscan" option in scanWithConfiguration using the cordova plugin, we are looking for a way to determine the order of files as captured/ scanned by the user. I'm not sure what the default order is, I assume it has something to do with the lastmodified date of the file, as applying enhancements during multiscan seems to effect the result order.

Is there currently a method to get the original order of scanned images?

guillaume-tgl commented 1 year ago

Have you noticed that the order in the ScanFlow result is different from the order the pages were captured? Was it on iOS or Android? Which version of our Cordova plugin do you use?

bottley-rl commented 1 year ago

Hi Guillaume,

Thank you for getting back to me.

Yes, tests on Android. Cordova Plugin version: 4.5.2.

If I just console the result of "scan.scans" the array of images is not in the order they were captured.

Tests on Android device:

If I scan page 1, 2, 3 without applying any enhancements, test results of scan.scans array as follows: Test 1: 1,3,2 Test 2: 1,2,3 Test 3: 1,3,2 Test 4: 1,2,3 Test 5: 1,2,3

If I scan page 1, 2, 3 with applying enhancements (Change page color in random 1 of 3), test results of scan.scans array as follows: Test 1: 2,1,3 Test 2: 2,1,3 Test 3: 3,1,2 Test 4: 1,2,3 Test 5: 2,1,3

I haven't tested iOS yet. Will test and provide feedback.

Kindly, Brad

On Tue, Sep 27, 2022 at 9:02 AM Guillaume Gigaud @.***> wrote:

Have you noticed that the order in the ScanFlow result is different from the order the pages were captured? Was it on iOS or Android? Which version of our Cordova plugin do you use?

— Reply to this email directly, view it on GitHub https://github.com/thegrizzlylabs/geniusscan-sdk-demo/issues/53#issuecomment-1259070709, or unsubscribe https://github.com/notifications/unsubscribe-auth/A27V4KPK224HCVJAD4OZAQLWAKLWRANCNFSM6AAAAAAQV4E66U . You are receiving this because you authored the thread.Message ID: @.***>

bottley-rl commented 1 year ago

Hi Guillaume,

Tests on iOS device:

If I scan page 1, 2, 3 without applying any enhancements, test results of scan.scans array as follows: Test 1: 1,3,2 Test 2: 1,2,3 Test 3: 1,3,2 Test 4: 1,2,3 Test 5: 3,2,1

If I scan page 1, 2, 3 with applying enhancements (Change page color in random 1 of 3), test results of scan.scans array as follows: Test 1: 1,2,3 Test 2: 3,1,2 Test 3: 1,3,2 Test 4: 2,1,3 Test 5: 1,3,2

Kindly, Brad

On Tue, Sep 27, 2022 at 9:45 AM Brad Ottley @.***> wrote:

Hi Guillaume,

Thank you for getting back to me.

Yes, tests on Android. Cordova Plugin version: 4.5.2.

If I just console the result of "scan.scans" the array of images is not in the order they were captured.

Tests on Android device:

If I scan page 1, 2, 3 without applying any enhancements, test results of scan.scans array as follows: Test 1: 1,3,2 Test 2: 1,2,3 Test 3: 1,3,2 Test 4: 1,2,3 Test 5: 1,2,3

If I scan page 1, 2, 3 with applying enhancements (Change page color in random 1 of 3), test results of scan.scans array as follows: Test 1: 2,1,3 Test 2: 2,1,3 Test 3: 3,1,2 Test 4: 1,2,3 Test 5: 2,1,3

I haven't tested iOS yet. Will test and provide feedback.

Kindly, Brad

On Tue, Sep 27, 2022 at 9:02 AM Guillaume Gigaud @.***> wrote:

Have you noticed that the order in the ScanFlow result is different from the order the pages were captured? Was it on iOS or Android? Which version of our Cordova plugin do you use?

— Reply to this email directly, view it on GitHub https://github.com/thegrizzlylabs/geniusscan-sdk-demo/issues/53#issuecomment-1259070709, or unsubscribe https://github.com/notifications/unsubscribe-auth/A27V4KPK224HCVJAD4OZAQLWAKLWRANCNFSM6AAAAAAQV4E66U . You are receiving this because you authored the thread.Message ID: @.***>

guillaume-tgl commented 1 year ago

I can't reproduce this on my end with our Cordova demo app. Can you paste the result of "scan.scans" so that I understand how you know that the images are not in the right order?

bottley-rl commented 1 year ago

Apologies. Not an issue with this plugin - Issue with our file reader implementation.