0

So I've been banging my head against the keyboard for the past couple of hours trying to get PyCharm to properly accept the one and only OpenCV lib.

I know that OpenCV is written and C and I have no change of getting autocomplete from a binary and I tried a couple of ways I found on the internet and I got something working. When I Ctrl+click on a function it take me to something like this:

def VideoCapture(): # real signature unknown; restored from __doc__

Which is good, but I have no idea what that function returns, if it takes parameters what kind of parameters it needs, and so on. Is it even possible to get something like this to work?

Things I tried:

I have to say I know almost nothing regarding Python, but I want to learn it and I want to start learning it with a project in OpenCV that I have to do. If I can't do this with Python I will have to go with Java or C++ and I dislike both of them.

EDIT: just to be clear, the library is working and have succesfuly got input from a webcamera, I just want the ability to know the return type of functions, and maybe go to that types definition, you know, the normal stuff that you can do with an IDE

Potecuta
  • 93
  • 1
  • 7
  • May I ask where have you copied the `,pyd` file? – Jeru Luke Mar 14 '17 at 19:29
  • in site-packages and at some point in another place, i think a folder named DLLs. The library is working, but the autocomplete doesn't really work, and every function return is "Any" – Potecuta Mar 14 '17 at 19:33
  • I've never worked with pycharm. I just wanted too know whether the `.pyd` file was placed in the right place, that's all :D – Jeru Luke Mar 14 '17 at 19:40
  • 1
    Did you go through [THIS SO PAGE](http://stackoverflow.com/questions/18672087/autocomplete-for-opencv-python-in-windows-not-working?rq=1) – Jeru Luke Mar 14 '17 at 19:46
  • Yeah, I remember quickly reading through it yesterday. So I guess my quest is pointless... – Potecuta Mar 14 '17 at 20:20
  • You can try this in your terminal: `python`, `import cv2`, `help(cv2)` and then scroll until you find the signature you want – João Cartucho Mar 15 '17 at 00:17

0 Answers0