I am using PiCamera on my PI. I am executing this command on the PI:

raspivid -n -t 0 -w 640 -h 480 -fps 30 -o - | nc 5000

On my computer (windows), executing this command:

nc -l -p 5000

After I run the first command on the PI, then the one on the computer, I see the image data showing up really fast for every frame on the computer command line:

enter image description here

When I redirect the nc command using > to a file, I can see the image bytes in the file when I open it:

enter image description here

I want to open the image stream with openCV for image processing. How can I do this?

  • Please don't use pictures from text output. Instead paste the text direct into the question. – Ingo Apr 13 at 0:19

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.