Where is cv2.so? Is it now called something else? [closed]

asked 2018-08-29 14:50:08 -0600

miner_tom gravatar image

I have just completed a build of OpenCV. Make file completed successfully. However, I went looking for cv2.so in /usr/local/lib/python2.7/site-packages and found nothing at all. Having done a global search for cv2.so I realize that as named, it does not exist. is there another name that I should be looking for?

Thank You Tom

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-11-13 06:12:10.056768

Comments

Have you checked this and this? If yes, then try looking at the following search result

eshirima gravatar imageeshirima ( 2018-08-29 15:44:05 -0600 )edit

please edit your question and add the cmake output. maybe it did not build the python bindings at all ? maybe only for python3 ?

berak gravatar imageberak ( 2018-08-30 00:01:25 -0600 )edit

Either @berak is right, and CMAKE did not find the necessary components to build OpenCV's python API, which seems correct since a global search did not retrieve anything. Nevertheless, you do not have a make install step in your approach, which will not make it globally accessible through Python.

StevenPuttemans gravatar imageStevenPuttemans ( 2018-08-30 06:56:23 -0600 )edit
1

Actually when running sudo make install it tells what it copies to the general locations. If it does not mention a copy of cv2.so, you are stuck at the building process. Building OpenCV for python is optional, not manditory, hence it will not fail.

StevenPuttemans gravatar imageStevenPuttemans ( 2018-08-30 06:57:28 -0600 )edit