Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Access numpy array in openCV

$
0
0
Using the documentation [here](http://picamera.readthedocs.org/en/release-1.10/recipes1.html#capturing-to-an-opencv-object), in section 4.4 the code is:> import time import picamera import> picamera.array import cv2>> with picamera.PiCamera() as camera:> camera.start_preview()> time.sleep(2)> with picamera.array.PiRGBArray(camera) as> stream:> camera.capture(stream, format='bgr')> # At this point the image is available as stream.array> image = stream.array As i understand it, this returns a numpy array to be read in openCV correct? My question is, how do I then open/access it to perform image processing on it in openCV?

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>