Engineering Asked by Guest User on August 4, 2021
I have this extremely minor problem where my gym is 4 blocks away, and I’d like to go over with nothing but my phone. Unfortunately, I have to bring a card with me for them to scan with a barcode reader. I figure I’d engineer a way out, but I’m a lowly mechanical and know very little about these optical systems.
I tried taking a picture of my card and having them scan it, but it’s not very reliable. I’m using an Apple iPhone 11 screen, and I realize the an LCD screen isn’t going to reflect light very well, and using a picture of the card is probably generating a lot of noise.
I have two methods going forward and I’m curious to see what thoughts you all have. I know the barcode scanner is using visible light, which google says is likely at 633nm.
My first is using a cleaner image for scanning, because my original one wasn’t perfect. I generated a barcode and made sure it looks like my old one, so I have a pixel-perfect barcode on my phone. I can’t imagine the reflection issue is fixed, but I know that it at least has some success rate.
My second idea is to recreate the reflected laser pattern that the barcode receiver expects to receive. I found that ff4200 corresponds to 633nm light. I used a black backdrop — I have an LCD and not an OLED, so I’m wondering if that is going to cause some issues, as I’ll be broadcasting "black" light. I have no idea how good the scanner is at picking up sub-pixel light and differentiating it from the red color on my phone screen, and I have no idea if the color accuracy of my phone will throw the barcode scanner off.
I plan to go back in 2 days to test it out, but does anyone with more relevant experience or education have any ideas on how to best do this?
I believe the reason your phone does not work is because the screen is not reflective.
What happens when the barcode is scanned (usually) is that a laser dot is swept across the bars very rapidly (thus it appears as a line).
As the dot hits the black and white parts of the image the laser is reflected into a sensor more or less, creating a pulse which a computer can read.
From here you can probably see why your phone dose not work. Although the barcode appears similar to a code printed on paper, as the laser hits the screen it does not reflect more or less light, so the digital pulse is not generated.
Note that the pulse occurs in time, based on the speed of the laser dot so your red and black image will not work either.
What could theoretically work is if your phone could rapidly flash the pulse that would result if a laser were scanning an actual barcode. Unfortunately your phone screen probably cannot change colors fast enough, and you would also have to know the scanning rate of the laser.
I don't suppose you bring an e-reader to the gym though? Because that would work the way you expect, since it reflects light, and doesn't just produce it.
There are some barcode readers (especially QR code readers) that can read a phone screen reliably. I believe these use a camera to read the code and not a laser. These will usually be a box with a clear window that you place the code against.
Answered by Drew on August 4, 2021
You can get apps that store cards on your phone (e.g. Stocard) and they work pretty well; at least as good if not better than a printed barcode on a scrunched up grocery bag.
I suggest that your photograph is distorted or not clear enough - these apps generate the correct bar code from the numbers and don't suffer from this problem.
Answered by Dale M on August 4, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP