Python Forum
cv2-python will n ot compile??
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cv2-python will n ot compile??
#3
(Dec-26-2021, 04:28 PM)popejose Wrote:
ap = cv2.VideoCapture(1)
First thing is the variable name should be cap

Also, if you only have one webcam installed on that machine then the device number would be 0.

This worked on my laptop with one webcam installed.

cap = cv2.VideoCapture(0)
/regards
Reply


Messages In This Thread
cv2-python will n ot compile?? - by barryjo - Dec-26-2021, 03:32 PM
RE: cv2-python will n ot compile?? - by popejose - Dec-26-2021, 04:28 PM
RE: cv2-python will n ot compile?? - by barryjo - Dec-26-2021, 04:32 PM
RE: cv2-python will n ot compile?? - by barryjo - Dec-26-2021, 04:35 PM
RE: cv2-python will n ot compile?? - by popejose - Dec-26-2021, 05:20 PM
RE: cv2-python will n ot compile?? - by barryjo - Dec-26-2021, 06:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to compile a Python script for a Windows / Linux executable? netanelst 2 1,414 May-24-2022, 07:02 AM
Last Post: netanelst
  Python Compile error ajitnayak1987 4 3,788 Jun-03-2021, 12:11 PM
Last Post: ibreeden
  Embedded python fails to compile on Raspberry Pi tryfon 2 3,583 Dec-22-2020, 02:06 PM
Last Post: tryfon
  Python/C API project - compile to exe MikeTrusky 0 1,563 Jul-22-2020, 03:55 PM
Last Post: MikeTrusky
  How to cross compile python for ARM ? pankaj 4 5,789 Mar-06-2019, 05:59 AM
Last Post: pankaj
  Compile python project to single portable .exe file Campbell 5 10,827 Dec-05-2017, 01:20 PM
Last Post: buran

Forum Jump:

User Panel Messages

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