Opened 5 years ago

Closed 3 years ago

#57640 closed defect (fixed)

opencv @3.4.3: +contrib not configured correctly

Reported by: jtressle Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc: ifernandolopez (Fernando López Hernández)
Port: opencv

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I'm able to compile Opencv 3.4.3 correctly with +contrib. However, the +contrib portion doesn't work.

Both SIFT and SURF work in 3.4.1. However, they do not work in 3.4.3. You can test by running the following code:

cv::Ptr<cv::xfeatures2d::SIFT> sift = cv::xfeatures2d::SIFT::create();

The last working version of Opencv is in commit 01d8762/macports-ports.

Thanks

Change History (6)

comment:1 Changed 5 years ago by jtressle

Looks like CMAKE for +contrib version needs to be configured with:

    -DOPENCV_ENABLE_NONFREE:BOOL=ON

This flag wasn't enforced on 3.4.1.

Last edited 5 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: opencv contrib removed
Milestone: MacPorts 2.6.0
Owner: set to stromnov
Status: newassigned
Summary: Opencv 3.4.3 +contrib not configured correctlyopencv @3.4.3: +contrib not configured correctly

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ifernandolopez added

Has duplicate #61415.

comment:4 Changed 3 years ago by jmroot (Joshua Root)

According to the duplicate, this is because the algorithm is patent-encumbered. I don't know if we are even legally able to turn it on.

comment:5 Changed 3 years ago by mascguy (Christopher Nielsen)

Optional variant +nonfree will be added via the following pull request:

https://github.com/macports/macports-ports/pull/9555

comment:6 Changed 3 years ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In ca9ffa681f453399942385f9ef34cf1c124b6ea4/macports-ports (master):

opencv/opencv4: eliminate conflicts, improve consistency, add variants; update gerbil and py-pytorch for opencv4 changes

opencv: eliminate conflict with opencv4; add variants debug, nonfree, tests
opencv4: eliminate conflict with opencv; switch to shared libs; rename variant opencv_contrib to contrib, to match opencv; add variants debug, java, python35..39, qt4, qt5, tbb, tests, vtk
gerbil: update for opencv4 library move
py-pytorch: update for opencv4 library move

Fixes: #61912
Fixes: #61801
Fixes: #60118
Fixes: #58845
Fixes: #57640
Fixes: #51734
Fixes: #48218
Fixes: #32528

Note: See TracTickets for help on using tickets.