-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Got error when try to use qreader! #36
Comments
Same for me. I'm using Windows 11. |
Hi, I have been testing it, Seems related to an edge case in quadrilateral-fitter. Happening when QR is not correctly fitting to a quadrilateral (for providing the 4 corners). Could you provide your sample code and/or the image that produced you that error? It is getting difficult to replicate it. |
Wow, that's quite weird :( Then, I don't know why I can't replicate it. Bug is related with shapely interpreting some coords as a LineString instead of a Polygon. Could you provide which version of shapely do you have installed? Alternatively, I'll upload a new version of quadrilateral-fitter that should solve this case, but I would like to replicate it to have more information about why does it happen. I don't know if you are working on an IDE, but it would also get me a lot of information if you can put a breakpoint in code at _qrdet_helpers, line 50. And get me the value of accurate_polygon_xy If you can't arrive to this value is fine. Sorry for the inconvenience. |
Hi! Yes, it makes sense as quadrilateral-fitting was introduced in 2.0. Case is that, by some reason a call like |
Hi! Yes, I also tried it in the way to detect the error. But in Colab everything seems to be working ok, the same as my system :( Not breaking by the polygon being interpreted as a LineString. What I would need to know is why that's not happening in your systems :( It must be something related with |
I am having this error: |
Hello |
Hi, sorry! I have uploaded a solution that should work anyway. Combining what I could deduce from your logs and some solution for repairing unexpected LineStrings and your solution with GeometryCollection. Could you try to: Thanks! |
Hi It is still giving that error. ![2](https://github.com/
|
Hi! I tested them in the notebook and seems to work Could you try it again with the new quadrilateral_fitter 1.10? |
Hi
btw, i have a question about YOLO, is it possible to fine-tune yolo to be able to detect edge/boundary of a document? I tried using opencv and Canny but they have a difficult time trying to detect the edges when the background color is the same as the document. |
Hi, Please, upgrade quadrilateral-fitter to 1.11, and run some images. It will print all the information about your polygon, so we will see whats wrong with it. Finetunning YOLO for edge detection can be a bit tricky. You should tag a dataset of edges, and finetune a segmentation model. Then use a similar approach of what I'm doing with quadrilateral-fitter for transforming from a noisy segmentation mask to 4 points |
Hi About the YOLO model, what if I fine tune it for detecting a document instead of it's edges? Will that be a better approach? |
Hi! I uploaded a patch it will likely work, but I hope you don't see this warning: Could you try it with new About detection vs segmentation, detection is easier to tag, and will give you always 4 points. But will not remove the background if the document is rotated and will not give you rotation info. If that's fine for you, yes, it will be easier. |
Hello! I'm trying to use qreader to detect qr code, but i got this error.
How can i fix this?
The text was updated successfully, but these errors were encountered: