Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get opencv_contrib module in anaconda

Can anyone tell me commands to get contrib module for anaconda

I need that module for matches = flann.knnMatch(des1,des2,k=2) to run correctly

error thrown is cv2.error: ......\modules\python\src2\cv2.cpp:163: error: (-215) The data should normally be NULL! in function NumpyAllocator::allocate

Also I am using Anaconda openCV version 3, and strictly dont want to switch to lower versions P.S. as suggested at many places to edit file cv2.cpp option is not available with anaconda.

like image 876
shraddha agrawal Avatar asked Mar 19 '17 11:03

shraddha agrawal


People also ask

How do I install OpenCV on Jupyter notebook?

Type the command “pip install opencv-python” to install python lib You should see 'Successfully installed' to finish installing opencv-python. 7. Use Jupyter notebook to run python code Open the Windows Start menu in your Desktop, click “Anaconda3 (64-bit)”, and then click “Jupyter Notebook(anaconda3)”.


1 Answers

I would recommend installing pip in your anaconda environment then just doing: pip install opencv-contrib-python. This comes will opencv and opencv-contrib.

like image 192
bradden_gross Avatar answered Oct 13 '22 16:10

bradden_gross