Skip to content

Update QR formatting#9

Merged
asmorkalov merged 7 commits intoopencv:developfrom
AleksandrPanov:update_qr_formatting
Feb 15, 2024
Merged

Update QR formatting#9
asmorkalov merged 7 commits intoopencv:developfrom
AleksandrPanov:update_qr_formatting

Conversation

@AleksandrPanov
Copy link
Copy Markdown
Contributor

@AleksandrPanov AleksandrPanov commented Feb 13, 2024

Added new file log and new formatting
python args:
-p=qrcodes\detection -a=0.3 --metric=intersection_over_union -alg=opencv_aruco

new_bench

all_qr

@AleksandrPanov AleksandrPanov changed the base branch from master to develop February 13, 2024 10:01
@AleksandrPanov AleksandrPanov marked this pull request as draft February 13, 2024 10:10
Copy link
Copy Markdown
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.

I propose to report all metrics we have to report table, not only one.

@AleksandrPanov AleksandrPanov force-pushed the update_qr_formatting branch 2 times, most recently from e3a8437 to 6c458e8 Compare February 14, 2024 13:26
@AleksandrPanov AleksandrPanov marked this pull request as ready for review February 14, 2024 13:41
@asmorkalov
Copy link
Copy Markdown
Contributor

Output path works incorrectly. E.g.:

python3 ./qr.py -alg opencv -o opencv_classic_4.x -p /home/alexander/Projects/OpenCV/opencv_benchmarks/python_benchmarks/qrcodes_v3_dataset/detection/
...
Traceback (most recent call last):
  File "./qr.py", line 379, in <module>
    main()
  File "./qr.py", line 362, in main
    dump_log(filename, img_name, output, nearest_distance_from_gold, decoded)
  File "./qr.py", line 297, in dump_log
    os.mkdir(output_dict)
FileNotFoundError: [Errno 2] No such file or directory: 'opencv_classic_4.x/report_2024_02_15-09_10_04_AM'

@asmorkalov
Copy link
Copy Markdown
Contributor

I would say, that report_2024_02_15-09_10_04_AM should be default value, if output path is not set.

@asmorkalov
Copy link
Copy Markdown
Contributor

Need to tune generated diagram, it's not readable.
_blurred_qr

@asmorkalov
Copy link
Copy Markdown
Contributor

What distance 40 means?

if not os.path.exists(output_dict):
os.mkdir(output_dict)
with open(output_dict + "/" + "distances" + '.json', 'w') as fp:
json.dump(distances, fp, cls=NumpyEncoder)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use indent=4 for "human readable" json. Otherwise it's single line document.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@asmorkalov asmorkalov mentioned this pull request Feb 15, 2024
6 tasks
@AleksandrPanov
Copy link
Copy Markdown
Contributor Author

fixed diagram and output
image

Copy link
Copy Markdown
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.

👍

@asmorkalov asmorkalov merged commit 60018e6 into opencv:develop Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants