question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Commentary about a comment

See original GitHub issue

image_wrapper.ts function InImageWithBorder, line 52

            // "TODO: this doesn't make much sense to me, why does it go negative?  Tests are not affected by
            // returning false, but the whole code_128 reader blows up when i throw [exception] on negative imgRef [line]."
            // assertNumberPositive(imgRef.x);
           // assertNumberPositive(imgRef.y);

When extending the line in both directions, it is quite common for the extension to exceed the image boundary.

The border extension I add is typically 10% of the current line length. If the line starts at {10,y} and goes to {310,y}, then the length with be 300. 10% would result in 30. 30 from 10 is -20.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
TonyKhorouzancommented, Sep 13, 2022

I like the idea.

I will keep my eye out for where Quagga is getting the edge off a bit. If I find a good example, I will research why. Perhaps we can prevent the inaccurate edge issue and not need to apply a white border. I am less concerned with decoding a barcode than identifying its precise location.

0reactions
ericbladecommented, Sep 13, 2022

I do a lot of retail product scanning, and I see it a lot when there’s other graphics/text close to barcodes, as often seen on small retail items. Usually holding my finger near one edge of the barcode allows for a scan to work. it would be nice if we could manage to get some of these instances more accurate. There are plenty of failing testcases in the repo that i suspect would work with small amounts of pre-processing or maybe even just using different patch/resolution settings. But it’s not something I’ve had time to dig into, and my background/experience is in much different areas. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Comment vs. Commentary - Grammar.com
Generally, commentary is narrative, each sentence is related to the previous one. Some people call commentary as a series of comments that are...
Read more >
comment vs. commentary - WordReference Forums
commentary, at least in my experience, tends to be more formal in its tone and sense of opinion. When you are giving a...
Read more >
Comment Vs Commentary?
Comment is both a noun and a verb. Commentary is a noun. As nouns, there isn't too much difference. I would say that...
Read more >
How to Use Commentator vs. commenter Correctly - Grammarist
A commenter is someone who makes isolated comments. These days, the word most often refers to people who post comments on blogs and...
Read more >
Comments, invited replies and commentaries - Journals
Comments bring attention to an oversight in a Proceedings B article or propose an opposing view. They are often a critique, providing corrections...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found