Python Forum
Help with cv2 installation and multiple cameras
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with cv2 installation and multiple cameras
#1
I'm new to python and am trying to learn webcam things. I'm trying to use two webcams but I can only get one to work at a time. I also wouldn't mind having python on my laptop so I installed it there and after a struggle go it installed with pip, then numpy and matplotlib but I donwloaded opencv 4 and although that seemed to go okay on my PC, I cannot get it working. I downloaded opencv, it was a folder with build and sources folders. I tried going to build->python and clicking set up (which opens with python but immediately closes). I tried going into build->python->cv2->python-3.6 (which is the python version I'm using) and launching cv2.cp36-win_amd64 which does the same thing (opens and immediately closes). I tried going to the directory that has cv2.cp3-win_amd64 in command prompt and tried doing a pip install cv2.cp3-win_amd64 and pip install cv2, I tried it in a few directories (but if I'm honest, I've NEVER done command prompt stuff before so I don't know what I'm doing). Whatever I do in command prompt it seems to return this message: "Could not find a version that satisfies the requirement cv2 (from versions: )
No matching distribution found for cv2". I don't even know WHAT opencv2 is file wise, or where to put it, or how to get it into python, but I did manage to get it working on my desktop somehow.

TL;DR: Need help figuring out how to install open cv2 on my laptop and help recognizing two webcams at once.
Reply
#2
follow installation instructions here: https://pypi.org/project/opencv-python/
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020