Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Python and cv2
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TamPepper" data-source="post: 1479337" data-attributes="member: 242542"><p>Sorry about that, I had assumed the reference manual was all about python</p><p>I had blindly copied and pasted !!</p><p></p><p>So I want to capture from the web cam</p><p>#!/usr/bin/python</p><p>from here what do I need</p><p></p><p>this is what I use in windows python</p><p>import cv2</p><p>import numpy as np</p><p>c = cv2.VideoCapture(0)</p><p></p><p>while(1):</p><p> _,f = c.read()</p><p> cv2.imshow('e2',f)</p><p> if cv2.waitKey(5)==27:</p><p> break</p><p>cv2.destroyAllWindows()</p><p></p><p>I am well aware I have much reading to do, but was hoping to use the webcam as something to build code round as I progress</p></blockquote><p></p>
[QUOTE="TamPepper, post: 1479337, member: 242542"] Sorry about that, I had assumed the reference manual was all about python I had blindly copied and pasted !! So I want to capture from the web cam #!/usr/bin/python from here what do I need this is what I use in windows python import cv2 import numpy as np c = cv2.VideoCapture(0) while(1): _,f = c.read() cv2.imshow('e2',f) if cv2.waitKey(5)==27: break cv2.destroyAllWindows() I am well aware I have much reading to do, but was hoping to use the webcam as something to build code round as I progress [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Python and cv2
Top