I’ve seen from the sample how to display an image from the webcam, but how do I get the image captured as an array?
import cv
capture = cv.CaptureFromCAM(0)
img = cv.QueryFrame(capture)
img.tostring() gives me weird caracters.
Thanks in adv.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think this is what you’re looking for:
anyway, you should check opencv python cookbook for use with PIL and NUMPY packages.