-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any reasons why the version 1.7.7 doesn't provide as much feedback on processd, compare to the V0.12.1? #466
Comments
Thank you for filing an issue! Please be patient. :-) |
I use a quite similar function with my app
and as far as I can tell it seems to work well. I don't use 'multiple' mode so i don't know about 'result.boxes' working, but result.box seems to work well for me as well as codeResult. I use If you could get an image that showcases the difference between the two, then capture the result value in the old version and in the new version, we can compare the output from the two, put the whole thing into the automated test system, and hopefully trace back to what's not working. |
On my side, I don't seem to get the result.boxes. that is why I don't see the green rectangles for partial results. I can only see the graphics associated with the success results. |
The old version is returning the result.boxes all the time |
BTW I only use the "upc_reader"; |
hmmmm. it's my understanding that there shouldn't be 'boxes' if you're not using multiple: true, but i could be wrong about that. If you could post up the result output and the image used to get there, that'd be really helpful to having a look at what changed, as well as implementing a test to ensure it doesn't change again, if it's supposed to be that way. |
With the same configurations, the old V0.12.1 shows those boxes wile the new V1.7.7 doesn't. I would like to have the same behavior with the latest version, if possible. Showing the boxes, gives a nice feedback to the users that something is going on. |
If you turn on multiple: true does that output similarly to the older one? |
With multiple: true is even worst. First the boxes are still missing + onDetected result structure is messed up
|
I can confirm in 1.7 Final edit: 1.4.2 correctly returns lots of boxes, 1.5.0 and above don't. |
Thanks for looking into that. I'll see if I can do a drop in replacement between 1.4 and 1.5 on my app if that doesn't break anything (it shouldn't?) and see what i can see... i'm not sure when i'll be able to get to that, life has been pretty nuts the last several months. |
Hi @ericblade I know you have likely been really busy, but FWIW I am having the same issue and had to revert to an older version. Not sure if you are still able to look at this one. Thank you! |
I know I have an intent to get to all of these issues, but life has a way of getting in the way of intents. :| :| Can you help me with some specifics as to what information it is that you're looking for specifically that is missing from the later version? It would help, since it's apparently something I'm not using at all, since I don't notice any difference .. so it would really help me to see what you're not seeing anymore |
@ericblade I'm trying to debug this issue, but I have a hard time with the webpack cacheing: All my quagga changes are not being refrected in compiled webpack files that the browser is using. Do you have any tricks to remove the webpack cacheing? I am on Chrome, running on a windows 10 system. Thanks PS: line: In the verions 0.x, the result.barcodes was set to undefined if not detected. In the latest version the result.barcodes is being set to empty array [], which forces the resultToPublish to be set to [] instead of the result object, which was the case in the past. This change was probably done somewhere in the method: But I haven't digged into it yet due to the caching issue of webpack modules . |
Also under workerThread.worker.onmessage method definition, I noticed this line was commented out: I'm not 100% sure, but it seem to be required, for the feedback graphic to work properly |
OK I've managed to figured out the cause of the caching problems: It was caused by the base64 encoded part at the end of the quagga.js file. Not sure why that section is there in the first place, as it content seems to be a duplicate of the plain text part. I was able to test my theory, and with the following changes I manged to get the feedback back: In publishResult method definition, replace line: with:
And also uncomment the line:
under workerThread.worker.onmessage @ericblade do you want to push these changes? |
@ericblade will it be possible for you to push the change I've mentioned above? It seems I don't have permissions to do it on this repo. Thanks! |
@ghevge thanks so much for having a look at that, i really had no idea what i was even looking for.. you should be able to ma ke a pull request, but i've got the source up right now, i'll go ahead and give it a spin |
Hmm. Looking at it, and TypeScript is telling me that none of that should work. I'm going to go ahead and @ts-ignore these lines for right now, and run it through tests and see what happens. If this does work, I'd really like to be able to build a test on what data is there now that wasn't there before, and it's going to be a bit of a mess figuring out how to make typescript accept it :D |
… versions of library), submitted from comments by @ghevge
Looks like it .. works? I don't see any runtime errors spewing, although some tests required some updates, which isn't necessarily a bad thing. I've published a new version, please let me know if that does/does not work. Thanks! |
@ericblade I can confirm 1.8.4 fixes the documented issue. Behaviour is now near identical to 1.4.2. Your efforts are greatly appreciated @ghevge. |
Thanks for the feedback! |
Any reasons why the version 1.7.7 doesn't provide as much feedback on processed, compare to the V0.12.1?
I'm talking about those green and blue rectangles printed in the overlaid canvas:
The text was updated successfully, but these errors were encountered: