Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924005 - media-libs/opencv: please add QUIRC (QR code decoder) support
Summary: media-libs/opencv: please add QUIRC (QR code decoder) support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-02-07 12:14 UTC by Michał Górny
Modified: 2024-03-18 16:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-02-07 12:14:19 UTC
When trying to use QR Code decoding support in OpenCV, I get:

> Library QUIRC is not linked. No decoding is performed. Take it to the OpenCV repository.

Apparently the feature is hard-disabled in the ebuild because of missing dependency.  Any chance you could add it?
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-02-08 10:12:52 UTC
As requested, how to test it (requires opencv[png,python] + qrcode support):

  import cv2
  img = cv2.imread("test.png")
  cv2.QRCodeDetector().detectAndDecode(img)

An example qrcode can be found in the comment at: https://github.com/mchehab/zbar/issues/281#issue-2116595871
Comment 2 Larry the Git Cow gentoo-dev 2024-03-18 16:35:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7553b19f7a4a294445da70b7fbcc66149f212fe2

commit 7553b19f7a4a294445da70b7fbcc66149f212fe2
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2024-01-09 14:58:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-18 16:32:39 +0000

    media-libs/opencv: add 4.9.0
    
    Closes: https://bugs.gentoo.org/921968
    Closes: https://bugs.gentoo.org/924005
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/35322
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/opencv/Manifest                         |    4 +
 .../files/opencv-4.9.0-ade-0.1.2d.tar.gz.patch     |   18 +
 .../opencv/files/opencv-4.9.0-cmake-cleanup.patch  |   31 +
 .../opencv-4.9.0-drop-python2-detection.patch      |   66 ++
 media-libs/opencv/metadata.xml                     |    4 +
 media-libs/opencv/opencv-4.9.0.ebuild              | 1015 ++++++++++++++++++++
 profiles/arch/amd64/use.mask                       |    8 +
 profiles/arch/base/use.mask                        |    8 +
 profiles/arch/x86/use.mask                         |    8 +
 profiles/features/musl/package.use.mask            |    8 +-
 profiles/features/prefix/use.mask                  |    6 +-
 11 files changed, 1170 insertions(+), 6 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=166fd98eec9a33686c141ab0640e3ec3a122d344

commit 166fd98eec9a33686c141ab0640e3ec3a122d344
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2024-02-14 11:21:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-18 16:32:39 +0000

    media-libs/quirc: new package, add 1.2, 9999
    
    Dependency for QR code in media-libs/opencv
    
    Bug: https://bugs.gentoo.org/924005
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/quirc/Manifest          |  1 +
 media-libs/quirc/metadata.xml      | 21 ++++++++++
 media-libs/quirc/quirc-1.2.ebuild  | 86 ++++++++++++++++++++++++++++++++++++++
 media-libs/quirc/quirc-9999.ebuild | 86 ++++++++++++++++++++++++++++++++++++++
 profiles/arch/x86/use.stable.mask  |  8 ++++
 5 files changed, 202 insertions(+)