Conversation
|
@primissus I just checked out your PR and doesn't seem to do what you proposed with the PR. I feel like I am missing something. Could you explain me a bit more about your PR? |
|
Hi @primissus any update on this? |
|
Hi @nisrulz , I'm sorry I forgot this PR. If you want to know the area where the QR is detected you can use the And that method returns a Maybe I committed a mistake declaring the But on the other hand, if you want to directly restrict the area for the QR detection you can use the |
|
I never got back to this, but @primissus this is a good explanation of what was expected. I will see if it still holds true for the updated library code which is now in Thank you for detailed info and this PR. |
Well, when I solved the issue https://github.com/nisrulz/qreader/issues/29 I made some changed that I cosidered not an optimal implementation of this tool, so I decided trying to improved what I did in that issue.
The first change is that I added a new class called
QRBarcodeListenerand I used it within thereceiveDetections()method instead ofQRDataListenerand also changed theonDetectedmethod of theQRDataListenerclass so you can add aRectclass to limit the reading area in order to receive data only if it is inside the bounds of that area. I also added anotherRectthat shows the area where the barcode has been detected so you can use those properties for some specific impletation.Here is an example of these properties usage: