0

The docs for the raspicam library are nearly perfect: clear, tons of examples, and thorough, especially given that they cover a really hard topic. But I'd like to capture live video frames, process their pixels, and display them onscreen in real-time. I could capture them to a buffer and display using OpenCV, but I've found that to be really slow, especially for pixel-based operations, and kind of clunky code-wise

Is there a way to start a camera object, get the pixels as numpy array (ideally just the Y component), do some basic processing on the image, and display the results using the render class?

More graphically:

camera object
  |
get PiYUVArray
  |
processing in numpy (binarization, etc)
  |
display processed frame live

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.