-
Notifications
You must be signed in to change notification settings - Fork 330
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
cropped scan area #15
Comments
You can't at the moment. Why do you want to do that? |
My application displays a scanner for the entire page. Well, I would be fine to control the scan area) |
Hmmm, I don't really understand. Is this feature required for your use case? If you just want to visually highlight the scanning process, like WhatsApp does it, you can do so. You could just visually pretend the scanning area is cropped. I bet your users won't mind if scanning actually works outside the marked bounds too. How do you imagine to control the scan area? I guess we could create a new prop which allows defining a custom scan area. The rest would be a matter of changing like three lines of code. I'd prefer to keep this components API as simple as possible though. So convince me this is super useful 😁
I'm not sure how other QR code reader applications handle this. I assumed that most users intuitively understand that this is a problem and will actively try to focus one QR code at a time. What do you think? |
Thanks for the answer! |
Sorry, I still don't get it :S
Why do users who work with a lot of goods, need a pruned scan area. Do you mean scanning performance is increased that way so users can scan many QR codes faster? |
Ok, I understand what you mean now. I thought cropped-scan-area and multiple-qrcodes-in-focus were two different issues. So your users actually have to scan single QR codes from a surface that's so tightly packed? (I'm just trying to think of other possible solutions here) |
Yes exactly! |
I am facing the same issue. And yes, getting closer to the code with your camera will solve this problem. Maybe it would help to first recognise the image and then tap the screen to do the actual decoding? This way the user gets a chance to highlight the correct code before actually doing something with it. |
Can you please elaborate the setting where you intend to use your application. I still have a hard time picturing real world use case for this.
|
I would have never thought of this, but one of our clients is facing this problem. I will try to explain, even though i completely agree with you. The QR codes will serve as a reference link (like the links on the bottom of a wiki article), but these codes will be printed on a manual or training. The client wants them to be pretty small and close to each other. By small i mean, a tad smaller then an inch (2 cm). In another case they want the qr codes to be inserted in excel and the rows are pretty close to each other. The size makes them look like bullet points. |
Hmm, I still can't picture a context where you want to solve a problem this way. What kind of problem are your clients trying to solve with this approach exactly? How did they come up with this idea? Is there an application that handles such situations similarly? This sounds like a very specific edge case to me. I really need to understand this better because I don't think it's a good idea to introduce additional complexity to the components API (no extra props, events, ...) unless it's beneficial for a broader range of use cases. |
Hi! this is nice code.
Well, how a can i to transfer the scan area to the decoder?
eg:
if the aspect ratio of the video stream is 1280x720, then I want to scan only 600x600 in the middle of the video
The text was updated successfully, but these errors were encountered: