Commentary about a comment
See original GitHub issueimage_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:
- Created a year ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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. 😃