Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

neg-c
Copy link
Contributor

@neg-c neg-c commented Jan 22, 2023

Fixes #22205 and #23105

While splitting the data to multiple QR codes it constantly cleans the resulting vector(final_qr_codes).
The fix is to just clean the result vector after all work is done with it.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@neg-c
Copy link
Contributor Author

neg-c commented Jan 22, 2023

@alalek @AleksandrPanov
Sorry to inform you that i had some problem with the original PR and had to create a new one.

@neg-c
Copy link
Contributor Author

neg-c commented Jan 22, 2023

@AleksandrPanov It seems like our decoder doesn't support Structured Append mode yet, but i managed to validate the data using an online decoder and it works.

Please let me know if i should add the data validation on the regression test and mark is as DISABLED.

Copy link
Contributor

@AleksandrPanov AleksandrPanov left a comment

Choose a reason for hiding this comment

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

@genciberisha, thank for your work, LGTM

You're right, OpenCV decoder cannot read QR codes with Structured Append mode (None of the QR codes from the sequence could be read with OpenCV).

Added regression parameterized test for Structure Append mode

final_qr_code clear outside generateQR() method
@neg-c neg-c force-pushed the bug/issue-22205_and_23105_encodeStructuredAppend_problem branch from 790fafb to 743d4ec Compare January 26, 2023 22:31
@neg-c
Copy link
Contributor Author

neg-c commented Jan 28, 2023

@alalek I believe there isn't anything left to do in this PR, if there is please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problem with encodeStructuredAppend function

4 participants