Page 1 of 1

Raspberry Pi Camera Robot Kit Question

PostPosted: Sat Sep 27, 2014 2:58 pm
by Medelwr
Hi,

I posted an unrelated question in the Rover 5 forum earlier but I have a question about this kit.

If I was to follow the OpenCV image processing tutorial and adding a sensor tutorial to add that functionality would this bot be completely independent in the sense that it would be able to process the images for itself and not need a PC or any user input to take pictures, process and move.

Thanks

Re: Raspberry Pi Camera Robot Kit Question

PostPosted: Mon Sep 29, 2014 2:51 pm
by Alan
Hi there,

Welcome to the forums. :) I'll answer this question, and then send a reply to your other question.

The example programs that are provided with the py_websockets_bot library will run both on an external PC, and on a Pi. When running the image processing and motion vector samples on the Pi, you will need to run them from the desktop to begin with, as they make use of some of the OpenCV windowing functionality to display their output (cv2.imshow etc). If remove calls to imshow etc from your programs then they will also run without an X server.

Now, having said that. You can run all of your image and sensor processing code on the Pi, but the Pi doesn't have a very powerful CPU, so it can be slow, especially when performing image processing. To help make things a bit quicker, the py_websockets_bot library provides the option to stream 'small' (160x120) images that have been scaled down on the GPU.

Hope that helps.

Regards

Alan