FS#61196 - [opencv] 4.0.1-1 nonfree modules not enabled

Attached to Project: Arch Linux
Opened by CUI Hao (cuihao) - Friday, 28 December 2018, 02:45 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 05 January 2019, 10:59 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

It seems that from some time point nonfree modules were removed from stock opencv package:

```
$ ./a.out
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.0.1) /build/opencv/src/opencv_contrib-4.0.1/modules/xfeatures2d/src/sift.cpp:1207: error: (-213:The function/feature is not implemented) This algorithm is patented and is excluded in this configuration; Set OPENCV_ENABLE_NONFREE CMake option and rebuild the library in function 'create'
```

Could you please set OPENCV_ENABLE_NONFREE=on again?
This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 05 January 2019, 10:59 GMT
Reason for closing:  Implemented
Additional comments about closing:  opencv 4.0.1-2
Comment by Eli Schwartz (eschwartz) - Friday, 28 December 2018, 03:03 GMT
opencv upstream fixed a longstanding mistake where these were enabled in the default builds despite being nonfree. I don't see a rationale for building them...

Why not go the recommended route and use alternative algorithms that are not patent-encumbered?
Comment by CUI Hao (cuihao) - Friday, 28 December 2018, 11:43 GMT
Hmm, just some of my research code depends on these non-free features.

Maybe I can upload opencv-nonfree package to AUR.

Thanks for your reply.

Loading...