Skip to content

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

Merged
merged 11 commits into from
Jul 4, 2022
Merged

Conversation

AleksandrPanov
Copy link
Contributor

No description provided.

@AleksandrPanov AleksandrPanov changed the title python QR benchmark (draft) python QR code benchmark (draft) Jun 10, 2022
for line in f.readlines():
try:
f_list = [float(i) for i in line.split(" ")]
corners += f_list
Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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.

AleksandrPanov added 2 commits June 22, 2022 20:14
@AleksandrPanov AleksandrPanov marked this pull request as ready for review June 27, 2022 07:57
@asmorkalov asmorkalov changed the title python QR code benchmark (draft) python QR code benchmark Jun 27, 2022
Copy link
Contributor

@asmorkalov asmorkalov left a 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
Copy link
Contributor

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()):
Copy link
Contributor

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.

@asmorkalov asmorkalov requested a review from alalek July 1, 2022 08:33
@asmorkalov asmorkalov merged commit 6754cb2 into opencv:develop Jul 4, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants