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
Exception when running #1
Comments
I'm able to reproduce, it appears to be failing on the first image in the second column. It's unable to detect any foreground (shape) pixels because of the reflection on the card, it's classifying all of them as the white background of the card. I can add a patch to prevent it from crashing when it happens, but it will still fail to find any sets that include that card. I would recommend taking the photo again in a way that there isn't glare on any of the cards. Sorry I don't have a better solution for you. |
It would be nice that for the images it does not recognize to show them and
ask the user for input.
But a bit tedious to implement...
…On Sat, Dec 28, 2019 at 3:34 AM Nicolas Hahn ***@***.***> wrote:
I'm able to reproduce, it appears to be failing on the first image in the
second column. It's unable to detect any foreground (shape) pixels because
of the reflection on the card, it's classifying all of them as the white
background of the card. I can add a patch to prevent it from crashing when
it happens, but it will still fail to find any sets that include that card.
I would recommend taking the image again in a way that there isn't glare on
any of the cards. Sorry I don't have a better solution for you.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=AAG6AR5LUNMBQWJISD3YF7TQ223KRA5CNFSM4J7RDKFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHYAHDA#issuecomment-569377676>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG6AR6GAU6TKZSNQYSYTITQ223KRANCNFSM4J7RDKFA>
.
|
Not that tedious, |
Thanks for a fix but now it crashes: ./solve_set.py /tmp/set2.jpeg Initialize OpenCL runtime... Could not classify at least one of the attributes of this card. Please enter the attribute labels manually. Select the window with the card image when entering keys. Keys entered here will not be registered. Enter the card's COLOR: For RED, enter '1' For GREEN, enter '2' For PURPLE, enter '3' If not a card, enter 'n': QObject::moveToThread: Current thread (0x2b2eb20) is not the object's thread (0x2adb540). Cannot move to target thread (0x2b2eb20) Segmentation fault (core dumped) |
I'm not able to reproduce. Which OS, version of OpenCV, and version of python are you using? Are you able to get any cv2 GUI window to appear? For example, are you able to run the code in this post? opencv/opencv-python#46 (comment) |
I reinstalled opencv from the distribution and it works wonderfully now! Finally we are certain there was no set in the combination we struggled with one week ago :) Thanks! |
Hello,
I was trying your set solver (after having thought myself to write one) and I get an error for the attached image.
The text was updated successfully, but these errors were encountered: