-
Notifications
You must be signed in to change notification settings - Fork 9
python QR code benchmark #2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
29eb497
to
4c90b9b
Compare
4c90b9b
to
33fde57
Compare
for line in f.readlines(): | ||
try: | ||
f_list = [float(i) for i in line.split(" ")] | ||
corners += f_list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose to add at least array size check to validate integrity and parsing issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return np.array(corners).reshape(-1, 4, 2)
made array size check.
Do you suggest adding a manual check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose to add explicit check with verbose error message.
42699f1
to
2960bf6
Compare
285a081
to
772a07b
Compare
bb1d315
to
47fd5c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM!
for line in f.readlines(): | ||
try: | ||
f_list = [float(i) for i in line.split(" ")] | ||
corners += f_list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose to add explicit check with verbose error message.
corners = image_info.getNode("corners").mat() | ||
decoded_info = image_info.getNode("decoded_info") | ||
if not decoded_info.empty(): | ||
for i in range(decoded_info.size()): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the dead code.
No description provided.