-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
[ENHANCEMENT] readFromFile/readFromBlob result returning also the QR code coordinates inside the source image #240
Comments
Hi, why did you ignore the issue template? Please provide a proper description and reasons/use cases why this should be a feature, otherwise I'll close this issue. |
Hi, sorry about not adhering to the template. Description: when detecting QR codes in an image, getting back the pixel coordinates of the detected code. Use case: I'm trying to detect all the QR codes in an image, not a single one. From what I gather, only the first QR code that is found is returned. With the pixel coordinates of the QR code, I can draw a rectangle on the image over the QR code, effectively erasing it. Then, I can run the detection again on the same image and get the second QR code, and so on. Hope this is enough! :) |
Ok thanks, that gives a rough idea. I guess the easiest way would be to get the coordinates of the finder patterns over here: php-qrcode/src/Detector/Detector.php Lines 39 to 40 in b915a1e
However, these values are already run though the binarizer and might have undergone transformations during the locate process, so the accuracy may vary. Either way, this is a very low priority enhancement unless it comes to me in form of a vision or a pull request, so I'll tag it as "help wanted". |
Hi, I've done it myself here: |
Hey that looks great!
No worries, a PR is for working out the details - it's your contribution after all. |
Request: literally what the title says.
Thanks!
The text was updated successfully, but these errors were encountered: